Re: Bug
"Rashmi Rubdi" <[email protected]>
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <[email protected]> |
On 4/29/07, Martin Cooper <[email protected]> wrote: > Like I said before, make sure your web.xml file is referencing > Servlets 2.4or later. You can have all the latest software, but if > your > web.xml file is referencing an earlier version of the spec, it won't make > any difference. Hi Venu, Martin is right about the web.xml conforming to the servlet spec, according to this chart http://tomcat.apache.org/whichversion.html Tomcat 5.5.x is based on Servlet 2.4 and JSP 2.0 specifications. Since you are using Tomcat 5.5.x please make sure the <web-app> node web.xml is exactly as follows: <?xml version="1.0"> <web-app 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"> </web-app> After making the above change the EL should evaluate. EL (expression language) is for example: ${employees} Please note that <web-app> is different for Servlet 2.5 Hope this helps. -Rashmi > > -- > Martin Cooper > > > On 4/28/07, Venu Madhav.Yelamanchili <[email protected]> wrote: > > > > Rashmi Rubdi wrote: > > > I'm sorry for mentioning a conflicting configuration of JSP, JSTL in > > > my post above. > > > > > > The latest nightly release of DataGrid was on 20060829, which is much > > > more recent than the thread I referred to above which was dated on > > > 2004. So, please ignore my replies above. > > > > > > With very limited information of the problem it is difficult to offer > > > a solution, as Martin has mentioned please provide relevant details. > > > > > > Post the versions JSP, Servlet, Web Server you are using. > > > > > > Also post full relevant code that will help us in recreating the > > problem. > > > > > > -Rashmi > > > > > > > > > On 4/28/07, Martin Cooper <[email protected]> wrote: > > >> *item* or *items*? What is the *exact* error message, and what is the > > >> *exact* syntax you are using? > > >> > > >> The "Runtime Expression Evaluation" column in the documentation > > >> refers to > > >> JSP scripting expressions, not the expression language you are using. > > >> > > >> If you're not already using JSP 2.x, I would recommending doing so and > > >> ensuring that your web.xml file is referencing Servlets 2.4 and not an > > >> earlier version. > > >> > > >> -- > > >> Martin Cooper > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [email protected] > > > For additional commands, e-mail: [email protected] > > > > > > > > Am using JDK 5.0 and JEE 1.4 with > > Servlet Spec:2.5 > > JSP spec :2.1 > > Server : Apache Tomcat 5.5.17 > > JSTL :1.1 > > I tried to use one of your datagrid examples. But all the examples > > showed the same problem. The code is shown below. The code fragment > > marked in bold red gave problem for me. > > <html> > > <head> > > <title>Jakarta Data Grid Taglib Example 4</title> > > <style> > > th a:link { text-decoration: none; color: #3C4D81 } > > > > th a:visited { text-decoration: none; color: #3C4D81 } > > > > .item { background-color: #303D66; color: white; > > font-weight: bold } > > > > .hiliterows { background-color: #CDBD4F } > > > > .alternaterows { background-color: #D3C971; border: 1px solid #000000 > > } > > > > .header { background-color: #F4F7FC; border-top: 2px solid > > #D7E1F2; border-bottom: 2px solid #D7E1F2 } > > > > .footer { background-color: #F4F7FC; border-top: 2px solid > > #D7E1F2; border-bottom: 2px solid #D7E1F2 } > > > > .datagrid { border: 1px solid #AEBBD4; color: #3C4D81; > > font-family: arial; font-size: 10pt; font-weight: bold } > > > > </style> > > <meta http-equiv="Content-Type" content="text/html; > > charset=iso-8859-1"> > > </head> > > <body> > > <h3>Example 4</h3> > > <ui:dataGrid* items="${employees}"* var="employee" name="datagrid1" > > cellPadding="0" cellSpacing="0" scroll="true" width="600" height="100" > > styleClass="datagrid"> > > <columns> <column width="100"> > > <header value="Select" hAlign="center" styleClass="header"/> > > <item hAlign="center" styleClass="item"> > > <![CDATA[ <input type="radio" name="employee" > > value="${employee.firstName} ${employee.lastName}"/> ]]> > > </item> > > <footer styleClass="footer"/> > > </column> > > <column width="100" order="true"> > > <header value="Name" hAlign="center" styleClass="header"/> > > <item value="${employee.firstName} ${employee.lastName}" > > hAlign="left" styleClass="item"/> > > <aggregate function="count" var="total"/> > > <footer value="Total ${total}" hAlign="left" styleClass="footer"/> > > </column> > > <column width="200" order="true"> > > <header value="Salary" hAlign="center" styleClass="header"/> > > <item value="${employee.salary}" hAlign="right" > > pattern="$#,##0.00" styleClass="item"/> > > <aggregate function="avg" pattern="$#,##0.00" var="total"/> > > <footer value="Average ${total}" hAlign="right" > > styleClass="footer"/> > > </column> > > <column width="200" order="true"> > > <header value="Bonus" hAlign="center" styleClass="header"/> > > <item value="${employee.bonus}" hAlign="right" > > pattern="$#,##0.00" styleClass="item"/> > > <aggregate function="avg" pattern="$#,##0.00" var="total"/> > > <footer value="Average ${total}" hAlign="right" > > styleClass="footer"/> > > </column> > > </columns> <footer show="true"/> > > <rows hiliteStyleClass="hiliterows"/> > > <order imgAsc="up.gif" imgDesc="down.gif"/> > > </ui:dataGrid> > > <p><a href="index.jsp">Back to index</a></p> > > </body> > > </html> > > > > -- > > Regards, > > > > Venu madhav.Yelamanchili > > > > Software Trainee > > > > Miracle Software Systems > > > > Email: [email protected] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >