I've just setup Struts to work with Tomcat under Win2K. Everything works
fine. What I noticed is that the generated page is different. The
quotations around true are not present when I'm running under Win2K. So I
get  ....setLocale(true) not ....setLocale("true"). If someone knows what
could be causing the difference that would be a great help. I used the
.tar.gz binary distribution for my RedHat box and the .zip distribution for
the Win2K box.

Renee Petris
[EMAIL PROTECTED]



                                                                                       
                                         
                    Renee.Petris@                                                      
                                         
                    majiq.com            To:     [EMAIL PROTECTED]        
                                         
                                         cc:                                           
                                         
                    06/06/2001           Subject:     Problem with struts example      
                                         
                    05:29 PM                                                           
                                         
                    Please                                                             
                                         
                    respond to                                                         
                                         
                    struts-user                                                        
                                         
                                                                                       
                                         
                                                                                       
                                         




Has anyone run into this problem? When I try to run the struts-example page
I get the following error:

org.apache.jasper.JasperException: Unable to compile class for
JSP/home/carol/web/enhydra3.1/work/Struts/_0002findex_0002ejspindex_jsp_0.java:72:


Incompatible type for method. Can't convert java.lang.String to boolean.
                _jspx_th_html_html_11.setLocale("true");


The java code generated which causes this error looks like:

                org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_11
= new org.apache.struts.taglib.html.HtmlTag();
                _jspx_th_html_html_11.setPageContext(pageContext);
                _jspx_th_html_html_11.setParent(null);
                _jspx_th_html_html_11.setLocale("true");

I've only got one version of struts.jar, the one that was packed in
struts-example.war. I'm running struts using Enhydra 3.1 on RedHat 7.1.

Renee Petris
[EMAIL PROTECTED]





Reply via email to