File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSTL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSTL" Watch "JSTL" New topic
Author

JSTL

jagadeesh indukuri
Greenhorn

Joined: Apr 02, 2012
Posts: 27

is there any alternative to store object in jstl

for ex:

<c:set var='name1' value='MapObject/> --->>ok fine

but i want like this name1 coming from request scope so i want store like this

<c:set var='${name1}' value=''MapObject' /> --->>not fine

i want store object in dynamic var name to value(Map Object)

tell me the solution if you know
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Welcome to JavaRanch, Jagadeesh.

Please CarefullyChooseOneForum(<--click) while posting. I have moved the post to an appropriate forum.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

I do suggest you to set an object in a scope on servlet or java classes instead in jsp.

coming to your question. set map object in scope before reaching jsp and then set the object in
another scoped variable which ever you want as in below
jagadeesh indukuri
Greenhorn

Joined: Apr 02, 2012
Posts: 27

Seetharaman Venkatasamy wrote:I do suggest you to set an object in a scope on servlet or java classes instead in jsp.

coming to your question. set map object in scope before reaching jsp and then set the object in
another scoped variable which ever you want as in below


sorry to say that scenario comes in loop and then prepare appropriate fileobject set to session object then while sending request of appropriate file object then getting only seleted file map object from session scope in java
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
Sounds like this code belongs in a Servlet rather than a JSP to me.

However, you might consider the alternate use case of the set tag:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSTL