Re: URL authentication

2010-08-23 Thread Paweł Wielgus
Hi, there is one gotcha here, interceptor or action based authorization is for actions and not for resources files. So if one want's to protect access to some kind of *.pdf files on server disk one can set pdf as action extension in struts.properties and create an action that will check if logged

use struts tags to call .action

2010-08-23 Thread Deepthi Tammana
Hi all, I am trying to migrate my application to struts2. I imported struts 1 plugin jar to use my current action classes. Is there a way I can use my current jsp's(having struts 1 tags - html,logic) to call struts 2 actions. Thanks.

Running Struts1 and Struts2 together?

2010-08-23 Thread Greg Lindholm
Is there any issues with running Struts1 and Struts2 together in the same application? I have a couple old Struts1 applications which I plan on converting to Struts2 over time, but would like to start doing new development in Struts2 immediately while converting the Struts1 screens and action

Re: use struts tags to call .action

2010-08-23 Thread Dave Newton
No; as the Struts 1 plugin page states (in the giant red warning box) the JSPs must be rewritten. The S1 tags have their own rendering logic not associated with S2 at all. IMO the S1 plugin is of limited value. HTH, Dave On Mon, Aug 23, 2010 at 2:18 PM, Deepthi Tammana

Re: Running Struts1 and Struts2 together?

2010-08-23 Thread Haroon Rafique
On Today at 2:22pm, GL=Greg Lindholm greg.lindh...@gmail.com wrote: GL Is there any issues with running Struts1 and Struts2 together in the GL same application? GL Hi Greg, My organization uses an application with struts1 and struts2 together with no downsides that we can see. There is no

Re: Running Struts1 and Struts2 together?

2010-08-23 Thread Stephen Turner
On Mon, 23 Aug 2010 14:22:54 -0400, Greg Lindholm greg.lindh...@gmail.com wrote: Is there any issues with running Struts1 and Struts2 together in the same application? I have a couple old Struts1 applications which I plan on converting to Struts2 over time, but would like to start doing new

redirect with parameter in struts

2010-08-23 Thread Struts User
Hi, Is it possible in struts1 to include a parameter in the action redirection. If I have a web application say, http://www..xyz.com/welcome.do and I want to redirect it to http://www.xyz.com/welcomeredirect.do?cmp=company1 while value of cmp will be assigned dynamically. how can I achieve this?

Re: Portlet problem

2010-08-23 Thread Vinicius Ferraz
The stack trace: *java.lang.IllegalStateException*: Not allowed in event phase at org.apache.struts2.portlet.servlet.PortletServletResponse.isCommitted(* PortletServletResponse.java:178*) at org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(*