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

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -