----- Original Message ---- > From: Paweł Wielgus <[email protected]> > To: Struts Users Mailing List <[email protected]> > Sent: Tuesday, August 18, 2009 1:18:13 PM > Subject: Re: [struts2] <s:checkbox /> problem > > Hi Tommy, > add theme="simple" inside checkbox to remove extra td and tr. > > > Best greetings, > Paweł Wielgus. > > > > 2009/8/18 Tommy Pham : > > Hi, > > > > I'm new to struts 2 (2.1.6) and having some problems implementing the > . After following the bootstrap tutorial, I decided to work on my > project. Based on the tags reference for checkbox > http://struts.apache.org/2.1.6/docs/checkbox.html, or > in the jsp page should yield the same html output as > . However, I get a HTTP Status 500 exception: > > > > org.apache.jasper.JasperException: Expression parameters.name is undefined > > on > line 23, column 32 in template/simple/checkbox.ftl. - Class: > freemarker.core.TemplateObject > > File: TemplateObject.java > > Method: assertNonNull > > Line: 124 - freemarker/core/TemplateObject.java:124:-1 > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416) > > 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.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:73) > > > > Using the dispatcher.FilterDispatcher (I know it's deprecated since 2.1.3) > gives this exception: > > > > org.apache.jasper.JasperException: Expression parameters.name is undefined > > on > line 23, column 32 in template/simple/checkbox.ftl. - Class: > freemarker.core.TemplateObject > > File: TemplateObject.java > > Method: assertNonNull > > Line: 124 - freemarker/core/TemplateObject.java:124:-1 > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416) > > 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) > > > > I then try with . I get this for html output: > > > > > > > > > > > > > > > value="true" /> > > > > > > Is this supposed happen? Why the extra & tags? Am I supposed to use > my own freemarker template? > > > > TIA, > > Tommy > >
Hi Pawel, Thanks for the quick reply. If I apply the struts.ui.theme=simple in my struts.xml, it should be set for the entire application right? Thanks, Tommy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

