[jboss-user] [Beginner's Corner] - Re: How to manage all the requests?

Francisco Palma do-not-reply at jboss.com
Tue Apr 3 12:37:48 EDT 2012

Francisco Palma [https://community.jboss.org/people/fpalma] created the discussion

"Re: How to manage all the requests?"

To view the discussion, visit: https://community.jboss.org/message/728070#728070

Thanks for the answer!! Now I know how to manage the requests. 

But I have a little detail. When I make a reference to one jsp file inside a servlet, I have to write the full path, by example: getRequestDispatcher("/WEB-INF/views/result.jsp"). Is there any way of make a "logical reference" to the jsp file? Or the best is to add the path manually? for example: 

static String prefix = "/WEB-INF/views/";
static String sufix = ".jsp";
getRequestDispatcher( prefix + "result" + sufix)

The goal is to write only: getRequestDispatcher("result")

Thanks a lot,

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120403/3b2dd431/attachment.html 

More information about the jboss-user mailing list