-----Original Message-----
From: Tommy Pham [mailto:tommy...@yahoo.com] 
Sent: Tuesday, August 18, 2009 6:05 PM
To: Struts Users Mailing List
Subject: Re: [struts2] <s:checkbox /> problem

----- Original Message ----
> From: Paweł Wielgus <poulw...@gmail.com>
> To: Struts Users Mailing List <user@struts.apache.org>
> 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?

Correct, it should.  I don't know if this will help, but I didn't like the 
checkbox template for my application, and posted this:
http://mikeski.net/site/node/16

It might help.

Mike.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to