• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

problem in forms..

 
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi ppl,
the problem is like this..

I have a 2 fields in jsp page (text:- where user will enter something ,
and a menu from which it will select) and a link (click) below it.
These are not in a <html:form>. Is there any way when i click on link, values entered by the user in 2 fields should go to respective ActionForm classs where i can set the values and can further use in ActionClass.

plzz tell me how to do it??? urgently needed.

thanks
 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Since your fields are not there inside the <html:form> i dont think you will be able to get those in the respective action class using ActionForm.
If you want to get these values without keeping these fields inside <html:form> tag, have hidden fields for the same and get the values in the action class and set to the form object if there are properties to hold the values.
If you do this you can get these values in your next page using the form bean.
 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx poornima...i finally did it...without using form ...bt did it dirty way...

used javascript for tat and called that form class...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic