javax.servlet.jsp.JspException: Cannot find bean under name.. in struts app
843838Apr 10 2006 — edited Nov 26 2007Hi friends,
Need a bit of your help.
would appreciate the same.
I have this in my JSP code:-
<html:select property="buId" styleClass="BTNdark" onchange="doSubmit('fetchCamp')">
<html:options collection="bulist" property="buId" labelProperty="buName"/>
</html:select>
and in the struts FileAction i am returning this:-
request.setAttribute("bulist", buList);
bulist is an arraylist of bean objects.
I cannot understand why i am getting this exception.
" javax.servlet.jsp.JspException: Cannot find bean under name bulist "
<WHEN it happens mainly>
One more thing, I have a search option in my page;
Now say two users enter two searches say 'A' and 'B'
on their browsers
When they press the search button (Almost at the same time)- one page loads with this exception and other loads fine.
And When the referesh button on the browser (which had exception) is clicked - The exception for that goes away and gives the results expected finely - as in other case.
I find this very weird - Please suggest something in regard to this.
Thanks,
Vishal