Problem Using JSTL in JSPProviderChannel

hi every one ..
has any one used JSTL with JSPProviderChannel..
plz tell me where to put all jar files and tld files and what changes are to be made in web.xml file ..
thanks
san

Hi,
I have done all the above ie.,
Copied the jar files (jstl.jar, standard.jar) to <portal-install-dir>/SUNWps/web-apps/portal/<instance>/WEB-INF/lib
also copied the same jar files to desktop/default/classes directory.
copied the *.tld's to desktop/default/tld directory
and in my jsp file changed the
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
to
<%@ taglib uri="/tld/fmt.tld" prefix="fmt"%>
it gives me error :
JSPProvider.processJSPFile(): jsp=content.jsp,
com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=content.jsp, com.sun.portal.providers.jsp.jasper3.jasper.compiler.CompileException: /etc/opt/SUNWps/desktop/default/SimpleUserInfo/content.jsp(6,0) Unable to open taglibrary /tld/fmt.tld : Unable to open the tag library descriptor: java.sun.com     at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:712)
     at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:674)
     at com.sun.portal.providers.jsp.JSPProvider.getContent(JSPProvider.java:473)
     at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:145)
com.sun.portal.providers.jsp.jasper3.jasper.compiler.CompileException: /etc/opt/SUNWps/desktop/default/SimpleUserInfo/content.jsp(6,0) Unable to open taglibrary /tld/fmt.tld : Unable to open the tag library descriptor: java.sun.com     at com.sun.portal.providers.jsp.jasper3.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:742)
     at
If I refer it in my jsp as
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
I get the following exception
JSPProvider.processJSPFile(): jsp=content.jsp,
com.sun.portal.providers.ProviderException: JSPProvider.processJSPFile(): jsp=content.jsp, com.sun.portal.providers.jsp.jasper3.jasper.compiler.CompileException: /etc/opt/SUNWps/desktop/default/SimpleUserInfo/content.jsp(6,0) Unable to open taglibrary http://java.sun.com/jstl/fmt : Could not locate TLD http://java.sun.com/jstl/fmt     at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:712)
     at com.sun.portal.providers.jsp.JSPProvider.processJspFile(JSPProvider.java:674)
     at com.sun.portal.providers.jsp.JSPProvider.getContent(JSPProvider.java:473)
     at com.sun.portal.desktop.context.ReusableProviderCaller.run(ReusableProviderCaller.java:145)
com.sun.portal.providers.jsp.jasper3.jasper.compiler.CompileException: /etc/opt/SUNWps/desktop/default/SimpleUserInfo/content.jsp(6,0) Unable to open taglibrary http://java.sun.com/jstl/fmt : Could not locate TLD http://java.sun.com/jstl/fmt     at com.sun.portal.providers.jsp.jasper3.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:742)
Please help on using JSTL with Portal 6.1
Thanks

Similar Messages

  • Problem using JSTL

    Hi
    i am stupid in jstl . I want use JSTL . i am using tomcat 5.0 & jdk 1.3
    i kept jstl.jar and standard.jar in /WEB-INF/lib and using core tags in jsp but when i run jsp it show me error like .i have not written anything in web.xml
    what should i do? plzz tell me
    org.apache.jasper.JasperException: Unable to read TLD "META-INF/c.tld" from JAR file "file:/E:/Tomcat 5.0/webapps/JSTL/WEB-INF/lib/standard.jar": java.lang.IllegalStateException: zip file closed
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
         at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
         at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:183)
         at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:181)
         at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
         at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
         at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
         at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
         at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
         at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.

    Maybe jdk 1.4 or higher versions would solve your problem. Googled around and read that this may be a bug in lower versions when reading unsigned jars.
    cheers,
    ram.

  • Problem using jstl and displaytags

    Hi all,
    I am using display tags taglib for generation of table. One of the columns has to be shown with the hyperlink attached to it. In order to acheive this i am using jstl taglib together with displaytags
    <display:table name="reportList" id="row" requestURI="viewengagementstatus.do" style="width: 100%;">
    <display:column  title="Period"  sortable="true" style="text-align:  center;" >
    <a href="/jsps/reportsummary.do?eid=<c:out value="${row.eid}" />&reportId=<c:out value="${row.ReportID}" />&reportPeriod=<c:out value="${row.targetDate}"/> " target="_blank"><font size="1"><c:out value="${row.targetDate}"/></font></a>
    </display:column>I am using jstl1.1.2.jar for jstl.
    When i run this on Weblogic10 and windows OS i am able to view the results. On performing the view source on the IE window, i get the following:
    <td style="text-align:  center;">
                   <a href="/jsps/reportsummary.do?eid=78004&reportId=104093&reportPeriod=Nov-2008 " target="_blank"><font size="1">Nov-2008</font></a>
    </td>but when the same code is run on the Weblogic deployed on the Linux machine, i am not getting the links and the name:
    the view-source of the application deployed on the linux machine shows:
    td style="text-align:  center;">
                   <a href="/jsps/reportsummary.do?eid=&reportId=&reportPeriod=" target="_blank"><font size="1"></font></a>
    </td>Any Ideas why this is occuring?
    Any help would be appreciated

    You should be using the one or the other, not both. Since your actual code shows that you don't need the jstl/core_rt taglib (you're using the JSP EL ${ } in JSTL tags rather than scriptlets <%= %> ), just remove that taglib declaration and continue using the jstl/core taglib.
    You should also rather place both the JSTL and standard JAR in the classpath of the application server. In case of Tomcat, put it in its /lib directory. Then remove all unnecessary JSTL and Standard JAR and TLD files from your whole webapplication project and also remove any related entries from the web.xml of your webapplication project. To use JSTL you only need to put the JAR files in the classpath of the application server and define the taglib in your JSP. Nothing less and nothing more. If you're using JSTL 1.2 rather than JSTL 1.1, then you need to remove the standard.jar file too since it is already merged in the jstl-1.2.jar file.
    Oh, the web.xml should also be declared that way that the application server uses at least servlet 2.4.

  • Problem using JSTL XML tags.

    My xml tag is giving problems. All other tags (core/sql and EL) are working fine. Even a very simple code like :
    <%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <!-- parse an XML document -->
    <x:parse var="simple">
    <a>
    <b>
    <c>C </c>
    </b>
    <d>
    <e> E </e>
    </d>
    </a>
    </x:parse>
    <!-- display using XPath expressions -->
    <x:out select="$simple//e"/>
    gives error as :
    javax.servlet.ServletException: Cannot inherit from final class
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         org.apache.jsp.jsp.xml.first_jsp._jspService(first_jsp.java:65)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    Pls. help!

    Works with no problems for me. (same exact code posted into a JSP)
    Running on Tomcat 5, Java1.4
    What server are you running, and version of java?
    Is there anything else on the page? Are you extending a class somehow?
    Do you have any extra libraries in the web-inf/lib directory that might be conflicting?

  • Problem using JSTL tag libraries with OC4J 9.0.3

    Hi
    I'm using the JSTL tag libraries with OC4J 9.0.3. I'm using JDeveloper10.1.2. I put the fmt.tld and c.tld in the WEB-INF directory and I'm adding the jstl.jar and standard.jar library to the EAR file. Both tlds have:
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    And OC4J 9.0.3 is compatible with tlib version 1.0 and jsp version 1.2. When I run the web app I get:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="/WEB-INF/fmt.tld" prefix="fmt"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /dataSource.jsp ):
    line #:1 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:2 column #:18 : Attribute 'xmlns:xsi' used but not declared.
    line #:3 column #:19 : Attribute 'xmlns:acme' used but not declared.
    line #:4 column #:27 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:7 column #:16 : Attribute 'version' used but not declared.
    line #:14 column #:15 : Invalid element 'tag-class' in content of 'tag', expected elements '[tagclass]'.
    line #:14 column #:15 : Element 'tag-class' used but not declared.
    line #:15 column #:18 : Invalid element 'body-content' in content of 'tag', expected elements '[tagclass]'.
    line #:15 column #:18 : Element 'body-content' used but not declared.
    line #:16 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:18 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:18 column #:12 : Element 'type' used but not declared.
    line #:22 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:24 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:24 column #:12 : Element 'type' used but not declared.
    line #:28 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:30 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:30 column #:12 : Element 'type' used but not declared.
    line #:34 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:36 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    Any ideas?

    Hi
    Thanks for the reply.
    I tried it and I get the same error:
    OracleJSP: oracle.jsp.parse.JspParseException: Line # 1, <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
    Error: oracle.xml.parser.v2.XMLParseException ( /dataSource.jsp ):
    line #:1 column #:48 : FIXED type Attribute value not equal to the default value 'http://java.sun.com/xml/ns/j2ee'.
    line #:2 column #:18 : Attribute 'xmlns:xsi' used but not declared.
    line #:3 column #:19 : Attribute 'xmlns:acme' used but not declared.
    line #:4 column #:27 : Attribute 'xsi:schemaLocation' used but not declared.
    line #:7 column #:16 : Attribute 'version' used but not declared.
    line #:14 column #:15 : Invalid element 'tag-class' in content of 'tag', expected elements '[tagclass]'.
    line #:14 column #:15 : Element 'tag-class' used but not declared.
    line #:15 column #:18 : Invalid element 'body-content' in content of 'tag', expected elements '[tagclass]'.
    line #:15 column #:18 : Element 'body-content' used but not declared.
    line #:16 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:18 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:18 column #:12 : Element 'type' used but not declared.
    line #:22 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:24 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:24 column #:12 : Element 'type' used but not declared.
    line #:28 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:30 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.
    line #:30 column #:12 : Element 'type' used but not declared.
    line #:34 column #:15 : Invalid element 'attribute' in content of 'tag', expected elements '[tagclass]'.
    line #:36 column #:12 : Invalid element 'type' in content of 'attribute', expected elements '[required, rtexprvalue]'.

  • Problems faced when using JSTL

    Hi all,
    I am a beginner in using JSTL 1.1 tag library in my web application and I got problems when I was dealing with it. The problem is, how can I pass the form bean parameter value (e.g. ArrayList) into the core tag? What should I do before defining the <c:forEach/> and the attributes I should defined inside the tag? I am confused with them. Could anyone have suggestions? Please do shout. Many thanks!
    Van

    JSTL works with JSF only in particular circumstances. Those are some guides about this topic:
    http://jsffaq.com/Wiki.jsp?page=DoJSTLAndJSFCanBeUsedTogether
    http://jsffaq.com/Wiki.jsp?page=IsItPossibleToUseJSTLsCForEachWithFacesContext
    http://jsffaq.com/Wiki.jsp?page=IsItPossibleToUseJSTLsConditionalTagsWithFacesContext
    Sergey : http://jsfTutorials.net

  • Strange problem about using JSTL

    Dear all,
    I've got a strange proble when using JSTL with tomcat.
    I've got two strings as the following:
         String id_string = (String)session.getAttribute("user_id");
         System.out.println(id_string);
         String valid_user = (String)session.getAttribute("valid_user");
    The "println" call tells me that "id_string" has a valid value.
    But when I use it like this in the same page:
    <a href="springapp/blog.htm?id=<c:out value=${ id_string " /><c:out value="${ valid_user }" />" >test
    I can only get "valid_user"'s value.
    "id_string" is not print out to the page.
    Would anyone please help me out?
    Any help would appreciated and thanks in advance.
    Edited by: haoniukun on Sep 15, 2007 9:57 PM

    haoniukun wrote:
         String id_string = (String)session.getAttribute("user_id");
    <a href="springapp/blog.htm?id=<c:out value=${ id_string " /><c:out value="${ valid_user }" />" >test
    I can only get "valid_user"'s value.
    "id_string" is not print out to the page.Your session attribute is called "user_id" which you're fetching correctly earlier. But in the <c:out> tag, you're trying to read "id_string" which is the name of your local variable and not in any scope. "valid_user" works because you've named your local variable the same as your scope attribute, so the value being printed out is from the scope and not your local variable. As far as I know, JSTL doesn't work with local scriptlet variables, it only access variables in the four scopes: page, request, session and application
    You should use the <c:set> tag to set a variable value. Try not to mix scriptlets and tags, it's frowned upon and will probably cause you problems later.

  • Problem while parsing xmlString in jsp using JSTL

    HI, I am not able to display data in jsp page that I have stored in string variable in XML form.
    I want to print xmlString data in jsp using jstl.
    probably i might have to parse it but i don't have idea . Can any one help me PLZ??

    I managed the code but getting following error
    org.apache.jasper.JasperException: javax.servlet.jsp.JspException: Content is not allowed in prolog.
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException: Content is not allowed in prolog.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:854)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
         org.apache.jsp.xml.test_jsp._jspService(test_jsp.java:106)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
         com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264)
         com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSource(ParseSupport.java:227)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSourceWithFilter(ParseSupport.java:193)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseReaderWithFilter(ParseSupport.java:199)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseStringWithFilter(ParseSupport.java:206)
         org.apache.taglibs.standard.tag.common.xml.ParseSupport.doEndTag(ParseSupport.java:138)
         org.apache.jsp.xml.test_jsp._jspx_meth_x_parse_0(test_jsp.java:168)
         org.apache.jsp.xml.test_jsp._jspService(test_jsp.java:82)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

  • Problem in using JSTL tag libs

    Hi there,
    I am trying to use JSTL tag libs in my web app, but i get the following error message:
    org.apache.jasper.JasperException: /index.jsp(22,0) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
    as it might be clear i am using Tomcat and line 22 of the code for index.jsp is:
    <c:if test="${user.role > 0 }">
    Please help my identify whats wrong in there. I suspect that it is because of my web.xml file, but i am not sure.
    thanx in advance,
    Capitan Haddock

    try to use gt instead of >

  • Problems with using JSTL with Weblogic 8.1 SP5 - Help!

    I keep getting the following error when trying to run my application using JSP tags under Weblogic 8.1 SP5 (using Jrockit in production mode):
    /searchinput.jsp(2): Error in using tag library uri='/WEB-INF/lib/regain-search.tld' prefix='search': cannot find tag class: 'net.sf.regain.ui.server.taglib.TagMsg'
    probably occurred due to an error in /searchinput.jsp line 2:
    <%@ taglib uri="/WEB-INF/lib/regain-search.tld" prefix="search" %>
    I have the following jar files in my /WEB-INF/lib directory:
    jakarta-regexp-1.4.jar
    jstl.jar
    standar.jar
    log4j-1.2.11.jar
    struts.jar
    lucene-1.4.3.jar
    jsp-api.jar
    and the regain-search.tld.
    I am using JSTL 1.0.6 (earliest version I could find of JSTL 1.0).
    The class files that the tld file is pointing to are in the WEB-INF/classes directory of the application (which is an exploded war file).
    Here is what I have as reference in my web.xml file:
    <taglib>
    <taglib-uri>/WEB-INF/lib/regain-search.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/regain-search.tld</taglib-location>
    </taglib>
    and it is referenced in searchinput.jsp as:
    <%@ taglib uri="/WEB-INF/lib/regain-search.tld" prefix="search" %>
    I've looked everyone on the Web trying to find an answer to this - but nothing I've tried has worked.
    This all works fine in Tomcat 5.0
    Please let me know what I'm doing wrong.
    Thanks in advance,
    Kelly

    I keep getting the following error when trying to run my application using JSP tags under Weblogic 8.1 SP5 (using Jrockit in production mode):
    /searchinput.jsp(2): Error in using tag library uri='/WEB-INF/lib/regain-search.tld' prefix='search': cannot find tag class: 'net.sf.regain.ui.server.taglib.TagMsg'
    probably occurred due to an error in /searchinput.jsp line 2:
    <%@ taglib uri="/WEB-INF/lib/regain-search.tld" prefix="search" %>
    I have the following jar files in my /WEB-INF/lib directory:
    jakarta-regexp-1.4.jar
    jstl.jar
    standar.jar
    log4j-1.2.11.jar
    struts.jar
    lucene-1.4.3.jar
    jsp-api.jar
    and the regain-search.tld.
    I am using JSTL 1.0.6 (earliest version I could find of JSTL 1.0).
    The class files that the tld file is pointing to are in the WEB-INF/classes directory of the application (which is an exploded war file).
    Here is what I have as reference in my web.xml file:
    <taglib>
    <taglib-uri>/WEB-INF/lib/regain-search.tld</taglib-uri>
    <taglib-location>/WEB-INF/lib/regain-search.tld</taglib-location>
    </taglib>
    and it is referenced in searchinput.jsp as:
    <%@ taglib uri="/WEB-INF/lib/regain-search.tld" prefix="search" %>
    I've looked everyone on the Web trying to find an answer to this - but nothing I've tried has worked.
    This all works fine in Tomcat 5.0
    Please let me know what I'm doing wrong.
    Thanks in advance,
    Kelly

  • Problem Tranforming xml using jstl

    Hello To Every One
    I have transformed xml document using servlet now i need to know how can i transform xml document using jstl. I have found this code very often but it doesn't work with a relative or absolute url. I need to pass parameters dynamically.
    <c:import var="xml" url="<%=xmlFile%>" />
    <c:import var="xslt" url="<%=xsltFile%>" />
    <x:transform xml="${xml}" xslt="${xslt}" />In this code I have to pass xmlFile and xsltFile parameter dynamically and i want to make it as session variables. When i put relative url in *<c: import >* tag it works fine but for absolute url it does not work. Although I doesnot want to pass absolute url but relative ones, but how can i achieve that one.
    E.G.
    <x:transform xml="relative url for xmlfile" xslt="relative url for xslt file" />If anyone have the solution please reply me as soon as possible. Thanx in Advance for your kind Attention.

    Thanx for your answer This is my Code which works fine.
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <html>
      <head>
      </head>
      <body>
        <form method="post">
       <c:import var="xml" url="..\\data\\192.168.1.94\\master.xml" />
    <c:import var="xslt" url="..\\other\\Masterview.xsl" />
    <x:transform xml="${xml}" xslt="${xslt}" />
        </form>
      </body>
    </html>But in <c:import > tag i want to put url value dynamically so when i convert that string to a variable and pass that variable into url attribute it does not work.
    Like This
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <html>
      <head>
      </head>
      <body>
       <%
       try{
            String xmlFile="..\\data\\"+session.getAttribute("param1").toString()+"\\master.xml";
            String xsltFile="..\\other\\"+session.getAttribute("param2").toString()+"\\MasterView.xsl";
            }catch(Exception ep){ep.printStackTrace();}
       %>
        <form method="post">
       <c:import var="xml" url="<%=xmlFile.toString()%>" />
    <c:import var="xslt" url="<%=xsltFile.toString()%>" />
    <x:transform xml="${xml}" xslt="${xslt}" />
        </form>
      </body>
    </html>

  • Hw can i get arabic support in oracleAS using jstl: showing '?????' symbols

    Hello All,
    I am using OracleAS for portal deployment and portlets UI constructed by using jstl.
    i have used spring portlet jstl for the jsp pages.
    when i am trying to change the language, it is showing '?????' symbols.
    I have used correct unicode. i tested in pluto portal server. when i deployed in oracleAS,
    for english not a problem. for arabic it is showing as '????'.
    i have used this code to get arabic in pluto. same code i used. i am getting error.
    <c:set target="${pageContext.response}" property="characterEncoding" value="UTF-8" />
    <fmt:setLocale value="ar" />
    <fmt:requestEncoding value="UTF-8" />
    i know it is not setting charector encoding.
    i tried some other too like:
    <head>
    <META http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    </head>
    and
    <%@ page pageEncoding="UTF-8" %>
    No improvement. please help me out of this.
    how can i get arabic support in oracle AS by using jstl?
    Thanks,
    Arun

    Only Apple Account Security could help at this point. You can try calling Apple Support in Canada - you'll have to find one of the several ways, such as Skype, to call an 800 number from outside of the relevant country - and ask for Account Security and see if they can help. Or you can find a friend who speaks Chinese and ask them to help you talk to Apple Support in China. There are really no other options that I know of.
    Note, by the way, that these are user-to-user support forums. You aren't speaking with Apple when you post here.
    Regards.

  • Retaining of values in JSP while using JSTL

    Dear All,
    I have an application using the struts framework, wherein I am facing a problem.
    Here goes the problem " In my JSP's I have multiselect, the JSTL tags works fine when all the server side validations are done. But I get a problem when an error(server side validation error) occurs, I have to retain all the multiple values selected in the Multiselect box.
    Can anyone suggest me best way to retain the multiple values.
    E.g. My multiselect populates 5 values
    A
    B
    C
    D
    E
    As a end user I select "B, C,E", and a server side validation error occurs I have to keep the values "B, C, E" selected in the above list of 5 values using JSTL
    Thanking you in anticipation.
    regards,
    Mohan.

    Dear Friend,
    The control I am placing(multi select) has the data type in the form as String[],
    The validation error(server side) I was talking about is: I have 5 fields in JSP, in one of the 5 fields I have a title, which is unique in the database, if the end user enters an already existing title, then all the values previously (entered, selected) for rest of the controls should be retained and an error message from application resources is populated about the title duplication.
    Here I will show the entered values in text box and also the multi-selects, so using JSTL, I want a way out to retain the previously selected values....
    In my JSP for the control I say <input type="select" property="propertyname" multiple="true">
    of struts...
    Thank you
    Mohan.

  • Problem using c:forEach

    I'm having a problem using c:forEach. Eclipse is telling me the problem is with the items parameter, and for the life of me, I cannot see why, since I could swear forEach uses an items parameter. Here is my code and the exception report. Can anyone please help? Thanks.
    <table>
         <c:forEach var="user" items="${users}">
              <tr>
                   <td>${user.name}</td>
                   <c:forEach var="education" items="${education}">
                        <td>${education.school}</td>
                        <td>${education.major}</td>
                        <td>${education.degree}</td>
                        <td>${education.gpa}</td>
                   </c:forEach>
                   <c:forEach var="employment" items="${employment}">
                        <td>${employment.employer}</td>
                        <td>${employment.jobtitle}</td>
                        <td>${employment.startdate}</td>
                        <td>${employment.enddate}</td>
                   </c:forEach>
              </tr>
         </c:forEach>
    </table>
    org.apache.jasper.JasperException: /RecruiterResumeResults.jsp(46,1) According to TLD or attribute directive in tag file, attribute items does not accept any expressions
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
         org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
         org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
         org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1174)
         org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:821)
         org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
         org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1736)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:183)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:389)

    In web.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4"
         xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">At the top of my JSP:
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
         pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <%@ taglib prefix="s" uri="/struts-tags"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

  • Posting huge data on to JSP page using JSTL tags

    Hi,
    I have one application where I have to post huge data (approximately 2000 rows of data) into JSP page. I am using JSTL tags and running on Tomcat 5.
    It is taking almost 20 to 25 seconds to load the entire page.
    Is it the optimal time to load or it could be improved?
    Please let me know.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Evnafets,
    Thank you for the response.
    Here are the tasks I am doing to display the data on JSP.
    0. We are running on Tomcat 5 and the memory size is 1024MB (1GB).
    1. Getting the data - I am not performing any database queries. The data is stored in the static cache memory. So the server side response is so quick - less than a milli second.
    2. Using Java beans to pass data to the presentation layer (JSP).
    3. 10 'if' conditions and 2 'for' loops and 2 'choose' statements are being used in the JSP page while displaying the data.
    4. Along with the above, there are 4 javascript files are being used.
    5. The jsp file size after rendering the data, is aprox. 160 kb
    Hope this information helps you to understand the problem.
    Thanks,
    --Subbu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Lightroom 3.6 and Windows 8 hotkeys problem

    Dear Adobe Support, all, I'm experiencing strange Lightroom 3.6 problems in Windows 8 PRO. The program itself seems to be stable, but unfortunately hotkeys are not working all the time. The worst thing is that they work and then something happens and

  • Logic Pro X with OSX Mavericks 10.9.2 Audio output cuts out 3-5 minutes into running software?

    Logic Pro X with OSX 10.9.2 Audio output cuts out 3-5 minutes into running software how can I fix this?

  • Syncing issues. Please help!!!

    My Itunes account will not let me sync music to my ipod. it tells me "The ipod cannot be synced. An unknown error occured(13019)." Has anyone else experienced this? What can i do to fix it??

  • Sliding Navigation Menu (+ Advice)

    Hi, I am new to Flash. I have tried to pick it up several times over the years but always seem to come up against problems. It seems that Flash is more dependant on Actionscript now than it ever was. I am not a programmer by any sense and feel like l

  • Storage capacity of the iPod Classic

    I see a consistent breakdown of playback capacity for the line up of iPods that goes like this: -Classic - 160GB - 36 hours of music playback & 6 hours of video -Touch - 8GB - 30 hours of music playback & 6 hours of video -Touch - 32GB - 30 hours of