Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher.include a jspx fragment from a filter  RSS feed

 
Sunny Fr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following code in a filter which tries to include my template jspx fragment :-


but I get


is what i am trying to do possible? if so, what am i doing wrong??

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Sunny Fr",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
badri nath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sunny
try to create an object for RequestDispatcher and then use the reference like....

RequestDispatcher rd = request.getRequestDispatcher(" abc.jsp");
rd.forward(request,response);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!