struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jignesh.patel" <jigne...@aspl.in>
Subject Re: Pretty urls without .action
Date Mon, 21 Jan 2008 06:47:27 GMT

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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Pretty-urls-without-.action-tp14947106p14992044.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