File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes to get this object from request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " to get this object from request" Watch " to get this object from request" New topic
Author to get this object from request

James Workmen

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

//get project by id and store into request
Project proj = getProjectById(projid);

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

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33102

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: to get this object from request
It's not a secret anymore!