You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2003/04/01 07:36:58 UTC

DO NOT REPLY [Bug 18549] New: - Embedded tag raises JSP-Exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18549>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18549

Embedded tag raises JSP-Exception

           Summary: Embedded tag raises JSP-Exception
           Product: Struts
           Version: 1.0.2 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: markus@brandstaetter.cc


I have the following source in one of my JSP-Pages:

<logic:notPresent name="itemGroup" scope="session">
 <html:select property="option">
  <html:options collection="itemGroups" property="internal" 
labelProperty="levelName"/>
 </html:select>
</logic:notPresent>
				
<logic:present name="itemGroup" scope="session">
 <html:select property="option" value="<bean:write name="itemGroup" 
property="description" filter="false"/>">
  <html:options collection="itemGroups" property="internal" 
labelProperty="levelName"/>
 </html:select>
</logic:present>

I'm testing here if a session-bean is available or not - and if it is I want 
to show their value as selected-value in a select-box. Altough "itemGroup" is 
not present, I receive an error in the line with the embedded tag ( 
<html:select property="option" value="<bean:write name="itemGroup" 
property="description" filter="false"/>">). In case I remove the embedded tag 
it works fine (of course), but inserting some plain text shows, that it 
doesn't care about the lines between (as wanted). So the question is: why does 
he parse the area which handles the non-present "itemGroup" if he obviously 
knows that it can't be there???

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