• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Help with a TagExtraInfo class

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
I will be very thankful if you can help me with the following:
I need to create a TEI class to declare scripting variables for a tag that shows records from a recordset. The names of the variables, however, are the same as the column names in the recordset, so I don't know them in advance. Can anyone tell me how to declare the scription variables in the TEI class in case I don't know the names the Tag class will assign them?
Thanks,
Faerine
 
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See if this example from weblogic helps you
 
Rahul Mahindrakar
Ranch Hand
Posts: 1871
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-- iterate through the resultset
String st=new String(java.sql.ResultSet.getMetaData().getColumnName())
------
 
Author
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Faerine Lothwen:
Hello!
I will be very thankful if you can help me with the following:
I need to create a TEI class to declare scripting variables for a tag that shows records from a recordset. The names of the variables, however, are the same as the column names in the recordset, so I don't know them in advance. Can anyone tell me how to declare the scription variables in the TEI class in case I don't know the names the Tag class will assign them?
Thanks,
Faerine


In JSP, you are not able to assign scripting variable names dynamically. The names of scripting variables need to be known at translation time, which is (potentially) long before any request is received.
reply
    Bookmark Topic Watch Topic
  • New Topic