struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsendhil <>
Subject Re: Running Struts1 and Struts2 together?
Date Mon, 10 Sep 2012 07:52:49 GMT

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='/' />. 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 &lt;sturner@&gt; wrote:
>> On Mon, 23 Aug 2010 14:22:54 -0400, Greg Lindholm &lt;greg.lindholm@&gt;
>> 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:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message