But maybe there is a solution , I could not think no more about that's, it's 5 o clock on the morning and I get drunk...
Maybe later today I will be a clearer mind ;) -- Alexandre Jaquet ----- Original Message ----- From: "usha" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, March 07, 2003 4:19 AM Subject: Re: Servlet Mapping > Hi alexj > > i have mapped the Action servelet to " /action/*" in web.xml and i was > able to send this request to the action servlet also. when i was > requesting something in the URL in place of '*' i want to give it like this > /action/0/<structs-action> > > or > > /action/<structs-action>/0 > > here the '0' is coming dynamically upon selecting some link on the UI. > > usha > > alexj wrote: > > >What you will do in your web.xml def file is to define wich > >servlet will map all the request you will got. And based > >on wich pattern. > > > >By doing this you tell your server all the request who > >include *.do need to be *forwarded* to your servlet > >to map the appropriate action (based on your struts-config) > > > >Usually we use that one : > > > ><servlet-mapping> > > > ><servlet-name>action</servlet-name> > > > ><url-pattern>*.do</url-pattern> > > > > > ></servlet-mapping> > > > >(I'm not sure if my definition is good as well, propably someone > > > >will correct me) > > > >-- > > > >Alexandre Jaquet > > > >----- Original Message ----- > >From: "usha" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Sent: Friday, March 07, 2003 3:32 AM > >Subject: Re: Servlet Mapping > > > > > > > > > >>Hi Edgar > >> > >>Sorry , i was not sure what you are saying regarding the Map struts to > >>/context/live/*. can you expaling me little bit more. > >> > >>Thanks > >>usha > >> > >>Edgar Dollin wrote: > >> > >> > >> > >>>You can have a servlet mapped to /context/test/*. > >>> > >>>Map struts to /context/live/*. > >>> > >>>Your struts-config would have to have the /context/live/* entries. > >>> > >>>Your servlet does the url calculations and forward to the struts Action > >>>servlet. > >>> > >>>Edgar > >>> > >>> > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: David Graham [mailto:[EMAIL PROTECTED] > >>>>Sent: Wednesday, March 05, 2003 11:17 PM > >>>>To: '[EMAIL PROTECTED]' > >>>>Subject: Re: Servlet Mapping > >>>> > >>>> > >>>>You can only supply one mapping to the ActionServlet. > >>>> > >>>>It's impolite to mark your posts as "urgent" because it's rather > >>>>presumptuous. > >>>> > >>>>David > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>From: usha <[EMAIL PROTECTED]> > >>>>>Reply-To: "Struts Users Mailing List" > >>>>> > >>>>> > >>>>> > >>>>> > >>>><[EMAIL PROTECTED]> > >>>> > >>>> > >>>> > >>>> > >>>>>To: [EMAIL PROTECTED] > >>>>>Subject: Servlet Mapping: urgent > >>>>>Date: Thu, 06 Mar 2003 12:01:33 +0800 > >>>>> > >>>>>Hi > >>>>> > >>>>>i posted this question previously also but i didn't get any > >>>>> > >>>>> > >>>>> > >>>>> > >>>>answer from > >>>> > >>>> > >>>> > >>>> > >>>>>any > >>>>>body so i am posting it again. > >>>>> > >>>>>i am trying to give servletmapping for the following URL > >>>>>http://localhost:8080/context/test/0/<struts-action> > >>>>> > >>>>>in the above URL '0' is going to be changed dynamically depending on > >>>>>the > >>>>>link the user select.how i can give a servlet-mapping for > >>>>> > >>>>> > >>>>> > >>>>> > >>>>such type of URL > >>>> > >>>> > >>>> > >>>> > >>>>>for the ActionServlet. > >>>>> > >>>>>is this possible to do like this. > >>>>> > >>>>>Thanks > >>>>>usha > >>>>> > >>>>> > >>>>>--------------------------------------------------------------------- > >>>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>>For additional commands, e-mail: [EMAIL PROTECTED] > >>>>> > >>>>> > >>>>> > >>>>> > >>>>_________________________________________________________________ > >>>>Tired of spam? Get advanced junk mail protection with MSN 8. > >>>>http://join.msn.com/?page=features/junkmail > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>--------------------------------------------------------------------- > >>>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] > >> > >> > >> > > > > > >--------------------------------------------------------------------- > >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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]