Re: [OT] HTTP "fetchmail" program?

2002-12-21 Thread Eddie Bush
Thanks!  I'll check into it :-)

Vincent Stoessel wrote:


I think the best bet would be for you to set an http proxy for her.
I recommend squid as the most reliable and easyest to install.
The trickiest part will be the access list that you have to set up
so read the docs. If you have trouble the squid access logs are your
friend.

Eddie Bush wrote:


You can check it on using a mail client that can do HTTP connections 
(OutlookExpress and ... surely there's another one).  That's why I 
figured that ... well I was hoping beyond hope that someone knew of a 
fetchmail-like program that would do HTTP accounts.  I suppose I 
could write something in JavaMail to do it, but I have other things 
that (much as I love my wife) need to come first.

David Graham wrote:

If Hotmail provides POP3 support it would be news to me.  I haven't 
found any info on that.  I would love to stop going to the 
irritating Hotmail site and use an email client instead.  I think 
that's exactly why they don't provide POP3 ;-).

Dave



--
Eddie Bush





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




Re: [OT] HTTP "fetchmail" program?

2002-12-21 Thread Vincent Stoessel
I think the best bet would be for you to set an http proxy for her.
I recommend squid as the most reliable and easyest to install.
The trickiest part will be the access list that you have to set up
so read the docs. If you have trouble the squid access logs are your
friend.

Eddie Bush wrote:

You can check it on using a mail client that can do HTTP connections 
(OutlookExpress and ... surely there's another one).  That's why I 
figured that ... well I was hoping beyond hope that someone knew of a 
fetchmail-like program that would do HTTP accounts.  I suppose I could 
write something in JavaMail to do it, but I have other things that (much 
as I love my wife) need to come first.

David Graham wrote:

If Hotmail provides POP3 support it would be news to me.  I haven't 
found any info on that.  I would love to stop going to the irritating 
Hotmail site and use an email client instead.  I think that's exactly 
why they don't provide POP3 ;-).

Dave 








smime.p7s
Description: S/MIME Cryptographic Signature


RE: Struts beta 2 and Tomcat 4.1.18

2002-12-21 Thread James Mitchell
You'll have to provide more information for anyone here to help you.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but
when you do, it blows away your whole leg." 
- Bjarne Stroustrup


> -Original Message-
> From: ajTreece [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, December 21, 2002 1:49 PM
> To: Struts Users Mailing List
> Subject: Re: Struts beta 2 and Tomcat 4.1.18
> 
> 
> I saw that, but was wondering if it was something more specific to a 
> Tomcat configuration with Struts... I have used this webapp 
> with iPlanet 
> v6 sp2 for quite a while with no problems.
> 
> 
> 
> David Graham wrote:
> > Your AdminNewsAction is throwing a NPE.
> > 
> > David
> > 
> > 
> > 
> > 
> > 
> > 
> >> From: ajTreece <[EMAIL PROTECTED]>
> >> Reply-To: "Struts Users Mailing List" 
> >> <[EMAIL PROTECTED]>
> >> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> >> Subject: Struts beta 2 and Tomcat 4.1.18
> >> Date: Sat, 21 Dec 2002 11:32:44 -0600
> >>
> >> Just started using the Tomcat server... I get the following from
> >> "some" of my action servlets...
> >>
> >> ant clues?
> >>
> >> Thanks, aj
> >>
> >>
> >> 2002-12-21 11:27:34 StandardWrapperValve[action]: Servlet.service()
> >> for servlet action threw exception
> >> javax.servlet.ServletException
> >> at 
> >> 
> org.apache.struts.action.RequestProcessor.processException(Req
> uestProcessor.java:507) 
> >>
> >> at
> >> 
> org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProcessor.java:448) 
> >>
> >> at
> >> 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:266) 
> >>
> >> at
> >> 
> org.apache.struts.action.ActionServlet.process(ActionServlet.j
> ava:1292)
> >> at 
> >> 
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> >> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> >> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >> at 
> >> 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247) 
> >>
> >> at
> >> 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:260) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480) 
> >>
> >> at
> >> 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> at 
> >> 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:191) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480) 
> >>
> >> at
> >> 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> at 
> >> 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2415) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643) 
> >>
> >> at
> >> 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:641) 
> >>
> >> at
> >> 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:172) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:641) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480) 
> >>
> >> at
> >> 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> at 
> >> 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:174) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline$StandardPipelineValv
> eContext.invokeNext(StandardPipeline.java:643) 
> >>
> >> at
> >> 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:480) 
> >>
> >> at
> >> 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> >> at 
> >> 
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.
> java:223)
> >> at 
> >> 
> org.apache.coyote.http11.Http11Processor.process(Http11Process
> or.jav

Re: Struts beta 2 and Tomcat 4.1.18

2002-12-21 Thread ajTreece
I saw that, but was wondering if it was something more specific to a 
Tomcat configuration with Struts... I have used this webapp with iPlanet 
v6 sp2 for quite a while with no problems.



David Graham wrote:
Your AdminNewsAction is throwing a NPE.

David







From: ajTreece <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Struts beta 2 and Tomcat 4.1.18
Date: Sat, 21 Dec 2002 11:32:44 -0600

Just started using the Tomcat server... I get the following from 
"some" of my action servlets...

ant clues?

Thanks, aj


2002-12-21 11:27:34 StandardWrapperValve[action]: Servlet.service() 
for servlet action threw exception
javax.servlet.ServletException
at 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507) 

at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448) 

at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) 

at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) 

at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) 

at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) 

at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) 

at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) 

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 

at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) 

at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386) 

at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) 

at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530) 

at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NullPointerException
at 
com.sun.eras.homepage.action.AdminNewsAction.perform(Unknown Source)
at org.apache.struts.action.Action.execute(Action.java:401)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446) 

at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) 

at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:2

Re: Struts beta 2 and Tomcat 4.1.18

2002-12-21 Thread David Graham
Your AdminNewsAction is throwing a NPE.

David







From: ajTreece <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Struts beta 2 and Tomcat 4.1.18
Date: Sat, 21 Dec 2002 11:32:44 -0600

Just started using the Tomcat server... I get the following from "some" of 
my action servlets...

ant clues?

Thanks, aj


2002-12-21 11:27:34 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
javax.servlet.ServletException
at 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NullPointerException
at com.sun.eras.homepage.action.AdminNewsAction.perform(Unknown 
Source)
at org.apache.struts.action.Action.execute(Action.java:401)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPi

Re: code too large for try statement

2002-12-21 Thread Craig R. McClanahan


On Sat, 21 Dec 2002, Jitendra Singh wrote:

> I am a newbie ...but i read somewhere that there is a restrcition on the
> size of JSP, in-built in J2EE.

The "built in restriction" is actually the JVM's limit of 64kb on the size
of a particular method.  It's not anything imposed by J2EE or the JSP
spec.

First generation JSP page compilers often generated the code for an
entire JSP page in a single service method, which indirectly created a
limit on the size and complexity of your page.  Indeed, this is basically
required if you are using scriptlets that need access to the scripting
variables created by things like .

Modern page compilers (like Jasper2 used in Tomcat 4.1 and 5.0) know how
to subdivide the code for your page into multiple methods, as long as you
are not using scriptlets and scripting variables.  Fortunately for Struts
developers, that tends to be the way we program already :-), so we can
take immediate advantage of things like this.

If you *do* use Tomcat, using the new Jasper2 compiler is reason enough to
upgrade to the latest 4.1 production quality release (4.1.18) if you're
still using Jasper1.  Besides the fact that the 64kb limit no longer
bothers you much, the performance improvement is so dramatic that you have
to see it to believe it.

Craig


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




Struts beta 2 and Tomcat 4.1.18

2002-12-21 Thread ajTreece
Just started using the Tomcat server... I get the following from "some" 
of my action servlets...

ant clues?

Thanks, aj


2002-12-21 11:27:34 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
javax.servlet.ServletException
at 
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:507)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:448)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NullPointerException
at com.sun.eras.homepage.action.AdminNewsAction.perform(Unknown 
Source)
at org.apache.struts.action.Action.execute(Action.java:401)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:446)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardConte

Re: code too large for try statement

2002-12-21 Thread Robert S. Sfeir
wow,  I once got that error when we were writing a converter for  
Tango/ColdFusion to java.  It turned out that there is a limit in  
methods of 64k, how much data is in your try statement???

R
On Saturday, December 21, 2002, at 07:30 AM, Jitendra Singh wrote:

hi,
I am a newbie ...but i read somewhere that there is a restrcition on  
the
size of JSP, in-built in J2EE.
I beleive that this is the coz of ur error.

hope it helps

Jitendra
- Original Message -
From: "Michael Marrotte" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 7:56 AM
Subject: RE: code too large for try statement


The try block is in the Java generated by the servlet container from  
the
JSP.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: code too large for try statement


Why is there a try/catch block?

David






From: "Michael Marrotte" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"  
<[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: code too large for try statement
Date: Fri, 20 Dec 2002 16:48:37 -0500

I'm using lots of Struts custom jsp tags, e.g. logic, html, and bean.
The

JSP file size is about 27K.  I'm getting the following error:

500 Servlet Exception
/mainMenu.jsp:652: code too large for try statement
} catch (java.lang.Throwable _jsp_e) {
  ^
/mainMenu.jsp:46: code too large for try statement
try {
^
2 errors


-- 
-
-

Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)

Are the limits to the number of tags, JSP file size, etc?

Any help is greatly appreciated.

Thanks,

--Mike


--
To unsubscribe, e-mail:

For additional commands, e-mail:




_
MSN 8 helps eliminate e-mail viruses. Get 3 months FREE*.


http://join.msn.com/?page=features/ 
virus&xAPID=42&PS=47575&PI=7324&DI=7474&S
U=


http://www.hotmail.msn.com/cgi-bin/ 
getmsg&HL=1216hotmailtaglines_virusprotec
tion_3mf


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:



For additional commands, e-mail:






--
To unsubscribe, e-mail:

For additional commands, e-mail:  



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




Re: code too large for try statement

2002-12-21 Thread Brian Alexander Lee
Removing the try/catch block would be a truly inelegant solution.

The try/catch is probably added by the jsp compiler.

BAL
- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 20, 2002 8:09 PM
Subject: Re: code too large for try statement


> Why is there a try/catch block?
>
> David
>
>
>
>
>
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: code too large for try statement
> >Date: Fri, 20 Dec 2002 16:48:37 -0500
> >
> >I'm using lots of Struts custom jsp tags, e.g. logic, html, and bean.
The
> >JSP file size is about 27K.  I'm getting the following error:
> >
> >500 Servlet Exception
> >/mainMenu.jsp:652: code too large for try statement
> > } catch (java.lang.Throwable _jsp_e) {
> >   ^
> >/mainMenu.jsp:46: code too large for try statement
> > try {
> > ^
> >2 errors
>
>---
-
> >
> >Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)
> >
> >Are the limits to the number of tags, JSP file size, etc?
> >
> >Any help is greatly appreciated.
> >
> >Thanks,
> >
> >--Mike
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
>
>
> _
> MSN 8 helps eliminate e-mail viruses. Get 3 months FREE*.
>
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&S
U=
>
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_virusprotec
tion_3mf
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Pre-populating DynaActionForm Bean (solved)

2002-12-21 Thread Affan Qureshi
Should use the following way to instantiate a DynaActionForm:

DynaBean form =
DynaActionFormClass.getDynaActionFormClass("accessory").newInstance();

But surprisingly i can't find this method on the API on the Docs on the
struts website. http://jakarta.apache.org/struts/api/index.html

Thanks,

Affan

- Original Message -
From: "Affan Qureshi" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 4:33 PM
Subject: Re: Pre-populating DynaActionForm Bean


> I have a similar scenario but in my case the sending action does not have
> the same form bean bean associated as the destination. So what I want to
do
> is to instantiate a form bean which the JSP is expecting and put it in the
> request scope.
>
> Here is my code:
>
> DynaActionForm form = new DynaActionForm();
> form.set("productId", String.valueOf(acc.getProductId()));
> form.set("mfrPartNumber", acc.getAccessoryProduct().getMfgPartNo());
> form.set("description", acc.getAccessoryProduct().getDescription());
> form.set("notes", acc.getNotes());
> req.setAttribute("accessory", form);
>
> This is the JSP to which I am sending this request:
> 
> 
> 
> 
> 
> Save Accessory
> 
>
> In struts-config.xml I have the following def for action saveAcc.do
>  name="accessory" validate="false" scope="request">
>
> This is the error I get when submitting to the JSP:
> java.lang.NullPointerException at
>
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
> 545) at
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:361)
> at com.etilize.cms.web.actions.AddAccessoriesAction.editAccessory ..
> (more...)
>
> I am sorry if this has come up earlier but I could not find one.
>
> Thanks a lot.
> Affan



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




Re: code too large for try statement

2002-12-21 Thread Jitendra Singh
hi,
I am a newbie ...but i read somewhere that there is a restrcition on the
size of JSP, in-built in J2EE.
I beleive that this is the coz of ur error.

hope it helps

Jitendra
- Original Message -
From: "Michael Marrotte" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 7:56 AM
Subject: RE: code too large for try statement


> The try block is in the Java generated by the servlet container from the
> JSP.
>
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 20, 2002 8:10 PM
> To: [EMAIL PROTECTED]
> Subject: Re: code too large for try statement
>
>
> Why is there a try/catch block?
>
> David
>
>
>
>
>
>
> >From: "Michael Marrotte" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: code too large for try statement
> >Date: Fri, 20 Dec 2002 16:48:37 -0500
> >
> >I'm using lots of Struts custom jsp tags, e.g. logic, html, and bean.
The
> >JSP file size is about 27K.  I'm getting the following error:
> >
> >500 Servlet Exception
> >/mainMenu.jsp:652: code too large for try statement
> > } catch (java.lang.Throwable _jsp_e) {
> >   ^
> >/mainMenu.jsp:46: code too large for try statement
> > try {
> > ^
> >2 errors
>
>---
> -
> >
> >Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)
> >
> >Are the limits to the number of tags, JSP file size, etc?
> >
> >Any help is greatly appreciated.
> >
> >Thanks,
> >
> >--Mike
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
>
>
> _
> MSN 8 helps eliminate e-mail viruses. Get 3 months FREE*.
>
http://join.msn.com/?page=features/virus&xAPID=42&PS=47575&PI=7324&DI=7474&S
> U=
>
http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_virusprotec
> tion_3mf
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: disappearing images in struts templates

2002-12-21 Thread Rachel
At 18:14 20/12/2002 -0700, you wrote:

Are the generated urls to the images the same on both machines?


yes, the generated html looks identical. I'm deploying an ear file built 
using ant. I did have someone deploy it on JBoss 2.4 to check and they got 
the images!


Rachel Andrew

work: http://www.edgeofmyseat.com
play: http://www.rachelandrew.co.uk
WaSP Dreamweaver Task Force http://www.webstandards.org


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



RE: how to open a window on click of a link

2002-12-21 Thread Mohammed_Rafeeq
exactly correct. this works

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 21, 2002 5:08 PM
To: Struts Users Mailing List
Subject: Re: how to open a window on click of a link


Context path?

CLICK
 HERE

-Max

On Fri, 2002-12-20 at 23:22, [EMAIL PROTECTED] wrote:
> hi,
> 
> how to open a new window in click of a link i used this code
> 
> CLICK
> HERE
> 
> it gave the error 
> 
> i have given the appropriate mappings in the struts-config.html
> 
> HTTP Status 404 - /screenLabelDetails.do
> 
> type Status report
> message /screenLabelDetails.do
> description The requested resource (/screenLabelDetails.do) is not
> available.
> 
> Apache Tomcat/4.1.12
> 
> **

> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or
> distribution or forwarding of any or all of the contents in this message
is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 



--
To unsubscribe, e-mail:

For additional commands, e-mail:

** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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




Re: how to open a window on click of a link

2002-12-21 Thread Max Cooper
Context path?

CLICK
 HERE

-Max

On Fri, 2002-12-20 at 23:22, [EMAIL PROTECTED] wrote:
> hi,
> 
> how to open a new window in click of a link i used this code
> 
> CLICK
> HERE
> 
> it gave the error 
> 
> i have given the appropriate mappings in the struts-config.html
> 
> HTTP Status 404 - /screenLabelDetails.do
> 
> type Status report
> message /screenLabelDetails.do
> description The requested resource (/screenLabelDetails.do) is not
> available.
> 
> Apache Tomcat/4.1.12
> 
> ** 
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



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




Re: Pre-populating DynaActionForm Bean

2002-12-21 Thread Affan Qureshi
I have a similar scenario but in my case the sending action does not have
the same form bean bean associated as the destination. So what I want to do
is to instantiate a form bean which the JSP is expecting and put it in the
request scope.

Here is my code:

DynaActionForm form = new DynaActionForm();
form.set("productId", String.valueOf(acc.getProductId()));
form.set("mfrPartNumber", acc.getAccessoryProduct().getMfgPartNo());
form.set("description", acc.getAccessoryProduct().getDescription());
form.set("notes", acc.getNotes());
req.setAttribute("accessory", form);

This is the JSP to which I am sending this request:





Save Accessory


In struts-config.xml I have the following def for action saveAcc.do


This is the error I get when submitting to the JSP:
java.lang.NullPointerException at
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
545) at org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:361)
at com.etilize.cms.web.actions.AddAccessoriesAction.editAccessory ..
(more...)

I am sorry if this has come up earlier but I could not find one.

Thanks a lot.
Affan
- Original Message -
From: "Mark Lowe" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, December 21, 2002 1:17 AM
Subject: Re: Pre-populating Form Bean


> As a side note I'd watch out putting dots in your actions .. I was doing
the
> same and it worked .. and then i was getting an error that complained it
> could find the action...
>
> perhaps it was the release i was using or something, but i'd hate someone
> else to wash time out over this as well.. If its working however then
don't
> fix it...
>
>
>
> - Original Message -
> From: "Mark Conlin" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, December 20, 2002 8:42 PM
> Subject: RE: Pre-populating Form Bean
>
>
> >
> > This can not be the correct way to do this.
> >
> > I removed any reference to the form from the pre-Action:
> >
> >  > type="com.yordata.action.customer.CustomerAccountDetailsPreEditAction">
> > 
> > 
> >
> > Then I placed the Form into the session in the action like this:
> > session.setAttribute( "customerDetailsForm", custForm);
> >
> > This works but, I do not want to hard-code the form reference like this.
> >
> > Mark
> >
> >
> >
> > -Original Message-
> > From: Mark Conlin [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 20, 2002 2:30 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Pre-populating Form Bean
> >
> >
> >
> > Okay, I think I am missing something major here.
> > By watching the log files I see the following.
> >
> > 1)Proccessing my pre edit Action -
> > "customer.customAccountDetails.pre.edit"
> > 2)Struts then looks for my ActionForm -  "customerDetailsForm"
> > 3)Struts then creates my ActionForm since it can not find it.
> > 4)The form fails validation, as described by my validation.xml file.
> >
> > The pre edit Action never runs...
> >
> > The result is that I arrive at my "create" page with validation errors
> > because the validation logic tells it to return to that page.
> >
> > So, how can I pre-populate a Form? What am I don't wrong here...
> >
> > Mark
> >
> >
> > -Original Message-
> > From: Mark Conlin [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 20, 2002 1:38 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Pre-populating Form Bean
> >
> >
> > Okay so I have done the following...
> > I placed name="customerDetailsForm" into my action declaration..
> > It wanted an input field as well so I added that too.
> >
> > Now my form comes up and it is still not populated...
> >
> > My action execute code is below... are you sure I don't need to place
> > the custForm back into the session somehow ?
> >
> >
> > Thanks
> > Mark
> >
> > logger.debug("performAction starting");
> > ActionErrors errors = new ActionErrors();
> > ActionForward actionForward = mapping.findForward(FAILURE);
> > CustomerDetailsForm custForm = (CustomerDetailsForm) form;
> > HttpSession session = (HttpSession) request.getSession();
> >
> > custForm = this.setup( session );
> > actionForward = mapping.findForward(SUCCESS);
> >
> > logger.debug("performAction exiting");
> >
> > Action Declaration:
> >
> >  > type="com.yordata.action.customer.CustomerAccountDetailsEditAction"
> > name="customerDetailsForm"
> > scope="session"
> > input="customer.account_details_view">
> >  > path="/customer.customerAccountDetails.view.do"/>
> > 
> > 
> >
> >
> > -Original Message-
> > From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 20, 2002 2:13 PM
> > To: Struts Users Mailing List
> > Subject: Re: Pre-populating Form Bean
> >
> > If this is a form which you've declared in your config file, and it's
> > associated with this action and you're forwarding to a JSP, you really
> > needn't bother sticking it into any scope.  St

RE: html:select woes

2002-12-21 Thread Mohan Radhakrishnan
Hi,
We tried using struts tags like that. I am sure it will work but
JSTL/Struts-EL makes things more simple like this.


 
  



 It makes complex things straightforward.

Mohan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 5:15 AM
To: [EMAIL PROTECTED]
Subject: html:select woes


Hi all,

I'm trying to figure out how to use the html:select tag and am having no
luck.  When I execute the jsp, I'm getting "Cannot find bean under name
org.apache.struts.taglib.html.BEAN."  I've looked at the docs and the
html-select.jsp example but can't see what's different about my case.  My
struts-config file has this:



and this:





I've tried with and without the "input" attr.  My LoggersForm class extends
ActionForm and has one String property called "newLevel" that's null by
default.  I also have a reset() method that nulls-out newLevel.  My jsp does
this:




One

Submit


The only relevant difference I can see between this and the html-select.jsp
example is that my jsp is under /jsp, but I've tried it both ways and it
doesn't seem to matter.

I'd appreciate a clue.

thanks

john

john gregg
Wells Fargo Service Corporation
Minneapolis, MN

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




O'Reilly Struts book - where is src for chap 13?

2002-12-21 Thread Darrel Riekhof
I've downloaded the examples, but I can't find any of the code in 
chap13, EJB and Struts.  It would save me a bunch of typing...

Darrel


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