Not escaping '&' when passing urls as http params

2008-02-11 Thread Srinivas.N.
When I pass URLs as parameters, is there a way to not html escape the '&' characters? Example: Lets say I have a JSP where I want to pass a URL as a param within another URL. Example: Some JSP - Lets say current URL is something like http://mydomain/action1?p1=1&p2=2 The prob

Re: Not escaping '&' when passing urls as http params

2008-02-11 Thread Srinivas.N.
You are right. In my JSP for newUrl in my example, I was using and that was escaping th '&' once again I think. Now, I changed that to and that works. Thanks! - SN Laurie Harper wrote: > > Srinivas.N. wrote: >> When I pass URLs as parameters, is there a

[S2] Session Invalidation through SessionAware interface

2007-06-29 Thread Srinivas.N.
I'm using Struts 2 - I have an action class that implements the SessionAware interface. How do I invalidate the session? I dont see any invalidate() method there. Is just calling session.clear() enough? Does that just remove entries from the session map or does it call the invalidate() method on t

Re: [S2] Session Invalidation through SessionAware interface

2007-07-01 Thread Srinivas.N.
Wouldn't it be cleaner if (1) the setSession(Map session) signature of SessionAware was changed to setSession(SessionMap session) and (2) the implementation of the invalidate method on internally took care of dealing with already timed out sessions? (if one really wanted to know if the session

[S2] Passing URL as parameter between JSP pages

2007-07-29 Thread Srinivas.N.
I am developing an app for which there is a common pagination bar (call it "paginationInclude.jsp") that is included at the bottom of several different pages. The pagination include needs to get a "base url" from the including page and then append a "pagenum" param to that URL to generate the fin

RE: [S2] Passing URL as parameter between JSP pages

2007-07-29 Thread Srinivas.N.
://struts.apache.org/2.x/docs/how-can-we-access-request-parameters-p > assed-into-an-action.html > Himanshu > > > -Original Message- > From: Srinivas.N. [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 29, 2007 6:43 PM > To: user@struts.apache.org > Subject:

[S2] Is s:iterator tag allowed inside s:url tag?

2007-07-30 Thread Srinivas.N.
I'm trying to generate a URL dynamically from a map of name, value pairs using the s:url & s:iterator tags. The code I tried looks like the following: Struts2 seems to totally ignore the iterator tag inside the url tag and none of the params in the map are added to the url. Is

[S2] Problems loading css files in RestfulActionMapper

2007-07-30 Thread Srinivas.N.
I am using the restful mapper through a CompositeActionMapper as in However, the css files dont seem to be loading for any of the URLs once I use this mapper. I saw the same issue in another thread http://www.nabble.com/CompositeActionMapper-tf3433990.html#a9573608 Someone had posted a patch

[S2] How to use https on form submissions?

2007-08-16 Thread Srinivas.N.
Struts 2 - Is there a way by which I can configure a form submission to use https? Thanks SN -- View this message in context: http://www.nabble.com/-S2--How-to-use-https-on-form-submissions--tf4277986.html#a12176662 Sent from the Struts - User mailing list archive at Nabble.com. -

Re: [S2] How to use https on form submissions?

2007-08-16 Thread Srinivas.N.
something. Requiring a login form to be submitted via https seems like a basic need for which there has to be a simple solution. Thanks SN yitzle wrote: > > On 8/16/07, Srinivas.N. <[EMAIL PROTECTED]> wrote: >> >> Struts 2 - Is there a way by which I can configure a f