RE: RES: Objects In Session

2002-07-18 Thread DeVincentiis Giustino

Hi Craig,

What about using database session state caching (see
http://martinfowler.com/isa/databaseSessionState.html)

Oracle too, in his "Oracle 9iAS Best Practices White Paper", posted last
week on OTN, suggests considering database session state (BP- SESSIONS-1:
PERSIST SESSION STATE IF APPROPRIATE).

Giustino De Vincentiis

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 17, 2002 9:14 PM
> To: Struts Users Mailing List
> Subject: Re: RES: Objects In Session
> 
> 
> 
> 
> On Wed, 17 Jul 2002, julio wrote:
> 
> > Date: Wed, 17 Jul 2002 16:08:34 -0300
> > From: julio <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > Subject: RES: Objects In Session
> >
> > Hi Craig,
> >
> > How do you solve this problem for your site(like yahoo) with 1000
> > users??
> >
> 
> * Save anything I need in hidden variables that are 
> resubmitted with the
>   form, so I can still use request scope form beans.  That 
> way the info
>   is effectively "cached" in the browser, instead of the 
> server.  (This
>   is the biggest payoff, and the primary one that app developers have
>   much control over.)
> 
> * Reduce the amount of stuff that must be cached to an 
> absolute minimum,
>   by not caching rarely used things (or things that don't affect
>   performance visibly if you get them from the database every time).
> 
> * For non-user-specific data, do your caching separately from the
>   session, so that the same cached instance data can be reused.
> 
> * Improve performance of my database server so that session caching
>   becomes less important.
> 
> * Buy more web server memory and/or more web servers (i.e. distribute
>   the application).
> 
> >
> > Julio Cesar
> >
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: Orion and Struts

2001-07-06 Thread DeVincentiis Giustino

Hello,

I'm using Orion 1.5.2 and Struts 1.0 with MS-Windows 98, I've just unzipped
jakarta-struts-1.0.zip under orion/applications, added the entries in
application.xml and default-web-site.xml and the example works fine.
Let me know if you need some more detail...

Giustino De Vincentiis

> -Messaggio originale-
> Da: Nicky Eshkenazi [mailto:[EMAIL PROTECTED]]
> Inviato: giovedì 5 luglio 2001 21.29
> A: [EMAIL PROTECTED]
> Oggetto: Orion and Struts
> 
> 
> Has anybody able to run Struts on the top of Orion 1.5.2.
> I am new to Struts and was trying to take a look at it, but 
> wasn't able to
> run the struts-examples.war...
> 
> I get the following error when 
> http://localhost/struts-example is called.
> 
> 
> 500 Internal Server Error
> javax.servlet.jsp.JspException: Missing message for key index.title
>  at 
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag
> .java:242)
> 
>  at /index.jsp._jspService(/index.jsp.java:52) (JSP page line 8)
>  at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build
> 10460)].server.http.JSPServlet.service(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)
>  at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
> ---
> 
> This error is documented on the struts web-site for Orion 
> until 1.0.3 and si
> related to the ServletContext.getResource() calls , and I am 
> running 1.5.2.
> Is this still an issue here as well. I don't know if this is 
> an Orion issue
> or a Struts one. I was able to deploy and run the 
> struts-documentation.war
> succesfully, so I woul d guess that app server is doing the job.
> 
> 
> Any ideas??
> 
> thanks,
> Nicky
> 



RE: Anyone have the Struts Validator example working?

2001-06-05 Thread DeVincentiis Giustino
ern [mailto:[EMAIL PROTECTED]]
Sent: June 5, 2001 10:18 AM
To: [EMAIL PROTECTED]
Subject: RE: Anyone have the Struts Validator example working?


I'm using Orion 1.5.1 and Struts_Validator-20010510.jar.

It worked when I changed the load-on-startup value to 1 (or 0).  A value of
2 caused the mentioned error.  What was weird is that if I moved the
 definition for the validator below the strut action servlet
definition in the web.xml file I would get the following error:

java.lang.NullPointerException
at
com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123)
at
org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:20
98)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source)

It looks different but it's really the same sore of error that struts was
having, it's just not expecting null though.

Chuck


-Original Message-
From: David Winterfeldt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 10:34 AM
To: [EMAIL PROTECTED]
Subject: RE: Anyone have the Struts Validator example working?


What version are you using and what did you change to
make it work.  Maybe I can fix it.  Does Orion only
accept '1' as a valid load-on-startup value?

2

David

--- Chuck Stern <[EMAIL PROTECTED]> wrote:
> Thanks, that worked.
>
> chuck
>
> -Original Message-
> From: DeVincentiis Giustino
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 05, 2001 7:06 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Anyone have the Struts Validator
> example working?
>
>
> I used the validator with Orion and had a similar
> behavior, the problem was
> in the web.xml.
> Check that the  values for the
> ActionServlet and for the
> ValidatorServlet are correct.
>
> Hope this help,
> Giustino De Vincentiis
>
> -Messaggio originale-
> Da: Chuck Stern
> [mailto:[EMAIL PROTECTED]]
> Inviato: martedl 5 giugno 2001 12.26
> A: Struts-User
> Oggetto: Anyone have the Struts Validator example
> working?
>
>
> Hi,
>
> I would like to try David Winterfeldt's validator
> for a new project I'm
> working on but I can't seem to get it to work with
> Orion 1.51.  The default
> welcome page comes up and I can see the validator
> initializing.  I get the
> following when trying to go to the registration
> example page:
>
> javax.servlet.jsp.JspException: Cannot find message
> resources under key
> org.apache.struts.action.MESSAGE
>   at
>
org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)
>   at
>
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
>   at
>
/registration.jsp._jspService(/registration.jsp.java:72)
> (JSP
> page line
> 9)
>   at com.orionserver[Orion/1.5.1 (build
> 10410)].http.OrionHttpJspPage.service(Unknown
> Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)]._ah._pcd(Unknown Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)].server.http.JSPServlet.service(Unknown
> Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)]._cob._xdd(Unknown Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)]._cob._shc(Unknown Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)]._iz._rzc(Unknown Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)]._iz._ft(Unknown Source)
>   at com.evermind[Orion/1.5.1 (build
> 10410)]._ip.run(Unknown Source)
>
> Any Ideas?
>
> Thanks,
> Chuck


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/



RE: Anyone have the Struts Validator example working?

2001-06-05 Thread DeVincentiis Giustino

I used the validator with Orion and had a similar behavior, the problem was
in the web.xml.
Check that the  values for the ActionServlet and for the
ValidatorServlet are correct.

Hope this help,
Giustino De Vincentiis

-Messaggio originale-
Da: Chuck Stern [mailto:[EMAIL PROTECTED]]
Inviato: martedì 5 giugno 2001 12.26
A: Struts-User
Oggetto: Anyone have the Struts Validator example working?


Hi,

I would like to try David Winterfeldt's validator for a new project I'm
working on but I can't seem to get it to work with Orion 1.51.  The default
welcome page comes up and I can see the validator initializing.  I get the
following when trying to go to the registration example page:

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:292)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:239)
at /registration.jsp._jspService(/registration.jsp.java:72) (JSP
page line
9)
at com.orionserver[Orion/1.5.1 (build
10410)].http.OrionHttpJspPage.service(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._ah._pcd(Unknown Source)
at com.evermind[Orion/1.5.1 (build
10410)].server.http.JSPServlet.service(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._cob._xdd(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._cob._shc(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._iz._rzc(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._iz._ft(Unknown Source)
at com.evermind[Orion/1.5.1 (build 10410)]._ip.run(Unknown Source)

Any Ideas?

Thanks,
Chuck