Thanks for your help Lukasz! The code you gave me was really really helpful and I was able to popup the usr list. But I got some error when I added the update and delete link into the same page.
Here is the snapshot of my userList.jsp: <table class="userTable"> <tr> <th><s:text name="User Name:" /></th> <th><s:text name="City:" /></th> <th><s:text name="State:" /></th> <th><s:text name="Description:" /></th> </tr> <s:iterator value="userList" status="userTable_stat"> <s:url var="updateUrl" action="updateUser" namespace="user"> <s:param name="userId" value="id" /> </s:url> <s:url var="deleteUrl" action="deleteUser" namespace="user"> <s:param name="userId" value="id" /> </s:url> <tr class="<s:if test="#userTable_stat.odd == true">odd</s:if><s:else>even</s:else>"> <td><s:property value="name" /></td> <td><s:property value="city" /></td> <td><s:property value="state" /></td> <td><s:property value="description" /></td> <td><s:a href="%{updateUrl}"> <s:property value="id"/><s:textfield>Update</s:textfield> </s:a></td> <td><s:a href="%{deleteUrl}"> <s:property value="id" /><s:textfield>Delete</s:textfield> </s:a></td> </tr> </s:iterator> </table> and my struts.xml mappings are: <action name="userList" class="UserAction" method="userList"> <result>/pages/userList.jsp</result> </action> <action name="updateUser" class="UserAction" method="updateUser"> <result name="failure">/login.jsp</result> <result>/pages/updateUser.jsp</result> </action> <action name="deleteUser" class="UserAction" method="deleteUser"> <result>/confirmation.jsp</result> </action> But when I tried to call the userList after adding the update and delete links the following error came up: SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /pages/userList.jsp(47,2) Attribute var invalid for tag url according to TLD at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236) at org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1198) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:819) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393) at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:838) at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1512) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2393) at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2399) at org.apache.jasper.compiler.Node$Root.accept(Node.java:489) at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2343) at org.apache.jasper.compiler.Validator.validate(Validator.java:1737) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:165) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:281) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337) I really don't know what should I do. Also please tell me whether the struts.xml snapshot is good or not. Thanx for your help in advance. Lukasz Lenart wrote: > > <table> > <tr> > <td><s:text name="label.user.id"/></td> > <td><s:text name="label.user.login"/></td> > <td><s:text name="label.user.firstname"/></td> > <td><s:text name="label.user.lastname"/></td> > </tr> > <s:iterator value="userList" var="user"> > <s:url var="editUrl" action="edit"> > <s:param name="userId" value="id"/> > </s:url> > <tr> > <td><s:a href="%{editUrl}"><s:property > value="id"/></s:a></td> > <td><s:property value="logon"/></td> > <td><s:property value="firstName"/></td> > <td><s:property value="lastName"/></td> > </tr> > </s:iterator> > </table> > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/need-some-help-regarding-Display-List-and-Update-In-Struts2-tp18579243p18600253.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]