Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

include jsp page in servlet

 
sanorigin atos
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page which reads and store value from property file. I need to make use of that jsp page in servlet.
How can I do that.
Please help !
 
Srikanth Nutigattu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to make use of that jsp page in servlet.


What do you exactly mean by "making use", do you want to include the page in forward the control to it or any thing else? for the first two you can go ahead with "Request Dispatcher". Let us know the details so that others can help you out.

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64698
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds as if you need to refactor that JSP into a Java class. You shouldn't be using JSPs for processing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic