aspose file tools*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring with Custom Tag
 
Similar Threads
Not getting the validation message in my example.
rendering table data in spring
"tld" file,"tag" file and "cutsom tag"
How to create object and call a method in jsp using struts 2 tags
difference between tag defined in tld and a tag file.