aspose file tools*
The moose likes Servlets and the fly likes Java tag library Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java tag library" Watch "Java tag library" New topic
Author

Java tag library

Anasapurapu Lakshmi
Greenhorn

Joined: Oct 01, 2001
Posts: 5
Hi all,
I would like to know, what are the prerequisites to pass a java variable to a tag as a variable.
The tag is not accepting the java variable in <%= %> tags.
The tag variable accepts the hardcoded value in ""
String strUserid="lakshmi";
eg userid="lakshmi" but not as userid="<%=strUserid%>"
java variable.
thanx
lakshmi
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Anasapurapu,
Are you trying to pass a variable value to another application? Not sure why you are trying to use a 'tag' otherwise
I'm going to move this over to Java in General - Beginning as it's not directly related to SCJP Study.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Nice try Jane, but I believe that this is a JavaServerPage question.
Sorry about the musical chairs but I think that you will get a better response in Serlets and JSPS.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

Right you are. It sounds like you haven't defined the tag in question to work with variable substitution. It's an option in the Tag Library Description (tld) file, which is the XML file that describes the tag properties and what Java classes implement them.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java tag library
 
Similar Threads
Java tag library
Java tag library
Hi.I need help
Keeping Session Values !
creating secure Java apps