Include the html taglib in your jsp

-----Original Message-----
From: Andy Engle [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 15, 2003 4:54 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to