RE: query string parameters problem

2005-10-21 Thread rajasekhar . cherukuri
The scope of the ActionForm is session means that the last submitted ActionForm will remain in the session till the session ends. In you case, even though the ActionForm is getting populated with the values for the first time, those are getting overridden by the second request and the second r

RE: query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 22, 2005 12:08 PM > To: Struts Users Mailing List > Subject: RE: query string parameters problem > > > > Are you able to see the 'age' and 'name' attributes in the address bar > after submitt

RE: query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
struts-config.xml ActionForm has the setter and getter methods for name, age and description. Action: public final class QueryParamsAction extends Action { public ActionForward

RE: query string parameters problem

2005-10-21 Thread rajasekhar . cherukuri
Are you able to see the 'age' and 'name' attributes in the address bar after submitting the form ? If not, the action="/submit.do" in your is overwriting the URL you wanted to post. IN this case you can use the hidden variables for age and name and set the required values in the Javascript.

Re: query string parameters problem

2005-10-21 Thread Wendy Smoak
From: "R.Vijayaraghavan" <[EMAIL PROTECTED]> The action is set to /submit.do. Since I am only sending the description in the http request, only the setDescription() method should be called and it happens so. The problem is when I try to access the age and name variables from the ActionForm in th

RE: query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 22, 2005 8:36 AM > To: Struts Users Mailing List > Subject: Re: query string parameters problem > > > > Hi, > You should use > request.getParameter("name") >

RE: query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Friday, October 21, 2005 7:01 PM > To: user@struts.apache.org > Subject: RE: query string parameters problem > > > R.Vijayaraghavan asked: > [snip] > > The action is set to /submit.do. Since I am only s

sharing message resources with jstl

2005-10-21 Thread michael Muttai
I have three message resources defined in struts-config.xml: In web.xml, I define a context parameter as follows, javax.servlet.jsp.jstl.fmt.localizationContext ApplicationMessageResources Questions: (1). Can I define more than message resources in context param? (2). In jsp, how do I

Re: How to display an error image next to an invalid form field?

2005-10-21 Thread Laurie Harper
Wendy Smoak wrote: From: "Mon Cab" <[EMAIL PROTECTED]> I know will give me the error message for username, but I don't care about that. I just want to display the error arrow. Wrap the arrow in using the same 'property' attribute. http://struts.apache.org/struts-taglib/tagreference-str

Re: query string parameters problem

2005-10-21 Thread rajasekhar . cherukuri
Hi, You should use request.getParameter("name") request.getParameter("age") to get the values from the request. I don't think the values set through through query string will be set to ActionForm automatically. In this case you should explicitly

Re: Socket exception - please help

2005-10-21 Thread Al Eridani
On 10/13/05, Murray Collingwood <[EMAIL PROTECTED]> wrote: > Hi > > I have an action class that serves us images from my application. The java > class is > fairly simple and mostly copied from (our friend) the wiki: ... > However when this class runs I get the following exception: > NotifyUtil:

Re: How to display an error image next to an invalid form field?

2005-10-21 Thread Wendy Smoak
From: "Mon Cab" <[EMAIL PROTECTED]> I know will give me the error message for username, but I don't care about that. I just want to display the error arrow. Wrap the arrow in using the same 'property' attribute. http://struts.apache.org/struts-taglib/tagreference-struts-logic.html#messag

Re: How to display an error image next to an invalid form field?

2005-10-21 Thread Mon Cab
Lauri I want to do this: Forgive the "pseudo"-tags. I don't know if there are struts tags in to do this... I know will give me the error message for username, but I don't care about that. I just want to display the error arrow. Do you know how this would be done? --- Laurie Harpe

Re: Forcing JSP reloading, avoiding IE caching of it

2005-10-21 Thread bradyh
I ran into a related problem recently that could be worked around by switching the "Check for newer versions of stored pages" setting in IE from "Every visit to the page" to "Automatic". As described here: http://www.microsoft.com/windows/ie/using/howto/customizing/clearcache.mspx However that's

Re: Forcing JSP reloading, avoiding IE caching of it

2005-10-21 Thread Keith Sader
You can't really force the browser to do anything, but you can hint it with the following: http://www.jguru.com/faq/view.jsp?EID=377 best of luck, On 10/21/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > Hello all, > > I have a struts app that works great on Firefox, however when I use

[FRIDAY] Re: i18n and same value for 2 different locale

2005-10-21 Thread Dave Newton
Christian Bourque wrote: [...]the value returned was in english for a french locale ??? We know how much the French love speaking English. It's part of our plan for total world domination, one server at a time. Dave - To

i18n and same value for 2 different locale

2005-10-21 Thread Christian Bourque
Hi! I got a weird problem with my application (only in production), the problem is intermittent and I wasn't able to reproduce it yet. Sometimes the messages returned by bean:message aren't correct (english when it should be french and vice versa). I did a test in a jsp for a specific key and the

Forcing JSP reloading, avoiding IE caching of it

2005-10-21 Thread C.F. Scheidecker Antunes
Hello all, I have a struts app that works great on Firefox, however when I use IE I have problems with it. I guess that IE caches the JSP page. So when the action sends the data to the JSP I always have the same thing. So I read about it and found that if you add on the struts-config.xml it

Re: issue with on JDK 1.4.2

2005-10-21 Thread Shyam Anand
Laurie, Thanks for your reply.I'm not sure if I understand you clearly.I have used bean:define inside the logic:present tag as seen in the code snippet.This is supposed to define a scripting variable named by the "id" attribute as described in the Struts docs: "Create a new attribute (in the scop

Re: issue with on JDK 1.4.2

2005-10-21 Thread Laurie Harper
You're checking whether userRequest exists as a session attribute, then trying to access it as a scripting variable. The one doesn't imply you can do the other. If you need to access userRequest from scriptlets, you'll need to use to create the scripting variable or lookup the bean in the sess

Re: Please post this message on the users list

2005-10-21 Thread Laurie Harper
Sonali Kulkarni wrote: Subject: Problem using ActionMessages. Please Help! I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I am trying to change the error handling bit. However, I get the following error with the code changes I have made. Please let me know if any of you can

Re: issue with on JDK 1.4.2

2005-10-21 Thread Shyam Anand
I figured that it's not a JDK issue and it is an application server issue. I use OC4J (Oracle IAS) and I'm upgrading from a version that supports JSP 1.1 to the one that is certified for JSP 1.2. So, could this be a JSP 1.1 - 1.2 compatibility issue? The JSP Compiler of the OC4J container doesn't

Re: Problem using ActionMessages!

2005-10-21 Thread Niall Pemberton
Where is your ApplicationResources.properties file? Is it in WEB-INF/classes/ApplicationResources.properties? Try turning logging on in "debug" mode for Struts - you should see it load your message resources. Niall On 10/21/05, Sonali Kulkarni <[EMAIL PROTECTED]> wrote: > I am in the process of

Problem using ActionMessages!

2005-10-21 Thread Sonali Kulkarni
I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I am trying to change the error handling bit. However, I get the following error with the code changes I have made. Please let me know if any of you can figure out what can fix it. MY CODE: In the Action Class ActionMessages messa

Re: tag allow maxlength???

2005-10-21 Thread Larry Meadors
The HTML textarea tag has no maxlength attribute - this has nothing to do with struts. You can however add an onchange java script to do it, and then also check it on the back-end. Larry On 10/21/05, Carl Smith <[EMAIL PROTECTED]> wrote: > I need disallow a user from entering more than 2000 cha

RE: tag allow maxlength???

2005-10-21 Thread Dilip Ladhani
I don't believe you can do a maxlength on a textarea in html. You may have to put in a validation (javascript or server side) to return an error message in case the user exceeds the count. From: Carl Smith <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: user@struts.apache.org

tag allow maxlength???

2005-10-21 Thread Carl Smith
I need disallow a user from entering more than 2000 character in the tag, however,struts disallow the maxlength attribute on this tag, and suggestions or workaround? - Yahoo! FareChase - Search multiple travel sites in one click.

Re: Please post this message on the users list

2005-10-21 Thread Ext . Ilitia2
Did you try to put "ActionMessages.GLOBAL_MESSAGE" in I don't know, but I think that could work. Sonali Kulkarni

Please post this message on the users list

2005-10-21 Thread Sonali Kulkarni
Subject: Problem using ActionMessages. Please Help! I am in the process of upgrading Struts from 1.0 to 1.2.7 Right now I am trying to change the error handling bit. However, I get the following error with the code changes I have made. Please let me know if any of you can figure out what can fix

Show validation errors in a frame

2005-10-21 Thread Keith Sader
Greetings I've an iframe embedded in a .jsp. The iframe contents are another set of .jsps that contain a form submit (the reason we've done it like this is so that the embedded iframe looks like a tabbed diallog). When I submit the iframed form, I'd like to display the errors on the containing p

Re: Struts in Tomcat

2005-10-21 Thread Ext . Ilitia2
Hi, I guess that your problem is because in your page inicio.jsp you have put a key that not exist in the resources file that you have declared in the strut's configuration file. I hope help you. Juan José Cuadrado Salomón Software Developer Mobile Phone: +34 654 37 38 59 ::: Email:

Re: Struts in Tomcat

2005-10-21 Thread Eider Iturbe
I've installed Tomcat again. The error I'm getting now is this: javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825) org.apache.jasper.r

RE: iReport using Jasper reports

2005-10-21 Thread Thomas Sundberg
> -Original Message- > From: Meenakshi Singh [mailto:[EMAIL PROTECTED] > Sent: den 21 oktober 2005 15:44 > To: Struts Users Mailing List (E-mail) > Subject: iReport using Jasper reports > > Hi all, > > Has anyone used Jasper reports? > I have used the gui tool ireport to generate jasper

iReport using Jasper reports

2005-10-21 Thread Meenakshi Singh
Hi all, Has anyone used Jasper reports? I have used the gui tool ireport to generate jasper reports If yes then please let me know 1) how can I call the jasper reports from a jsp page 2) how do I integrate it with my application in WSAD. What all things wud I need to copy in WSAD etc. Thanks & Re

RE: query string parameters problem

2005-10-21 Thread George.Dinwiddie
R.Vijayaraghavan asked: [snip] > The action is set to /submit.do. Since I am only sending the > description in the http request, only the setDescription() > method should be called and it happens so. The problem is > when I try to access the age and name variables from the > ActionForm

RE: MockStrutsTestCase issue

2005-10-21 Thread George.Dinwiddie
Kanuri, Chand asked: > hi, > i am using struts 1.2 and MockStrutsTestCase 2.1.3. > i an using eclipse. > i wrote a simple testcase for my action class it gives the > following errors > > log4j:WARN No appenders could be found for logger > (servletunit.struts.MockStrutsTestCase). > log4j:WARN Pl

Re: html:link and jstl

2005-10-21 Thread Martin Gainty
Good Call- The doc located at http://struts.apache.org/struts-taglib/tagreference-struts-html.html#link states that an action attribute forward,href,linkName or Page must be specified Also because you are passing in a string the EL Tag parser might choke on special characters such as $ OR { it

Re: Displaytag reading column titles from application resources file

2005-10-21 Thread David Whipple
Thanks - For #1 - I assume you mean that the title attribute is not set in the tag. It is not. Setting it does seem to override the titleKey= attempt. #2 - I do have locale.resolver=org.displaytag.localization.I18nStrutsAdapter set in my displaytag.properties file. I have tried it with and w

Re: [OT DisplayTag] Re: Displaytag reading column titles from application resources file

2005-10-21 Thread David Whipple
Actually that is shorthand for what the tag is. The tag is something like "search.username". Dave Dave Newton <[EMAIL PROTECTED]

RE: MockStrutsTestCase problem

2005-10-21 Thread Anuradha S.Athreya
No its NOT - /WEB-INF/web.xml.. Ur WEB-INF folder would be the within ur application context folder right.. The location/path of the application context folder is YOUR_APPLICATION_CONTEXT_PATH -Original Message- From: Kanuri, Chand [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005

Re: Struts in Tomcat

2005-10-21 Thread Wendy Smoak
From: "Eider Iturbe" <[EMAIL PROTECTED]> I've developed a web application using JDeveloper and I've tested it using JDeveloper's embedded server, OC4J. Now I'm attempting that this web application works in Tomcat (version 5). But I've problems, because Tomcat can't compile some code. Do I ha

RE: MockStrutsTestCase problem

2005-10-21 Thread Kanuri, Chand
Hi, what do you mean by YOUR_APPLICATION_CONTEXT_PATH? is that /WEB-INF/web.xml thanks -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: 21 October 2005 13:05 To: 'Struts Users Mailing List' Subject: RE: MockStrutsTestCase problem U will have to set the context

RE: Load datasource config without action classes

2005-10-21 Thread R.Vijayaraghavan
Configure a JNDI data-source. Different application servers do it differently. regards, vijay. > -Original Message- > From: M4RC0 [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 18, 2005 4:22 PM > To: Struts Users Mailing List > Subject: Load datasource config without action classes >

Re: MockStrutsTestCase problem

2005-10-21 Thread Laurie Harper
Kanuri, Chand wrote: Hi all, I am using MockStrutsTestCase api to test my action classes. i set like this in my setUP() method setServletConfigFile("/WEB-INF/web.xml"); but the test fails and reports that /WEB-INF/web.xml is invalid path name any ideas? This isn't really the place to be aski

RE: MockStrutsTestCase problem

2005-10-21 Thread Anuradha S.Athreya
U will have to set the context path of ur application: setContextDirectory(new File("YOUR_APPLICATION_CONTEXT_PATH")); Regards Anuradha -Original Message- From: Kanuri, Chand [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 4:03 PM To: 'user@struts.apache.org' Subject: MockStrut

Struts in Tomcat

2005-10-21 Thread Eider Iturbe
Hi Struts users! I've developed a web application using JDeveloper and I've tested it using JDeveloper's embedded server, OC4J. Now I'm attempting that this web application works in Tomcat (version 5). But I've problems, because Tomcat can't compile some code. Do I have to install/add any li

Re: [Form field values.. regarding]

2005-10-21 Thread Deva Pitchai(NatureSoft)
i feel this is not required since this is handled by the struts and the form bean. Laurie Harper wrote: Yes, that will work; but if you do that, the field will always be displayed empty (or with whatever value you specify). Again, that reduces the amount of feedback to the user when redisplay

Re: [Form field values.. regarding]

2005-10-21 Thread Laurie Harper
Yes, that will work; but if you do that, the field will always be displayed empty (or with whatever value you specify). Again, that reduces the amount of feedback to the user when redisplaying the form following validation failure. Using 'value' works well when you always want to force the inp

Re: [Form field values.. regarding]

2005-10-21 Thread Laurie Harper
Deva Pitchai(NatureSoft) wrote: How are you getting the data from your database into your form? If you're using an ActionForm and you have primitive typed properties (float, for example) the easiest quick-fix would be to use the corresponding wrapper type (e.g. Float). wht u guessed is right

MockStrutsTestCase problem

2005-10-21 Thread Kanuri, Chand
Hi all, I am using MockStrutsTestCase api to test my action classes. i set like this in my setUP() method setServletConfigFile("/WEB-INF/web.xml"); but the test fails and reports that /WEB-INF/web.xml is invalid path name any ideas? cheers The following companies are subsidiary companies of t

Re: Serialize Form-Beans with a Database. A good strategy?

2005-10-21 Thread Leon Rosenberg
as long as you only use it as blob, store and retrieve it, without querying subforms, a byte[] gained through serialization or externalization would be surely the faster alternative... regards leon On 10/21/05, gollinger <[EMAIL PROTECTED]> wrote: > Ciao, > > I've planned to transform a Form-Bean

query string parameters problem

2005-10-21 Thread R.Vijayaraghavan
Hello, I have 3 variables, namely age, name and description. I have the values for name and age before sending the request. That is, my URL would look like http://localhost:8080/vijay/submit.do?name=xyz&age=22 I have a form that sets the values of age and name which is then accessed in a html pag

Serialize Form-Beans with a Database. A good strategy?

2005-10-21 Thread gollinger
Ciao, I've planned to transform a Form-Bean to a XML-String and but it into a Databasetable-field, among with others as the user-id or the form-name. Is there anything you can say against this procedure? Ciao Antonio - To unsu

Re: [Form field values.. regarding]

2005-10-21 Thread Deva Pitchai(NatureSoft)
you mean to say that in struts tag we can have " value='' "attribute? [EMAIL PROTECTED] wrote: Hi, You can use the value="" attribute in the tag in which you don't want the default values to be loaded. This doe not require any special method. Regards, Rajasekhar Cherukuri "Deva P

Re: [Form field values.. regarding]

2005-10-21 Thread Deva Pitchai(NatureSoft)
inline reply! Laurie Harper wrote: Deva Pitchai(NatureSoft) wrote: Hi group hope you all must come across this situation... If u can tell me how to solve this... i will be very much thankful when i edit a form (say with 10 fields in it. some are dropdown, textbox etc), the non-mandator

Re: [Form field values.. regarding]

2005-10-21 Thread rajasekhar . cherukuri
Hi, You can use the value="" attribute in the tag in which you don't want the default values to be loaded. This doe not require any special method. Regards, Rajasekhar Cherukuri "Deva Pitchai(NatureSoft)" <[EMAIL PROTECTED]> 10/21/2005 01:10 PM Please respond to "Struts Users Maili

MockStrutsTestCase issue

2005-10-21 Thread Kanuri, Chand
hi, i am using struts 1.2 and MockStrutsTestCase 2.1.3. i an using eclipse. i wrote a simple testcase for my action class it gives the following errors log4j:WARN No appenders could be found for logger (servletunit.struts.MockStrutsTestCase). log4j:WARN Please initialize the log4j system properly

Re: How to display an error image next to an invalid form field?

2005-10-21 Thread Laurie Harper
Mon Cab wrote: I have read the struts documentation and am trying to work out how I would display an error image next to an invalid form field. Ramesh mentioned that would display the error message associated with a particular field. Is there a (set of) struts tag(s) that would test whether a

Re: [Form field values.. regarding]

2005-10-21 Thread Laurie Harper
Deva Pitchai(NatureSoft) wrote: Hi group hope you all must come across this situation... If u can tell me how to solve this... i will be very much thankful when i edit a form (say with 10 fields in it. some are dropdown, textbox etc), the non-mandatory fields are displaying 0.0 as the fiel

[Form field values.. regarding]

2005-10-21 Thread Deva Pitchai(NatureSoft)
[With snapshot attached] Hi group hope you all must come across this situation... If u can tell me how to solve this... i will be very much thankful when i edit a form (say with 10 fields in it. some are dropdown, textbox etc), the non-mandatory fields are displaying 0.0 as the field value,

nested and jstl iterate

2005-10-21 Thread Adam Hardy
Just curious before looking into it in a big way, but is there now a major amount of duplication between nested taglibs and jstl c:iterate, c:set, c:out with EL? I assume nested is considered 'finished' - does this mean that it will be replaced over time by JSTL? (I don't mean in the struts di

[Form field values.. regarding]

2005-10-21 Thread Deva Pitchai(NatureSoft)
Hi group hope you all must come across this situation... If u can tell me how to solve this... i will be very much thankful when i edit a form (say with 10 fields in it. some are dropdown, textbox etc), the non-mandatory fields are displaying 0.0 as the field value, which is the value from

Re: html:link and jstl

2005-10-21 Thread Jadeler
Thanks Wendy. I just needed that library (since im using servlet 2.3 spec) and now it works. Jadeler --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > Jadeler wrote: > > > http://localhost:8080/testapp/StartBuyPolicy.do? > > x=${webProduct.id&y=${webProduct.productType} > > The above link seems

Re: testing struts

2005-10-21 Thread Adam Hardy
It looks like the home page for mockstrutstestcase is your best starting point. http://strutstestcase.sourceforge.net/ hem hem on 20/10/05 23:49, wrote: Hi Adam, thanks for your reply, i my struts(version 1.2) web app,i am using tiles, action form are submitted through tiles(jsp)templates. i