• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in html:link

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

I am using html:link in my project. when i click on the link
i need to get file name from the html:select.

<html:link action="example.do?method=select">

In html:select multiple attribute is true. and user can select more than one from the list. i am using String array in the property attribute and which has getter and setter property in the form.

The problem is while i am clicking on the link the the getter and setter method was not called.The reset method in my form was called.
so the i could not get the filename which was selecte by the user.

This works well in the html:submit button.but not working in the html:link.

please help me

thanks
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem with using a basic link tag is that when the user clicks the link all the values that they have entered into the current page are lost. It seems like you could either 1) use JavaScript in your link tag to submit the page and add logic into the Action class or 2) use JavaScript to build a complete URL that included the needed values as parameters.

- Brent
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic