Behaviour  of JSTL c:choose tag on solaris .

Hi
I am using <c:choose> JSTL tag like
<c:choose>
<c:when..>
</c:when>
<c:when..>
</c:when>
<c:choose>
instead of
<c:choose>
<c:when..>
</c:when>
<c:otherwise>
</c:otherwise>
<c:choose>
It works fine on windows but not work on solaris.
I am really confused . can any one plzz help me out?
Thanks in advance

That makes sense, but when I try other code like it, see below, it's not working again. Can you see anything wrong with this code?
<select name="state">
<c:forEach items="${pageBean.states}" var="state">
<option value="<c:out value="${state.stateCode}" />"
<c:choose><c:when test="${state.stateCode == detailsBean.state}"> selected="selected"</c:when>
<c:otherwise><c:when test="${state.stateCode == 'PA'}"> selected="selected"</c:when></c:otherwise></c:choose>><c:out value="${state.stateCode}"/></option>
</c:forEach>
</select>
The JSP won't display properly with the code this way, but it looks like what you suggested.

Similar Messages

  • Issue with JSTL ( c:import ) tags in Weblogic 9.2

    Hi,
    I'm trying to migrate a struts (1.2.9) application from Weblogic 8.1 to Weblogic 9.2. This application has JSPs with JSTL (1.0) tags.
    I have a JSP page that has multiple (around 7) c:import statements. When I launch my application, only the content from the last c:import statement is being displayed and rest of the c:import tags statements is simply ignored by Weblogic.
    I don't find any errors in the logs. When I comment out last c:import statement in this JSP then the content from the above c:import statement is being displayed. Only one (last one) c:import statement's content is being displayed in that whole page.
    This app worked just fine Weblogic 8.1.
    Any resolutions, hints, insights or workarounds on this issue is appreciated.
    Thanks in advance,
    Mani
    Edited by: mayyalas on Aug 10, 2009 6:13 PM

    Hello,
    You should not need to edit the wlp-light-web-lib.war weblogic.xml file. There are many places where other classes in wlp-light-web-lib are dynamically loading classes (using Class.forName()) from "higher-level" shared library modules (such as wlp-framework-full-web-lib), so I am certain that it works in general. There may just be an issue with how your shared library is set up, or how your webapp deployment descriptors are set up.
    So you mention that you have a shared library module containing your implementation of the AnalyticEventHandler; is this a .war file? And in the webapp you are trying to deploy this in, does your weblogic.xml explicitly include your shared library? If so, is your shared library being included before or after the standard WLP shared libraries?
    If you would like, posting your webapp's weblogic.xml may help to find the problem.
    Kevin

  • Getting img tags to work in sub page using jstl core import tag

    Am trying to bring disparate system page reports together under one web app. This means using the jstl core import tag (I dont want to redirect as I want to hide the urls, this web app provides better security than those it calls).
    Use of the import tag works to a degree but any resources (ie. img tags) don't load.
    Have created a much simplified example that demonstrates..
    So heres the jsp...
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <h3>Delivery Performance Report</h3>
    <c:url value="http://localhost/mycontext/subpage.html" var="myUrl"/>
    <c:import url="${myUrl}" />and a simple sub page (note plain html, no jsp, this mimics my project as the other systems are hidden source, non jsp)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <HTML>
    <HEAD>
    <TITLE>sub page</TITLE>
    </HEAD>
    <BODY>
         This is the sub page<br>
         <img src="images/banner_image.jpg" />
    </BODY>
    </HTML>While I dont get any errors what I do get is ..
    Delivery Performance Report
    This is the sub page
    ...but image fails to load.
    If I redirect instead of import it works, but as I said I need to hide the url from the user as security is an issue.
    Any help appreciated, really pulling my hair out with this final stage of something that will make a real difference to us!
    regards,
    G.

    Thanks for the answer but Im afraid thicko here doesnt get it.
    The img src is relative to the sub page, and I have tried it with an absolute address (ie. http://localhost/.....) with the same result.
    If I call the sub page direct (get with browser) the image tag works. Its just if the sub page is imported with the jstl core import tag.
    I've not tried a base tag. The real project always returns pages containing absolute urls... http://ourReportServer/reports?....plenty of params so dont belive relevant, please correct me if Im wrong here though.
    thanks, G.

  • JSTL c:import tag exception on WAS 6.20

    Hi all,
    has anyone been able to use the c:import jstl 1.0 tag on WAS 6.20?
    Everytime we access it it throws the following error:
    Exception occurs while processing a request to the servlet: jsp.
    javax.servlet.jsp.JspTagException: Since tag handler class org.apache.taglibs.standard.tag.el.core.ImportTag implements BodyTag, it can't return Tag.EVAL_BODY_INCLUDE
    Most, if not all, other tags seem to work fine, just this one doesn't. The same testpage and jstl version works fine on other non-SAP J2EE engines we have tested it on.
    Best Regards,
    Kalle Pokkinen

    Hi,
    This answer is mostly for reference - see OSS 0371142 2004 "JSP Standard 1.2 versus 1.1" for details.
    Best regards,
    Todor

  • Confused - I include library jstl 1.1 Tags but only jstl1.0 tags displayed

    I include library jstl 1.1 Tags in my project.
    Under project properties and jsp tag libraries there are no jstl1.1 tag libraries for me to include but only 1.0 versions?
    Am I misunderstanding something?

    Jdeveloper version 10.1.3.0.4
    For my project I have included libraries JSTL 1.1. and JSTL 1.1 Tags
    If I go to manage libraries under the JSP Tag libraries tab and deselect all JSTL 1.0 versions (checkbox "Show Tag Library in Palette") then these tag libraries disapear from the component pallete as expected.
    However if I select all the JSTL 1.1 versions they do not appear in the componette palette.
    Anyone have any ideas why this is so?

  • Error while using pt:standard.choose tag

    Hi,
    I am getting error while using the ALUI 6.5 Adaptive tags. The details are given below. Can anyone help?
    The code I am using is
    <pt:standard.choose>
                   <pt:standard.when pt:test="stringToACLGroup('user=13009;').isMember($currentUser)">
                        <div class="ali-portlet-controlone">Adit</div>
                        <pt:logic.value pt:value="$currentUser"/>
                        <pt:logic.value pt:value="checking Tags"/>
                   </pt:standard.when>
              </pt:standard.choose>
    Also I checked for the variable $currentUser and it was displaying null so I set the variable as
    <pt:logic.variable pt:key="currentUser" pt:value="13009"/>
    I aslo checked by giving the group id in stringToACLGroup('group=301;') but same result.
    The stack trace is ::
    <!--Error displaying tag when in library standard. String index out of range: -19: com.plumtree.openfoundation.util.XPIndexOutOfBoundsException: String index out of range: -19
         at com.plumtree.openfoundation.util.XPException.GetInstance(XPException.java:403)
         at com.plumtree.openfoundation.util.XPException.GetInstance(XPException.java:350)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:165)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.standard.ChooseTag.DisplayTag(ChooseTag.java:110)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.logic.IfFalseTag.DisplayTag(IfFalseTag.java:75)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.logic.IfTag.DisplayTag(IfTag.java:71)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.logic.ForEachTag.DisplayTag(ForEachTag.java:162)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.bea.alui.taglib.portletpage.PortletRegionDisplayTag.DisplayTag(PortletRegionDisplayTag.java:91)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
         at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:243)
         at com.plumtree.portalpages.browsing.myportal.MyPortalDP.PageDisplay(MyPortalDP.java:166)
         at com.bea.alui.taglib.basepage.ContentTag.DisplayTag(ContentTag.java:71)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.bea.alui.taglib.basepage.PageBodyTag.DisplayTag(PageBodyTag.java:135)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
         at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
         at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessMainPageLayout(LayoutDisplay.java:44)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:240)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:219)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display(PlumtreeDP.java:151)
         at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
         at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:657)
         at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:190)
         at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -19
         at java.lang.String.substring(String.java:1938)
         at com.plumtree.taglib.standard.WhenTag.DisplayTag(WhenTag.java:72)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.standard.ChooseTag.DisplayTag(ChooseTag.java:110)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.logic.IfFalseTag.DisplayTag(IfFalseTag.java:75)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.logic.IfTag.DisplayTag(IfTag.java:71)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.core.HTMLTag.DisplayTag(HTMLTag.java:78)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.plumtree.taglib.logic.ForEachTag.DisplayTag(ForEachTag.java:162)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.bea.alui.taglib.portletpage.PortletRegionDisplayTag.DisplayTag(PortletRegionDisplayTag.java:91)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
         at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:243)
         at com.plumtree.portalpages.browsing.myportal.MyPortalDP.PageDisplay(MyPortalDP.java:166)
         at com.bea.alui.taglib.basepage.ContentTag.DisplayTag(ContentTag.java:71)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.ProcessTagBody(TagHelper.java:124)
         at com.plumtree.portaluiinfrastructure.tags.ATag.ProcessTagBody(ATag.java:401)
         at com.bea.alui.taglib.basepage.PageBodyTag.DisplayTag(PageBodyTag.java:135)
         at com.plumtree.portaluiinfrastructure.tags.helper.TagHelper.DisplayTag(TagHelper.java:1231)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.TagDisplayElement.Display(TagDisplayElement.java:145)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.CompositeDisplayElement.Display(CompositeDisplayElement.java:66)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ExecuteTags(DisplayTree.java:235)
         at com.plumtree.portaluiinfrastructure.tags.displaytree.DisplayTree.ProcessTagMarkup(DisplayTree.java:39)
         at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessLayout(LayoutDisplay.java:24)
         at com.plumtree.portaluiinfrastructure.layout.impl.LayoutDisplay.ProcessMainPageLayout(LayoutDisplay.java:44)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:240)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.DisplayLayout(PlumtreeDP.java:219)
         at com.plumtree.portalpages.common.uiparts.PlumtreeDP.Display(PlumtreeDP.java:151)
         at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleDisplayPage(Interpreter.java:2140)
         at com.plumtree.uiinfrastructure.interpreter.Interpreter.HandleRequest(Interpreter.java:657)
         at com.plumtree.uiinfrastructure.interpreter.Interpreter.DoService(Interpreter.java:190)
         at com.plumtree.uiinfrastructure.web.XPPage.service(XPPage.java:300)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3495)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Edited by: user590322 on Oct 29, 2009 12:22 AM

    Proper usage:
    <pt:standard.choose>
    <pt:when pt:test="stringToACLGroup('user=1;').isMember($currentuser)">
    ... secret administrator content ...
    </pt:when>
    </pt:standard.choose>
    Note that it's pt:when and not pt:standard.when. Also, Joel is right -- I think $currentuser is case sensitive.
    Chris Bucchere
    http://bucchere.com
    http://twitter.com/bucchere

  • JSTL-c:import tag and c:param with portlets

    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.

    Here is my jsp #1: content.jsp (all the values are valid on this page)
    <c:import url="/org/j2eebuilder/view/Window.jsp">
    <c:param name="componentName" value="Home"/>
    <c:param name="componentStatus" value="None"/>
    <c:param name="windowAlias" value="/org/j2eebuilder/view/ViewControllerHelper.jsp"/>
    <c:param name="windowHeader" value="Home Management"/>
    </c:import>
    Here is my jsp #2: window.jsp (just showing various ways I have tried to get the value out)
    1. ${requestScope.componentName} 2. ${componentName} 3. ${param.componentName}
    4. <%=renderRequest.getAttribute("componentName")%>
    5. <%=renderRequest.getParameter("componentName")%>
    6. <%=request.getQueryString()%>
    7. <%= request.getParameter("componentName") %>
    8. <portlet:renderURL />
    9.<c:out value="${param.componentName}" />
    10.<c:out value="${componentName}" />
    and here is what is rendered:
    1.
    2.
    3.
    4. null
    5. null
    6. componentName=Home&componentStatus=None&windowAlias=%2forg%2fj2eebuilder%2fview%2fViewControllerHelper.jsp&windowHeader=Home+Management
    7. null
    8. /pluto/portal//Test Page
    9.
    10.

  • JSTL c:set tag replace single qoutes to & #039;

    Hi all,
    i'm using the JSTL-Tags to create and query a SQL-Statement.
    I use the c:set Tag to set a part of my query...
    <c:set var="selectSeveral" value="d.hardwarecode = '${param.p_macAddress}'"/>
    ...and the sql:query Tag to excecute the query:
    SELECT <c:out value="${selectValue}"/>
    FROM event e, device d, billingunit b
    WHERE e.eventdate >= to_date('<c:out value="${param.p_dateFrom}"/>', 'DD.MM.YYYY HH24:MI:SS')
    AND e.eventdate <= to_date('<c:out value="${param.p_dateTo}"/>', 'DD.MM.YYYY HH24:MI:SS')
    AND <c:out value="${selectSeveral}"/>
    AND e.deviceid = d.deviceid
    AND d.billingunitid = b.billingunitid
    GROUP BY <c:out value="${groupValue}"/>
    By excecuting the Statement with Tomcat i get a Oracle ORA-00911: invalid character Errormessage.
    I found the reason for this in the Logfile, where the Statement looks like this:
    SELECT e.eventdate, e.sessionend, e.sourceip, e.amount, d.hardwarecode, d.typecode, b.name, b.code
    FROM event e, device d, billingunit b
    WHERE e.eventdate >= to_date('17.03.2003 19:44:06', 'DD.MM.YYYY HH24:MI:SS')
    AND e.eventdate <= to_date('17.03.2003 20:54:59', 'DD.MM.YYYY HH24:MI:SS')
    AND e.sourceip = & #039;172.24.214.222& #039;
    AND e.deviceid = d.deviceid
    AND d.billingunitid = b.billingunitid
    ORDER BY eventdate asc
    As you can see JSTL replaced the single quotes with the number code of the single quotes. (& #039;)
    Any ideas how to solve this problem.
    Thanks in advance.
    Cu Daniel

    Try setting the escapeXml attribute to false - it defaults to true, and will replace XML (and HTML) special characters to their entity codes. For example:
    <c:out value="${selectValue}" escapeXml="false"/>

  • Can you set pager attribute using jstl c:out tag?

    I am trying to use the pager tag library from jsptags.com. The pager tag has a maxPageItems attribute. I want maxPageItems to be variable. I also want to use the jstl instead of scriptlets and expressions. Instead of writing
    <pg:pager
        maxPageItems="<%= myPageItems %>" >I want to write
    <pg:pager
        maxPageItems="<c:out value='myPageItems'/>">When I do this I get a java.lang.NumberFormatException: for input string: ""
    I think this issue is documented on the jsptags website. So maybe I have no choice but to use the expression format. I guess I should also mention that I am using jstl 1.1 and jsp 1.2 (implemented in tomcat 4.1.27)
    Has anyone tried this and had success?
    Did I provide enough information?

    Sorry, but you can't use tags as attributes to other tags (where would it end?)
    You're stuck with using <%= %> syntax.

  • Help on JSTL sql:query / tag

    Hi.....
    Currently i am trying to query a date from MSSQL using <sql> tag. I had tested in MSSQL on this SQL statement which is:-
    SELECT * FROM hr_leave WHERE startDate LIKE 'Apr 20 2006%'
    It can query my MSSQL datetime.
    Then , I apply this query inside my JSP/JSTL page which is :-
    <%@ include file="/common/header.jsp" %>
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <jsp:useBean id="now" class="java.text.SimpleDateFormat"/> <!-- get current date -->
    <c:set var="userid" value="${sessionScope.currentUser.id}"/> <!-- get current user id -->
    <c:set var="dates"><fmt:formatDate value="${now}" type="DATE" pattern="MMM dd yyyy"/></c:set>
    <sql:setDataSource var="ds" driver="com.microsoft.sqlserver.jdbc.SQLServerDriver" url="jdbc:sqlserver://192.168.250.86:1223;DatabaseName=eleavedb;SelectMethod=cursor" user="sa" password="sapassword"/>
    <sql:query var="countLeave" dataSource="${ds}">
    SELECT * FROM hr_leave_entry WHERE startDate LIKE (?, '%')
    <sql:param value="${dates}"/>
    </sql:query>
    From the code above it displayed an an error for me. I am worried whether my select statement and my way of using the '%' symbol is it not correct.
    Can anyone guide me? Thank You!

    And the error was?
    No, that sql does not look valid the way that you have written it.
    Parameters are NOT copied/pasted into sql strings. They replace the value directly. So the correct sql would be
    SELECT * FROM hr_leave_entry WHERE startDate LIKE ?
    You would need to actually pass the parameter as 'Apr 20 2006%'

  • JSTL fmt:param tag question

    <%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    <fmt:message key="result_display">
         <fmt:param value="${resultBean.sourceNumber}"/>
         <fmt:param value="${resultBean.resultValue}"/>
    </fmt:message>
    As far as I can tell, the "value" attribute of the <fmt:param> tag is capable of taking an EL. And yet, the code above does not compile. I get the error message "According to TLD or attribute directive in tag file, attribute value does not accept any expressions". If I use the <fmt_rt:param> tag, everything works fine. Am I reading the spec wrong?

    You're not reading the spec wrong, but I think you are using the wrong version of JSTL. Are you using Tomcat 5? (Or another JSP2.0 container?)
    If so, you should be using JSTL1.1
    It has a uri of "http://java.sun.com/jsp/jstl/fmt"
    Note the extra /jsp in there.
    Tomcat 5 treats ${  } as runtime expressions. To a JSP2.0 container, they ARE runtime expressions. Thus in JSTL 1.1, the fmt:param tag does accept runtime expressions.
    In JSTL1.0 because the ${  } expressions WEREN'T understood by the container, they made the tags so as not to accept runtime expressions, and called their custom evaluator.
    You are using the 1.0 uri, which specifies that it doesn't accept runtime expressions. It is complaining that ${ } is a runtime expression - so you must be using a JSP2.0 container.
    In short: You probably have a JSP2.0 container, and should be using JSTL1.1 uri: <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
    Cheers,
    evnafets

  • JSTL 's function tag

    I have tried to use function tag in my jsp page. However, I kept receiving this error message:
    <h3>Validation error messages from TagLibraryValidator for c</h3><p>35: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn:toUpperCase(who)}": org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.</p>
    It seems that I got some configuration problem with function tag, but can't find out what it exactly is. The core, xml, sql, fmt tags all could run properly, I really can't understand what is wrong with function. I am using jstl 1.1 and located in the lib folder. I addressed
    <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
    on the top of the page.
    Please help me out. Many thanks

    It dosen't work with out c:out. I found that I got
    different error messages if I address
    uri= "http://java.sun.com/jsp/jstl/functions" and
    "http://java.sun.com/jstl/functions" (no /jsp)
    Use the one with /jsp if you are using JSTL 1.1
    Use the ont without /jsp if you are using JSTL1.0
    >
    the second one shows
    The absolute uri: http://java.sun.com/jstl/functions
    cannot be resolved in either web.xml or the jar files
    deployed with this applicationProbably means you have JSTL 1.1
    I have already put the fn.tld file in the WEB-INF
    folder and mapped it in the web.xml. Take it out! All you need to do for JSTL 1.1 is put the standard.jar and jstl.jar into the WEB-INF/libs directory. No web.xml changes, no .tld placement, all that is handled in the JARS you put in the /lib directory.
    The IDE I am
    using is netBean 3.6. Anything else I missed? Please
    help me out. Thanks

  • How can i use JSTL inside custom tag attribute

    Hi,
    I have one button tag which displays the button with round corner. I will show the button like this:
    <ep:button key="buttons.submit" name="submitBtn" styleClass="But"
              onClick='submitPage(''<c:out value='${buttonName}' />)' />
    I am getting the problem with the above code. how can i use JSTL inside the custom tags.
    Thanks in Advance,
    LALITH

    No. The details are given below:
    I have included the follwing line in web.xml file:
    <taglib>
        <taglib-uri>/tags/button</taglib-uri>
        <taglib-location>/WEB-INF/button.tld</taglib-location>
      </taglib>button.tld file
    <taglib>
         <tlibversion>1.0</tlibversion>
         <jspversion>2.0</jspversion>
         <shortname>button</shortname>
         <tag>
              <name>button</name>
              <tagclass>com.ksi.ep.web.taglib.ButtonTag</tagclass>
              <bodycontent>empty</bodycontent>
              <attribute>
                   <name>name</name>
                   <required>true</required>
                   <rtexprvalue>false</rtexprvalue>
              </attribute>
              <attribute>
                   <name>key</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
              <attribute>
                   <name>onClick</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
              </attribute>
    </taglib>ButtonTag.java :
    public class ButtonTag extends TagSupport {
       private static final long serialVersionUID = 6837146537426981407L;
         * Initialise the logger for the class
        protected final transient Log log = LogFactory.getLog(ButtonTag.class);
         *  holds the Value of the button tag
        protected String onClick = null;
         *  holds message resources key
        protected String key = null;
         * The message resources for this package.
        protected static MessageResources messages =
                             MessageResources.getMessageResources
                                       ("ApplicationResources");
          *  (non-Javadoc)
          * @see javax.servlet.jsp.tagext.TagSupport#doStartTag()
         public int doStartTag() throws JspException {    
            StringBuffer label = new StringBuffer();         
            HttpServletRequest request = (HttpServletRequest)pageContext.getRequest();
            try {             
                   log.debug("in doStartTag()");
                   Locale locale = pageContext.getRequest().getLocale();
                 if (locale == null) {
                     locale = Locale.getDefault();
                 log.info("");
                 label.append("<a border=\"0\" style=\"text-decoration:none;color:#FFFFFF\" href=\"JavaScript:");
                 label.append(onClick);
                 label.append("\" >");
                   label.append("<table  onClick=\"");
                   label.append(onClick);               
                   label.append("\" ");
                   if(onmouseout!=null && !"".equalsIgnoreCase(onmouseout))
                    label.append(" onmouseout=\"");
                    label.append(onmouseout);               
                    label.append("\" ");
                   if(onmouseover!=null && !"".equalsIgnoreCase(onmouseover)){
                    label.append(" onmouseover=\"");
                    label.append(onmouseover);               
                    label.append("\" ");
                   if(title!=null && !"".equalsIgnoreCase(title)){
                    label.append(" title=\"");
                    label.append(title);               
                    label.append("\" ");
                   label.append("style=\"cursor:hand\" tabindex=\"1\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"");
                   label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));
                   label.append("background1.jpg\" > ");
                 label.append("<tr><td width=\"10\"><img  border=\"0\" src=\"");
                 label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));
                 label.append("leftcorner.jpg\" ></td> ");
                 label.append("<td valign=\"middle\"  style=\"padding-bottom:2px\"><font color=\"#FFFFFF\" style=\"");
                 label.append(styleClass);
                 label.append("\">");
                 label.append(messages.getMessage(key));
                 label.append("</font></td>");
                 label.append("<td width=\"10\" align=\"right\"><img src=\"");
                 label.append(request.getContextPath());
                   label.append(System.getProperty("file.separator"));
                   label.append("images");
                   label.append(System.getProperty("file.separator"));            
                 label.append("rightcorner.jpg\" border=\"0\"  ></td>");
                 label.append("</tr></table></a>");
                 pageContext.getOut().print(label.toString());
              } catch (Exception e) {               
                   log.error("Exception occured while rendering the button", e);
                   throw new JspException(e);
            return (SKIP_BODY);
         * Release all allocated resources.
        public void release() {       
            this.name=null;
            this.key=null;
            this.onClick=null;
    }In my JSP I have mentioned the taglib directive as
    <%@ taglib uri="/tags/button" prefix="ep"%>and
    <ep:button key="buttons.submit" name="submitBtn" styleClass="But"
         onClick='overwritePreApprovals('<c:out value='${transactionalDetails['inPrepList']}' />')' />Servlet.service() for servlet action threw exception
    org.apache.jasper.JasperException: /pages/pms/coordinator/Dashboard.jsp(325,48) Unterminated <ep:button tag
    Thanks,
    LALITH

  • JSTL Not interpreting Tags

    Using Windows XP, Tomcat 5.5, jre6. I placed standard.jar and jstl.jar in WEB-INF/lib, but the jstl tags on my webpage don't get interpreted. This page worked before on my old server, which also ran tomcat 5.5, so I think it is something with my new server's configuration. Does anyone have some ideas?

    Is it just the JSTL tags that don't work, or is it that its not actually being evaluated as a JSP?
    How about:
    - Standard jsp tags like <jsp:useBean id="testList" class="java.util.ArrayList"/>?
    - Runtime expressions like <%= 1 + 1 %>?
    - EL expressions such as ${2 + 2}?
    If you put those examples on your page do they get evaluated or echoed straight back out?
    Is this an actual jsp page? Does it have the .jsp extension?
    Where have you deployed the jsp page to?
    How are you accessing it? Via your web browser with url http:localhost:8080/mywebapp/mypage.jsp or similar?

  • JSTL c:import tag question

    HI
    I have a question about how the <c:param> tag interacts with <c:import> tag.
    <c:import> tag can be used to import from relative URL's like <c:import url="target.jsp" /> , from absolute urls like <c:import url="http://www.espn.com" /> or from another web application on the same server by specifying the context attribute like <c:import context="/myotherwebapp" url="some.jsp" />
    we can use <c:param> tag as an optional child tag for <c:import> to send request parameter to the page it is loading. For absolute url sending request parameters makes sense beacuse the import will be treated as new request and original request object will not be passed . but for relative urls and including the page in different web application on same web server does the jsp container treat it as part of same original request and does the target page have access to the original request object ? if this is true then how can you set additional request parameters on the request object? because once the request object is craeted by jsp container you can only add/remove attributes on it but you can never add parameters on it.
    Now if the jsp container always creates new request object for each of the above included pages then these pages will not have access to original request parameters entered by the user. Is that not a limitation.
    I am a little bit confused . hopefully somebody can help me out.
    thanks

    the c:param tag are added to the url and are not set as request parameter.
    <c:import url="target.jsp">
       <c:param var="test" value="val">
    </c:import>then is will do an import like
    <c:import url="target.jsp?test=val"/>

Maybe you are looking for