Re: html:select problem

2003-07-22 Thread Ionel Gardais
hi,

I tryed this way
The selected items are not highlighted when the page is redisplayed
ionel

Prashanth.S wrote:

Hi,
I think that in the reset method in ur action form u need to make the selected array 
null[selected array is the array inside ur actionform that gets filled in request 
scope when u select any items in the list]so that the same array is not submitted 
again and again..
HTH
Prashanth




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


Re: html:select problem

2003-07-22 Thread Prashanth.S
Hi,
I think that in the reset method in ur action form u need to make the selected array 
null[selected array is the array inside ur actionform that gets filled in request 
scope when u select any items in the list]so that the same array is not submitted 
again and again..
HTH
Prashanth

Ionel Gardais <[EMAIL PROTECTED]> wrote:
Hi,

I have a small problem with html:select tag.

I use the same JSP for creating a editing a form.
Everything works well for the creation step but when I edit the form, 
all fields are perfectly filled but the select list doesn't display the 
previously selected items.

I observerved the same behavior when the validate method detects an 
error and displays the error message : the selected items are gone.

Any ideas where the problem come from ?


thanks,
ionel


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

html:select problem

2003-07-22 Thread Ionel Gardais
Hi,

I have a small problem with html:select tag.

I use the same JSP for creating a editing a form.
Everything works well for the creation step but when I edit the form, 
all fields are perfectly filled but the select list doesn't display the 
previously selected items.

I observerved the same behavior when the validate method detects an 
error and displays the error message : the selected items are gone.

Any ideas where the problem come from ?

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


html:select problem

2003-04-04 Thread Noureddine Bekrar
I had yesterday a very strange probleme with html:select tag.

When i wanted to use 2 tomcat servers in order to use a load balancing of my
Struts application , i had an exception.
but my application worked well when i had used only one server.

after this i had transformed all my html:select tags to a static html code,
the exception didn't apear and my application work now very well.
Does any one has any idea about this problem.
Thanks





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



A html:select problem

2001-11-03 Thread Jin-Ru Ong

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. 



  
 http://www.yahoo.com";>Yahoo 
 http://www.google.com";>Google
  

.

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:   
For additional commands, e-mail: