• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring with Custom Tag

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Kousik Majumder
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic