You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/06/18 09:25:01 UTC

want to change *.do to context?action=*

Subject: <servlet-mapping> want to change *.do to context?action=*
From: "Ramdrive" <av...@email.address>
 ===
Struts wants to run with
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
which results in URLs of the type
http://localhost:8080/strutsexample/action.do?param1=value1&param2=value2

but what I want is URLs of the type
http://localhost:8080/strutsexample?param1=1&paramn=valuen&action=action.  What
do I do to servlet-mapping to get this effect?



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: want to change *.do to context?action=*

Posted by "emmanuel.boudrant" <b7...@yahoo.fr>.
 I think it isn't possible, path for action ("action") must be written before the '?'. Or you need to modify struts src ;) ... or I'm wrong ?

If '*.do' pattern make problems for you, you can use '/do/*' pattern
-Emmanuel
  Struts Newsgroup <st...@basebeans.com> a écrit : Subject: want to change *.do to context?action=*
From: "Ramdrive" 
===
Struts wants to run with

action
*.do

which results in URLs of the type
http://localhost:8080/strutsexample/action.do?param1=value1¶m2=value2

but what I want is URLs of the type
http://localhost:8080/strutsexample?param1=1¶mn=valuen&action=action. What
do I do to servlet-mapping to get this effect?



--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



---------------------------------
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !