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
> -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
struts-config.xml
ActionForm has the setter and getter methods for name, age and description.
Action:
public final class QueryParamsAction extends Action {
public ActionForward
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.
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
> -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")
>
> -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
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
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
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
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:
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
Did you try to put "ActionMessages.GLOBAL_MESSAGE" in
I don't know, but I think that could work.
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
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
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:
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
> -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
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
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
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
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
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
Actually that is shorthand for what the tag is. The tag is something like
"search.username".
Dave
Dave Newton
<[EMAIL PROTECTED]
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
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
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
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
>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
[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,
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
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
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
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
64 matches
Mail list logo