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 / January 2004

Tip: Looking for answers? Try searching our database.

Using JST]L c:import tag with portlets

Thread view: 
vr - 14 Jan 2004 03:50 GMT
I am writing a JSP file in a portlet application to use the c:import
JSTL tag to include a JSP file. However, I am trying to pass a
parameter via c:param to this included file but the parameter is not
being passed. The included JSP file gets "null" when trying to
retrieve the value of this parameter, due to the fact that the
parameter is not being passed. See code below:

<c:import url="/jstltestportlet/jsp/html/test.jsp">
  <c:param name="month" value="October" />
</c:import>

Any ideas on why this is happening? Anybody running into this sort of
a problem?

I would appreciate any feedback.
Wendy S - 14 Jan 2004 16:05 GMT
> I am writing a JSP file in a portlet application to use the c:import
> JSTL tag to include a JSP file. However, I am trying to pass a
> parameter via c:param to this included file but the parameter is not
> being passed.

Works for me on Tomcat 4.1.29.  What JSTL implementation are you using?

Google turns up a report of a Resin bug, but it's old, I would think it's
fixed by now.
http://www.caucho.com/support/resin-interest/0209/0389.html

Signature

Wendy S

vr - 15 Jan 2004 20:28 GMT
> > I am writing a JSP file in a portlet application to use the c:import
> > JSTL tag to include a JSP file. However, I am trying to pass a
[quoted text clipped - 6 lines]
> fixed by now.
> http://www.caucho.com/support/resin-interest/0209/0389.html

2.0!!
Wendy S - 15 Jan 2004 20:54 GMT
> 2.0!!

Okay... that's the version but whose implementation are you using?  JSTL
(JavaServer Pages Standard Tag Library) is a specification.
http://jcp.org/aboutJava/communityprocess/final/jsr052/

There are a couple of implementations that I know of:  Jakarta Standard
Taglib (http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html) and
Resin's implementation.  Other containers might provide their own.

The reason I asked is that I have heard reports of problems with Resin's
implementation, but I'm not having any problems with Jakarta's.

So... what are you using?

Signature

Wendy

vr - 22 Jan 2004 22:27 GMT
> > 2.0!!
>
[quoted text clipped - 10 lines]
>
> So... what are you using?

I am using Sun's (java.sun.com) version
vr - 22 Jan 2004 22:27 GMT
> > 2.0!!
>
[quoted text clipped - 10 lines]
>
> So... what are you using?

I am using Sun's (java.sun.com) version
Chris Smith - 23 Jan 2004 00:46 GMT
> > So... what are you using?
>
>  I am using Sun's (java.sun.com) version

Well, let's see.  Sun's JSTL download's page on java.sun.com provides a
download for the JWSDP 1.3, which happens to include the Jakarta Taglibs
implementation (though you have to look hard to discover this).  You can
also get JSTL from the J2EE 1.4 distribution.  I don't immediately know
what implementation that is... whether it's also Jakarta, or another one
independently implemented by Sun.  I suppose I ought to grab it and
check, but that's a little more time than I have right now.

In any case, you obviously don't have Caucho's implementation, which is
the one Wendy said she has seen problems with.

Signature

www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



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.