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.
|
|
|
|
|
![]() |
||
Trying to pass JSP variables into input:select attributes. Help badly needed
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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 :
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 :
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. |
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
![]() |
| Tags |
| java, javascript, jsp, variable |
| Thread Tools | |
|
|
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 |