Re: Query String for tiles

2004-02-07 Thread Wayne Kidd
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

RE: Query String for tiles

2004-02-06 Thread Anand Patil
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

Re: Query String for tiles

2004-02-06 Thread Wayne Kidd
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

RE: Query String for tiles

2004-02-06 Thread Anand Patil
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

Re: Query String for tiles

2004-02-06 Thread Wayne Kidd
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

RE: Query String for tiles

2004-02-06 Thread Anand Patil
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

Re: Query String for tiles

2004-02-06 Thread Wayne Kidd
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

RE: Query String for tiles

2004-02-06 Thread Gopalakrishnan, Jayesh
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

RE: Query String for tiles

2004-02-06 Thread Gopalakrishnan, Jayesh
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

RE: query string

2002-07-02 Thread fabrice dewasmes
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

Re: query string

2002-07-02 Thread Duke Ronlund
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

RE: query string

2002-07-02 Thread Martin Cooper
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()

Re: query string parameters?

2002-01-21 Thread Sean Owen
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

Re: Query string in struts-config.xml

2001-06-25 Thread Tom Miller
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

Re: Query string in struts-config.xml

2001-06-25 Thread Ted Husted
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

Re: Query string in struts-config.xml

2001-06-25 Thread Tom Miller
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

Re: Query string in struts-config.xml

2001-06-25 Thread Ted Husted
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

Re: Query string in struts-config.xml

2001-06-24 Thread Ted Husted
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

RE: Query string in struts-config.xml

2001-06-18 Thread Jon.Ridgway
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-

RE: Query string in struts-config.xml

2001-06-18 Thread Jacob Thomas
/ 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

RE: Query string in struts-config.xml

2001-06-18 Thread Craig R. McClanahan
=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

Re: Query string in struts-config.xml

2001-06-15 Thread Craig R. McClanahan
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

RE: Query string in struts-config.xml

2001-06-15 Thread Simon Liang
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

RE: Query string in struts-config.xml

2001-06-15 Thread Craig R. McClanahan
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