You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Bolsover <da...@bolsover.com> on 2003/02/20 22:10:14 UTC

-el and tomcat 4.0

Hi all

I am having some problems with some jsp's that use the struts-el tags - they run fine under Tomcat
4.1.12 but refuse to compile under 4.0.

I seem to recall reading somewhere that there are come config changes needed to use struts 1.1 under
Tomcat 4.0 -- but I can't find the references now - so does anyone know the cause/solution to this
problem.

Thanks in anticipation

db

The following is a very small extract from the servletexception:


[ServletException in:/tiles/userupdatebody.jsp] Unable to compile class for JSP An error occurred at
line: 19 in the jsp file: /tiles/userupdatebody.jsp Generated servlet error: C:\Program Files\Apache
Tomcat 4.0\work\localhost\VisualWeb\tiles\userupdatebody$jsp.java:261: Invalid expression statement.
_jspx_th_html-el_hidden_0.setPageContext(pageContext); ^ An error occurred at line: 19 in the jsp
file: /tiles/userupdatebody.jsp Generated servlet error: C:\Program Files\Apache Tomcat
4.0\work\localhost\VisualWeb\tiles\userupdatebody$jsp.java:262: Invalid expression statement.
_jspx_th_html-el_hidden_0.setParent(_jspx_th_html_form_0); ^ An error occurred at line: 19 in the
jsp file: /tiles/userupdatebody.jsp Generated servlet error: C:\Program Files\Apache Tomcat
4.0\work\localhost\VisualWeb\tiles\userupdatebody$jsp.java:263: Invalid expression statement.
_jspx_th_html-el_hidden_0.setName("rows"); ^ An error occurred at line: 19 in the jsp file:
/tiles/userupdatebody.jsp Generated servlet error: C:\Program Files\Apache Tomcat
4.0\work\localhost\VisualWeb\tiles\userupdatebody$jsp.java:264: Invalid expression statement.
_jspx_th_html-el_hidden_0.setProperty("username"); ^ An error occurred at line: 19 in the jsp file:
/tiles/userupdatebody.jsp Generated servlet error: C:\Program Files\Apache Tomcat
4.0\work\localhost\VisualWeb\tiles\userupdatebody$jsp.java:265: Invalid expression statement.
_jspx_th_html-el_hidden_0.setValue("${rows.UserName}"); ^ An error occurred at line: 19 in the jsp
file: /tiles/userupdatebody.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0


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


Re: -el and tomcat 4.0

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "David" == David Bolsover <da...@bolsover.com> writes:

    David> Hi all
    David> I am having some problems with some jsp's that use the struts-el tags - they run fine under Tomcat
    David> 4.1.12 but refuse to compile under 4.0.

    David> I seem to recall reading somewhere that there are come config changes needed to use struts 1.1 under
    David> Tomcat 4.0 -- but I can't find the references now - so does anyone know the cause/solution to this
    David> problem.

    David> Thanks in anticipation

    David> db

    David> The following is a very small extract from the servletexception:

    David> Tomcat 4.0\work\localhost\VisualWeb\tiles\userupdatebody$jsp.java:261: Invalid expression statement.
    David> _jspx_th_html-el_hidden_0.setPageContext(pageContext); ^ An error occurred at line: 19 in the jsp

Why are you trying to use Tomcat 4.0?  There were numerous problems which were
found and fixed when the first 4.0 release came out.

It's possible you could get past this problem by changing your tag prefix from
"html-el" to "htmlel" (or something like that).  I'm guessing from the error
message that the dash in the prefix looks like a subtraction sign in the
parser.  I wouldn't be surprised if you hit other problems, however.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net   ; SCJP; SCWCD




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