Newbie checkbox question

2002-03-15 Thread Michael Buenaventura

Hi, I'm putting logic when I change my checkbox's state.
I have a checkbox that when it's check it will provide an extra field to
show and hides it if it's not check.

I have a sent property that has get() and set() with my form:

html:checkbox  property=sent onchange=submitEvent('checkSend') /

bean:parameter id=forDateSend name=sent/
logic:equal name=forDateSend value=true
Shows a date field
/logic:equal
-

my onchange=submitEvent(checkSend') fires this method in my ActionForm that
returns back to that screen.
--
public void checkSend(StrutsContext _context)
{
 setForward(_context, GoBack);
}
---

Am I doing it wrong? What's the best way to accomplish this. Thanks a lot.



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




loading a singleton class in jsp

2002-02-20 Thread Michael Buenaventura

Hi, I'm using struts framework and I was trying to load a singleton class
that will hold my dropdown list of state in my jsp.
jsp:useBean id=StateLookup scope=session
class=com.blah.StateLookup.getInstance();/
StateLookup is a singleton class.


I'm using the jsp:useBean so that I can use these struts tag lib
html:select property=state tabindex =key  html:option
value=/html:option
bean:define id=stateID name=StateLookup property=stateList /
html:options collection=stateID property=key labelProperty=value/
  /html:select


Am I doing it the wrong way? Your input will be greatly appreciated.

Mike



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