Hi, I followed the steps from the threads and have set up the application. But I have issues while getting UserPrincipal inside struts 2 action. (getServletRequest().getUserPrincipal()). The principal object is always null in struts 2 action.
My existing application uses Struts 1.3 and WAS 7.0. We are using JSecurity for authentication. I am able to get the Principal object inside my struts 1 action. But the principal object is null inside the struts 2 action. Do we need to do any thing specific to expose the principal object to struts 2 action? Greg Lindholm-2 wrote > > OK, I successfully integrated Struts 2 into a Struts 1 application, it > was actually pretty easy. > The main thing I had to do was manually craft the links between the S1 > and S2 sides using standard JSTL <c:url value='/MyAction.do' />. All > this meant was I have hardcoded extensions (.do and .action) in the > jsp's. > I also ended up cleaning up and removing an bunch of S1 <logic:/> tags > and replaced with std JSTL. > > > > On Mon, Aug 30, 2010 at 11:05 AM, Stephen Turner <sturner@> wrote: >> On Mon, 23 Aug 2010 14:22:54 -0400, Greg Lindholm <greg.lindholm@> >> 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 development in >>> Struts2 immediately while converting the Struts1 screens and action >>> over bit-by-bit as needed. >>> >> >> How is this going Greg? I'm interested because I have a project that >> could >> use this solution, but I've no idea how big a job it is, what the >> pitfalls >> are etc. >> >> Thanks, >> Steve >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@.apache >> For additional commands, e-mail: user-help@.apache >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@.apache > For additional commands, e-mail: user-help@.apache > -- View this message in context: http://struts.1045723.n5.nabble.com/Running-Struts1-and-Struts2-together-tp3487943p5710606.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org