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 >

Similar Messages

  • Errors to use JSTL Tag in JDeveloper 10g

    Hi, folks in JDeveloper:
    I have a problem to use JSTL in JDeveloper 10g.
    In jsp file: detail.jsp, I include tag library like this:
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    When I compile/run, the system complain the following errors:
    Error(4): java.io.FileNotFoundException: /http:/java.sun.com/jstl/core
    Error(4): Unable to load taghandler class: http://java.sun.com/jstl/core
    I already put standard.jar and jstl.jar file in WEB-INF/lib directory. I use jakata-struts jstl 1.0
    Anybody know how to fix that?
    Many thanks.
    Zhiyi Li
    Project: C:\MZhongProject\WFUBMC\MESA\genelist\code\Catalog\ViewController\ViewController.jpr
    C:\MZhongProject\WFUBMC\MESA\genelist\code\Catalog\ViewController\public_html\detail.jsp
    Error(4): java.io.FileNotFoundException: /http:/java.sun.com/jstl/core
    Error(4): Unable to load taghandler class: http://java.sun.com/jstl/core
    C:\MZhongProject\WFUBMC\MESA\genelist\code\Catalog\ViewController\public_html\banner.jsp
    Error(3): java.io.FileNotFoundException: /http:/java.sun.com/jstl/core
    Error(3): Unable to load taghandler class: http://java.sun.com/jstl/core

    User,
    You should configure the taglibs using the project->libraries option in JDev. If that doesn't help, try adding the taglib URI mappings to web.xml as detailed [url http://forum.java.sun.com/thread.jspa?threadID=650000&messageID=3823804]here
    John

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to write this java code in jsp using jstl  tags?

    Can anybody help me on this?
    I dont know how to check the containsKey using jstl tags?
    <%
         LinkedHashMap yearMap     =     (LinkedHashMap)request.getAttribute("yearMap");
         TreeSet nocSet               =     (TreeSet)request.getAttribute("nocSet");
         Iterator     yearMapIt     =     yearMap.keySet().iterator();
         while(yearMapIt.hasNext())
              int yearValue               =     (Integer)yearMapIt.next();
    %>
    <tr>
              <td><%=yearValue%></td>
    <%
              LinkedHashMap monthMap     =     (LinkedHashMap)yearMap.get(yearValue);
              Iterator     nocSetIt     =     nocSet.iterator();
              while(nocSetIt.hasNext())
                   String nCase=(String)nocSetIt.next();
                   if(monthMap.containsKey(nCase))
                        String count     =     (String)monthMap.get(nCase);
    %>
                        <td> <%= count %> </td>
    <%            }
                   else
    %>          
                        <td> 0 </td>     
    <%          
    %>
    </tr>
    <% } %>Edited by: avn_venki on Feb 18, 2008 11:54 PM

    <c:forEach var="yearMap" items="${requestScope.yearMap}">
         <th> <c:out value="${yearMap.key}"/> </th>
    <bean:define id="monthMap" value="${yearMap.value}"/>
    <c:forEach var="nocSet" items="${nocSet}">
    then how to write containsKey using tags??

  • How to use custome tag lib in the JSP page?

    How to use custome tag lib in the JSP page?...with JDeveloper

    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.working_with_jsp_pages%7Cjsp_ptagsregistering~html/

  • Use jstl tags in jsf page

    I have h:dataTable in each row of which i'd like to output row data as text, inputfield or link depending on row data type
                        <h:dataTable id="pnlHistory" value="#{UserOrdersBean.orderLineWrappers}" var="wrapper" rendered="#{UserOrdersBean.isBasicUser}"
                                     columnClasses="history_col1, history_col2, history_col3, history_col4, history_col5" width="100%" cellpadding="5" >
                            <h:column>
                                <f:facet name="header">
                                    <h:commandLink action="doRefresh" actionListener="#{UserOrdersBean.doSort}">
                                        <h:outputText value="#{msg.userorders_itemName}">
                                            <f:param value="orderLineWrappers"/>
                                            <f:param value="itemName"/>
                                        </h:outputText>
                                    </h:commandLink>
                                </f:facet>
                                <h:outputText value="#{wrapper.itemName}" styleClass="itemdescription"/>
                            </h:column>
                            <h:column>
                                <f:facet name="header">
                                    <h:commandLink action="doRefresh" actionListener="#{UserOrdersBean.doSort}">
                                        <h:outputText value="#{msg.userorders_data}">
                                            <f:param value="orderLineWrappers"/>
                                            <f:param value="data"/>
                                        </h:outputText>
                                    </h:commandLink>
                                </f:facet>
                                <c_rt:choose>
                                    <c_rt:when test="#{wrapper.type==0}">
                                        <h:outputText value="#{wrapper.data}" styleClass="basic_thin"/>
                                    </c_rt:when>
                                    <c_rt:when test="#{wrapper.type==1}">
                                        <h:inputText value="#{wrapper.data}" styleClass="basic_thin" style="width:160px"/>
                                    </c_rt:when>
                                    <c_rt:when test="#{wrapper.type==2}">
                                        <h:outputLink value="#{wrapper.data}">
                                            <h:outputText value="#{msg.userorders_link}" styleClass="basic_thin"/>
                                        </h:outputLink>
                                    </c_rt:when>
                                </c_rt:choose>
                            </h:column>
                         </h:dataTable>trying to use jstl tags but unsuccessfull. Is it ever possible user jstl tags in jsf tags like listed above

    Replace the c:choose block by<h:outputText value="#{wrapper.data}" styleClass="basic_thin" rendered="#{wrapper.type == 0}" />
    <h:inputText value="#{wrapper.data}" styleClass="basic_thin" style="width:160px" rendered="#{wrapper.type == 1}" />
    <h:outputLink value="#{wrapper.data}" rendered="#{wrapper.type == 2}">
        <h:outputText value="#{msg.userorders_link}" styleClass="basic_thin"/>
    </h:outputLink>

  • I can't use JSP tags lib in IWS6

    I was trying to use JSP tags lib but the web server doesn't find the *.tld file. Some messages are shown:
    25/Jun/2002:19:40:28] info ( 5604): JSP: JSP1x compiler threw exception
    org.apache.jasper.compiler.CompileException: /local/iplanet/docs/menu_principal.jsp(1,0) Unable to open taglibrary http://apache.org/taglibs/dbtags : Could not locate TLD http://apache.org/taglibs/dbtags
    at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:707)
    at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:110)
    at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:218)
    at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
    at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
    at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
    [25/Jun/2002:19:40:28] warning ( 5604): Internal error: Failed to get GenericServlet. (uri=/menu_principal.jsp,SCRIPT_NAME=/menu_principal.jsp)
    I have some doubts about how to work with JSP Tags in iws6. What should I do to get this work?
    The tag lib is gotten from jakarta project and I'd like to know which steps i have to follow.
    Thank you very much

    Hi,
    What you have to do is this:
    - Include the jar file in the WEB-INF/lib
    - Include the tld file in a directory under WEB-INF, for example tlds
    - Create a mapping in the deployment descriptor (web.xml), to make the taglib available, something like this:
    <taglib>
    <taglib-uri>http://jakarta.apache.org/taglibs/io</taglib-uri>
    <taglib-location>/WEB-INF/tlds/io.tld</taglib-location>
    </taglib>
    Then in the jsp, you have to invoke it like this:
    <%@ taglib uri="http://jakarta.apache.org/taglibs/io" prefix="io" %>
    <io:http url="http://mustang:4004/NASApp/fortune/fortune" action="GET"/>
    Hope this helps
    Juan

  • Use JSTL tags for ATG droplets and beans

    Hi,
    I am trying to display profile values in a JSON object in jsp.
    <dsp:getvalueof var="json" bean="ProfileFormHandler.ProfileJSON"></dsp:getvalueof>
    <c:out value="${json}" />
    but instead of using dsp tag is there a way for accessing ProfileFormHandler using JSTL tag
    Also how can we use droplets in ATG like ForEach using JSTL tags only
    <dsp:droplet name="ForEach">
    <dsp:param name="array" param="catalogItems.rootCategories"/>
    <dsp:param name="elementName" value="categoryItem"/>

    I am trying to display profile values in a JSON object in jsp.
    <dsp:getvalueof var="json" bean="ProfileFormHandler.ProfileJSON"></dsp:getvalueof>
    <c:out value="${json}" />
    but instead of using dsp tag is there a way for accessing ProfileFormHandler using JSTL tagIn the <dsp:importbean> use var to give an EL variable name to the component you are importing.You can also set its scope attribute to page, request, session, or application with page scope being the default. You can then access it as a page scoped attribute. So this should do:
    <dsp:importbean var="profileFormHandler" bean="/atg/userprofiling/ProfileFormHandler" />
    <c:out value="${pageScope.profileFormHandler.ProfileJSON}" />In case you change the scope in importbean you can accordingly use pageScope, requestScope, sessionScope or applicationScope.
    Also how can we use droplets in ATG like ForEach using JSTL tags only
    <dsp:droplet name="ForEach">
    <dsp:param name="array" param="catalogItems.rootCategories"/>
    <dsp:param name="elementName" value="categoryItem"/>Any ATG droplet is nothing but a servlet which is also a Nucleus component. So essentially you want to call a servlet from JSTL which as such shouldn't be done in a well written script-less JSP. You can probably try to use the droplet as a bean and use JSTL on top of it but since ATG droplets also have different types of parameters like input, output and open so you will have to specially handle those.

  • Is it possible todeclare primitive variable by using JSTL tag

    Hi friends..........
    I have to use jstl tags in my project , so i have to know how to declare primitive variables with jstl tag. Is it possible with <c:set > jstl tag........
    Hope i get the answer...........
    Thanks in advance...............

    JSTL variables are attributes in the page, request, session and application scopes.
    As such, they can only be objects, because you can't store a primitive value as an attribute.
    However you shouldn't need to declare primitive variables. You should hardly need to declare any variables.
    JSTL is not a programming language. It is a language to aid the display of a JSP. Therefore most of its attention is geared towards outputting things, with a much lesser concern on setting them.
    Cheers,
    evnafets

  • 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 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

  • Not able to use JSTL tags

    Hi
    I am not able to use any tag in jstl. I have tried c:out,c:forEach,c:if etc. I have done mapping in the web.xml for the c.tld. I have tried the same code in eclipse and IBM websphere and Rational also but i am getting the error
    Custom tag attribute test cannot be runtime expression. value: "[${userType eq 'member'}]"
    i thought that it may be something related to configuratioin problem but now I am working in IBM rational and it has support for JSP 2.0. one thing more, I read in the HeadFirst servlets and JSP book that we needn't do any mapping for tlds etc in jsp 2.0. So please elaborate more and tell me the exact reason for my problem.
    I will really appreciate the guy who answers me as soon as possible.
    my persona email id is [email protected]
    Thanking in advance!

    Custom tag attribute test cannot be runtime expression. value: "[${userType eq 'member'}]"You say you are using a JSP2.0 container?
    This message usually indicates that you are using JSTL1.0 with a JSP2.0 container.
    Make sure you are using JSTL1.1 (seperate download), and are importing it with the correct URI
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    (note the subtle addition of the /jsp in there to distinguish it from JSTL1.0)
    As has been said, remove all those tlds and entries in web.xml.
    All of the tld can be found in the META-INF directory of standard.jar.
    Your web container should find them all there, provided you use the "standard URI"

  • 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.

  • Cannot use jstl tag for jsp page which generated from Human Task

    Hi
    Plz help me.
    I have tried to using jstl in jsp which generate from Human Task and I deploy it to server( by ant on Jdev ) to see task detail in Oracle Worklist application. But when i submit task and then I access to worklist to see task detail, the error has show in page that "OracleJSP: An error occurred. Consult your application/system administrator for support. Programmers should consider setting the init-param debug_mode to "true" to see the complete exception message. " .
    I access server to see application.log to see error and I see error show "workflowform: JspServlet: unable to dispatch to requested page: Exception:oracle.jsp.parse.JspParseException: /Header1.jsp: Line # 3, <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> "
    How do I fix this error?
    PS. I tried to us jstl because I need to connet to database which jstl tag(sql) if somebody has another solution for connect database in task detail page, Please help suggest me.
    Thanks
    user520932

    Is the jstl tag libray loaded in the appsserver?
    Can you use jdbc connection like
    DataSource ds = ic.lookup("java:comp/env/jdbc/myDB");
    Connection con = ds.getConnection();
    DataSource ds = (DataSource) org.apache.derby.jdbc.ClientDataSource()
    ds.setPort(1521);
    ds.setHost("localhost");
    ds.setUser("APP")
    ds.setPassword("APP");
    Connection con = ds.getConnection();
    http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html

  • How to iterate dyna validation form using jstl tag

    i have create dyna validation form in struts-config.xml
    <form-bean name="DynaValidationForm"
    type="org.apache.struts.validator.DynaValidatorForm">
    <form-property name="username" type="java.lang.String" />
    <form-property name="cityName" type="java.lang.String[]" />
    <form-bean>
    and i want to disply these value on my jsp by usig jstl tag
    <c:forEach var="form" item="${DynaValidatorForm.????????}">
    <c:out value="form.username">
    </c:forEach>
    but problem is item is of collection object And in dyna validation form
    how can i create the collection object or to call this .
    please help me

    posting the same question more than once won't
    increase your chances of getting an answer.
    sometimes nobody knows or no one is interested in
    putting in the time to figure out an answer. your
    question might be one of those.
    %sometimes I get the feeling that I'm actually helping someone do me out of a job.

Maybe you are looking for