• 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
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Param passing in link, prepopulation and javascript

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I actually have three problems with the project I am doing. First is with the <link> tag, second is with pre-population problem and third is how to call a javasript first before anything else happens.
I'm trying to pass a value from a link when a user clicks on a submit button (an image button). It's suppose to pass a value from a listbox (the one selected by the user) which was pre-populated by options taken from a database.
My problem is, how do I reference the value in my action bean? I wanted to use the ParamId and ParamName in the <html:link> tag. Here's my JSP code:

Next is, I managed to pre-populate a drop down box already, but whenever I refresh or do something on that same page, the values get repeated in the listbox (re-populated) again and again. What can I do to fix this (the page is technically the 'first page' - I forward an index page to this so that it performs the actions I need)?
3rd, when a user submits the form, I forward it to an action to pre-populate the next page. But, I have a date list box that is populated by a javascript (because it only gets the dates of every saturday of a selected month - and changed when the month selected is changed). So this means that when I load the page, my day listbox 'default' is not the one in the database, instead it is the first option. Is there a way to get this fixed?
[ October 04, 2003: Message edited by: Gregg Bolinger ]
[ October 05, 2003: Message edited by: Bianca Deloso ]
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow! This has nothing to do with JDBC. I am moving this to the STRUTS forum. Also, I edited your post to remove "Urgent" from the subject line. Putting the word urgent in your subject is likely to get it ignored.
 
What's a year in metric? Do you know this metric stuff tiny ad?
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic