File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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: 236
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: 236
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.
wood burning stoves
subject: Spring with Custom Tag
It's not a secret anymore!