Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forwarding data from class

 
shaf maff
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

Is there any way of forwarding data to other class/jsp via a class without having to extend HttpServlet ?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49733
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't understand the question. Sorry.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shaf maff wrote:Is there any way of forwarding data to other class/jsp via a class without having to extend HttpServlet ?

Something has to extend HttpServlet. You can pass the request/response to other classes to do the actual forward/storing in request/session if you like.
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the combination of URLConnection and URL from java.net
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic