Hi Joe,
It could be almost anything but are you sure that neither
dataBean.getMastVendID() nor dataBean.getVendID() return null? If I had
to bet, I would say dataBean.getMastVendID() returns null. Try <%=
dataBean.getMastVendID() %> instead of the if statement to see what
happens.
I hope this helps,
Dan
-------------------------------------------
Daniel Lopez Janariz ([EMAIL PROTECTED])
Object Systems Design Engineer
Computer Center
Balearic Islands University
-------------------------------------------
Joe Blow wrote:
>
> Hi Everybody,
> I written the following in my .jsp file which is called by a servlet.
>
> It works fine when only out.println("CHECKED") is present.
> As soon as I add the If condition it gives the Error as shown below
> the code snippet.
>
> <TD HEIGHT="3" WIDTH = "10%" ALIGN = "RIGHT" NOWRAP>
> <INPUT TYPE = "CHECKBOX" NAME = "ckMasterFlg"
> <% if ((dataBean.getMastVendID()).equals(dataBean.getVendID()))
> out.println("CHECKED"); %>
> onClick = ""><B> Master Flag </B>
> </TD>
>
> It causes the following error:
>
> The servlet named invoker at the requested URL
>
> http://myMachine/VendorProfile.jsp
>
> reported this exception pagecompile._VendorProfile_xjsp: null. Please
> report this to the administrator of the web server.
>
> pagecompile._VendorProfile_xjsp: null java.lang.NullPointerException
> at
> pagecompile._VendorProfile_xjsp.service(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled
> Code) at com.sun.server.http.pagecompile.JSPState.service(Compiled
> Code) at
> com.sun.server.http.pagecompile.PageCompileServlet.doService(Compiled
> Code) at
> com.sun.server.http.pagecompile.PageCompileServlet.doPost(Compiled
> Code) at
> javax.servlet.http.HttpServlet.service(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled
> Code) at com.sun.server.ServletState.callService(Compiled Code) at
> com.sun.server.ServletManager.callServletService(Compiled Code) at
> com.ibm.servlet.engine.SEServletManager.callServletService(Compiled
> Code) at
> com.sun.server.http.HttpServiceResponse.callPage(Compiled Code) at
> com.ibm.servlet.engine.SEHttpServiceResponse.callPage(Compiled Code)
> at
> TestJSP.PopulateBeanServlet.Service(PopulateBeanServlet.java:126) at
> TestJSP.PopulateBeanServlet.doPost(PopulateBeanServlet.java:47) at
> javax.servlet.http.HttpServlet.service(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled
> Code) at com.sun.server.ServletState.callService(Compiled Code) at
> com.sun.server.ServletManager.callServletService(Compiled Code) at
> com.ibm.servlet.engine.SEServletManager.callServletService(Compiled
> Code) at
> com.sun.server.http.InvokerServlet.service(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled Code) at
> com.sun.server.ServletState.callService(Compiled
> Code) at com.sun.server.ServletManager.callServletService(Compiled
> Code) at
> com.ibm.servlet.engine.SEServletManager.callServletService(Compiled
> Code) at
> com.sun.server.ProcessingState.invokeTargetServlet(Compiled Code) at
> com.sun.server.http.HttpProcessingState.execute(Compiled Code) at
> com.sun.server.http.stages.Runner.process(Compiled Code) at
> com.sun.server.ProcessingSupport.process(Compiled Code) at
> com.sun.server.Service.process(Compiled
> Code) at com.ibm.servlet.engine.SEEngine.service(Compiled Code) at
> com.ibm.servlet.engine.api.ServerEntry.service(Compiled Code) at
> com.ibm.servlet.engine.nativeEntry.NativeServerEntry.service(Compiled
> Code) at
> com.ibm.servlet.engine.outofproc.OutOfProcThread.run(Compiled Code)
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JSP-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".