struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SanJ.SANJAY" <girish...@gmail.com>
Subject RE: Action mapping issue while Integrating S2 and S1
Date Fri, 13 Feb 2009 16:07:53 GMT

I have the same configuration for struts.xml



mgainty wrote:
> 
> 
> Here is a typical Struts configuration from WEB-INF/web.xml which maps any
> references to struts
> to org.apache.struts2.dispatcher.FilterDispatcher
> 
>     <filter-mapping>
>         <filter-name>struts</filter-name>
>         <url-pattern>/*</url-pattern>
>     </filter-mapping>
>     <filter>
>         <filter-name>struts</filter-name>
>        
> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
>         <init-param>
>             <param-name>actionPackages</param-name>
>             <param-value>org.almayer.web.action</param-value>
>         </init-param>
>     </filter>
> 
> HTH
> Martin 
> ______________________________________________ 
> Disclaimer and confidentiality note 
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission. 
> 
> 
> 
> 
>> Date: Fri, 13 Feb 2009 07:25:25 -0800
>> From: girish.sh@gmail.com
>> To: user@struts.apache.org
>> Subject: Re: Action mapping issue while Integrating S2 and S1
>> 
>> 
>> Ok thanks Dave, I have run standalone S2 from the SampleApplication that
>> comes with the source code and which runs fine. Yes, I have the devMode
>> turned on and tried removing it and it gave the same error.
>> Also am not using any logging of XWorks yet.
>> 
>> In my current application(existing S1), the PATH is like this
>> 
>> appContext/src/com/cec/struts1/actions/...
>> 
>> and WEB-INF is:
>> appContext/web/WEB-INF/... 
>> 
>> So for S1, struts-config.xml always resolve the actions when I access as
>> http://localhost:8080/appContext/action.do
>> 
>> But strangely S2 can't access the S2 actions from
>> "appContext/src/com/cec/struts2/actions/"
>> when I try to access like this 
>> 
>> http://localhost:8080/appContext/someAction.action
>> 
>> Also I can use and execute the S2 tags in existing S1 jsp pages. So its
>> confusing....
>> 
>> 
>> 
>> newton.dave wrote:
>> > 
>> > SanJ.SANJAY wrote:
>> >> Anyone knows what is the right place top put the struts.xml file? I
>> think
>> >> the
>> >> issue with my problem stated below is that context is not able to find
>> >> struts.xml file and that is the reason it is not avle to map actions.
>> >> I tried putting it in WEB-INF/classes also but didn't work.
>> > 
>> > That's where it belongs; you're doing something else wrong.
>> > 
>> > Have you gotten a standalone S2 application to work?
>> > 
>> > Are there any errors on startup? Do you have devMode turned on?
>> > 
>> > Have you increased the logging levels of XWork and S2?
>> > 
>> > Dave
>> > 
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> > For additional commands, e-mail: user-help@struts.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Action-mapping-issue-while-Integrating-S2-and-S1-tp21982941p21998515.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
> 
> _________________________________________________________________
> Windows Liveā„¢: E-mail. Chat. Share. Get more ways to connect. 
> http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Faster_022009
> 

-- 
View this message in context: http://www.nabble.com/Action-mapping-issue-while-Integrating-S2-and-S1-tp21982941p21999413.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message