jsp:getProperty.... in a taglib-tag ???

Hi !
I have taglib where I have defined a lots of classes and one of them I have a attribute who should be dynamic. I have tryed this:
<easyTagz:submit iteration='<jsp:getProperty name='submission' property='maxCount'/>' />
but it dosen`t seem to work....
Any suggestion :-)

Dosen`t seem to work, have tryed and gets this error message:
org.apache.jasper.JasperException: Unable to compile class for JSP
     at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:567)
     at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
Any suggestion ???

Similar Messages

  • Error in parsing the taglib tag in the JSP page

    Hi
    We are trying to deploy and run a Web Application in CE 7.1 SP01. We are successful in deploying and running servlet based web pages, but when it comes to JSP's the taglibs are not parsed and we get the following error message
    Runtime error in processing of the JSP file E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\main.jsp.
    The error is: com.sap.engine.services.servlets_jsp.jspparser_api.exception.JspParseException: Error in parsing the taglib tag in the JSP page. Cannot resolve URI: [webwork]. Possible reason - validation failed. Check if your TLD is valid against its scheme.02004C4F4F5000190000004E000013400191D308B45
    Processing HTTP request to servlet [jsp] finished with error.
    The error is: java.io.FileNotFoundException: E:\usr\sap\CE1\J01\j2ee\cluster\apps\sap.com\TestNWEAR\servlet_jsp\TestNW\root\admin\webwork (The system cannot find the file specified)02004C4F4F50001900000051000013400191D308B45AF1AB
    We followed the below weblog to correct the TLD's in JAVA EE 5 @ SAP but it did not work for us.
    /people/community.user/blog/2006/10/13/porting-the-java-blueprint-solutions-catalogue-applications-to-sap-netweaver-application-server-java-ee-5-edition
    Any immediate help will be rewarded with full points
    Thanks in advance
    Lakshmi
    Edited by: lakshmi N Munnungi on May 5, 2008 11:36 PM
    Edited by: lakshmi N Munnungi on May 5, 2008 11:39 PM

    Hi Lakshmi,
    I have also the same problem. If you have found the solution please post it thanks,
    Thanks,
    Tariq

  • Jsp:getProperty in tag attributes

    Hii....
    I have a custom tag that displays some information based on an attribute of the tag. I want to set information from a bean to the attribute using the jsp:getProperty tag...
    I want to do something like.......
    <mytagprefix:MyTag attribute1='<jsp:getProperty id="myID" property="name"/>' />
    If I do it right now I am getting the string <jsp:getProperty id="myID" property="name"/> inside the my TAG.
    any help will be appreciated.
    sanjay.

    I'm a bit rusty on custom tags, so maybe this isn't the best solution, but until you find a better one you can try '<%= myID.getName() %>' as the attribute.

  • Help with JSP:GetProperty Tag

    Howdy all,
    I have a
    <jsp:getProperty name='input' property='code01'/>
    tag and would like to be able to put a variable in the property field so that I can increment from code01 to code02 to code 03 by concatenating strings
    Is this possible?

    Thanks for your input on the forum, but I tried with no sucess to put it into action:
    <% String colname="code02"; %>
    <jsp:getProperty name='Input' property='<%=colname%>' />
    Produced this:
    Internal Servlet Error:
    org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'com.infomed.InputBean'
         at org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:616)
         at org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPropertyGenerator.java:101)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.generate(JspParseEventListener.java:771)
         at org.apache.jasper.compiler.JspParseEventListener.generateAll(JspParseEventListener.java:220)
         at org.apache.jasper.compiler.JspParseEventListener.endPageProcessing(JspParseEventListener.java:175)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Any Help you can give would be greatly appreciated, what I need to do is cycle through code01, code02....code15
    and use the string to do it, but use a counter integer to create the string, ie..'code0' + i and then use the sting to access
    on of the member properties in the been...(Code01, Code02) ertc.

  • Formatting fonts within jsp:getProperty tag????

    I'd diplaying a piece of information on one of my pages using the jsp:getProperty tag.... there seems to be no way I can effect the display of the property with the font/color that I want - when I look at the resulting HTML code, I see that this tag has created a new HTML table specifying the class "inFieldSet" (a CSS class I presume, and which I also presume if overriding my desired font/color settings). Is there a way to make the page display the property using the font/color that I want without writing a custom tag?
    Scott

    All the JSP getProperty tag does, is get a string returning the value of a property. It would not apply any formatting to your page.
    I would take a look at the "getter" for this property to see what value it is returning.
    Most probably it is returning a chunk of preformatted html.

  • Populating combobox in jsp page from javabean using jsp:getProperty tag

    hi,
    i am new to jsp, so i don;t know how to populate a combobox in jsp page with productid attribute from a javabean called Bid . i want to have a code to automatically populating combobox using the attribute value from javabean.
    please reply me.
    <jsp:useBean id="bidpageid" class="RFPSOFTWARE.Bid" scope="session" />
    <jsp:setProperty name="bidpageid" property="*"/>
      <table  width="50%" align="center" border="0">
       <tr>
        <td  width="30%" align="left"><h4><b><label>Date (dd/mm/yyyy) </label></b></h4> </td>
        <td><input type="text" name="date" size="11" maxlength="10" readonly="readonly" value="<jsp:getProperty name="bidpageid" property="date"/>"  > </td>
      </tr>
      <tr> <td > </td> </tr>
      <tr>
        <td  width="30%" align="left"><h4><b><label>ProductId </label></b></h4> </td>
        <td><select name="productid" tabindex="1" size="1" >
          <option  value="<jsp:getProperty name=bidpageid" />Sachin</option>
          <option value="Hello">Vishal</option>
        </select></td>
      </tr>  and the javabean for Bid is as follow :
    import java.util.Date;
    import RFPSOFTWARE.Product;
    public class Bid{
    private Product product;
    private Integer bid_id;
    private String description;
    private Date date= new Date();
    public Integer getBid_id() {
    return bid_id;
    public Date getDate() {
    return date;
    public String getDescription() {
    return description;
    public Product getProduct() {
    return product;
    public void setBid_id(Integer bid_id) {
    this.bid_id = bid_id;
    public void setDate(Date date) {
    this.date = date;
    public void setDescription(String description) {
    this.description = description;
    public void setProduct(Product product) {
    this.product = product;
    }

    No Sir,
    I think I did not explained clearly.what I try to say is I dont want to use JSTL.I am using only Scriptlets only.I can able to receive the values from the database to the resultset.But I could not populate it in Combobox.
    My code is :
    <tr>
    <td width="22%"><font color="#000000"><strong>Assign To Engineer</strong></font></td>          
    <td width="78%">
         <select NAME="Name" size="1">
    <option><%=Username%></option>
    </select> </td>
    </tr>
    in HTML
    and in Scriptlets:
    ps1 = con.prepareStatement
              ("SELECT Username FROM Users");
              rs2=ps1.executeQuery();
              System.out.println("SECOND Succesfully Executed");
              while(rs2.next())
                   System.out.println("Coming inside rs2.next loop to process");
                   Username=rs2.getString("Username");
                   System.out.println("Success");
                   System.out.println("The value retrieved from UsersTable Username is:"+Username);
    In the server(Jboss console) I can able to display the username but I could not populate it in the Combobox .
    Can you now suggest some changes in my code,Please..
    Thanks a lot
    With kind Regds
    Satheesh

  • Error in parsing taglib taglib tag in web.xml or .tld file of the taglib

    Hi All,
    I have added ResourceBundle.tld file in following path : /PORTAL-INF/taglib/tld/
    I have added portalapp.xml file following entry  :
    <property name="/PORTAL-INF/taglib/tld/ResourceBundle.tld" value="/PORTAL-INF/taglib/tld/ResourceBundle.tld"/>
    I have added jsp file following entry :
    <%@ taglib uri="/PORTAL-INF/taglib/tld/ResourceBundle.tld" prefix="bundle" %>
    I am getting the following the error: Error in parsing taglib taglib tag in web.xml or .tld file of the taglib library
    can you tell me where i am giving the wrong.
    Regards
    Siva

    hi rabih,
    in jsp..
    <%@ taglib uri="tagLib" prefix="bundle" %>
    in portalapp.xml
    <component-profile>
      <property name="tagLib" value="/PORTAL-INF/taglib/tld/ResourceBundle.tld"/>
    </component-profile>
    it may help u..
    regards,
    Chinnadurai.R

  • Regarding jsp:getProperty

    hi
    i have a bean. I am setting the values of the bean and setting that bean as an attribute in the session.
    In another jsp i am able to access the bean using
    <jsp:getProperty name=".." property="..">
    Here the name is the same as the attribute name.
    But here i am not using <jsp:useBean /> tag.
    I have read some where that <jsp:getProperty> or <jsp:setProperty> should be used with the <jsp:useBean> tag.
    Please correct me where i am wrong?

    I too read the same.
    But i done an example on my local machine and i am able to access the <jsp:getProperty> without <jsp:useBean>
    Consider Testbean.jsp
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>TestBean.jsp</TITLE>
    </HEAD>
    <BODY>
    <%
    InfoBean infoBean = new InfoBean();
    infoBean.setFullname("Macro");
    infoBean.setAge("23");
    infoBean.setOccupation("employee");
    infoBean.setSex("F");
    infoBean.setQualification("B-Tech");
    session.setAttribute("InfoBeanObj",infoBean);
    %>
    <jsp:forward page = "TestBeanForward.jsp"/>
    </BODY>
    </HTML>
    The TestBeanForward.jsp is
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <LINK href="theme/Master.css" rel="stylesheet" type="text/css">
    <TITLE>TestBeanForward.jsp</TITLE>
    </HEAD>
    <BODY>
    <jsp:getProperty name="InfoBeanObj" property="fullname"/>
    <jsp:getProperty name="InfoBeanObj" property="age"/>
    <jsp:getProperty name="InfoBeanObj" property="occupation"/>
    <jsp:getProperty name="InfoBeanObj" property="sex"/>
    <jsp:getProperty name="InfoBeanObj" property="qualification"/>
    </BODY>
    </HTML>
    I ran TestBean.jsp on server and i am able to print all the values onthe browser

  • Combining jsp getProperty with HTML EMBED

    Hi, Just a quick question, I have a couple of JSP/HTML books and I can't find a way of achieving this;
    basically I have a webpage that embeds a VRML file like so
    <EMBED SRC="/VRML/stair.WRL"
    TYPE="model/vrml"
    WIDTH="300"
    HEIGHT="300"
    VRML_SPLASHSCREEN="TRUE"
    VRML_DASHBOARD="TRUE"
    VRML_BACKGROUND_COLOR="#0066CC"
    CONTEXTMENU="TRUE"
    >
    This works fine, the problem is that I now have a servlet that dynamically generates the VRML file to be displayed, so I need a way of inserting this variable into the EMBED header, how do I do this?
    If it can't be done with JSP etc then how about a JavaScript solution?
    Anyway, ive tried a few things and Im out of ideas
    Cheers
    PS, the current JSP property finder;
    <jsp:useBean id="vrmlFileFinder"
         type="legato.VRMLBean"
         scope="request" />
    <jsp:getProperty name="vrmlFileFinder" property="fileName" />

    There are two issues here
    1 - generating the WRL file (from your servlet)
    2 - generating the EMBED tag in the HTML/JSP page
    These are two different requests to the web server.
    1- generating the WRL file:
    You say you have a servlet which generates the VRML code?
    Does it generate it to file, or output it directly?
    If it outputs it directly, just point the src of the tag to be your servlet
    ie
    <EMBED SRC= "/servlet/VRMLServlet"...
    This will invoke your servlet, and return the code to the browser. (ie as long as the servlet sends it a WRL text format, it can't tell the difference)
    2 - generating the EMBED tag:
    If you want to dynamically choose which file to include, then JSP would do it like this:
    <jsp:useBean id="vrmlFileFinder" type="legato.VRMLBean" scope="request" />
    <EMBED SRC="<jsp:getProperty name="vrmlFileFinder" property="fileName" />"...
    Remember that the JSP code gets executed first, so if the property evaluates to "/VRML/stair.WRL" all the browser will see is
    <EMBED SRC="/VRML/stair.WRL" - it doesn't see the JSP code at all.
    Hope this helps.
    Cheers,
    evnafets

  • JSP - Nested Jakarta Struts Logic Tags

    Hi,
    Simple question....
    Can Jakarta Struts Logic tags be nested when coding JSP's
    i.e.
    ==========================================
    <logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request">
    <logic:greaterEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <logic:lessEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getMaxPage()%>'>
    <logic:equal name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <jsp:getProperty name="searchSizeTracker" property="page_no"/>
    </logic:equal>
    <logic:notEqual name='searchSizeTracker' property='page_no' value='<%searchActionForm.getCurrentPage()%>'>
    <a href="<%=request.getContextPath()%>/performSearch.do?pageRequired=<bean:write name='searchSizeTracker' property='page_no'/>&action_id=<bean:write name='searchActionForm' property='currentActionId'/>&searchType=<bean:write name='searchActionForm' property='searchType'/>&currentScreen=search_reorder"><jsp:getProperty name="searchSizeTracker" property="page_no"/>
    </a>
    </logic:notEqual>
    </logic:lessEqual>
    </logic:greaterEqual>
    </logic:iterate>
    =========================================
    The above code sample seems to fail to get past the first <logic:greaterEqual tag even though the conditions are met. And the iterator just loops throught the rest of the SearchTrackerObjects.
    I'm not sure whether logic tags can be nested as shown???
    Thanks in advance.

    Yes you should be able to nest logic tags like that.
    However you seem to be wanting to limit the values that are iterated through using the greaterEqual and lessEqual tags.
    I would suggest you use the offset and length attributes on the logic:iterate tag:
    something like:
    <logic:iterate id="searchSizeTracker" name="searchSizeTracker" type="uk.co.troutlure.bom.SearchTrackerObject" scope="request" offset ="<%searchActionForm.getCurrentPage()%>" length="<%searchActionForm.getMaxPage() - searchActionForm.getCurrentPage()%>">Cheers,
    evnafets

  • My application gives "Error in parsing taglib 'tagLib' tag in web.xml "

    Hi ,
    My Portal application developed completely on JSP Dynpages and JSPs gives <b>at times</b> the following error
    "Error in parsing taglib 'tagLib' tag in web.xml or .tld file of the taglib library.."
    I know that this error comes when the taglib declared in the jsp and portalapp.xml doesn't match. But I have made sure that they are the same.
    Can anyone give me an opinion as to why this problem is occuring inspite of making sure that the taglib declaration are same in jsp and portalapp.xml.
    Is the problem on the server side??
    Valuable suggestions would be rewarded!!
    -Thanks
    Padmarajan.

    Hi Anagha,
    No the application is accessed using an http link.
    I am unable to make out why this error comes up only once in a while and when you refresh the screen it starts working fine.
    This is my big issue because when
    -Thanks
    Padmarajan.

  • How come property attribute of jsp:getProperty  knows which method to call

    Hello friends,
    I could not understand How come property attribute of <jsp:getProperty knows which method to call
    <jsp:useBean id="test" class="BeanTest.testing" scope="page" />
    <jsp:getProperty name="test" property="name" />
    there is no method "name" in testing.class file
    if u see the existing examples "date" given in TOMCAT , it is using many <jsp:getProperty tag, but the property name is not equal to the method method name in the Bean file
    thanks,

    First do you know what a
    bean property sheet is?
    If not say so.
    Second, to your question
    The Java Runtime Environment (JRE) uses introspection to identify the appropriate get() or set() methods of that bean. What is introspection?
    Introspection is a process that allows the class to expose its accessable variables and methods and allows other classes to see what they can do with that class when requested. Eg:
    public class MyBean{
    private String someValue = null;
    public MyBean(){
    someValue = "Some String Value";
    //Introspection will reveal this method
    public String getSomeValue(){
    return someValue;
    } and
    <jsp:getProperty name="...." property="someValue" />
    will call the getSomeValue() method

  • How to call the form bean value on jsp withthe help of jstl tag

    hi
    all friends
    i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
    i now how to retrive the value through jsp:logic
    eg. <logic:empty name="userListForm" property="users">
    NO USER FOUND
    </logic:empty>
    see * userListForm mean formbaen name.
    * users means collection object.
    so how can i write above e.g in jstl

    You use the jstl core:if or core:choose combined with the EL:
    <c:if test="${empty users.userListForm}">
    NO USERS FOUND
    </c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful.

  • Jsp:getProperty

    Hi!
    I create a JSP page wich is going to process a bean put in the session by other jsp page.
    The code is like this:
    <jsp:useBean id="realty" scope="session" class="com.admin.bean.Realty" />
        <jsp:setProperty name="realty" property="*" /> For the page where the user is going to enter the information and...
    <jsp:useBean id="realty" scope="session" type="com.admin.bean.Realty" />
        <jsp:getProperty name="realty" property="*"/> for the page where the data processing is going to occur.
    The problem I have is that once I enter the informacion on the page1 and press submit. I got the following error:
    Cannot find any information on property '*' in a bean of type 'com.admin.bean.Realty'
    Can sombody help me with that??
    Thanks

    There is no property "*" applicable to a get[/i]Property.
    With [i]setProperty, it makes sense, because you are telling the computer set ALL the properties of the bean which have corresponding parameters in the request.
    However getProperty is designed to display/return one property. How could you display multiple properties? So * makes no sense in that case.

  • Master-detail jsp for bc4j using JBO tags

    I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
    Thanks for your help.

    I know you're having a problem upgrading, but...
    Could you upgrade to 9.0.3 and tell us what problems you're encountering?
    Thanks.
    Sung

Maybe you are looking for