aspose 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 Spring in Action this week in the Spring 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: 61433
    
  67

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: 61433
    
  67

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how get custome data in body tag