Hi,

Yes, I'm 100% certain this option allows struts to use a blank and/or alternative extensions. I just tried "action,,com" myself and it works loading my "/test/test.action, /test/test.com and "/test/test".
Did /email.action work?  Did /email.com work?
Do you have the mentioned filter mapping in web.xml?  (/*)
Did the struts2 filter actually start?
Is struts.properties deployed in the correct location? (WEB-INF/classes/)
Have you tested from localhost?

It's unusual that you have "struts.enable.SlashesInActionNames=true" but I've confirmed that doesn't affect this URL either. I'm using struts 2.1 but I'm certain this is a 2.0 feature.

Hope that helps isolate the problem
regards,
Jeromy Evans

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]






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

Reply via email to