• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Spring with Custom Tag

 
Ranch Hand
Posts: 244
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!