Re: How to set a variable in session in the JSP

2010-06-17 Thread Kushan Jayathilake
Hi, Yeah Wes, you are correct, i was so stuck with this and couldnt see that i can straightly put that to the session from the Action class... Thank you so much for reminding me this -- Regards Kushan Jayathilake On Fri, Jun 18, 2010 at 11:03 AM, Wes Wannemacher wrote: > What you want i

Re: How to set a variable in session in the JSP

2010-06-17 Thread Wes Wannemacher
What you want is this - However, what i'm wondering right now is this - you have to expose "accountList" most likely by having a getter/setter combination on the action that is rendering the JSP that contains this tag. Assuming you are placing the variable in the session so that you can retriev

Re: How to set a variable in session in the JSP

2010-06-17 Thread Kushan Jayathilake
Hi, Thanks for replying... In my JSP i put the as you said, i want to get the value from the Action class and set that value in the session in the JSP, so i wrote, " scope="session"/> note that "accountList" is a java.util.List in the Action class, i want to get that list to the JSP and assig

Apple Store and S2

2010-06-17 Thread Frans Thamura
i got several web of Apple have .action in the suffix do they use S2 in their AppStore? -- Frans Thamura Meruvian. We grow because we share the same believe. Mobile: +6287885901958 Blog & Profile: http://frans.thamura.info We provide services to migrate your apps to Java (web), in amazing fa

Re: How to set a variable in session in the JSP

2010-06-17 Thread Wes Wannemacher
http://struts.apache.org/2.x/docs/set.html Notice particularly the "scope" attribute. -Wes On Fri, Jun 18, 2010 at 1:01 AM, Kushan Jayathilake wrote: > Hi Guys, > > Can anyone suggest me a way to set a variable in the session in the JSP and > access that variable in the action class.. (variable

How to set a variable in session in the JSP

2010-06-17 Thread Kushan Jayathilake
Hi Guys, Can anyone suggest me a way to set a variable in the session in the JSP and access that variable in the action class.. (variable must be set from the JSP file to the session) iam using struts 2.. is there anyway to do this..? -- Regards Kushan Jayathilake

Re: [s2] Strange behaviour of s2 application behind reverse proxy

2010-06-17 Thread Gabriel Belingueres
Did you configure Tomcat to return the proxy proxyName and proxyPort? The doc is here: http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html I'm not *actually* sure if relative path redirects would be supported, I always concatenate the scheme +":" + serverName +":"+port when doing redirects.

Re: Redirect in an interceptor

2010-06-17 Thread Stephen Turner
To answer my own question, just in case anyone comes across this: It's no longer possible to dynamically alter the configuration, so a redirect to an action that's not in the config must be done differently. I copied the idea from ExecuteAndWaitInterceptor.java: ServletRedirectResult shRe

Help Struts2

2010-06-17 Thread Fabio Alves de Araujo Ebner - DnaSolution
Hi, i'm trying to integrate Adobe Flex + Struts2 + BlazeDS Integration + Spring but i got some problems with spring, he only works on Flex, if i put @Autowired in one Action's Class(i put my class in package action) i get the error: nullPointException, the Spring don't injects my class anyon

Re: Action redirect back to called actions

2010-06-17 Thread Greg Lindholm
Well you are need to track and supply which action name you want the redirect to go to. Here is a handy tip; to get the current action name from your action class you can add a method like this: public String getActionName() { ActionContext context = ActionContext.getContext();

Iterating over a Collection and creating a for each entry of it

2010-06-17 Thread Vollnhofer Bernhard
Hi! Is something like the following snippet possible to do? ${entry.name} ${entry.forced} Of course this code won't do it, but I hope you're getting my idea. I'd like to iterate over a collection and create a for every item in it. This checkbox should set

Re: Action redirect back to called actions

2010-06-17 Thread Amol Ghotankar
Dear Greg, I understood this of how to redirect to next action. But I want to get the previous action from the context which called this action. For eg. LoginAction calls LoadHomeAction, so can I get the details of which action called LoadHomeAction in it. Inshort *can the called Action get th

Re: Action redirect back to called actions

2010-06-17 Thread Amol Ghotankar
Dear Greg. Thanks for the information. Is this an inbuilt variable or we need to define it somewhere in the calling action. Can we also the namespace of the calling action in the called action directly. Regards, Amol Ghotankar cursivetech.com On Thu, Jun 17, 2010 at 6:31 PM, Greg Lindholm wr

Re: Action redirect back to called actions

2010-06-17 Thread Greg Lindholm
You can configure a dynamic result like this: ${nextAction} In your action class you would then need a method "String getNextAction()" that returns the next action name. On Thu, Jun 17, 2010 at 1:19 AM, Amol Ghotankar wrote: > Hello. > > I am using struts 2.0.x and facin

Re: Struts 2 & Browser Caching

2010-06-17 Thread Greg Lindholm
We use Tomcat and have written a simple filter to set the cache control headers on static content. (see below) We handle the issue with changing JS and CSS files by versioning them on releases. So when we update a app to version 2 we rename the JS and CSS files to add a version number so the new p

Re: Struts2 and Spring Security problem

2010-06-17 Thread Giovanni Cocco
2010/6/10 Giovanni Cocco > Hi, > I'm experiencing some problems in a project based on jAPS ( > http://www.japsportal.org). The jAPS backend is based on Struts2. > For integration with a IDM System we introduced SpringSecurity on the > application. The problem is that when Struts2 is executing a r

Re: struts 1.x webservice question

2010-06-17 Thread Paweł Wielgus
Hi John, i'm using axis as a client and server, Works very well, it is configured as another servlet in web.xml, AxisServlet Apache-Axis Servlet org.apache.axis.transport.http.AxisServlet AdminServlet Axis Admin Servlet org.apache.axis.trans