You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hookom, Jacob" <Ja...@redline.mckhboc.com> on 2003/12/15 23:48:45 UTC

RE: Tags between custom tags not evaluating

Include the html taglib in your jsp

-----Original Message-----
From: Andy Engle [mailto:struts@andyengle.com] 
Sent: Monday, December 15, 2003 4:54 PM
To: struts-user@jakarta.apache.org
Subject: Tags between custom tags not evaluating

Hi all,

I am writing a web application in which I would like to have a custom
tag that shows some HTML (using some Struts-Form tags) if the tag
evaluates to true.  But the problem is that my tag isn't interpreting
the tags between my custom tags, so my form never shows up.  Here is
what a portion of the source code looks like:


<app:checkLogon showIf="notAuthenticated">

  <html:form action="/login" method="POST">
    Username: <html:text property="username" size="10" maxlength="10"/>
    Password: <html:password property="password" size="10"
maxlength="10" redisplay="false"/>
    <br><br>

    <html:submit value="Submit"/>
    <html:reset/>
  </html:form>

</app:checkLogon>


...but when my page is rendered, the <html:form> tags aren't being
evaluated, so they are present in my HTML code:


  <html:form action="/login" method="POST">
    Username: <html:text property="username" size="10" maxlength="10"/>
    <br>
    Password: <html:password property="password" size="10"
maxlength="10" redisplay="false"/>
    <br><br>

    <html:submit value="Submit"/>
    <html:reset/>
  </html:form>


Which means my form never shows up on the page.  If I take out my
<app:checkLogon> tags, then all is well.  Otherwise, all is not well.

If someone could point out to me what the problem is I'd really
appreciate it.  If you need my source code for the tag handler I'd be
glad to send that along as well.  Thanks very much!


Andy

 


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

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


RE: Tags between custom tags not evaluating

Posted by Andy Engle <st...@andyengle.com>.
"Hookom, Jacob" <Ja...@redline.mckhboc.com> wrote:

> Include the html taglib in your jsp

Actually, I have that in there already, I just didn't show it in my
original message.  The JSP looks something like this:


<html:html>
<app:checkLogon showIf="notAuthenticated">

  <html:form action="/login" method="POST">
    Username: <html:text property="username" size="10" maxlength="10"/>
    Password: <html:password property="password" size="10"
      maxlength="10" redisplay="false"/>
    <br><br>

    <html:submit value="Submit"/>
    <html:reset/>
  </html:form>

</app:checkLogon>
</html:html>



Andy



> -----Original Message-----
> From: Andy Engle [mailto:struts@andyengle.com] 
> Sent: Monday, December 15, 2003 4:54 PM
> To: struts-user@jakarta.apache.org
> Subject: Tags between custom tags not evaluating
> 
> Hi all,
> 
> I am writing a web application in which I would like to have a custom
> tag that shows some HTML (using some Struts-Form tags) if the tag
> evaluates to true.  But the problem is that my tag isn't interpreting
> the tags between my custom tags, so my form never shows up.  Here is
> what a portion of the source code looks like:
> 
> 
> <app:checkLogon showIf="notAuthenticated">
> 
>   <html:form action="/login" method="POST">
>     Username: <html:text property="username" size="10"
> maxlength="10"/>
>     Password: <html:password property="password" size="10"
> maxlength="10" redisplay="false"/>
>     <br><br>
> 
>     <html:submit value="Submit"/>
>     <html:reset/>
>   </html:form>
> 
> </app:checkLogon>
> 
> 
> ...but when my page is rendered, the <html:form> tags aren't being
> evaluated, so they are present in my HTML code:
> 
> 
>   <html:form action="/login" method="POST">
>     Username: <html:text property="username" size="10"
> maxlength="10"/>
>     <br>
>     Password: <html:password property="password" size="10"
> maxlength="10" redisplay="false"/>
>     <br><br>
> 
>     <html:submit value="Submit"/>
>     <html:reset/>
>   </html:form>
> 
> 
> Which means my form never shows up on the page.  If I take out my
> <app:checkLogon> tags, then all is well.  Otherwise, all is not well.
> 
> If someone could point out to me what the problem is I'd really
> appreciate it.  If you need my source code for the tag handler I'd be
> glad to send that along as well.  Thanks very much!
> 
> 
> Andy
> 
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


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