struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John.E.Gr...@mortgage.wellsFargo.COM
Subject RE: html:select woes
Date Fri, 20 Dec 2002 15:23:47 GMT
I see now that my opening form tag ended with a "/".  Duh.  What a
difference a day makes.

thanks

john

-----Original Message-----
From: Karr, David [mailto:david.karr@attws.com] 
Sent: Thursday, December 19, 2002 5:55 PM
To: Struts Users Mailing List
Subject: RE: html:select woes


You need to have an "html:form" element.  It needs to encapsulate your
"select" and "submit" elements.  It needs to specify your action path. Look
at the "struts-exercise-taglib" and numerous other examples for building a
form with form elements.

> -----Original Message-----
> From: John.E.Gregg@mortgage.wellsFargo.COM
> 
> Hi all,
> 
> I'm trying to figure out how to use the html:select tag and am having 
> no luck.  When I execute the jsp, I'm getting "Cannot find bean
> under name
> org.apache.struts.taglib.html.BEAN."  I've looked at the docs and the
> html-select.jsp example but can't see what's different about 
> my case.  My
> struts-config file has this:
> 
> <form-bean name="loggersForm" type="com.wfsc.cam.ui.LoggersForm"/>
> 
> and this:
> 
> <action path="/loggers" 
> 	  type="com.wfsc.cam.actions.HelloAction" 
> 	  name="loggersForm" 
> 	  input="/jsp/loggers.jsp" 
> 	  validate="false"
> 	  scope="session">
> 	<forward name="hello" path="/jsp/loggers.jsp"/>
> </action>
> 
> I've tried with and without the "input" attr.  My LoggersForm class 
> extends ActionForm and has one String property called "newLevel"
> that's null by
> default.  I also have a reset() method that nulls-out 
> newLevel.  My jsp does
> this:
> 
> <html:html>
> <jsp:useBean id="loggersForm" scope="session"
> class="com.wfsc.cam.ui.LoggersForm"/><html:form action="/loggers.do"/> 
> <html:select property="newLevel"> <html:option 
> value="one">One</html:option> </html:select>
> <html:submit>Submit</html:select>
> </html:html>
> 
> The only relevant difference I can see between this and the 
> html-select.jsp example is that my jsp is under /jsp, but I've tried 
> it both ways and it
> doesn't seem to matter.
> 
> I'd appreciate a clue.
> 
> thanks
> 
> john

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


Mime
View raw message