I am running Struts2.0.11.1 on Websphere 6.1.0.17 NOT THE WEBSPHERE PORTAL. You 
need to keep the followings in mind:
1- You need to have at least fixpack 13 or 15 ( I am not sure which one, 
otherwise you CAN NOT RUN STRUTS 2 ON WAS)
2- Struts 2.0.11.2 has problems running on Websphere 6.1 (it is missing a 
patch), so you need to downgrade to 2.0.11.1 till next release (2.0.11.3 or 
2.0.12)
3- Once the above you are done with above steps, you need to set the following 
custom property for WAS server:
com.ibm.ws.webcontainer.invokefilterscompatibility   =  true
If you do not set the above property, you can not run struts 2 on WAS as well.
However; I did a project using struts on Websphere portal 6.0. IBM provides its 
own customized struts that works with portal (which is based on struts1), and 
it is pretty good. I recommend use the IBM's struts that comes with Portal 
server as you would have a hard time using struts 2 with websphere portal.
Hope this helps,



----- Original Message ----
From: Dinesh Narayanan <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thursday, July 31, 2008 3:26:20 PM
Subject: Struts2 on Websphere portal 6.1.0.0

Has Anybody tried Struts2 (Struts-2.0.11.2) on Websphere portal 6.1.0..0?  I
am running into issues when I tried  a very simple JSR168 example.  Any help
would be appreciated. Is there some example of struts2 sample in websphere
portal 6.1?

A) My portlet.xml contains the following entries
<init-param>
            <name>viewNamespace</name>
            <value>/view</value>
        </init-param>

  <!-- The default action to invoke in view mode. -->
  <init-param>
            <name>defaultViewAction</name>
            <value>index</value>
  </init-param>


B) My struts.xml is
<struts>
<package name="view" extends="struts-portlet-default" namespace="/view">
    <action name="index" class="com.myCompany.proj1.ExampleAction">
        <result name="success">/WEB-INF/view/index.jsp</result>
    </action>
</package>
</struts>


Thanks
Dinesh



      __________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail.  Click on Options in Mail and switch to New Mail 
today or register for free at http://mail.yahoo.ca


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to