Ted
I'm not following entirely, or something may be missing here. Where is the
parameter name, in your case task specified? I don't see it in the action
specification. Also, where is this feature in the documentation?
TIA
Tom Miller
Ted Husted wrote:
Another approach is to pass the query
The parameter property is not mentioned in the Users Guide (yet), but it
is in the JavaDocs.
The parameter here was just the value select. I call it task inside
the Action, to leave the option of passing ?task=select as a query
string. Of course, you could also call it parameter internally, and
Very good!
Is there a way to pass a Map of parameters in this way, or is it just a single one?
Tom
Ted Husted wrote:
The parameter property is not mentioned in the Users Guide (yet), but it
is in the JavaDocs.
The parameter here was just the value select. I call it task inside
the
It's a string, so you would have to parse it to extract multiple values.
Tom Miller wrote:
Very good!
Is there a way to pass a Map of parameters in this way, or is it just a single one?
Tom
Another approach is to pass the query string options using the
parameter property of the action mapping, and then looking for them in
your action. So, passing a parameter like task=select could also be
represented as:
action
parameter=select
-
From: Jacob Thomas [mailto:[EMAIL PROTECTED]]
Sent: 15 June 2001 18:08
To: '[EMAIL PROTECTED]'
Subject: Query string in struts-config.xml
Is there a way to a specify a query string as part of the path attribute
in the forward tag within an action?
Example:
forward name=command path=/context
/
Based on your and Craig's feedback, I take it that this is now supported.
--
Thanks
Jacob
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 3:02 AM
To: [EMAIL PROTECTED]
Subject: RE: Query string in struts-config.xml
Hi Jacob,
What you have
=value1amp;param2=value2 .../
--
Thanks
Jacob
Craig
-Original Message-
From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 3:02 AM
To: [EMAIL PROTECTED]
Subject: RE: Query string in struts-config.xml
Hi Jacob,
What you have below will work. Indeed
Is there a way to a specify a query string as part of the path attribute
in the forward tag within an action?
Example:
forward name=command path=/context/page.jsp?param=value/
--
Thanks
Jacob
Just like you did should work fine.
Craig
On Fri, 15 Jun 2001, Jacob Thomas wrote:
Is there a way to a specify a query string as part of the path attribute
in the forward tag within an action?
Example:
forward name=command path=/context/page.jsp?param=value/
--
Thanks
Jacob
Hi guys:
I consider myself fairly new to Strut. I have done a login flow that allows
user to edit his/her profile.
The login workflow is simple using the Struts framework:
Map the login screen form to a form bean, then the action bean login the
user and forward to the useredit.jsp upon a
On Fri, 15 Jun 2001, Simon Liang wrote:
Hi guys:
I consider myself fairly new to Strut. I have done a login flow that allows
user to edit his/her profile.
The login workflow is simple using the Struts framework:
Map the login screen form to a form bean, then the action bean login the
12 matches
Mail list logo