Trying to pass JSP variables into input:select attributes. Help badly needed

This is a discussion on "Trying to pass JSP variables into input:select attributes. Help badly needed" within the Other Programming Languages section. This forum, and the thread "Trying to pass JSP variables into input:select attributes. Help badly needed are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > Other Programming Languages

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Apr 19th, 2007, 08:49
New Member
Join Date: Apr 2007
Location: Manchester
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Trying to pass JSP variables into input:select attributes. Help badly needed

Hi, im new to this forum but if have tried everything else and this is driving me a bit crazy. I am desperate for some help and I know this is going to be a realy simple thing its just my mind has gone dead with it.

I have the following :

Code: Select all
     <input:select
       bean="counterGroup"
       name='airlineLogoFlt1'
       attributes="<%= visibleDefaultAttr %>"
       attributesText='id="airlineLogoFlt1"'
       options="<%= airlineLogos %>"
       default="<%= airlineLogoFlt[F] %>"
     />


Where it says name='airlineLogoFlt1', I want to replace the 1 in Flt1 with the value you of either a JSP variable F or a JavaScript variable f I don’t mind which one I have to use but basically I want to change the value of F/f to be able to change the number associated with the Flt.


When I try doing :
Code: Select all
  name='airlineLogoFlt<%= F %>'
I get name="airlineLogoFlt&lt;%= F %&gt;"


I also want to do the same thing where it says attributesText='id="airlineLogoFlt1"' and I am also having trouble here as well.

Any help would be much appreciated.

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 19th, 2007, 09:06
New Member
Join Date: Apr 2007
Location: Manchester
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to pass JSP variables into input:select attributes. Help badly needed

Ok as soon as i finished the post i had another fo and I managed to do the first part. I guess i just need a bit of a break.

however i am still having problems with the
attributesText='id="airlineLogoFlt1"'
part due to the extra ' and ". These do need to be here but i still need a way of syubstitutig the 1 to be the value of F.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Apr 19th, 2007, 09:44
New Member
Join Date: Apr 2007
Location: Manchester
Age: 25
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Trying to pass JSP variables into input:select attributes. Help badly needed

I managed to sort this out by doing,

String q = "\"";

and then substituting the " with q.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
java, javascript, jsp, variable

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
chained select box dependable select thenamenoonehastaken JavaScript Forum 0 Feb 8th, 2008 05:49
A little help needed - Select info from DB and display on page weasel PHP Forum 3 Jul 7th, 2007 07:22
Need help badly! Alsilver Web Page Design 2 Oct 25th, 2006 23:03
Pre-defining a function that can pass variables. aluminumpork JavaScript Forum 3 Jul 24th, 2006 12:16
help needed for flash variables gwx03 Flash & Multimedia Forum 3 Sep 1st, 2003 10:59


All times are GMT. The time now is 04:35.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42