Web Design and Development Forums

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 Java, JSP, Cold Fusion 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.


Go Back   Webforumz.com > Program Your Website > Java, JSP, Cold Fusion

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 19th, 2007, 08:49   #1 (permalink)
New Member
 
Join Date: Apr 2007
Location: Manchester
Age: 24
Posts: 3
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.
danwms is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 19th, 2007, 09:06   #2 (permalink)
New Member
 
Join Date: Apr 2007
Location: Manchester
Age: 24
Posts: 3
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.
danwms is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 19th, 2007, 09:44   #3 (permalink)
New Member
 
Join Date: Apr 2007
Location: Manchester
Age: 24
Posts: 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.
danwms is offline  
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
Rate This Thread
Rate This Thread:

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 CSS Forum 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



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 16:26.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59