Hi everyone,

I'm still trying ot get my head around the Struts framework, I've got very 
little experience working with JSPs and Javascript and so the whole learning 
process can be slightly overwhelming. Please bear with me.

I am trying to make a JSP page where there is a simple select box. As soon as 
the user selects an option I want it to do something, i.e load a page in 
another frame. 

<html:form action="/getMenuItem" method="GET">

  <html:select property="url">
     <html:option value="http://www.yahoo.com";>Yahoo </html:option>
     <html:option value="http://www.google.com";>Google</html:option>
  </html:select>

.....

And in my struts-config.xml, the /getMenuItem refers to a MenuForm bean and a 
MenuAction class.

The MenuForm bean has:
getUrl() and setUrl() defined.

Now how do I trigger the MenuAction class to work at all? I got this to run 
and display a select box, but I can't seem to trigger the MenuAction class at 
all - I put a System.out.println( ) statement in its perform() method to see 
if it was run at all, and nothing happened.

I'm sorry this sounds trivial but its very frustrating for me!

Thanks for any help out there.

Jin

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

Reply via email to