File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how get custome data in  body tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how get custome data in  body tag " Watch "how get custome data in  body tag " New topic
Author

how get custome data in body tag

amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi
my tag is contains a field (ids). how get a value of field in body my tag without write other tag.


please help me.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

What do you mean by "value of the field"?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
yes . value of the ids .
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61084
    
  66

You'll need to do better than partial sentences if you want help.

Perhaps you can start by explaining what you mean by "ids" and why you need them?
amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
ids is name of myfield . After calculating ، Write ids in the specific location of body .
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Hi Amir,
Then why don't you try rendering it using your tag itself?


Have Fun with Java
little,little.. little by little makes a lot..
amir taghvayi
Ranch Hand

Joined: Sep 16, 2011
Posts: 54
hi Shankar ،
my body contains other tags and html code . can not write all in mycustometag .
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
Two ways potentially:
- Declare your tag has a tag variable in your tld/tag file.
- just set an attribute into the page context and reference it in the body of your tag

You may want to follow the example of the <c:forEach> tag and declare a "var" attribute which defines the name of the attribute the value is exposed as
 
Consider Paul's rocket mass heater.
 
subject: how get custome data in body tag