integer validation problem

2004-04-02 Thread jolly
Hi please help me. My form-bean declaration is like this and PayScaleDTO has incrementDTO as its attribute. I define my jsp as: basicPay and firstCategoryAmount are defined as integer or double. But this fields are not validated if i enter text and saved zero to database. I

RE: Why does not work

2004-04-02 Thread Frank Nguyen
You're right, Avinash. I could have used the name bean in html:text to populate the field w/ its property. But your example is useful to assign a property value of a bean to another property. Thanks, -Frank > -Original Message- > From: Avinash Gangadharan [mailto:[EMAIL PROTECTED] > Sent

Re: Struts boooks: remommendations?

2004-04-02 Thread Erik Price
On Apr 1, 2004, at 9:48 AM, Jan Normann Nielsen wrote: I personally don't like this book. I think the Struts tag libraries are poorly documented (and differences for 1.0 which I'm using are not described) in this book and has few if no examples of usage. You are better off reading the online do

Re: SV: Session Time Out

2004-04-02 Thread Erik Price
On Mar 31, 2004, at 10:25 AM, Kumar M wrote: Therefore, we are not using Filters. Can I rely on "isNew()" method to identify if the session does not exist for the user but the web server (or is it Struts?) created it for this particular request. How are folks doing it if they cannot user filte

Re: Learning Struts

2004-04-02 Thread Erik Price
On Apr 1, 2004, at 2:25 PM, Ashi Sharma wrote: Which are the core technologies (Servlet, XML etc.) involved in the Struts Framework that a developer should have knowledge of? Could you also please mention the level of expertise required in each technology? I think if you read the book at

Tiles String Buffer BUG!

2004-04-02 Thread Scott Johnson
If you have an empty tiles:put tag in a jsp: and you call it from a layout jsp: You will end up with the last tile displayed from ANY application using tiles in your VM. In our case, we have different customers on different instances of the same application. Imagine seeing the body content from

RE: Why does not work

2004-04-02 Thread Avinash Gangadharan
Frank, You cannot have that working. To do something like that you'll need to use the html-el tags along with JSTL core tags and do something like Ofcourse you would need to include those taglibs ( core and -el ). But why do you want to set the value as the form bean should populate it us

Why does not work

2004-04-02 Thread Frank Nguyen
I have a form for record updating. To refill a field (called groupName) with a bean's (GROUP_RESULT, saved by setAttribute()) property value, I do: ... ' property="groupName" /> %>'/> I kept getting compilation error: edit_group.jsp(28,93) Attribute value should be quoted at org.apache.

RE: parsing indexed properties in my action - how to do mulitple row update

2004-04-02 Thread Menke, John
so you are using the dynaform? only problem i have with this is setting the size value. what if i don't know the size in advance? -Original Message- From: Liu, Anne I [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 6:06 PM To: 'Struts Users Mailing List' Subject: RE: parsing indexe

RE: parsing indexed properties in my action - how to do mulitple row update

2004-04-02 Thread Liu, Anne I
I've been trying to do the same thing, and this is the only solution I found that works... http://www.developer.com/java/ejb/article.php/2233591 > -Original Message- > From: Menke, John [SMTP:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 4:53 PM > To: Struts (E-mail) > Cc: Desai, S

parsing indexed properties in my action - how to do mulitple row update

2004-04-02 Thread Menke, John
i'm trying to do something like this in my jsp so i can do a mulitple row update in my Action "> "> i have a bean public class CollectonItem{ private String partNumber; private String quantity; private Stri

Form submission - Array of hidden fields with large values...

2004-04-02 Thread Namasivayam, Sudhakar (Cognizant)
Hi,   I have a page in which i need to update a "TEXTAREA" when a combo value is changed. Previoiusly i populated a array to have the test for each combo value.var desc = new Array(    <%if(icount!=0){%>,<%}%>    ""   <%icount++;%>);Now if there was any "enter" charact

MockStrutsTestCase.verifyForward(name) annoyance

2004-04-02 Thread Morowitz, Michael
I have just discovered that verifyForward(name) in MockStrutsTestCase does not actually verify an ActionForward object, rather it verifies just the forward path. For example, if I have two actions defined that go to the same exact path, either forward returned will verify against the other using

RE: using before form validated

2004-04-02 Thread Paul, R. Chip
Usually, you'd either use a built in authentication system, or store a User object into the session after logging in. Then your bean write would look more like this: If validation failed, you should return to the page specified by the input attribute of your struts forward. Inside your jsp, us

RE: [FRIDAY] humour

2004-04-02 Thread Menke, John
history of the letter http://www.snopes.com/humor/letters/smithson.htm -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 4:19 PM To: 'Struts Users Mailing List' Subject: RE: [FRIDAY] humour > > Smithsonian Institute > > 207 Pennsylvania

RE: [FRIDAY] humour

2004-04-02 Thread Slattery, Tim - BLS
> > Smithsonian Institute > > 207 Pennsylvania Avenue > > Washington, DC 20078 The Smithsonian is NOT on Pennsylvania Avenue, neither NW nor SE, the two quadrants where it runs. And any office in DC would include the quadrant abbreviation in their address. The Castle - the Smithsonian's headquarte

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Robert Taylor
Don't worry about it. Mistakes are part of learning...and we all make them. robert > -Original Message- > From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 3:59 PM > To: Struts Users Mailing List > Subject: Re: DynaValidatorFom with checkbox properti

RE: [FRIDAY] humour

2004-04-02 Thread Karr, David
That is great. Googling for "Harvey Rowe" finds some humorous history on the origin of this letter. > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 8:59 AM > To: Struts Users Mailing List > Subject: [FRIDAY] humour > > > Since it's Frida

Re: DynaValidatorFom with checkbox properties

2004-04-02 Thread Johannes Wolfgang Woger
Robert Taylor wrote: Also, make sure that the action in which you attempt to get the "rrole" value from is declared to use the correct form. If you can, please post your action mapping as well. robert Now it is time to apologize. I have a classes and a src cirectory for compiling with ant

Use logic:equal tag to compare date?

2004-04-02 Thread Daynell Trent
Hi, Does anyone ever use the tag to compare a date value. I can not get it to work because of the format that the Date object return.

using before form validated

2004-04-02 Thread Tom
I have used to print information from a completed form by doing something like Hello ! I also wanted to write this property out if the form validation failed but it never outputs anything as struts doesn't save the form in the request/session. I find this strange since it must somehow acc

Validation-Substituting Values Question

2004-04-02 Thread David Erickson
Hi I am using some ValidatorActionForms.. here's an example of my validation mapping: my message looks like error.email.format={0} is not a valid e-mail address. What I'm wondernig is how do I substitute the actual value they inputted into the message using the validate.xml? I know

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Robert Taylor
Also, make sure that the action in which you attempt to get the "rrole" value from is declared to use the correct form. If you can, please post your action mapping as well. robert > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 3:18 PM

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Robert Taylor
This has nothing to do with instantiating a form. His question was: > >>the DynaValidatorForm in my strus_config to take a unknown number of > >>checkbox values? The HttpServletRequest realizes multiple values under the same name (ie. dynamic number of checkboxes) as a java.lang.String[]. If yo

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Robert Taylor
The exception indicates that you have not defined a property named "rrole" in your form. What does your form-bean declaration look like in your struts-config file? robert > -Original Message- > From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 2:42 P

Re: DynaValidatorFom with checkbox properties

2004-04-02 Thread Johannes Wolfgang Woger
Takhar, Sandeep wrote: there have been tonnes of posts on why you cannot instantiate a dynaform like that. http://www.javablogs.com/ViewEntry.jspa?id=128211 here is one example of how you can sandeep Thank you sandeep, the DynaValidatorForm is already there. I use the rr_lesson_ibatis from

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Takhar, Sandeep
there have been tonnes of posts on why you cannot instantiate a dynaform like that. http://www.javablogs.com/ViewEntry.jspa?id=128211 here is one example of how you can sandeep -Original Message- From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:42 P

Extending application.properties

2004-04-02 Thread Davi Salgueiro
Hello All, I have been working with struts for the last 6 months. Now I have to build a functuality in my application that can be able to change online any property of the aplication.properties and load the changes on the server (tomcat) with out having to restart the server(tomcat). Does any

Re: DynaValidatorFom with checkbox properties

2004-04-02 Thread Johannes Wolfgang Woger
Robert Taylor wrote: employee. How shall I configure the DynaValidatorForm in my strus_config to take a unknown number of checkbox values? second question: how can I make the properties of a DynaVForm available to a Action? DynaActionForm form = (DynaActionForm)form; String[] rro

RE: Form submit in JavaScript

2004-04-02 Thread Ramadoss Chinnakuzhandai
I tried that too...but still not able to submit to the action url specified inside JavaScript.. -Original Message- From: Qinjian Jian [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:18 PM To: Struts Users Mailing List Subject: RE: Form submit in JavaScript Using instead of T

secure property does not seem to work when redirect=true is specified in the forward?

2004-04-02 Thread Patrick Stevens
Hi, On our project, we are moving SSL offloading to a separate device, which then forwards the non secure request to our webserver. The result is that the application allways gets an http request, while it should allways forward & render page links to https. This is all working ok, except in the

RE: Struts with Cocoon

2004-04-02 Thread MARU, SOHIL (SBCSI)
Did take a look at the struts-cocoon before I wrote and wanted to know if people have been able to use it easily and whether it scales well. The site I am buiding is going to have close to 100,000 users but not sure how many concurrent ones. -Original Message- From: Matthias Wessendorf

RE: Form submit in JavaScript

2004-04-02 Thread Qinjian Jian
Using instead of Tim Jian -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: Form submit in JavaScript Hi, I have the following block of code in my jsp

RE: Form submit in JavaScript

2004-04-02 Thread Ramadoss Chinnakuzhandai
sorry I posted the wrong one...it was onclick="submitForm('Delete/Save/Cancel')only...but it still look like not sumbitting to the action url specified... Thank you, -Original Message- From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:13 PM To: Struts Use

RE: Form submit in JavaScript

2004-04-02 Thread Takhar, Sandeep
you've spelt it sumbit and submit sandeep -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 2:07 PM To: [EMAIL PROTECTED] Subject: Form submit in JavaScript Hi, I have the following block of code in my jsp

Re: Editing unique fields

2004-04-02 Thread Paul Barry
Yeah, I have the unique constraint in the DB, but you're right, there is no easy way to trap the error. Your select statement makes sense, so I will use that. Bill Siggelkow wrote: First of all, you probably want to enforce the UNIQUE constraint in the database itself. As far as handling the

Re: [OT] poll results tag

2004-04-02 Thread Bill Siggelkow
A related mechanism to show horizontal bar graph is to simply use a table where you caculate the percentage width ... Following is some JSTL that demonstrates. bgcolor="#003366"> / Adam Hardy wrote: On 04/01/2004 09:09 PM Erez Efrati wrote: Hi all, It is a bit off topic but still I

Re: Struts with Cocoon

2004-04-02 Thread Kris Schneider
I hear this sort of thing a lot and just want to add that JSP and XML/XSL(T) are not mutually exclusive. JSP can be quite effective at generating not only your XML content, but also your XSLT stylesheets (it is XML after all). JSP has it's flaws but it doesn't require you to make a choice between i

Form submit in JavaScript

2004-04-02 Thread Ramadoss Chinnakuzhandai
Hi, I have the following block of code in my jsp I hv the following JavaScript function inside the same jsp function submitForm(input) { var action; if(input == "Delete") {action = "/t

Re: Editing unique fields

2004-04-02 Thread Bill Siggelkow
First of all, you probably want to enforce the UNIQUE constraint in the database itself. As far as handling the validation, you can either trap the SQL Exception and parse (though this approach is probably not very portable and somewhat brittle). Or you can do a select that excludes the curre

Re: Editing unique fields

2004-04-02 Thread Geeta Ramani
Paul: Couldn't you instead let the database do the heavy lifting for you? I mean, just assume that in fact the user editted the unique field just fine, and try to insert. If the database has the uniqueness requirement built in (and I assume your database administrator wont let you near it without

RE: Struts with Cocoon

2004-04-02 Thread Matthias Wessendorf
hi, did you take a look at: http://it.cappuccinonet.com/strutscx/index.php (Struts with XSLT (never used it on my own) or http://struts.sourceforge.net/struts-cocoon/index.html (also never used it on my own ... ;-)) but perhaps you got some ideas on that. Cheers! Matthias -Original Message

Re: [FRIDAY OT] .net or websphere?

2004-04-02 Thread Andy Engle
I agree. --- Mike Zatko <[EMAIL PROTECTED]> wrote: > Java is cooler. Use that in your debate. > > [EMAIL PROTECTED] wrote: > > >Hi, our group will have a debate over the superiority of .Net vs > that of > >Websphere.. I have never used .net. > >Can anyone give me any feedback on it? > > > >Any

Struts with Cocoon

2004-04-02 Thread MARU, SOHIL (SBCSI)
Hello All, We are in process of designing a framework using struts. I am looking to get rid of JSPs and replace the View with just XSLs. I was wondering if anyone has done the following: 1) Extending struts so that each action tag forwards the request to an XSL servlet which using an XSL to

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Robert Taylor
> employee. How shall I configure > the DynaValidatorForm in my strus_config to take a unknown number of > checkbox values? > second question: how can I make the properties of a DynaVForm available > to a Action? DynaActionForm form = (DynaActionForm)form; String[] rrole = (String[])form.get(

Re: [FRIDAY OT] .net or websphere?

2004-04-02 Thread Mike Zatko
Java is cooler. Use that in your debate. [EMAIL PROTECTED] wrote: Hi, our group will have a debate over the superiority of .Net vs that of Websphere.. I have never used .net. Can anyone give me any feedback on it? Any feedback is appreciated.. have a nice weekend! Julie = = = = = = = = = == =

RE: DynaValidatorFom with checkbox properties

2004-04-02 Thread Wendy Smoak
> From: Johannes Wolfgang Woger [mailto:[EMAIL PROTECTED] > I have a checkbox, where do not know in adwance how many > properties to be checked I will have this is why I use forEach. Me, too. :) The DVForm property is a String[], and the JSP looks like: -- Wendy Smoak

Re: [FRIDAY OT] .net or websphere?

2004-04-02 Thread Paul Barry
Not really sure why you sent this to the struts mailing list, but I can tell you this in not the place to get an unbiased opinion on that subject. Asking a bunch of java developers if you should choose .net or a J2EE server is like asking people at the Democratic National Convention if you sho

struts app on weblogic 8.1

2004-04-02 Thread BASHEER
Hi I was able to deploy to struts-example.war successfully, i was trying another sample, here is the error i get, when I try access the page. Do i need to compile before the java classes i thought weblogic8.1 should do that for me, if i need to compile what do i need in the path. thanks basheer --

Editing unique fields

2004-04-02 Thread Paul Barry
When I am writing a form that updates a record in the database, the best practice is to pre-populate the form with the data from the database and then just update all of those values in the database, regardless of whether or not they have changed, right? So what happens when you have a field t

Re: [FRIDAY OT] .net or websphere?

2004-04-02 Thread James Mitchell
On Fri, 2 Apr 2004 [EMAIL PROTECTED] wrote: That sounds like trying to decide whether to buy a truck, a motorcycle, or a Honda Civic. > Hi, our group will have a debate over the superiority of .Net vs that of > Websphere.. I have never used .net. > Can anyone give me any feedback on it? > > Any

DynaValidatorFom with checkbox properties

2004-04-02 Thread Johannes Wolfgang Woger
Hi, I have a checkbox, where do not know in adwance how many properties to be checked I will have this is why I use forEach. I am using a DynaValidatorForm which takes some attibutes for an employee. How shall I configure the DynaValidatorForm in my strus_config to take a unknown number of check

RE: Javascript event on click of Stop button[OT]

2004-04-02 Thread James Mitchell
On Fri, 2 Apr 2004, McCormack, Chris wrote: This requirement is not possible. You should send that requirement back to whoever asked for it and tell them to take a short course in programming for the web. P.S. - this is not related to Struts ;) > >It's not exactly struts related but regarding

Re: [FRIDAY] humour

2004-04-02 Thread Geeta Ramani
Too funny..!!! Fell off my chair laughing..:) Wiebe de Jong wrote: > If you use the strut from an old car, it might have some carbon on it. Take > it to the prom. > > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Friday, April 02, 2004 9:18 AM > To: Struts Users

[FRIDAY OT] .net or websphere?

2004-04-02 Thread Julie . Huang
Hi, our group will have a debate over the superiority of .Net vs that of Websphere.. I have never used .net. Can anyone give me any feedback on it? Any feedback is appreciated.. have a nice weekend! Julie = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmitta

Re: [FRIDAY] humour

2004-04-02 Thread Andy Engle
Niiice. I thought this was pretty funny too, featured on google.com yesterday: http://www.google.com/jobs/lunar_job.html Andy --- Adam Hardy <[EMAIL PROTECTED]> wrote: > Since it's Friday and I felt in need of a little light relief, I > looked > through my collection of old humour-spam and fo

RE: Anyone using Weblogic Page Flows

2004-04-02 Thread Karr, David
Note that you could do this in phases, as it's possible to build a pageflow application that directly uses Struts modules, either dynamically at runtime, or "merging" at build time. As far as my personal success, I haven't had to build anything real with it, just stepping through the evalguide tut

RE: [FRIDAY] humour

2004-04-02 Thread Wiebe de Jong
If you use the strut from an old car, it might have some carbon on it. Take it to the prom. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 9:18 AM To: Struts Users Mailing List Subject: Re: [FRIDAY] humour Does anyone know how I can do carbon da

Re: [FRIDAY] humour

2004-04-02 Thread Adam Hardy
Have you tried the Validator.isDateBetweenRange() method? On 04/02/2004 07:17 PM Mark Lowe wrote: Does anyone know how I can do carbon dating using struts.. ? I'm using tc4.1, struts 1.1 and postgres. Thankyou very much for any help.. On 2 Apr 2004, at 19:11, Hookom, Jacob wrote: LOL... -

Re: [FRIDAY] humour

2004-04-02 Thread Mark Lowe
Does anyone know how I can do carbon dating using struts.. ? I'm using tc4.1, struts 1.1 and postgres. Thankyou very much for any help.. On 2 Apr 2004, at 19:11, Hookom, Jacob wrote: LOL... -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 11:07

RE: [FRIDAY] humour

2004-04-02 Thread Hookom, Jacob
LOL... -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 11:07 AM To: Struts Users Mailing List Subject: Re: [FRIDAY] humour Thats right have a laugh, but they'll see I'm right.. On 2 Apr 2004, at 18:58, Adam Hardy wrote: > Since it's Friday and

Re: [FRIDAY] humour

2004-04-02 Thread Mark Lowe
Thats right have a laugh, but they'll see I'm right.. On 2 Apr 2004, at 18:58, Adam Hardy wrote: Since it's Friday and I felt in need of a little light relief, I looked through my collection of old humour-spam and found this, which is so good I thought you listers would appreciate me sharing it

How do I compare object properties using tag?

2004-04-02 Thread Daynell Trent
I have an object that I put in the session. In my jsp, when I interate through a collection I want to test each object in the collection to see if it matches the session object. Can this be done with the ? If so, how do I specify which property to compare with.

[FRIDAY] humour

2004-04-02 Thread Adam Hardy
Since it's Friday and I felt in need of a little light relief, I looked through my collection of old humour-spam and found this, which is so good I thought you listers would appreciate me sharing it here. The story behind the letter below is that there is this nutball who digs things out of his

Re: validator integer required

2004-04-02 Thread Adam Hardy
Must be a RAD prototype, right? ;) On 04/02/2004 05:21 PM Paul Barry wrote: The "greaterThan" validation I wrote fails if the number is not an integer greater than 0, so I think I will just stick with that. This allows me to still have the correct types for the properties in my ActionForm. Ad

Re: [OT] poll results tag

2004-04-02 Thread Adam Hardy
On 04/01/2004 09:09 PM Erez Efrati wrote: Hi all, It is a bit off topic but still I thought maybe someone in the Struts air space would have a clue of something I don't :) I am looking for a way or package to present poll results in my web application. Any ideas of such library / tag / javas

RE: Anyone using Weblogic Page Flows

2004-04-02 Thread Hookom, Jacob
A guy from BEA had posted on here about a week ago with a link to open sourced page flows. I tried to get the sample up and running without any success, of course if you run Weblogic, then you learn not to trust any implementation/code BEA spits out... Bitter, Jacob Hookom -Original Message-

RE: smart forwarding: page 253 - doesn't work

2004-04-02 Thread David Friedman
In the author's online section of www.manning.com/husted, you can search on "submit name=" and it is pointed out as a book error. Plus, you should use the standard html:submit "property" attribute instead of the mistyped "name" attribute. The direct link to the article in the manning website is:

Anyone using Weblogic Page Flows

2004-04-02 Thread Walter_Tennison
Is anyone useing BEA Weblogics Java Page Flows and if so what type of success have you had? I may be force to convert an application based on struts 1.1 to use Weblogics pageflows and I am interested in any results that someone may have had. Thanks in advanced Walter Tennison

Re: Where can you put generic Action Classes to be seen by all WARS?

2004-04-02 Thread Kumar M
Package them as a jar file. Add it to your ear file and modify the "CLASSPATH" in manifest.mf file of all the WAR files to include this new jar file. HTH. [EMAIL PROTECTED] wrote: If I had an ActionClass that I want shared across all applications in my EAR, where should I put it? I'm using WS

validator-rules javascript problems

2004-04-02 Thread Pingili, Madhupal
I am trying to get variable values defined in validation.xml as below: fieldLength1 10 fieldLength2 13 I am extracting like validateIntRange() function: var iMin = parseInt(oRange[x][2]("min")); var iMax = parseInt(oRange[x][2]("max")); My co

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Butash, Bob
Jay, JSTL is packaged with the Struts 1.1 release. So you should have the jar file availablejust pull it into the web-inf\lib. I also prefer to make sure my application has the complete library set. Hope this works for youif you need any points be more than willing to assist. -Orig

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Qureshi, Affan
That is always neat. But note that its part of the JSP 2.0 Spec as well but unfortunately only Tomcat 5.0 implements that currently. So really its not container specific. Thanks. -Original Message- From: Jay Glanville [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 9:39 AM To: '

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Jay Glanville
> If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in > support JSTL in JSP. You wont have to add any libraries. I've taken the attitude not to rely on any container's library set. It doesn't make the web application very portable. Thanks for the suggest, none the less. JDG -- Jay

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Qureshi, Affan
If you are using Tomcat 5.0+ (JSP 2.0) you will have built-in support JSTL in JSP. You wont have to add any libraries. -Original Message- From: Jay Glanville [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 9:29 AM To: 'Struts Users Mailing List' Subject: RE: what's the best way to

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Jay Glanville
It is an option that I didn't realize I had. Up to now, we've been using the struts tag library almost exclusively, as, up to now, it's provided us with all the JSP functionality we've needed. This situation my provide the impetus to add JSTL to our libraries. Thanks JDG -- Jay Glanville > -

RE: Question about logic:iterator, indexId and hidden fields

2004-04-02 Thread Eric Hodges
I mean when the page is compiled, the tag is converted to an tag before the <%=index%> tag produces Java code. I think the taglib directive *is* incorrect whenever I get the <%=index%> tag to produce Java code, that's why it leaves in the HTML output. When I remove the <%=index%> tag, or when

Re: validator integer required

2004-04-02 Thread Paul Barry
The "greaterThan" validation I wrote fails if the number is not an integer greater than 0, so I think I will just stick with that. This allows me to still have the correct types for the properties in my ActionForm. Adam Hardy wrote: Actually most of the Validator and the DynaActionForm functi

RE: what's the best way to have an if/else clause?

2004-04-02 Thread Butash, Bob
Jay, Have you looked into JSTL's choose tag? Hope this helps -Original Message- From: Glanville, Jay [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004

RE: .properties file --> Again I18n problem

2004-04-02 Thread Paul McCulloch
Check the encoding that the page is really being returned with. Some taglibs will override what you specify in your jsp. I've implemented a filter which forces the encoding to UTF-8 to get round this. Paul > -Original Message- > From: Ramil Mirhasanov [mailto:[EMAIL PROTECTED] > Sent: 02

what's the best way to have an if/else clause?

2004-04-02 Thread Glanville, Jay
I want to iterate over a set of beans, creating widget A if property is set, widget B if not. Therefore, I'm looking for an "if/else" structure. The closest thing I can find is and . I'm assuming that there is no straight forward way to implement an 'else' clause in tags, so I'm thinking that I

Re: BeanUtils.copyProperties() throws java.lang.IllegalArgumentException: No origin bean specified

2004-04-02 Thread Paul Barry
Yeah, it was actually my dao that returning a null UserBO. Makes since, sense user is the origin. Marco Mistroni wrote: Hi, Make sure that the userForm is not null.. I m using BeanUtils.copyProperties all the time and it Just work fine Hope this helps Regards marco -Origina

Where can you put generic Action Classes to be seen by all WARS?

2004-04-02 Thread Mike Zatko
If I had an ActionClass that I want shared across all applications in my EAR, where should I put it? I'm using WSAD 5.1 (Eclipse). Thanks for any pointers. -- Michael H. Zatko WebSphere Developer Boscov's Information Services Work: 610-929-7317 Home: 610-562-2407 ---

RE: Design Question

2004-04-02 Thread Erez Efrati
Bill, could you please expand on Struts modules and how they fit into this situation? The Admin and user (customer) web apps do need to share things like images (icons, headers), and in-house custom tag libraries and maybe more utility classes, and I wish not to have two copies of these resources

Design Question

2004-04-02 Thread Erez Efrati
Hi, I am developing an EJB/Struts J2EE application. Up to now I have dealt with the design of the customer web application side and I came to the admin area - the back office web application part. I should also point out that I am using the securityFilter filter for authentication. My quest

[OT] poll results tag

2004-04-02 Thread Erez Efrati
Hi all, It is a bit off topic but still I thought maybe someone in the Struts air space would have a clue of something I don't :) I am looking for a way or package to present poll results in my web application. Any ideas of such library / tag / javascript ? Thanks in advance, - Erez

RE: Javascript event on click of Stop button[OT]

2004-04-02 Thread McCormack, Chris
>It's not exactly struts related but regarding javascript function. Then by your own admission it has nothing to do with this list. Use google and find a related forum more suited for your questions. Chris McCormack -Original Message- From: Prasad, Kamakshya [mailto:[EMAIL PROTECTED] Sen

Javascript event on click of Stop button

2004-04-02 Thread Prasad, Kamakshya
Hi All, It's not exactly struts related but regarding javascript function. We have a requirement where after submission of form if user clicks on "Stop" button of the browser we have to display a message. Is it possible to capture this event? KP

RE: TokenProcesor and synchronization

2004-04-02 Thread Takhar, Sandeep
If you are using a internal application with one browser it is better to just turn the button off after the first click. sandeep -Original Message- From: Prasad, Kamakshya [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 5:57 AM To: Struts Users Mailing List Subject: RE: TokenProce

RE: [OT] UI Suggestion Request

2004-04-02 Thread Takhar, Sandeep
200 doesn't seem that much to me. sandeep -Original Message- From: Avinash Gangadharan [mailto:[EMAIL PROTECTED] Sent: Thursday, April 01, 2004 6:03 PM To: '[EMAIL PROTECTED]' Subject: [OT] UI Suggestion Request Hello All, I have a field in a form which expects a predefined set of da

Re: .properties file --> Again I18n problem

2004-04-02 Thread Ramil Mirhasanov
Now I am able to receive errors, after I have configured Deployment Descriptor. But unfortunately, when you wright to ApplicationResources file non-ascii characters, such as ş,ğ, etc. They are not properly displayed from JSP. I tried the following things: - convert special characters with sdk's na

RE: TokenProcesor and synchronization

2004-04-02 Thread Prasad, Kamakshya
Hi Actually I downloaded the code from the given link http://www.javaworld.com/javatips/jw-javatip136_p.html and deployed in my server...there is one issue... If I submit a page and then refresh it, it works as mentioned in the document But while submitting if I click 2-3 times with quick suc

RE: TokenProcesor and synchronization

2004-04-02 Thread Jose Ramon Diaz
Hi, Yes, but we want to synchronize the multiple submits of the same form. So the last submit responds the same page that the first one, and only we will have executed the first submit. This is usefull when the users hits two or more times to the submit button without waiting the response.

struts-faces - problems ?

2004-04-02 Thread Matthias Wessendorf
hi, perhaps anyone is using the lib too and had solved my problems (mailed it also to dev-list...) i am using the struts-faces.jar. i have noticed two 'behaviors'. 1. first i have this base-tile: i use it in that way, that i use JSF-UI-Components and action-formbean-

RE: Migrating from Struts to Portlets

2004-04-02 Thread Marco Mistroni
Hi, Just saw this email... I am interested since in the near future we may end up Just like that, integrating Struts and Portlets. Are there only 'vendor' specific solutions around there? Or, has someone any ideas (or code snippet) on how to integrate them? Regards marco -

RE: BeanUtils.copyProperties() throws java.lang.IllegalArgumentException: No origin bean specified

2004-04-02 Thread Marco Mistroni
Hi, Make sure that the userForm is not null.. I m using BeanUtils.copyProperties all the time and it Just work fine Hope this helps Regards marco -Original Message- From: Paul Barry [mailto:[EMAIL PROTECTED] Sent: 02 April 2004 00:12 To: [EMAIL PROTECTED] Subject: BeanUt

RE: TokenProcesor and synchronization

2004-04-02 Thread Prasad, Kamakshya
Hi, It might be a silly question... but curiosity... Why we need to synchronize at all? Each user session will be unique in the server and so the extracted variables from that session. KP -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 4