wood burning stoves 2.0*
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 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring with Custom Tag" Watch "Spring with Custom Tag" New topic
Author

Spring with Custom Tag

Kousik Majumder
Ranch Hand

Joined: Sep 30, 2007
Posts: 227
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,

Kousik


Thanks in Advance,
Kousik
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: 227
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(ParentOfice.java) as above using the bean name"ParentOfice".

I think here is the problem.

I am confused how to invoke that bean.

JSP:




Please help.
 
 
subject: Spring with Custom Tag
 
Similar Threads
"tld" file,"tag" file and "cutsom tag"
rendering table data in spring
difference between tag defined in tld and a tag file.
Not getting the validation message in my example.
How to create object and call a method in jsp using struts 2 tags