This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring with Custom Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring with Custom Tag" Watch "Spring with Custom Tag" New topic

Spring with Custom Tag

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 237
Hi all,

I am new to Spring.
I want to use custom tag in Spring.
Can somebody give some code how to use custom tag with Spring ?
Specially the mapping with the .java(tag which extends BodyTagSupport) file to applicationContext.xml file.

Thanks in Advance,


Thanks in Advance,
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

What do you mean by custom tags with Spring ? You can use custom tags in any JSP files. Whether you are using Spring or not is not a problem.

[My Blog]
All roads lead to JavaRanch
Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 237
Actually I have a delegator which delegates the request related the to database.

Flow: Delegator -> Service -> Dao

Now my problem is that I need to use that delegator to make a custom tag.
But the delegator is not being properly instantiated through applicationContext.xml file.

I have referred the custom tag( as above using the bean name"ParentOfice".

I think here is the problem.

I am confused how to invoke that bean.


Please help.
I agree. Here's the link:
subject: Spring with Custom Tag
It's not a secret anymore!