wrote:
typo in my previous email.
should have been..
forward name=startapp path=/do/go/whatever?remember=test001/forward
-Original Message-
From: Gopalakrishnan, Jayesh
Sent: Friday, February 06, 2004 3:47 PM
To: Struts Users Mailing List
Subject: RE: Query String for tiles
You could
I assume you want to pass the query string remember=test001 to
/pages/time_inputeffort_body_nested.jspf. One way I can think of is
put the remember=test001 as a request attribute in the logic of
com.rdlogic.struts.control.LoginAction.
try reading the attribute directly from the request, since
If I were using a straight action, I would simply get the path from my
ActionForward subclass and append the query string to it. This seems
ponderous for placing a parameter in the url.
Is there any other way?
Wayne
Anand Patil wrote:
I assume you want to pass the query string
Kidd
Sent: Friday, February 06, 2004 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
If I were using a straight action, I would simply get the path from my
ActionForward subclass and append the query string to it. This seems
ponderous for placing a parameter in the url
I missing something?
Anand.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 1:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
If I were using a straight action, I would simply get the path from my
Oh ok ...
I am sorry, I misunderstood ur requirement.
Anand
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
There is no include anywhere in my app. I am
So, do you have any ideas?
Wayne
Anand Patil wrote:
Oh ok ...
I am sorry, I misunderstood ur requirement.
Anand
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String
practices.but will get it done.
hth
-jayash
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Wayne Kidd
Sent: Friday, February 06, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: Query String for tiles
There is no include anywhere in my app. I am just combining tiles
typo in my previous email.
should have been..
forward name=startapp path=/do/go/whatever?remember=test001/forward
-Original Message-
From: Gopalakrishnan, Jayesh
Sent: Friday, February 06, 2004 3:47 PM
To: Struts Users Mailing List
Subject: RE: Query String for tiles
You could create
Hi,
if you've got only one parameter here's what you should write
html:link page=/products.do paramId=id paramName=product
paramProperty=productProduct 1/html:link
for more parameters it rapidly becomes more problematic : you have to pass a
bean which has a map of paramName - value to build
Hi,
The html:link tag provides paramId, paramName and paramProperty
attributes for this very purpose.
so
html:link page=/products.do%= product.getProductID() %Product
1/html:link
would become
html:link page=/products.do paramId=id paramName=BeanName
paramProperty=productIdProduct 1/link
Other responses have pointed out a better way to do this, but to answer the
question of what you did wrong: You tried to mix an expression and a literal
within the value of an attribute, which is not legal. What would have worked
is this:
html:link page='%= /products.do + product.getProductID()
Request parameters in a query string are treated like inputs in
a form post. So you can invoke a struts Action with an HTTP GET
request and query parameters; it's no different than the usual
POST stuff. You can validate the input, etc., as if it had come
from a form.
Sean
On Sunday, January
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
Hi Jacob,
What you have below will work. Indeed it is the approach used in several of
the examples. If you are asking if parameters can be added dynamically in
the struts-config, then the answer is no. You would have to use the
html:link tag (or equivalent).
Jon.
-Original Message-
/
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
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
24 matches
Mail list logo