Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

JSTL c:import parameters

Thread view: 
alan_sec - 17 Oct 2006 11:37 GMT
Hi.
Is there a way to pass parameters to another JSP, using c:import tag,
that are not type String.
I'm trying to pass object type java.util.Map.
Example:
<c:import
url="${acsAMDir}/${amParam.authModuleName}/am.jsp">                                <c:param
name="map" value="${mymap}"/>
</c:import>
mymap is java util.Map.
Thanks.
Alan
bharat_sharma_5005@yahoo.co.in - 17 Oct 2006 11:51 GMT
> Hi.
> Is there a way to pass parameters to another JSP, using c:import tag,
[quoted text clipped - 8 lines]
> Thanks.
> Alan
bharat_sharma_5005@yahoo.co.in - 17 Oct 2006 12:01 GMT
On Oct 17, 3:51 am, bharat_sharma_5...@yahoo.co.in wrote:

> > Hi.
> > Is there a way to pass parameters to another JSP, using c:import tag,
[quoted text clipped - 8 lines]
> > Thanks.
> > Alan- Hide quoted text -- Show quoted text -
bharat_sharma_5005@yahoo.co.in - 17 Oct 2006 12:02 GMT
On Oct 17, 3:51 am, bharat_sharma_5...@yahoo.co.in wrote:

> > Hi.
> > Is there a way to pass parameters to another JSP, using c:import tag,
[quoted text clipped - 8 lines]
> > Thanks.
> > Alan- Hide quoted text -- Show quoted text -
alan_sec - 17 Oct 2006 12:35 GMT
Your post is empty.
Manish Pandit - 17 Oct 2006 21:45 GMT
Hi Alan,

Since the params are passed as strings (querystrings to give you a
comparison), you cannot pass objects this way. What you need is to
model am.jsp as a tag file, and invoke the tag, passing it *attributes*
that can be objects, and not *params*. You can find information on tag
files at a lot of sites, but this article may very well help you right
away:

http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html

-cheers,
Manish
alan_sec - 18 Oct 2006 06:57 GMT
Thanks. I'll look in to it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.