You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Woodchuck <wo...@yahoo.com> on 2005/06/16 23:14:04 UTC

how to debug jsp compilation error in Tomcat 5.5 ?

hihi all!!

this is my 8th jakarta mailing list and my first question to
taglibs-user!! :)

my question is, how do i debug something like this:

org.apache.jasper.JasperException: <h3>Validation error messages from
TagLibraryValidator for c_rt</h3><p>894: Illegal text inside "c:choose"
tag: "<table ...".</p><p>894: Illegal text inside "c:choose" tag:
"<tr>...".</p><p>894: Illegal text inside "c:choose" tag: "<td
sty...".</p><p>894: Illegal text inside "c:choose" tag:
"</td>...".</p><p>894: Illegal text inside "c:choose" tag:
"<td>...".</p><p>923: Illegal text inside "c:choose" tag:
"</td>...".</p><p>923: Illegal text inside "c:choose" tag:
"</tr>...".</p><p>923: Illegal text inside "c:choose" tag:
"</table...".</p>

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)

org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
	org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)



to give some context about this, i am upgrading my web app from:
 - windows 2000
 - jdk1.4.2_07
 - tomcat 4.1.24
 - struts 1.1

to this:
 - windows 2003 server
 - jdk1.5.0_03
 - tomcat 5.5.9
 - struts 1.2.7

my web app worked fine in my original setup, but in the new
configuration the majority of pages are fine, but i'm getting this
error on one page which i do not know why.

i have done the following:
  - changed to version 2.4 dtd in my web.xml
  - changed to version 1.2 dtd in struts-config.xml
  - referenced the run-time TLDs in my jsps (ie. core_rt, fmt_rt)

but now i get this TagLibraryValidator error messages.

how do i go about finding what my problem is?  how do i use the unique
id's given in the error message?  (ie. the 894 or 923 id numbers)

please and thanks!!
woodchuck

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Cannot pass get variable to the sql:param, still same

Posted by Gokhan <go...@mira-soft.com>.
Hello All,

I already tested with this setting before i post this mail.
Very interesting error i have in here. Still have the same reults.
I tried also go back to old version of JSTL too.
Any JSTL developer around?

Take care
Gokhan



Martin Cooper wrote:

>The first thing I would try is taking everything out of the
><sql:update> except the query string itself and the <sql:param>
>element, so that you're left with:
>
><sql:update dataSource="jdbc/zobarenk">
>    insert into test_table (testnumber_id) values (?)
>    <sql:param value="${param.testnumber}"/>
></sql:update>
>
>--
>Martin Cooper
>
>
>On 6/16/05, Gokhan <go...@mira-soft.com> wrote:
>  
>
>>  Hello,
>>
>>I just need to approve just something in site without disturbing general
>>MVC logic.
>>And decided JSTL sql:query facility.
>>
>>I am in test.jsp and i can send user to another page with
>><a href="another_page.jsp?testnumber=2">Another Page</a>
>>And on another_page.jsp i just need to insert this testnumber to table
>>as a parameter.
>>
>>I can see the value with <c:out value="${param.testnumber}"/>. yes
>>exactly i can see the number 2 on there.
>>it means i can get this value from param.testnumber right?
>>
>>When i want to assign this value to sql query
>>
>><sql:update dataSource="jdbc/zobarenk">
>>insert into test_table (testnumber_id) values (?)
>>
>><fmt:parseNumber var="roll" value="${param.testnumber}"/> //Since it is
>>integer
>><sql:param value="${roll}"/>
>>
>>or with <sql:param><%request.getParameter("testnumber");%></sql:param>
>>or with <sql:param><c:out value="${param.testnumber}"/></sql:param>
>>or assign variable directly to the page scope and get it from there with
>><c:set var="testnumber_sucks" value="${param.testnumber}" scope="page" />
>><sql:param value="${pageScope.testnumber_sucks}"/></sql:update>
>>
>>At the end of the all bloody ways i tried, i have this lovely error;
>>ERROR: null value in column "testnumber_id" violates not-null constraint
>>Because nothing inside of this lovely testnumber variable.
>>If i could have type conversion error i would be really happy, but i
>>have null.
>>
>>My question is, if this variable param.testnumber is empty or null how
>>can i see the value of this parameter with c:out ?
>>If i can see this bloody value how i can't insert it to the table with
>>sql:param with the methods above.
>>
>>Would it be related to _rt stuff or something?
>>I am using latest jstl 1.1.2 taglibs
>>
>>Take care all,
>>Gokhan
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>
>  
>


Re: whats up with sql:param

Posted by Martin Cooper <mf...@gmail.com>.
The first thing I would try is taking everything out of the
<sql:update> except the query string itself and the <sql:param>
element, so that you're left with:

<sql:update dataSource="jdbc/zobarenk">
    insert into test_table (testnumber_id) values (?)
    <sql:param value="${param.testnumber}"/>
</sql:update>

--
Martin Cooper


On 6/16/05, Gokhan <go...@mira-soft.com> wrote:
>   Hello,
> 
> I just need to approve just something in site without disturbing general
> MVC logic.
> And decided JSTL sql:query facility.
> 
> I am in test.jsp and i can send user to another page with
> <a href="another_page.jsp?testnumber=2">Another Page</a>
> And on another_page.jsp i just need to insert this testnumber to table
> as a parameter.
> 
> I can see the value with <c:out value="${param.testnumber}"/>. yes
> exactly i can see the number 2 on there.
> it means i can get this value from param.testnumber right?
> 
> When i want to assign this value to sql query
> 
> <sql:update dataSource="jdbc/zobarenk">
> insert into test_table (testnumber_id) values (?)
> 
> <fmt:parseNumber var="roll" value="${param.testnumber}"/> //Since it is
> integer
> <sql:param value="${roll}"/>
> 
> or with <sql:param><%request.getParameter("testnumber");%></sql:param>
> or with <sql:param><c:out value="${param.testnumber}"/></sql:param>
> or assign variable directly to the page scope and get it from there with
> <c:set var="testnumber_sucks" value="${param.testnumber}" scope="page" />
> <sql:param value="${pageScope.testnumber_sucks}"/></sql:update>
> 
> At the end of the all bloody ways i tried, i have this lovely error;
> ERROR: null value in column "testnumber_id" violates not-null constraint
> Because nothing inside of this lovely testnumber variable.
> If i could have type conversion error i would be really happy, but i
> have null.
> 
> My question is, if this variable param.testnumber is empty or null how
> can i see the value of this parameter with c:out ?
> If i can see this bloody value how i can't insert it to the table with
> sql:param with the methods above.
> 
> Would it be related to _rt stuff or something?
> I am using latest jstl 1.1.2 taglibs
> 
> Take care all,
> Gokhan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
>

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


whats up with sql:param

Posted by Gokhan <go...@mira-soft.com>.
  Hello,

I just need to approve just something in site without disturbing general 
MVC logic.
And decided JSTL sql:query facility.

I am in test.jsp and i can send user to another page with
<a href="another_page.jsp?testnumber=2">Another Page</a>
And on another_page.jsp i just need to insert this testnumber to table 
as a parameter.

I can see the value with <c:out value="${param.testnumber}"/>. yes 
exactly i can see the number 2 on there.
it means i can get this value from param.testnumber right?

When i want to assign this value to sql query

<sql:update dataSource="jdbc/zobarenk">
insert into test_table (testnumber_id) values (?)

<fmt:parseNumber var="roll" value="${param.testnumber}"/> //Since it is 
integer
<sql:param value="${roll}"/>

or with <sql:param><%request.getParameter("testnumber");%></sql:param>
or with <sql:param><c:out value="${param.testnumber}"/></sql:param>
or assign variable directly to the page scope and get it from there with
<c:set var="testnumber_sucks" value="${param.testnumber}" scope="page" />
<sql:param value="${pageScope.testnumber_sucks}"/></sql:update>

At the end of the all bloody ways i tried, i have this lovely error;
ERROR: null value in column "testnumber_id" violates not-null constraint
Because nothing inside of this lovely testnumber variable.
If i could have type conversion error i would be really happy, but i 
have null.

My question is, if this variable param.testnumber is empty or null how
can i see the value of this parameter with c:out ?
If i can see this bloody value how i can't insert it to the table with 
sql:param with the methods above.

Would it be related to _rt stuff or something?
I am using latest jstl 1.1.2 taglibs

Take care all,
Gokhan


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


Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by Woodchuck <wo...@yahoo.com>.
the final jsp is huge.  it is composed of many included jsps.  trust
me, it is pretty nasty.  i spent several solid hours on this so far.  i
manually assembled the jsp together (ie. as if there were no includes
at all) and it came to around 1700 lines long, and this is with all the
tags intact (ie. not the final html rendered form).  and i searched
everywhere i used <c:choose> to see if anything funny resembling the
error messages, but didn't see anything.

as i said, the jsp works fine without a hitch in my old setup.  without
any modifications at all to the jsp, it is choking in the new
Tomcat/JDK/Struts configuration.

how do i go about debugging such a problem?  is there a way to debug in
real-time the jsp as it's being assembled and compiled (ie. setting
breakpoints and stepping through the code)?  i'm at a loss at how to
debug this situation...  

woodchuck



--- David Schwartz <ds...@arrayone.com> wrote:

> Where's the jsp code?
> 
> Quoting Woodchuck <wo...@yahoo.com>:
> 
> >> hihi all!!
> >>
> >> this is my 8th jakarta mailing list and my first question to
> >> taglibs-user!! :)
> >>
> >> my question is, how do i debug something like this:
> >>
> >> org.apache.jasper.JasperException: <h3>Validation error messages
> from
> >> TagLibraryValidator for c_rt</h3><p>894: Illegal text inside
> "c:choose"
> >> tag: "<table ...".</p><p>894: Illegal text inside "c:choose" tag:
> >> "<tr>...".</p><p>894: Illegal text inside "c:choose" tag: "<td
> >> sty...".</p><p>894: Illegal text inside "c:choose" tag:
> >> "</td>...".</p><p>894: Illegal text inside "c:choose" tag:
> >> "<td>...".</p><p>923: Illegal text inside "c:choose" tag:
> >> "</td>...".</p><p>923: Illegal text inside "c:choose" tag:
> >> "</tr>...".</p><p>923: Illegal text inside "c:choose" tag:
> >> "</table...".</p>
> >>
> >>
>
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
> >>
> >>
>
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
> >>
> >>
>
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)
> >>
> >>
>
org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
> >> 
> org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
> >> 
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
> >> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
> >> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
> >> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
> >>
> >>
>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
> >>
> >>
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
> >>
> >>
>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
> >> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>
> >>
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
> >>
> >>
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
> >>
> >>
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
> >>
> >>
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
> >> 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> >> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>
> >>
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
> >>
> >>
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
> >>
> >>
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
> >>
> >>
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
> >> 
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
> >> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> >> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >>
> >>
> >>
> >> to give some context about this, i am upgrading my web app from:
> >>  - windows 2000
> >>  - jdk1.4.2_07
> >>  - tomcat 4.1.24
> >>  - struts 1.1
> >>
> >> to this:
> >>  - windows 2003 server
> >>  - jdk1.5.0_03
> >>  - tomcat 5.5.9
> >>  - struts 1.2.7
> >>
> >> my web app worked fine in my original setup, but in the new
> >> configuration the majority of pages are fine, but i'm getting this
> >> error on one page which i do not know why.
> >>
> >> i have done the following:
> >>   - changed to version 2.4 dtd in my web.xml
> >>   - changed to version 1.2 dtd in struts-config.xml
> >>   - referenced the run-time TLDs in my jsps (ie. core_rt, fmt_rt)
> >>
> >> but now i get this TagLibraryValidator error messages.
> >>
> >> how do i go about finding what my problem is?  how do i use the
> unique
> >> id's given in the error message?  (ie. the 894 or 923 id numbers)
> >>
> >> please and thanks!!
> >> woodchuck
> >>
> >> __________________________________________________
> >> Do You Yahoo!?
> >> Tired of spam?  Yahoo! Mail has the best spam protection around
> >> http://mail.yahoo.com
> >>
> >>
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> >>
> >>
> 
> 
> David Schwartz
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 



		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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


Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by David Schwartz <ds...@arrayone.com>.
Where's the jsp code?

Quoting Woodchuck <wo...@yahoo.com>:

>> hihi all!!
>>
>> this is my 8th jakarta mailing list and my first question to
>> taglibs-user!! :)
>>
>> my question is, how do i debug something like this:
>>
>> org.apache.jasper.JasperException: <h3>Validation error messages from
>> TagLibraryValidator for c_rt</h3><p>894: Illegal text inside "c:choose"
>> tag: "<table ...".</p><p>894: Illegal text inside "c:choose" tag:
>> "<tr>...".</p><p>894: Illegal text inside "c:choose" tag: "<td
>> sty...".</p><p>894: Illegal text inside "c:choose" tag:
>> "</td>...".</p><p>894: Illegal text inside "c:choose" tag:
>> "<td>...".</p><p>923: Illegal text inside "c:choose" tag:
>> "</td>...".</p><p>923: Illegal text inside "c:choose" tag:
>> "</tr>...".</p><p>923: Illegal text inside "c:choose" tag:
>> "</table...".</p>
>>
>>
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
>>
>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>>
>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:72)
>>
>> org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1549)
>> 	org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
>> 	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
>> 	org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
>>
>>
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
>>
>>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
>>
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
>> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
>>
>>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
>>
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
>>
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
>> 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
>>
>>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
>>
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
>>
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
>> 	org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>>
>>
>>
>> to give some context about this, i am upgrading my web app from:
>>  - windows 2000
>>  - jdk1.4.2_07
>>  - tomcat 4.1.24
>>  - struts 1.1
>>
>> to this:
>>  - windows 2003 server
>>  - jdk1.5.0_03
>>  - tomcat 5.5.9
>>  - struts 1.2.7
>>
>> my web app worked fine in my original setup, but in the new
>> configuration the majority of pages are fine, but i'm getting this
>> error on one page which i do not know why.
>>
>> i have done the following:
>>   - changed to version 2.4 dtd in my web.xml
>>   - changed to version 1.2 dtd in struts-config.xml
>>   - referenced the run-time TLDs in my jsps (ie. core_rt, fmt_rt)
>>
>> but now i get this TagLibraryValidator error messages.
>>
>> how do i go about finding what my problem is?  how do i use the unique
>> id's given in the error message?  (ie. the 894 or 923 id numbers)
>>
>> please and thanks!!
>> woodchuck
>>
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam?  Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>>
>>


David Schwartz

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


Re: [SOLVED] Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
Woodchuck <wo...@yahoo.com> wrote on 06/17/2005 11:18:17 AM:
> > The lists have been slow. Please do not send multiple copies :-)
> 
> i also noticed there seems to be multiple copies of my original post. 
> i do not know why, i only sent once. 

OK, sorry about the banter ;-) It seems we had quite a few incidences like 
that yesterday.

> aha!  just as you stated, i found HTML tags sitting within <c:choose>
> but outside of <c:when> and <c:otherwise>
>
> well, i guess this was ok in Struts 1.1 but not anymore in Struts 1.2.7
> (or is this an unintentional change?)

The message is produced by the standard's TLVs (JSTL). The behavior you 
are seeing is expected (the semantics of c:choose means the intent of 
having template text outside a legal child is unclear). Not sure why it 
worked for you before.

> 
> thanks, Rahul, and everyone that tried to help! :)

You're welcome.

-Rahul

[SOLVED] Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by Woodchuck <wo...@yahoo.com>.
--- Rahul P Akolkar <ak...@us.ibm.com> wrote:

> Woodchuck <wo...@yahoo.com> wrote on 06/17/2005 09:38:52 AM:
> > hi Rahul,
> > 
> > sorry somehow i missed seeing your response until now..
> 
> The lists have been slow. Please do not send multiple copies :-)

i also noticed there seems to be multiple copies of my original post. 
i do not know why, i only sent once.  but at the time i e-mailed, i
know the mailing list was experiencing some issues and i have seen
other ppl's posts multiplied many times as well all happening around
the same time period.  

the jakarta mailing lists have been flaky ever since it had lots of
problems a few weeks ago.... since then it has not been the same and
sometimes i still receive a message saying my post did not go through
because my e-mail address is not subscribed to the list -- but this
message comes *after* my message is successfully posted to the list!

it seems it is still not working 100%

> 
> > > Make sure <c:choose> contains no non-whitespace text, outside of
> > > child 
> > > <c:when> and <c:otherwise> elements.
> > 
> > ok, i will definitely check this right now.  what about
> comments?...
> > can comments such as <%-- my comment blah blah --%> exist outside
> the
> > <c:when> and <c:otherwise> elements (within <c:choose>)?
> 
> That is fine. You shouldn't have HTML / XML style comments (thats
> part of 
> template text).

aha!  just as you stated, i found HTML tags sitting within <c:choose>
but outside of <c:when> and <c:otherwise>

well, i guess this was ok in Struts 1.1 but not anymore in Struts 1.2.7
(or is this an unintentional change?)

thanks, Rahul, and everyone that tried to help! :)

woodchuck


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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


Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
Woodchuck <wo...@yahoo.com> wrote on 06/17/2005 09:38:52 AM:
> hi Rahul,
> 
> sorry somehow i missed seeing your response until now..

The lists have been slow. Please do not send multiple copies :-)

> > Make sure <c:choose> contains no non-whitespace text, outside of
> > child 
> > <c:when> and <c:otherwise> elements.
> 
> ok, i will definitely check this right now.  what about comments?...
> can comments such as <%-- my comment blah blah --%> exist outside the
> <c:when> and <c:otherwise> elements (within <c:choose>)?

That is fine. You shouldn't have HTML / XML style comments (thats part of 
template text).

-Rahul

Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by Woodchuck <wo...@yahoo.com>.
hi Rahul,

sorry somehow i missed seeing your response until now..

--- Rahul P Akolkar <ak...@us.ibm.com> wrote:

> Woodchuck <wo...@yahoo.com> wrote on 06/16/2005 05:14:04 PM:
> > hihi all!!
> > 
> > this is my 8th jakarta mailing list and my first question to
> > taglibs-user!! :) <snip/>
> 
> Welcome :-)

thanks! :)


> 
> > my question is, how do i debug something like this:
> > 
> > org.apache.jasper.JasperException: <h3>Validation error messages
> from
> > TagLibraryValidator for c_rt</h3><p>894: Illegal text inside
> "c:choose"
> > tag: "<table ...".</p><p>894: Illegal text inside "c:choose" tag: 
> <snap/>
> 
> Make sure <c:choose> contains no non-whitespace text, outside of
> child 
> <c:when> and <c:otherwise> elements.

ok, i will definitely check this right now.  what about comments?...
can comments such as <%-- my comment blah blah --%> exist outside the
<c:when> and <c:otherwise> elements (within <c:choose>)?

woodchuck


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

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


Re: how to debug jsp compilation error in Tomcat 5.5 ?

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
Woodchuck <wo...@yahoo.com> wrote on 06/16/2005 05:14:04 PM:
> hihi all!!
> 
> this is my 8th jakarta mailing list and my first question to
> taglibs-user!! :) <snip/>

Welcome :-)

> my question is, how do i debug something like this:
> 
> org.apache.jasper.JasperException: <h3>Validation error messages from
> TagLibraryValidator for c_rt</h3><p>894: Illegal text inside "c:choose"
> tag: "<table ...".</p><p>894: Illegal text inside "c:choose" tag: 
<snap/>

Make sure <c:choose> contains no non-whitespace text, outside of child 
<c:when> and <c:otherwise> elements.

-Rahul