struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad Rhoads" <>
Subject session var missing in .jsp
Date Mon, 22 Jul 2002 18:25:54 GMT
All but one of my .jsps are views and go though my template. They're all
mapped to <screenname>.screen. I have code (shown below) at the top my
template to check a session var to see if the user has logged on. That works

But now I have a .jsp that's just for displaying an (crystal clear report
viewer) applet. And the .jsp has call back functions used by the applet, so
I can't use the template. I put this code at the top of my rptloader.jsp,
but I get a NPE in this case.

        if (session != null){
            com.monolith.model.administration.User user =

            if (user == null)
catch(NullPointerException npe)


I have a selectreport.screen that ends up at my ReportViewAction where I
figure out what kind of report was requested. Then to actually execute the
report I do:

if (usePDF == true)
            return (new ActionForward("/report.pdf", false));
        else if (useHTM == true)
              return (new ActionForward("/report.htmr", false));

            return (new
pdsora7.dll", true));
            //return (new
ll=pdsora7.dll", false));

It's the default case I'm talking about (the other's will eventually go
away). I've tried several different options for kicking off rptloader.jsp.

It seams that when I go directly to rptloader.jsp, my session var is
missing. What am I doing wrong?

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message