How to get parameter from routing-url Google App Engine using Java JSP -


i write app engine application using java. want make url better url routing on asp.net. web.xml

<servlet>     <servlet-name>test</servlet-name>     <jsp-file>/test.jsp</jsp-file> </servlet>  <servlet-mapping>     <servlet-name>test</servlet-name>     <url-pattern>/test/*</url-pattern> </servlet-mapping> 

when type http://localhost:8888/test/123 work me, , use request.getpathinfo() value of *

it return /123, have remove / replace blank char. if type http://localhost:8888/test/abc/123 return /abc/123, value want abc

are there better ways or pattern or library solve problem?

it return /123, have remove / replace blank char. if type http://localhost:8888/test/abc/123 return /abc/123, value want abc

you split string array.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -