Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question of multiboxes

 
Mnau Lubi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic