This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSP and the fly likes Dynamic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Dynamic "id=" attribute for jsp:useBean?" Watch "Dynamic "id=" attribute for jsp:useBean?" New topic
Author

Dynamic "id=" attribute for jsp:useBean?

Val Pecaoco
Ranch Hand

Joined: Dec 05, 2001
Posts: 156
Hi Ranchers,
I'm trying to assign a dynamic value to the "id=" attribute of <jsp:useBean>, e.g.,

But I'm getting the ff. error:
org.apache.jasper.compiler.ParseException: C:\Program Files\jakarta-tomcat-3.3a\webapps\dev\foo\bar\foopage.jsp(5,54) Attribute parameterValue has no value
Is it possible to assign a dynamic value to the "id=" attribute? Thanks for the help.
Ex Animo Java!
-- Val
[ April 24, 2002: Message edited by: Val Pecaoco ]

"Knowledge is power, but enthusiasm is the key." -- Lavern Barn
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

It is not possible to assign dynamic value to id attribute of jsp:useBean tag. Use can check the syntax refernce doc at sun site.


Groovy
Val Pecaoco
Ranch Hand

Joined: Dec 05, 2001
Posts: 156
Hi Pradeep,
I just belatedly pulled out the syntax card from my file and "id=" is fixed...thanks for pointing that out.
I've already made adjustments to my app
Maybe in future versions of the JSP spec we could have a dynamic "id=" attribute. Please?!
Ex Animo Java!
-- Val
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
Originally posted by Val Pecaoco:

Maybe in future versions of the JSP spec we could have a dynamic "id=" attribute. Please?!
-- Val

Why should one need that?
I mean the id-attribute is basically a variable name (especially if you look at the servlet code generated by jsp in the work directory).
I don't have dynamic variable names in normal Java programs.
Axel
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Hi,
I had felt the need abt that when I coding for one of application 6 months..I dunno why Sun has not provided that facility..
Originally posted by Val Pecaoco:
Hi Pradeep,
I just belatedly pulled out the syntax card from my file and "id=" is fixed...thanks for pointing that out.
I've already made adjustments to my app
Maybe in future versions of the JSP spec we could have a dynamic "id=" attribute. Please?!
Ex Animo Java!
-- Val
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic "id=" attribute for jsp:useBean?