• 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

Question of multiboxes

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I am using multiboxes inside a logic:iterate and it is working fine. What I am wondering now is if it is possible to pass URL variables using check boxes. I explain myself:

In my application, I share a song with a friend. When I want to share it, I access to a web page where all my friends are listed with multiboxes. There, I can select the friends I want to share the song with. The problem is that I would like to send the name of the friend and the name of the song as a URL variable to the FrowardAction. Before using multiboxes, I clicked in the name of the friend to share the song, which was a link. Obviously this way I could just share my song with one friend each time. I did it this way:




the variable sharecontentparams was carrying all the information and in the link URL I could see ....name=NameOfTheSong&friend=NameOfTheFriend.However, using multiboxes I cannot do that. I tried this:



But in the ForwardAction I get a String called sharecontentparams when I do the request.getParameters() and not the parameters friend and name.

Can anyone help me please?

Thanks in advanced
 
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

<html:multibox property="multiBox" value="sharecontentparams"/>


You are assigning the vaue to the Striing "sharecontentparams". Change that to that variable sharecontentparams. I don't remember the syntax.
 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tom Reilly wrote:

<html:multibox property="multiBox" value="sharecontentparams"/>


You are assigning the vaue to the Striing "sharecontentparams". Change that to that variable sharecontentparams. I don't remember the syntax.



Can you search for it please? I cannot find anything.

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic