Here is a example of a page i am making,
where de strutshtml defines de

int the web.xml
  <taglib>
     <taglib-uri>struts-html.tld</taglib-uri>
     <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
  </taglib>
  <taglib>
     <taglib-uri>struts-logic.tld</taglib-uri>
     <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
  </taglib>
  <taglib>
     <taglib-uri>struts-bean.tld</taglib-uri>
     <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
  </taglib>


<%@ taglib uri="struts-bean.tld" prefix="strutsbean" %>
<%@ taglib uri="struts-html.tld" prefix="strutshtml" %>

<strutshtml:form action="demand.do"  name="DemandForm" type="Library.
DemandForm">
    <p>
    <table>
    <tr>
    <td> Adding a demand
  </tr>
     <tr>
     <td>NAME:
     <td><strutshtml:text property="name" size="20" maxlength="20"/>
    </tr>
    <tr>
     <td>CATEGORY:

     <td><strutshtml:select property="catSelected" size="1">
          <option value="">&nbsp;</option>
               <strutshtml:options collection="ColCategory" property="id"
     labelProperty="description"/>
     </strutshtml:select>
    </tr>
    <tr>
     <td>SELECT:
     <td><strutshtml:text property="subject" size="20" maxlength="20"/>
    </tr>
    <tr>
  <td>QUESTION:
    </tr>
    <tr>
  <td colspan="2"><strutshtml:textarea property="question" cols="50" rows="20"/>
    </tr>
    <tr >
    <td colspan="2"><center><strutshtml:submit value="send"/></center>
    </tr>
    </table>
 </strutshtml:form>



Shirin Fathima  (3/05/2002  8:12):
>I'm using the struts framework...and the View is a simple jsp page.
>What I found is that the tags aren't being recognised.
>
>> ----------
>> From:  [EMAIL PROTECTED]
>> Reply To:   Struts Users Mailing List
>> Sent:  Friday, May 03, 2002 1:36 PM
>> To:    Struts Users Mailing List
>> Subject:    Re:html input elements don't work
>>
>> Are you just working with struts, or Jsp??
>>
>> Shirin Fathima  (3/05/2002  8:05):
>> >Hi,
>> >
>> >    The following simple code isn't working,
>> >
>> >      <html:form action="createText" method="GET">
>> >            Input:<html:text property="test" /> <br/>
>> >            <html:submit property="submit"/>
>> >       </html:form>
>> >
>> >   In the sense that, the text box and the button don't appear when I
>> call
>> >the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
>> >novice with struts.
>> >
>> >Thanks,
>> > Shirin
>> >
>> >
>> >--
>> >To unsubscribe, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>> >For additional commands, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>> >
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>


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

Reply via email to