This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Forwarding data from class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Forwarding data from class" Watch "Forwarding data from class" New topic
Author

Forwarding data from class

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys

Is there any way of forwarding data to other class/jsp via a class without having to extend HttpServlet ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43377
    
  32
Don't understand the question. Sorry.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32319
    
213

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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Use the combination of URLConnection and URL from java.net


If you want something you never had do something which you had never done
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Forwarding data from class
 
It's not a secret anymore!