• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to use: RequestDispatcher view =request.getRequestDispatcher("ProcessPlease.java")  RSS feed

 
Vishal Hegde
Ranch Hand
Posts: 1078
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use RequestDispatcher to forward the request and response object to a .java file.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please put as much effort into asking questions as you'd like to see put into answering them.

What are you really trying to accomplish?
 
Vishal Hegde
Ranch Hand
Posts: 1078
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear,

I am referring to HFS JSP and Servlets in which RequestDispacher is used in for jsp page

RequestDispatcher view=request.getRequestDispatcher("xyz.jsp")

Is it possible of inputting a model(.java file instead of .jsp)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, and the question isn't making much sense.

Again, what are you really trying to accomplish? If you want to call a model class, just call a method on the class.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!