struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohan Radhakrishnan <>
Subject RE: html:select woes
Date Sat, 21 Dec 2002 09:15:14 GMT
    We tried using struts tags like that. I am sure it will work but
JSTL/Struts-EL makes things more simple like this.

<c:forEach items="${xOptions}" varStatus="status">
 <c:if test="${xOptions[status.count - 1].value == reportForm.xGroups[0]}">
  <c:out value="${xOptions[status.count - 1].label}"/>

 It makes complex things straightforward.


-----Original Message-----
From: John.E.Gregg@mortgage.wellsFargo.COM
Sent: Friday, December 20, 2002 5:15 AM
Subject: html:select woes

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=""/>

and this:

<action path="/loggers" 
	<forward name="hello" path="/jsp/loggers.jsp"/>

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

<jsp:useBean id="loggersForm" scope="session"
class=""/><html:form action="/"/>
<html:select property="newLevel">
<html:option value="one">One</html:option>

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.



john gregg
Wells Fargo Service Corporation
Minneapolis, MN

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message