aspose file tools*
The moose likes Struts and the fly likes Also....how to get this object from request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Also....how to get this object from request" Watch "Also....how to get this object from request" New topic
Author

Also....how to get this object from request

James Workmen
Greenhorn

Joined: Oct 06, 2004
Posts: 26
In my Acction class...

//get project by id and store into request
Project proj = getProjectById(projid);
request.setAttribute("PROJECT",proj);

in my Jsp:
How do I get this single object from request?

Help!
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29233
    
138

James,
Using a scriplet:


Alternatively, you could use tags to get it as a bean. Tags are the prefered approach, but it is good to understand what goes on in the scriptlets too.


[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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Also....how to get this object from request
 
Similar Threads
Eclipse 3.1 and jsp
[Eclipse]: class Nodefound error
Need to pass information from MS Access database to another program
querystring subtitution in struts
How do you implement Web Services security?