Re: Working with dates in Struts

2006-01-23 Thread Richard Jason R. Raquepo
if you can do this at the java code level, just put the result and place it in the request scope for display in jsp. then you can just check the scope variable using jstl tags. maybe you could use a map object as your container. hth, Richard Keith Sader wrote: Why not set a display variable

Re: Working with dates in Struts

2006-01-23 Thread Keith Sader
Why not set a display variable in the action that serves that page? Then, in the jsp you can use to see if you need to display the date/message? I suppose you could also use the jstl el to determine the condition as well. Could you be a bit more explicit in what needs to be displayed? On 1/23

Re: Struts, Tiles and the Validator

2006-01-23 Thread Vasumathi
Hi you try like this in struts_config.xml and tiles_sam.xml file. in tiles for this sample.jsp this may help u Quoting Martin Ravell <[EMAIL PROTECTED]>: > Say I have an app th

[OT-ANN] Java Web Parts v1.0 beta3

2006-01-23 Thread Frank W. Zammetti
Hi all... I haven't been posting JWP release announcements here lately, and generally I will refrain from doing so, but the team just put out a new release last night and I think it has some features that might be of interest to many of you... * AjaxTags now has some new capabilities, includin

Re: Tags for Pagination

2006-01-23 Thread Aladin Alaily
That was my first reaction too. As a matter of fact, I am using version 1.1 and it works quite nicely. You should most definetly revisit it, the flexibility of external sorting & sublists are major improvements. Aladin Rick Reumann wrote: Aladin Alaily wrote: After compile displaytag 1.

Re: Tags for Pagination

2006-01-23 Thread Rick Reumann
Aladin Alaily wrote: After compile displaytag 1.1, you can have sublists and external sorting by adding the following paramters to the display:table tag: 1. sort="external" 2. partialList="true" 3. size="somesize" Wow that is very cool. Have you actually used this yet? How did it work out f

Re: validating a single textbox for two mask values

2006-01-23 Thread rama chandrula
ContactID and phoneNumber are regualr expressions that are used more than once in the validation.xml and hence are deifned using constants. From: Laurie Harper <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org Subject: Re: validating a single textbox for t

Re: What JDK version are you using?

2006-01-23 Thread Saul Qunming Yuan
[X] JDK 1.4 [X] JDK 1.5 (or JDK 5) using Validator. - I'm mainly interested in the impact of moving Commons Valdator to a minimum dependency of JDK 1.4 to use the RegExp support rather than depending on ORO, so it would be useful if you could indicate whether you are usi

Re: tiles is this url still valid

2006-01-23 Thread Wendy Smoak
On 1/23/06, Werner Punz <[EMAIL PROTECTED]> wrote: > As it seems the tiles url refers to http://struts.apache.org/tags-tiles > on the tiles website. But it seems to me the url itself is not reachable > anymore. > > Is this url still valid? That is the correct URI for Struts Tiles, but it has neve

Re: Tags for Pagination

2006-01-23 Thread Aladin Alaily
Hi Srini, I have a table that contains 32000 records and was in the same predicament as you. I wanted to subsets of the records rather than the whole thing at once. Also the current release version of displaytag doesn't allow you to paginate (or sort) sublists, you might be surprised to kno

Struts, Tiles and the Validator

2006-01-23 Thread Martin Ravell
Say I have an app that uses Struts and Tiles and I am trying to get the Validator plugin to play nicely. As I understand it the 'input' option of an action element in struts-config.xml is used when a validation fails. i.e. if a validation fails we are redirected to whatever is in the input option

Working with dates in Struts

2006-01-23 Thread Priya Saloni
Hi , I have a requirement using Struts where i need to show in the JSP if the * paymentDate* is between *fromDate *and *toDate* Only.All Dates are * java.util.Date* .Is there any way we can implement in Struts based JSPs.Wecan implement it using java code but we don't want to do that.Some one plea

Re: jstl tutorial/reference?

2006-01-23 Thread Keith Sader
Here's a few links: http://today.java.net/pub/a/today/2003/10/07/jstl1.html http://www-128.ibm.com/developerworks/java/library/j-jstl0211.html http://java.sun.com/developer/technicalArticles/javaserverpages/faster/ http://www.onjava.com/pub/a/onjava/2002/08/14/jstl1.html - old, but useful. http://

Re: jstl tutorial/reference?

2006-01-23 Thread Rahul Akolkar
On 1/23/06, Deep Chand <[EMAIL PROTECTED]> wrote: > Hi, > > I'm developing a struts based application and would like to use jstl > tags instead of custom tags specified with struts tag lib. Is there a > good JSTL tutorial/reference available which gives good example usage > also of how to use the j

jstl tutorial/reference?

2006-01-23 Thread Deep Chand
Hi, I'm developing a struts based application and would like to use jstl tags instead of custom tags specified with struts tag lib. Is there a good JSTL tutorial/reference available which gives good example usage also of how to use the jstl tags. Thanks Deep -

Re: returning a non-html file as response

2006-01-23 Thread Max Cooper
On Mon, 2006-01-23 at 16:27 -0800, Craig McClanahan wrote: > On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Craig McClanahan wrote: > > [snip] > > > > Calling flush() doesn't necessarily cause the *entire* response to be > > > sent, because you might still be creating more output.

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
A compression filter does exactly that, that's the reason it occurred to me :) I remember facing *precisely* that problem a few months back with the JWP sample app. I know I solved it, but I guess I had forgotten the root cause :) Frank Craig McClanahan wrote: On 1/23/06, Frank W. Zammetti

Re: returning a non-html file as response

2006-01-23 Thread Craig McClanahan
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: [snip] > > Calling flush() doesn't necessarily cause the *entire* response to be > > sent, because you might still be creating more output. But it *does* > > cause the HTTP headers, and any output content you've w

Re: html-el:select and tag files

2006-01-23 Thread Rahul Akolkar
On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > On Mon, Jan 23, 2006 at 03:00:27PM -0500, Rahul Akolkar wrote: > > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > > > On Mon, Jan 23, 2006 at 12:36:02PM -0700, Wendy Smoak wrote: > > > > > > > > Use the plain HTML tags and make sure you'

tiles is this url still valid

2006-01-23 Thread Werner Punz
Hi group As it seems the tiles url refers to http://struts.apache.org/tags-tiles on the tiles website. But it seems to me the url itself is not reachable anymore. Is this url still valid? - To unsubscribe, e-mail: [EMAIL PROT

Re: [OT] Anyone else mess around with Wicket?

2006-01-23 Thread Michael Jouravlev
On 1/21/06, Craig McClanahan <[EMAIL PROTECTED]> wrote: > On 1/20/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > > > If all that JSF rendereres produce are divs and spans with proper ids, > > then dressing up a page would be a weekend fun a-la Zen Garden. Anyone > > from JSF team hears me? ;-

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Frank W. Zammetti wrote: Craig McClanahan wrote: Let's try to be a bit more helpful here :-). No object :) Err, no OBJECTION! D'oh :) Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Craig McClanahan wrote: Let's try to be a bit more helpful here :-). No object :) The only thing Struts itself might do is try to set the no-cache headers if you have them configured. It does not, by itself, ever write to the response stream or response print writer. That's the responsibili

Re: returning a non-html file as response

2006-01-23 Thread Craig McClanahan
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Here comes my unhelpful response for the day... > Let's try to be a bit more helpful here :-). > [EMAIL PROTECTED] wrote: > > > > I've got the thing to work returning null as my forward. That leaves a > couple of questions though. > > >

Re: returning a non-html file as response

2006-01-23 Thread Michael Jouravlev
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Here comes my unhelpful response for the day... > > [EMAIL PROTECTED] wrote: > > > > I've got the thing to work returning null as my forward. That leaves a > > couple of questions though. > > > > 1) Does struts write anything to the respo

Re: tabs & struts tutorial

2006-01-23 Thread Michael Jouravlev
On 1/23/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > Is there a way to do page tabs in struts? > I seem to recall somebody saying there was. There are common-controls.com, but they are not free, and if you ask me they have their limitations - they are not just page drop-ins. There is http://209.

Re: Shale: not calling prerender or preprocess, and Navigation issue

2006-01-23 Thread Craig McClanahan
On 1/23/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > Thanks for the response... > > The url in the browser is changing to /login/login.jsf... I call the > redirect, from the the BaseViewController.prerender method... > externalContext.redirect(toUrl); where in my case the toUrl is > "/cpt/login/l

RE: [Struts EL & JSTL]

2006-01-23 Thread Karr, David
To answer this a little differently than Laurie did, the Struts-EL tag library is a collection of tags that all inherit the behavior of the Struts tags they replace, except the tag attribute values are passed through the JSTL expression evaluation engine implemented by the Jakarta standard taglib i

Re: Tags for Pagination

2006-01-23 Thread Srini Pillai
Rick, Thanks for the guidance...It is a good start for me... - Srini >>> [EMAIL PROTECTED] 1/23/2006 4:37:53 PM >>> On 1/23/06, Srini Pillai <[EMAIL PROTECTED]> wrote: > ...but looks > like we have to code our own tag... Thanks anyway :) At least for the display of pages and the whole next/las

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Here comes my unhelpful response for the day... [EMAIL PROTECTED] wrote: I've got the thing to work returning null as my forward. That leaves a couple of questions though. 1) Does struts write anything to the response before calling you action class? I don't think so. 2) Does calling flu

Re: Shale: not calling prerender or preprocess, and Navigation issue

2006-01-23 Thread Jason Vincent
Thanks for the response... The url in the browser is changing to /login/login.jsf... I call the redirect, from the the BaseViewController.prerender method... externalContext.redirect(toUrl); where in my case the toUrl is "/cpt/login/login.jsf". /cpt is my application context. Ext

Re: returning a non-html file as response

2006-01-23 Thread [EMAIL PROTECTED]
I've got the thing to work returning null as my forward. That leaves a couple of questions though. 1) Does struts write anything to the response before calling you action class? 2) Does calling flush() on the response output stream cause the response to be sent? I kind of think it doesn't, b

Re: html-el:select and tag files

2006-01-23 Thread Clint Popetz
On Mon, Jan 23, 2006 at 03:00:27PM -0500, Rahul Akolkar wrote: > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > > On Mon, Jan 23, 2006 at 12:36:02PM -0700, Wendy Smoak wrote: > > > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > > > > > > > This may be more of a jsp 2.0 questio

Re: Shale: not calling prerender or preprocess, and Navigation issue

2006-01-23 Thread Craig McClanahan
Inline ... On 1/23/06, Jason Vincent <[EMAIL PROTECTED]> wrote: > Hey there, > > I've got some unexpected navigation stuff going on, that I was hoping > someone can help explain. > > Here is my use-case: > 1) Home page is requested. > 2) user isn't logged in, so redirect to login url. > 3) after l

RE: A couple of simple questions

2006-01-23 Thread David Thielen
2) That's what I thought too. What is weird is if my main page in a html file and I click refresh, it does not change the pages in each frameset (which is what I want). But if that main page was a jsp page, then it set the frameset pages to what the main page set them too, as opposed to what they h

Re: [Struts EL & JSTL]

2006-01-23 Thread Laurie Harper
Garner, Shawn wrote: I'm not sure what exactly is Struts EL and how it compares to the JSTL tags. I've used JSTL 1.0 tags and see how there is overlap between some of the Struts logic/bean tags but I fail to see what exactly Struts EL is. I've read http://struts.apache.org/struts-el/index.html

Re: A couple of simple questions

2006-01-23 Thread Seth Fitzsimmons
> Yes, you can't use a .do action for the welcome pages. This is because > web.xml is "lower" down than the struts stuff. The web.xml also configures > the strust controller servlet to intercept anything ending with .do. If you > think about this you can understand how, at the web.xml leve, th

RE: A couple of simple questions

2006-01-23 Thread David G. Friedman
I bet you wish more web servers were like WebLogic which have provisions for. allows Servlets to be used for welcome pages. If interested, the link is: http://e-docs.bea.com/wls/docs81/webapp/components.html#109211 I remember trying this on Tomcat 5.X after reading that note but I really don't r

Re: validating a single textbox for two mask values

2006-01-23 Thread Laurie Harper
rama chandrula wrote: Hi, I have a text box in which I can either enter a E-mail address or the Phone number. I want to use Struts-Validator for validating the format of both the email and phone number. How can I specify the values of both the masks for the same text box. In the snippet give

Re: struts and JSTL

2006-01-23 Thread Laurie Harper
Since you're using a DynaValidatorForm you need to specify the property slightly differently: L. fea jabi wrote: Thank you for your response. I have set the value in the formbean. hence, tried this instead But only half of JSP is getting displayed. Not sure why? any idea why th

Re: Validation Security Hole?

2006-01-23 Thread Laurie Harper
Oops, noted... Paul Benedict wrote: Laurie, one thing to correct: Issue: addition of a 'org.apache.struts.action.CANCEL' parameter to any request will cause validation to be skipped, but the rest of the request processing / action invocation cycle to proceed normally Should read: Issue: add

Re: A couple of simple questions

2006-01-23 Thread Laurie Harper
David Thielen wrote: Asking again - thanks - dave -Original Message- Hi; 1) I want my default page to be index.do so I set the following in web.xml: index.do But instead I get a directory of files in my root when I go to the servlet. I can do this which works:

Re: Tags for Pagination

2006-01-23 Thread Srini Pillai
Thanks anyway... >>> [EMAIL PROTECTED] 1/23/2006 4:39:49 PM >>> Srini Pillai on 23/01/06 20:45, wrote: > Did you use your own custom tag to display the results or did u extend > any tags available in the web ? > = > > I implemented pagination with batched retrieval using Hibernate, wh

Re: struts and JSTL

2006-01-23 Thread Rahul Akolkar
On 1/23/06, fea jabi <[EMAIL PROTECTED]> wrote: > Thank you for your response. I have set the value in the formbean. > > hence, tried this instead > > > > ... value="${Form1.map.amount}" ... -Rahul > But only half of JSP is getting displayed. Not sure why? any idea why this > happening?

Re: Tags for Pagination

2006-01-23 Thread Rick Reumann
On 1/23/06, Srini Pillai <[EMAIL PROTECTED]> wrote: > ...but looks > like we have to code our own tag... Thanks anyway :) At least for the display of pages and the whole next/last stuff, make this an open source tag:) I just haven't gotten around to making one myself. It should take something lik

RE: A couple of simple questions

2006-01-23 Thread David Thielen
The servlet that I have created and am accessing via struts. (So it might be more correct to say when my struts app is first called via the struts servlet.) Thanks - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] S

Re: Tags for Pagination

2006-01-23 Thread Adam Hardy
Srini Pillai on 23/01/06 20:45, wrote: Did you use your own custom tag to display the results or did u extend any tags available in the web ? = I implemented pagination with batched retrieval using Hibernate, which takes a couple of parameters on its fetch methods, maxCount and fir

Struts "Please Wait" processor and dispatch actions

2006-01-23 Thread Randy Shepherd
http://wiki.apache.org/struts/StrutsPleaseWait I implemented this a while back on an order processing page using a plain old Action. I would like to now use it with a dispatch action, however there are struts config problems. Specifically, the parameter attribute that is used to trigger the

Re: returning a non-html file as response

2006-01-23 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I need to return a differnt kind of resposne type. Its an excel file if your curious. I think I understand how to do this with a plain servlet, but I am trying to fit it into the structure of the struts architecture. Can someone explain to me how to do this? In particu

Shale: not calling prerender or preprocess, and Navigation issue

2006-01-23 Thread Jason Vincent
Hey there, I've got some unexpected navigation stuff going on, that I was hoping someone can help explain. Here is my use-case: 1) Home page is requested. 2) user isn't logged in, so redirect to login url. 3) after login, navigate to home. In my logs, I'm seeing this behavior, which is wierd...

Re: Tomcat 4.1 vs DynaAddressForm

2006-01-23 Thread Laurie Harper
Deepak wrote: Hi Guys, Am getting an exception in tomcat console when try to install DynaActionForm using below nodes in struts-config.xml : type="org.apache.struts.action.DynaActionForm"> Error is : SEVERE: Parse Error at line 40 column 13: The co

Re: What JDK version are you using?

2006-01-23 Thread Laurie Harper
Niall Pemberton wrote: - [ ] JDK 1.2 [ ] JDK 1.3 [X] JDK 1.4 [X] JDK 1.5 (or JDK 5) - And yes, using Validator. L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: struts and JSTL

2006-01-23 Thread fea jabi
Thank you for your response. I have set the value in the formbean. hence, tried this instead But only half of JSP is getting displayed. Not sure why? any idea why this happening? When tried to debug I see an EL exception being thrown "Unable to find a value for \"amount\" in object o

[Struts EL & JSTL]

2006-01-23 Thread Garner, Shawn
I'm not sure what exactly is Struts EL and how it compares to the JSTL tags. I've used JSTL 1.0 tags and see how there is overlap between some of the Struts logic/bean tags but I fail to see what exactly Struts EL is. I've read http://struts.apache.org/struts-el/index.html

Re: Tags for Pagination

2006-01-23 Thread Srini Pillai
Thanks, it was quite helpful... I am looking for more of a component (tag) that could plugin nicely without much customization...but looks like we have to code our own tag... Thanks anyway :) - Srini >>> [EMAIL PROTECTED] 1/23/2006 3:31:52 PM >>> On 1/23/06, Srini Pillai <[EMAIL PROTECTED]> wrote

Re: Tags for Pagination

2006-01-23 Thread Srini Pillai
Adam, Did you use your own custom tag to display the results or did u extend any tags available in the web ? - Srini = I implemented pagination with batched retrieval using Hibernate, which takes a couple of parameters on its fetch methods, maxCount and firstRecord. It's fairly e

tabs & struts tutorial

2006-01-23 Thread Garner, Shawn
Is there a way to do page tabs in struts? I seem to recall somebody saying there was. Also does anyone know of a good struts tutorial/refresher? I'm starting up a project with a person who hasn't worked with struts for a few years. Shawn **

Re: Tags for Pagination

2006-01-23 Thread Ryan Wynn
On 1/23/06, Srini Pillai <[EMAIL PROTECTED]> wrote: > Gary, > > We were thinking of executing an initial query to get the total count > for the criteria (using count(*)) and then page it using the offset and > range that would be passed as part of the query string when clicked on > the page number

Re: Tags for Pagination

2006-01-23 Thread Adam Hardy
Gary VanMatre on 23/01/06 20:11, wrote: We have a situation where we require to paginate our result list (which is quite huge, around 1000+ records). We found few tags like DisplayTags from sourceforge.net but the current version does not support batch lists (i.e. retrieving the list in batches

Re: [JSF] Client state

2006-01-23 Thread Frank W. Zammetti
> On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: >> Yes, that's correct... with every document loaded into the >> browser, anything that existed before is wiped out. I'm not aware of >> any >> way around that (and it sure sounds like a security problem if there >> was). >> A hidden frame

Re: Tags for Pagination

2006-01-23 Thread Srini Pillai
Gary, We were thinking of executing an initial query to get the total count for the criteria (using count(*)) and then page it using the offset and range that would be passed as part of the query string when clicked on the page numbers. Also we are using hibernate, which has the facility to speci

Re: html-el:select and tag files

2006-01-23 Thread Rahul Akolkar
On 1/23/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > You don't need to configure it (if you don't want to turn EL off). EL > is simply what JSP 2.0 container does. EL and JSTL are part of JSP 2.0 > spec. > JSTL is not part of JSP 2.0. They're separate JSRs (52 and 152 respectively). -Ra

Re: Tags for Pagination

2006-01-23 Thread Gary VanMatre
>From: Rick Reumann <[EMAIL PROTECTED]> > > On 1/23/06, Srini Pillai wrote: > > > We have a situation where we require to paginate our result list (which > > is quite huge, around 1000+ records). We found few tags like DisplayTags > > from sourceforge.net but the current version does not suppo

RE: Forcing URL Rewriting over Cookies in an existing application.

2006-01-23 Thread David G. Friedman
What do you mean by "do it the other way around" ? URL Rewriting is in the servlet spec 2.2 and beyond, hence the ability in Java to determine if the JSessionId was in a Cookie, URL, or both, but I don't know if there is a standard web.xml syntax. I have read that context.xml files are common o

Re: html-el:select and tag files

2006-01-23 Thread Michael Jouravlev
On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > On Mon, Jan 23, 2006 at 12:36:02PM -0700, Wendy Smoak wrote: > > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > > > > > This may be more of a jsp 2.0 question than a html-el tag > > > library question, but here goes. > > > > If yo

Re: comunicate different struts

2006-01-23 Thread Marcelo Morales
Hola On Jan 23, 2006, at 11:50 AM, Alberto Pozos wrote:. My problem is this: I have different "war" files. Each war is a Struts based project with his web.xml, struts-config.xml,. I would like to know if it's possible to communicate those different war files. In other words, could I us

Re: html-el:select and tag files

2006-01-23 Thread Rahul Akolkar
On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > On Mon, Jan 23, 2006 at 12:36:02PM -0700, Wendy Smoak wrote: > > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > > > > > This may be more of a jsp 2.0 question than a html-el tag > > > library question, but here goes. > > > > If yo

Re: [JSF] Client state

2006-01-23 Thread Michael Jouravlev
On 1/23/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > >From: Michael Jouravlev <[EMAIL PROTECTED]> > > > > Can JSF store component state completely on client, that is, using > > Javascript objects? I could not find anything besides _viewstate-like > > juggling between client and server. > > > > JS

Re: html-el:select and tag files

2006-01-23 Thread Clint Popetz
On Mon, Jan 23, 2006 at 12:36:02PM -0700, Wendy Smoak wrote: > On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > > > This may be more of a jsp 2.0 question than a html-el tag > > library question, but here goes. > > If you're using JSP 2.0, you should not be using Struts-EL. > > Use

Re: html-el:select and tag files

2006-01-23 Thread Wendy Smoak
On 1/23/06, Clint Popetz <[EMAIL PROTECTED]> wrote: > This may be more of a jsp 2.0 question than a html-el tag > library question, but here goes. If you're using JSP 2.0, you should not be using Struts-EL. Use the plain HTML tags and make sure you've configured your webapp for Servlet 2

Re: What JDK version are you using?

2006-01-23 Thread Simon Chappell
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: *snip* > Sticking with Struts 1.2.4 for a while (very slow to upgrade versions of > anything around here). Hah! We have you beat. We're still using Struts 1.1! Simon -- www.simonpeter.com uab.blogspot.com

Re: Tags for Pagination

2006-01-23 Thread Rick Reumann
On 1/23/06, Srini Pillai <[EMAIL PROTECTED]> wrote: > We have a situation where we require to paginate our result list (which > is quite huge, around 1000+ records). We found few tags like DisplayTags > from sourceforge.net but the current version does not support batch > lists (i.e. retrieving th

html-el:select and tag files

2006-01-23 Thread Clint Popetz
Hello, This may be more of a jsp 2.0 question than a html-el tag library question, but here goes. I have a jsp page that has a list of dates that need to be entered. I have a custom tag file that displays a date selector using three html-el: selects (year/month/day.) It takes as

Re: Regex works in Java but not in Struts Validator

2006-01-23 Thread Brett Connor
Dave Newton wrote: Replied to list. rama chandrula wrote: I have the following Regex in Java [A-Za-z0-9]+([_.*-]?[A-Za-z0-9]+)[EMAIL PROTECTED]([.-]?[A-Za-z0-9]+)* Any tips to convert so that it will work with ORO. Yes; use the 'email' built-in validator rule from commons-validator.

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Hi, If you are writing the response from an Action (which yes, you can do as you describe), you should return null from execute(). This indicates to Struts that you have taken responsibility for rendering the response and no forward should take place, the response should simply be returned as it

Re: A couple of simple questions

2006-01-23 Thread Dave Newton
David Thielen wrote: > 3) I need to have a method called when my servlet first loads. Is a > listener the best way to do this? > What servlet? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: What JDK version are you using?

2006-01-23 Thread Rafael Nami
[X] JDK 1.4 [X] JDK 1.5 (or JDK 5) Best Regards Rafael Mauricio Nami 2006/1/23, Frank W. Zammetti <[EMAIL PROTECTED]>: > > > 1.4(.2) here. Likely to be on that for at least another year, quite > possibly more. > > Libraries I use on a regular basis: > > Beanutils, Digester, Lang, Code, Collecti

returning a non-html file as response

2006-01-23 Thread [EMAIL PROTECTED]
I need to return a differnt kind of resposne type. Its an excel file if your curious. I think I understand how to do this with a plain servlet, but I am trying to fit it into the structure of the struts architecture. Can someone explain to me how to do this? In particular, can I just grab t

RE: A couple of simple questions

2006-01-23 Thread [EMAIL PROTECTED]
Yes, you can't use a .do action for the welcome pages. This is because web.xml is "lower" down than the struts stuff. The web.xml also configures the strust controller servlet to intercept anything ending with .do. If you think about this you can understand how, at the web.xml leve, there's

Re: What JDK version are you using?

2006-01-23 Thread Frank W. Zammetti
1.4(.2) here. Likely to be on that for at least another year, quite possibly more. Libraries I use on a regular basis: Beanutils, Digester, Lang, Code, Collections, FileUpload, HTTPClient, Logging and Net (and soon EMail as well). Sticking with Struts 1.2.4 for a while (very slow to upgrade ve

RE: A couple of simple questions

2006-01-23 Thread David Thielen
Asking again - thanks - dave -Original Message- Hi; 1) I want my default page to be index.do so I set the following in web.xml: index.do But instead I get a directory of files in my root when I go to the servlet. I can do this which works: index.txt It

Re: [JSF] Client state

2006-01-23 Thread Frank W. Zammetti
On Mon, January 23, 2006 1:11 pm, Michael Jouravlev said: > I am not a Javacript pro, yet ;) So, on a new request Javascript > objects are gone? I see. No problem :) Yes, that's correct... with every document loaded into the browser, anything that existed before is wiped out. I'm not aware of an

Re: [JSF] Client state

2006-01-23 Thread Gary VanMatre
>From: Michael Jouravlev <[EMAIL PROTECTED]> > > Can JSF store component state completely on client, that is, using > Javascript objects? I could not find anything besides _viewstate-like > juggling between client and server. > JSF has an option to store the state of the page as a hidden field

Re: What JDK version are you using?

2006-01-23 Thread Ed Griebel
1.4 (+ Struts 1.2 ) We're locked into this for at least a couple of years, corporate decision. -ed On 1/23/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > What JDK version are you using? > > - > [ ] JDK 1.2 > [ ] JDK 1.3 > [ ] JDK 1.4 > [ ] JDK 1.5 (or JDK 5) > -

Re: struts and JSTL

2006-01-23 Thread Ed Griebel
The problem is that you're putting the 'amount' field into a hidden field and then trying to use that hidden field as a value, but your amt bean will actually contain the value of the form field: "" Try this instead. First, in your action save this amount value to the request scope: request.set

Re: [JSF] Client state

2006-01-23 Thread Michael Jouravlev
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > How could you possibly do this without using frames? Every page request > would obliviate any values you had stored. Frames allows you to do this, > I've done it many times with a hidden frame for client-side persistence, > but without f

Re: [JSF] Client state

2006-01-23 Thread Frank W. Zammetti
How could you possibly do this without using frames? Every page request would obliviate any values you had stored. Frames allows you to do this, I've done it many times with a hidden frame for client-side persistence, but without frames, I don't see how this could be possible. (Or AJAX of cours

Re: [JSF] Client state

2006-01-23 Thread Frank W. Zammetti
How could you possibly do this without using frames? Every page request would obliviate any values you had stored. Frames allows you to do this, I've done it many times with a hidden frame for client-side persistence, but without frames, I don't see how this could be possible. -- Frank W. Zamm

[JSF] Client state

2006-01-23 Thread Michael Jouravlev
Can JSF store component state completely on client, that is, using Javascript objects? I could not find anything besides _viewstate-like juggling between client and server. I think it would be nice if an application could try to save viewstate on client, and if Javascript were turned off, the view

Locale problem...

2006-01-23 Thread Shilpa . Nalgonda
Hi All, I have an application which is used in US, Europe and Asia. The application should show the date in each regions own local time. I have to create the time and store it in databsae in GMT and again while displaying the date back to the browser convert The GMT into the local timezone. Wh

Re: Validation Security Hole?

2006-01-23 Thread Joe Germuska
This discussion has moved to the [EMAIL PROTECTED] mailing list. Please join in there rather than causing the discussion to maintain two parallel branches. If you aren't yet subscribed to the [EMAIL PROTECTED] list, there are several forum-like options: http://forums.opensymphony.com/thread

Tags for Pagination

2006-01-23 Thread Srini Pillai
Hi, We have a situation where we require to paginate our result list (which is quite huge, around 1000+ records). We found few tags like DisplayTags from sourceforge.net but the current version does not support batch lists (i.e. retrieving the list in batches based on the page the user is in, inst

Re: Validation Security Hole?

2006-01-23 Thread Tamas Szabo
But what do you guys mean by lookin for a canceled method in the Action. I think that the best would be to implement a Cancelable interface if your Action is cancelable. You would have to do this in all kind of Actions (DispatchAction too) by the way. Or is having interfaces very unstrutsish? Tam

Re: Validation Security Hole?

2006-01-23 Thread Frank W. Zammetti
On Mon, January 23, 2006 9:54 am, Rick Reumann said: > The solution I would like to see is if the canceled param is passed to > the Action, it tries to look for a "canceled" method in the Action. I > know this makes the Action like a DispatchAction but in this regard I > don't think the non-Dispatc

Re: What JDK version are you using?

2006-01-23 Thread Ulrich Elsner
I am using a minimum of JDK 1.4 for my Struts based applications. 1.5 has recently been approved so I am considering moving them to Tiger if I can find a good reason to do so (i.e., not migrating just for the sake of newness). Ulrich ---

AW: Forcing URL Rewriting over Cookies in an existing application .

2006-01-23 Thread Bernhard Slominski
Thank you! But it's not possible to do it the other way round in Tomcat right ? Also I think this should belong in the web.xml and shouldn't be container-specific, what do you think? Bernhard > -Ursprüngliche Nachricht- > Von: David G. Friedman [mailto:[EMAIL PROTECTED] > Gesendet: Montag

RE: Forcing URL Rewriting over Cookies in an existing application.

2006-01-23 Thread David G. Friedman
The same thing (disable cookies but enable url rewriting) should work on Tomcat 4.X and 5.X. See the "cookies" attribute in the below url(s): http://tomcat.apache.org/tomcat-4.0-doc/config/context.html http://tomcat.apache.org/tomcat-5.0-doc/config/context.html http://tomcat.apache.org/tomcat-5

Re: What JDK version are you using?

2006-01-23 Thread Marcelo Morales
JDK 1.4 This is required by one of my customers. So i use 1.4 for everybody else, so i don't have to deal with any other JDK. Using validator extensively. Validator seems ubiquitous in most of my struts projects and i use it beyond action form validation (in configuration and some defensi

Re: Struts vs JSF decision

2006-01-23 Thread Frank W. Zammetti
On Mon, January 23, 2006 6:08 am, Rivka Shisman said: > The specialist said he doesn't have development experience with Struts, > but he strongly recommended using JSF. He said that JSF is J2EE standard > and is more comfortable and flexible to work with. This is exactly the kind of opinion I woul

AW: Forcing URL Rewriting over Cookies in an existing application .

2006-01-23 Thread Bernhard Slominski
OT, but I'm interested, is this available im Tomcat too? Thanks Bernhard > -Ursprüngliche Nachricht- > Von: David G. Friedman [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 23. Januar 2006 17:08 > An: Struts Users Mailing List > Betreff: RE: Forcing URL Rewriting over Cookies in an existi

  1   2   >