• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with custom tag

 
sachin yadav
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

i have to code a custom tag lib which accepts an int value and a value object bean. In the taglib class i have to access that object bean to do some manipulations and then produce the HTML markup.

My custom tag in taglib.jsp goes like:



now in my taglib.class i have to get the bean myBeanHavingData and use myBeanHavingData.getbeanPropertyfield. but there the bean is null. I think i have to lookup the bean used in jap or something. Code for java class is as follows:




error i am getting is:


beanVO is null here. Any suggestion would be appriciated.
 
Kuldeep Tewari
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if it'll help, but don't you need a setter method for your VO?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!