This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes custom Tags & javascriptlet in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

custom Tags & javascriptlet in jsp

kanth varada
Greenhorn

Joined: Feb 14, 2006
Posts: 14
Hi,

I want to store the data in to a string variable which is displaying from jsp custom tags.

what i want to do is

<% String s="%><s escription feedId="<%=string%>"/><%";%>

I want to do like this but it is not working is there any other way so that i can store the data in to a string which is coming from jsp custom tags
Arun Boraiah
Ranch Hand

Joined: Nov 28, 2001
Posts: 233
Hi,
It looks like you are mixing HTML and java (JSP) code in example given by you, try revisit what you have written.

What I can think of with the data given by you towards your solution is something like this.
You are trying to utilize the functionality return in some tag lib, thus you want to return value to future process.

Try this one out.

Tag libs are noting but java code, hence identifies which java class it calls (you can get this info from tag lib config details).
Instance this object pass the required value and try to assign the return value to string just like using other object.

I am not sure if it works, just give a try if you have not got other proven solutions´┐Ż

-Arun


Sharing is learning
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60792
    
  65

Continue here.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom Tags & javascriptlet in jsp
 
Similar Threads
How to retain formatting when passing a String to a JSP
Use Struts2 Tag inside custom tag
Jsp & customTags
call Java class from JSP
Writing Image Bytes on Response Stream