bean:define - nested body content?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Michael_Williamson
Posted On:   Wednesday, April 27, 2005 01:21 PM

Hi there, I am having some problems using the tag. I want to set the value of my bean to be the output of custom tag. The custom tag outputs a string. Now I know that this can't work: "> So what I want to do is this: This second version doesn't work either. I get the following exception: java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:333) at jrun.servlet.session.JRunSession.getAttribute(JRunSession.java:185) at jrun.jsp.runtime.JRunPageContext.findAttribute(JRunPageContext.java:213) at org.apache.struts.util.RequestUtils.lookup(R   More>>

Hi there,

I am having some problems using the tag.

I want to set the value of my bean to be the output of custom tag. The custom tag outputs a string.

Now I know that this can't work:


			
">




So what I want to do is this:

			







This second version doesn't work either. I get the following exception:

			
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:333)
at jrun.servlet.session.JRunSession.getAttribute(JRunSession.java:185)
at jrun.jsp.runtime.JRunPageContext.findAttribute(JRunPageContext.java:213)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:444)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:491)
at org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200)
at jrun__tree22ejspa._jspService(jrun__tree22ejspa.java:392)
at jrun.jsp.runtime.HttpJSPServlet.service(HttpJSPServlet.java:43)
at jrun.jsp.JSPServlet.service(JSPServlet.java:119)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:252)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
at jrun.servlet.http.WebService.invokeRunnable(WebService.java:168)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)



I really can't see what is wrong with the second version. I have tried substituting the custom tag with a simple , but that doesn't work either. Might it be a bug with JRun? (that is what I am using).
I know that jstl might provide a solution, but it would be good if I could avoid that.
Is there any way I can use jsp:useBean?

Thanks in advance,
Michael    <<Less

Re: bean:define - nested body content?

Posted By:   jayaprakash_tr  
Posted On:   Friday, April 29, 2005 07:04 AM

problem is not with bean:define i think. Its realated with your tag. Is it returning a string value there.


Jayaprakash
About | Sitemap | Contact