Hi,
This is my web.xml
<web-app>
<display-name>Project Name</display-name>
<filter>
<filter-name>struts-cleanup</filter-name>
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
</filter>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts-cleanup</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>ISP_View/index.html</welcome-file>
</welcome-file-list>
</web-app>
This is my sample struts.xml
<struts>
<package name="ISP" extends="struts-default">
<interceptors>
<interceptor name="closeSession"
class="isp.interceptor.CloseSessionInterceptor"/>
<interceptor-stack name="default">
<interceptor-ref
name="closeSession"/>
<interceptor-ref
name="completeStack"/>
<interceptor-ref
name="paramsPrepareParamsStack"/>
</interceptor-stack>
</interceptors>
<action name="email" class="isp.action.TempAction">
<result>/XXX_View/temp.jsp</result>
<result name="success">/XXX_View/temp.jsp</result>
<result name="input">/XXX_View/temp.jsp</result>
</action>
</package>
</struts>
struts.properties file
struts.devMode = true
struts.enable.SlashesInActionNames=true
struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest
And url works fine with .action and .com not works only with /email or every
action name without .action ext. ):
And one more thing i am using sitemesh,but i think it not a big issue at
all.
Br,
jignesh
jignesh.patel wrote:
>
> Hi,
>
> Still not able to call without any domain name like .action,.com
>
> URL:- http://host:8080/email(withour . extension)
> Error Page:-
>
> type Status report
> message /email
> description The requested resource (/email) is not available.
>
> My struts.properties file
>
> struts.devMode = true
> struts.enable.SlashesInActionNames=true
> struts.multipart.parser=org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest
> struts.action.extension=action,,com
>
> Have u check it with your struts application any time before..
>
> Plz reply
>
>
>
> Jeromy Evans - Blue Sky Minds wrote:
>>
>> Yes, the constant "struts.action.extension" takes a comma separated list:
>>
>> eg.
>> struts.action.extension=action,,
>>
>> The double comma above means "blank" is a valid extension
>>
>> You can add that to struts.properties, struts.xml or web.xml:
>> http://struts.apache.org/2.x/docs/constant-configuration.html
>> You'll have to take care with your mod_jk mappings.
>>
>> jignesh(india) wrote:
>>> Hi,
>>> I am having struts2 application ready with my tomcat server.Now i
>>> want
>>> to host it with apache server,but it should be looks like pretty one.
>>> I mean i want my urls without .action,.do or anything just like action
>>> name
>>> nothing more.Is this possible in struts2
>>> e.g
>>> https://kily.myseaversite.com/category.action should be work like
>>> https://kily.myseaversite.com/category
>>>
>>> Can anybody help me..?
>>>
>>> Thanks in advanced
>>> Br,jignesh
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Pretty-urls-without-.action-tp14947106p14997182.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]