Form based authentication
Hi, Has anyone used Form based authentication? How does action ="j_security_check" work? Thanks, Nagalli "ameer" <[EMAIL PROTECTED]> cc: 06/06/01 Subject: Displaying the jsp 03:01 PM forwarded by actionforward with the Please struts-form.tld respond to struts-user Im facing problem in displaying a forwarded jsp where in the form values are coming from the request attributes set in action class. im getting the attribute values but the struts-form tags are not getting converted to what it is supposed to. my jsp is like this .. the tag works fine for the first input jsp file . since it is just a submit form. but in my forwarded form i have submitted to the same servlet. can you suggest soln here . my jsp code goes like this for the forwarded page. ** <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %> MusicCD Display <% out.println(request.getAttribute("ejbUpc")); out.println(request.getAttribute("ejbTitle")); out.println(request.getAttribute("ejbArtist")); out.println(request.getAttribute("ejbType")); out.println(request.getAttribute("ejbPrice")); %> Music CD Details CD # maxlength="30" size="30" /> Title maxlength="30" size="30"/> Artist maxlength="30" size="30"/> Type maxlength="30" size="30"/> Price maxlength="30" size="30"/> thanx in adv. Ameer Hussain SS s/w engineer Yashaa Infotech Pvt.Ltd. #14 , 10th Main, HAL 3rd Stage Bangalore 560075 phone: 5294430/53 http://www.yashaa.com
Displaying the jsp forwarded by actionforward with the struts-form.tld
Im facing problem in displaying a forwarded jsp where in the form values are coming from the request attributes set in action class. im getting the attribute values but the struts-form tags are not getting converted to what it is supposed to. my jsp is like this .. the tag works fine for the first input jsp file . since it is just a submit form. but in my forwarded form i have submitted to the same servlet. can you suggest soln here . my jsp code goes like this for the forwarded page. ** <%@ page language="java" %><%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %> MusicCD Display<% out.println(request.getAttribute("ejbUpc")); out.println(request.getAttribute("ejbTitle")); out.println(request.getAttribute("ejbArtist")); out.println(request.getAttribute("ejbType")); out.println(request.getAttribute("ejbPrice"));%> Music CD Details CD # maxlength="30" size="30" /> Title maxlength="30" size="30"/> Artist maxlength="30" size="30"/> Type maxlength="30" size="30"/> Price maxlength="30" size="30"/> thanx in adv. Ameer Hussain SSs/w engineerYashaa Infotech Pvt.Ltd.#14 , 10th Main, HAL 3rd StageBangalore 560075phone: 5294430/53 http://www.yashaa.com
RE: Anyone have the Struts Validator example working?
Hi, The Orion documentation about the load-on-startup states that the optional contents of these element must be an integer indicating the order in which the servlet should be loaded. Then if you use values like 1 (ActionServlet) and 2 (ValidatorServlet) or any different values you want, it should work fine. Anyway you better update to Orion 1.5.2: the new stable release. Giustino De Vincentiis -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: martedì 5 giugno 2001 23.05 A: [EMAIL PROTECTED] Oggetto: RE: Anyone have the Struts Validator example working? My findings with the following settings: == load-on-startup=0 or 1 web.xml's setting definition sequence: 1. validator servlet 2. strut action servlet == All registration example -> javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE both change language example -> javax.servlet.jsp.JspException: Cannot find global ActionForward for name registration == load-on-startup=0 or 1 web.xml's servlet definition sequence: 1. strut action servlet 2. validator servlet == Registration Example -> input form can be displayed -> error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Registration with Javascript Validation and Server Validation -> java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Multi-Part Registration Example with Javascript Validation and Server Validation java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Type Example validating some primitive numbers, a range on the integer, and a date. -> input form can be displayed -> error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Both change language example -> input from with correct lang. can be displayed -> error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) == web.xml's servlet definition sequence: 1. validator servletwith load-on-startup = 2 2. strut action servlet with load-on-startup = 1 == Everything works Fine Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error 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.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) == My Settings are as follow: == Orion: 1.5.2 [application.xml] [default-web-site.xml] validator.war: extracted from validator20010510.zip this war file is extracted and put in directory "../../../../dev/share/struts-validator/validator/" modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too -> same error) as follows: validator com.wintecinc.struts.action.ValidatorServlet config /WEB-INF/validation.xml debug 2 1 action org.apache.struts.action.ActionServlet application com.wintecinc.struts.example.validator.ApplicationResources config /WEB-INF/struts-config.xml debug 2 detail 2 validate true 1 Am I missing sth? Thanks in advance! Chris -Original Message- From: Chuck Stern [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 10:18
Moving from Struts 1.0b1 to Struts 1.0b3
As no-one has provided any thoughts on this one I thought I would repost and give a bit more detail on how the error is being caused. Problem: The validate(mapping, request) method on the ActionForm class is not completing sucessfully in Struts 1.0b3 where it was in Struts 1.0b1. Detail: This is a form that has a couple of struts file upload controls on it (as well as text fields etc) so I suppose that might be related somehow. The exception being thrown in the log is :- java.lang.ClassCastException: org.apache.struts.upload.MultipartRequestWrapper at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl .java:144) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java:21 37) 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:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Does anyone have any ideas? This one has got me totally stumped and without a solution we will have to remain on Struts 1.0b1. Thanks in advance, Graeme. -Original Message- From: Graeme Miller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 5 June 2001 5:02 p.m. To: '[EMAIL PROTECTED]' Subject: Moving from Struts 1.0b1 to Struts 1.0b3 Currently having a problem with migrating code from using Struts 1.0b1 to Struts 1.0b3 Everything seems to work fine apart from the fact that the validate methods on our form beans (ie subclasses of org.apache.struts.action.ActionForm) no longer get called successfully. I have had a look through the release notes and cannot find any reasons why these methods would no longer work. Any ideas people? The following error is what gets thrown in the tomcat log. java.lang.ClassCastException at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl .java, Compiled Code) at org.apache.struts.action.ActionServlet.processValidate(ActionServlet.java, Compiled Code) at org.apache.struts.action.ActionServlet.process(ActionServlet.java, Compiled Code) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java, Com piled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Thanks in advance. Graeme.
RE: More help Plz: Exception thrown processing JSP page...
You can keep it in any dir in web tier, but there should be an entry in web.xml. Rgds, Manoj -Original Message- From: Wes Bramhall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 3:17 AM To: '[EMAIL PROTECTED]' Subject:More help Plz: Exception thrown processing JSP page... "index.title=MailReader Demonstration Application (Struts 1.0-b1)" is found in my ApplicationResources.properties file. Could the file be in the wrong place? Where is it supposed to be? Thanks, -Wes -Original Message- From: Afzal, Tanver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: RE: Plz help: Exception thrown processing JSP page... Hi Wes, please look that ApplicationResources.properties file contain the key index.title. Thanks Tanver > -Original Message- > From: Wes Bramhall [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 4:24 PM > To: '[EMAIL PROTECTED]' > Subject: Plz help: Exception thrown processing JSP page... > > I know that I've read about this error on the list before, but I've not > been able to fix it with any of the suggestions given. As far as I can > tell, struts.jar is in the right place. Am I the only one working on a > Windows 2000 box running JRUN? > > I'm just trying to get the struts example to work. > > Thanks for any help you have! > > -Wes > > /struts-example/index.jsp: > > Exception thrown processing JSP page. > javax.servlet.jsp.JspException: Missing message for key index.title > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) > at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57) > at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) > at > allaire.jrun.session.JRunSessionService.service(../session/JRunSessionSe rv > ice.java:1082) > at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) > at > allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunReques tD > ispatcher.java:89) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) > at > allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) > at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) > at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) > at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
Re: Managing resource life cycle during request
>I'm not suggesting that coding this way is wrong. I would suggest that this >isn't optimal model/view separation, which is one of the main motives for >using Struts, right? What really is true model/view separation. In the 15 years or so that I've been coding, I find this to be more of an academic pursuit. The alternative is to make it a collection which, imho, is not cleaner since it has its own downsides. My $0.02, - jeff - Original Message - From: "Cook, Levi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 4:20 PM Subject: RE: Managing resource life cycle during request > Just a few notes: > > 1. Struts doesn't dissallow the operations you outline below. If you are > using Struts, and you really need to do this, you can make the same calls > from your Action implementation. > > public class SomeAction extends Action { > public ActionForward perform(ActionMapping mapping, ActionForm form, > HttpServletRequest request, HttpServletResponse response) >throws IOException, ServletException { > ServletContext context = servlet.getServletContext(); > RequestDispatcher dispatcher = context.getRequestDispatcher(); > > rs <- > request.setAttribute("rs", rs); > dispatcher.include(request, response); > rs.close(); > > // ActionServlet doesn't do any more response processing.. > return null; > } > } > > I'm not suggesting that coding this way is wrong. I would suggest that this > isn't optimal model/view separation, which is one of the main motives for > using Struts, right? > > 2. My use of the term "acquiring" may have been wrong, or at least > ambiguous. More accurately, I would suggest that view components should not > have knowledge of, or responsibility for non-memory, finite resources. > > 3. You must rely on Garbage collection in Java, you may not like its > behaviors, but its all you get. Also, I would never suggest that you rely on > garbage collection to free, non-memory resources, like db-handles. > > -- Levi > > > > -Original Message- > From: Jeff Trent [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 2:05 PM > To: [EMAIL PROTECTED] > Subject: Re: Managing resource life cycle during request > > > Levi, > > The view/JSP does not acquire the resource. Here is a sample of how the > code use to work pre-struts: > Servlet.doGet() > { > ... > rs <- > request.setAttribute("rs", rs) > > requestDispatcher.include() > > rs.close(); > } > > In JSP: > ... > rs = request.getAttribute("rs") > while (rs.next()) > { > ... > } > > - - - > > The problem is that there is no appropriate counterpart in the world of > struts. Sure, I can copy the row data to a collection and then walk the > collection. But for various reasons, this may be inappropriate (especially > for large result sets represented by a cursor). > > Finally, you should not depend on garbage collection. The garbage collector > is not always called and its certainly not called as often as you would want > it to when you need to free scarce resources like db handles. > > - jeff > > > - Original Message - > From: "Cook, Levi" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 05, 2001 1:40 PM > Subject: RE: Managing resource life cycle during request > > > > Can you elaborate on your resource cleanup requirements? > > > > My view on designing a responsible object is that I must make sure it > > eventually releases any, non-memory, finite resources it uses. This design > > strategy, coupled with garbage collection ensures my system doesn't run > out > > of those resources (eg. file handles, sockets, etc.). > > > > Given that ActionForms and JSPs should play the "view" role in Struts, I > > would question a design that has them acquiring non-memory resources. But, > > alas, I don't know your system or situation.. > > > > Regards, > > Levi Cook > > > > > > -Original Message- > > From: Ted Husted [mailto:[EMAIL PROTECTED]] > > Sent: Monday, June 04, 2001 10:31 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Managing resource life cycle during request > > > > > > I doubt that overriding ActionServlet.process() would work. The > > controller sends back the response, and it's done. It's then up to HTTP > > to deliver the view, usually a JSP. > > > > Any clean-up routine would have to be the responsibility of the view, > > which puts you into the scriplet zone. > > > > Jeff Trent wrote: > > > > > > Well, it looks to me that short of overriding ActionServlet.process(), > > there > > > is no way one can clean-up resources after the page has been rendered... > >
RE: class not found errors
so, is the first time you have tried to run the app or have you already had it working using your existing directory structure and config files? Often this error is a case sensitivity classname issue, or a directory path issue -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 10:10 To: '[EMAIL PROTECTED]' Subject: RE: class not found errors Yes, I check those two (and double checked), they are ok -Original Message- From: Nigel Ainslie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:51 PM To: '[EMAIL PROTECTED]' Subject: RE: class not found errors ..have you made sure that all your declarations in your struts-config.xml file match case-sensitive to the LogonForm.class (as opposed to Logonform or logonForm etc) and made sure that in your jsp you have maintained case sensitivity for calling your ".do" action class? Just a thought :-) -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 8:31 To: '[EMAIL PROTECTED]' Subject: RE: class not found errors That was a typo, it was in webscm/logon -Original Message- From: Nigel Ainslie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:31 PM To: '[EMAIL PROTECTED]' Subject: RE: class not found errors ..is this just a typo or the cause of your error??? You say you have a class file in ellacoya/webwcm/logon but the output seems to be looking in ellacoya/webscm/logon (i.e. webwcm vs webscm) Cheers Nige -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 7:55 To: [EMAIL PROTECTED] Subject: class not found errors I keep getting class-not-found exceptions trying to deploy with JRUN 3.0 There is a LogonForm.class file in servers/default/webscm/Web-Inf/classes/com/ellacoya/webwcm/logon. Any suggestions? don /webscm/logon/logon.jsp: javax.servlet.ServletException: Exception thrown processing JSP page. javax.servlet.jsp.JspException: Exception creating bean of class com.ellacoya.webscm.logon.LogonForm: java.lang.ClassNotFoundException: com.ellacoya.webscm.logon.LogonForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at jrun__logon__logon2ejsp10._jspService(jrun__logon__logon2ejsp10.java:42) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) don zaremba Ellacoya Networks 603 577-5544 ext-247
Re: input in XML config
Could you create these request scope beans as properties of the ActionForm? David Noll wrote: > > Max, > > I don't know if it's the official way to do it, but in my ActionForm's > validate() method, I call mapping.setInput() with the full path of the > original Action. An important thing to note is that if your Action class > pre-populates an ActionForm for the page, you should check for the > ActionForm's existence before populating it. > > All that said, it does seem a bit cumbersome to go through all that merely > to return to a dynamically generated input page if there are form errors. > Does anyone on the list know of a cleaner way to achieve this? > > David > > -- > David Noll, Public Digital > [EMAIL PROTECTED] > > -Original Message- > From: LORENA MASSIMO [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 6:37 AM > To: '[EMAIL PROTECTED]' > Subject: input in XML config > > Hi, > in an action mapping i'd like to reexecute the complete action instead of a > simple jsp when the validate method of the form fails, because i need to > create some beans having request scope > So my question is... > Is it possible to have an action in the input fiele of a mapping instead of > a simple jsp? > thanks Max
RE: input in XML config
Max, I don't know if it's the official way to do it, but in my ActionForm's validate() method, I call mapping.setInput() with the full path of the original Action. An important thing to note is that if your Action class pre-populates an ActionForm for the page, you should check for the ActionForm's existence before populating it. All that said, it does seem a bit cumbersome to go through all that merely to return to a dynamically generated input page if there are form errors. Does anyone on the list know of a cleaner way to achieve this? David -- David Noll, Public Digital [EMAIL PROTECTED] -Original Message- From: LORENA MASSIMO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:37 AM To: '[EMAIL PROTECTED]' Subject: input in XML config Hi, in an action mapping i'd like to reexecute the complete action instead of a simple jsp when the validate method of the form fails, because i need to create some beans having request scope So my question is... Is it possible to have an action in the input fiele of a mapping instead of a simple jsp? thanks Max
RE: class not found errors
Yes, I check those two (and double checked), they are ok -Original Message- From: Nigel Ainslie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:51 PM To: '[EMAIL PROTECTED]' Subject: RE: class not found errors ..have you made sure that all your declarations in your struts-config.xml file match case-sensitive to the LogonForm.class (as opposed to Logonform or logonForm etc) and made sure that in your jsp you have maintained case sensitivity for calling your ".do" action class? Just a thought :-) -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 8:31 To: '[EMAIL PROTECTED]' Subject: RE: class not found errors That was a typo, it was in webscm/logon -Original Message- From: Nigel Ainslie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:31 PM To: '[EMAIL PROTECTED]' Subject: RE: class not found errors ..is this just a typo or the cause of your error??? You say you have a class file in ellacoya/webwcm/logon but the output seems to be looking in ellacoya/webscm/logon (i.e. webwcm vs webscm) Cheers Nige -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 7:55 To: [EMAIL PROTECTED] Subject: class not found errors I keep getting class-not-found exceptions trying to deploy with JRUN 3.0 There is a LogonForm.class file in servers/default/webscm/Web-Inf/classes/com/ellacoya/webwcm/logon. Any suggestions? don /webscm/logon/logon.jsp: javax.servlet.ServletException: Exception thrown processing JSP page. javax.servlet.jsp.JspException: Exception creating bean of class com.ellacoya.webscm.logon.LogonForm: java.lang.ClassNotFoundException: com.ellacoya.webscm.logon.LogonForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at jrun__logon__logon2ejsp10._jspService(jrun__logon__logon2ejsp10.java:42) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) don zaremba Ellacoya Networks 603 577-5544 ext-247
Re: Newbie to struts - jdbc/dbtags
Hi Ted , it did thanks. Ted Husted wrote: > > You can configure Postgresql in the struts-config.xml, and then use the > same datasource with the Jakarta Taglibs JDBC. Works like a charm. > > Struts uses "org.apache.struts.action.DATA_SOURCE" as the datasource > identifier (see Action.java). > > "kuma.cra" wrote: > > > > Hi, im a newbie to struts basically applying the examples and reading > > the documentation (mvc). I am about to connect a psql datasource > > (Postgresql, luinx OS) database to a struts mvc utilizing a database URL > > . > > > > Thus is there a ActionForm example and what level if i have to create a > > ActionForm class i.e /WEB-INF/classes/custom/ActionForm or can i create > > a package above WEB-INF as at the moment i am creating/modifying > > examples from the taglib's and packaging them under mt Struts-bbnpa (my > > re-named struts app's. > > -- Ted Husted, Husted dot Com, Fairport NY USA. > -- Custom Software ~ Technical Services. > -- Tel 716 737-3463. > -- http://www.husted.com/about/struts/
how does one invoke cascasde style sheets
Hi ,folks thru struts i have been able to create / modify a taglib from within netbeans v3.2 tomcat as the container (win98 OS )and connect to a postgresql test database on lunix thanks all , anyway as a newbie please could you point me in the right direction to how and where i set up my companies cascade style sheets for our look and feel on the jsp's as i preparing a project benchmark . 1) do i create a resource directory beneath my webapps/WEB-INF dir. 2) do i have to map it within the tld . Any suggestions welcomed as so far i have had excellant feedback from this community. Cheers all Chuck
RE: Proposed feature: Bean property transformations
I have been creating multiple methods and hoping I was doing the right thing. Looks like it is... public String getCreation() ; public Date getCreationAsDate() ; public int getCreationAsInt() ; // for epoc seconds I guess The first method pulls from a String property and can be null, invalid or valid. The other two pull from a Date that is either null or validated only. When I validate, I only mess with the String, because it was suggested to me a while ago that I have to allow for the String to be incorrect (like setCreation("testing") instead of valid date). If I immediately converted and stored the value as Date, I'd never be able to repeat it to the browser as typed. Anthony -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 4:31 PM To: [EMAIL PROTECTED] Subject: Re: Proposed feature: Bean property transformations I agree. The primary fields on an ActionForm must be Strings, ActionForms should not be used to store persistent data, and the beans used to store persistent data should use appropriate types. The peristent data beans should not have to worry about data conversions, and so that task should be performed by a helper object. But encapsulating the helper object within the ActionForm can be a valid approach, since converting the String to a native type may be considered part of the initial validation. Once this is done, the persistent data bean can call a getPropertyInt or getPropertyDate method to retrieve the native Property type (and then perhaps perform any business logic validations). It's just a matter of whether you prefer converting the data in the Action or in the ActionForm validation method. A reuseable helper class could be implemented in either case. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Oleg V Alexeev wrote: > What reason to store text values and data values in ActionForm? I > think that more flexible approach is to use ActionForm with text only > fields and data bean with native types, not String. In this case we > can name all corresponded fields in data bean with same names as for > ActionForm and use convert methods under it, for example, or use > another convert methods. > We can convert text values to/from with one of the ways - > 1. Perform conversion of all fields in some method in ActionForm, for > example import/export. > 2. Make it in every setter/getter. > 3. Write special helper class to perform conversion - in this case > more flexible approach can be used - one helper can handle > multiple sources and targets. > > -- > Best regards, > Olegmailto:[EMAIL PROTECTED]
Re: Proposed feature: Bean property transformations
I agree. The primary fields on an ActionForm must be Strings, ActionForms should not be used to store persistent data, and the beans used to store persistent data should use appropriate types. The peristent data beans should not have to worry about data conversions, and so that task should be performed by a helper object. But encapsulating the helper object within the ActionForm can be a valid approach, since converting the String to a native type may be considered part of the initial validation. Once this is done, the persistent data bean can call a getPropertyInt or getPropertyDate method to retrieve the native Property type (and then perhaps perform any business logic validations). It's just a matter of whether you prefer converting the data in the Action or in the ActionForm validation method. A reuseable helper class could be implemented in either case. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Oleg V Alexeev wrote: > What reason to store text values and data values in ActionForm? I > think that more flexible approach is to use ActionForm with text only > fields and data bean with native types, not String. In this case we > can name all corresponded fields in data bean with same names as for > ActionForm and use convert methods under it, for example, or use > another convert methods. > We can convert text values to/from with one of the ways - > 1. Perform conversion of all fields in some method in ActionForm, for > example import/export. > 2. Make it in every setter/getter. > 3. Write special helper class to perform conversion - in this case > more flexible approach can be used - one helper can handle > multiple sources and targets. > > -- > Best regards, > Olegmailto:[EMAIL PROTECTED]
RE: More help Plz: Exception thrown processing JSP page...
..try WEB-INF/classes Cheers Nige -Original Message- From: Wes Bramhall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 7:47 To: '[EMAIL PROTECTED]' Subject: More help Plz: Exception thrown processing JSP page... "index.title=MailReader Demonstration Application (Struts 1.0-b1)" is found in my ApplicationResources.properties file. Could the file be in the wrong place? Where is it supposed to be? Thanks, -Wes -Original Message- From: Afzal, Tanver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: RE: Plz help: Exception thrown processing JSP page... Hi Wes, please look that ApplicationResources.properties file contain the key index.title. Thanks Tanver > -Original Message- > From: Wes Bramhall [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 4:24 PM > To: '[EMAIL PROTECTED]' > Subject: Plz help: Exception thrown processing JSP page... > > I know that I've read about this error on the list before, but I've not > been able to fix it with any of the suggestions given. As far as I can > tell, struts.jar is in the right place. Am I the only one working on a > Windows 2000 box running JRUN? > > I'm just trying to get the struts example to work. > > Thanks for any help you have! > > -Wes > > /struts-example/index.jsp: > > Exception thrown processing JSP page. > javax.servlet.jsp.JspException: Missing message for key index.title > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) > at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57) > at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) > at > allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServ > ice.java:1082) > at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) > at > allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestD > ispatcher.java:89) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) > at > allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) > at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) > at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) > at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
More help Plz: Exception thrown processing JSP page...
"index.title=MailReader Demonstration Application (Struts 1.0-b1)" is found in my ApplicationResources.properties file. Could the file be in the wrong place? Where is it supposed to be? Thanks, -Wes -Original Message- From: Afzal, Tanver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: RE: Plz help: Exception thrown processing JSP page... Hi Wes, please look that ApplicationResources.properties file contain the key index.title. Thanks Tanver > -Original Message- > From: Wes Bramhall [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 4:24 PM > To: '[EMAIL PROTECTED]' > Subject: Plz help: Exception thrown processing JSP page... > > I know that I've read about this error on the list before, but I've not > been able to fix it with any of the suggestions given. As far as I can > tell, struts.jar is in the right place. Am I the only one working on a > Windows 2000 box running JRUN? > > I'm just trying to get the struts example to work. > > Thanks for any help you have! > > -Wes > > /struts-example/index.jsp: > > Exception thrown processing JSP page. > javax.servlet.jsp.JspException: Missing message for key index.title > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) > at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57) > at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) > at > allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServ > ice.java:1082) > at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) > at > allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestD > ispatcher.java:89) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) > at > allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) > at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) > at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) > at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
RE: class not found errors
..have you made sure that all your declarations in your struts-config.xml file match case-sensitive to the LogonForm.class (as opposed to Logonform or logonForm etc) and made sure that in your jsp you have maintained case sensitivity for calling your ".do" action class? Just a thought :-) -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 8:31 To: '[EMAIL PROTECTED]' Subject: RE: class not found errors That was a typo, it was in webscm/logon -Original Message- From: Nigel Ainslie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:31 PM To: '[EMAIL PROTECTED]' Subject: RE: class not found errors ..is this just a typo or the cause of your error??? You say you have a class file in ellacoya/webwcm/logon but the output seems to be looking in ellacoya/webscm/logon (i.e. webwcm vs webscm) Cheers Nige -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 7:55 To: [EMAIL PROTECTED] Subject: class not found errors I keep getting class-not-found exceptions trying to deploy with JRUN 3.0 There is a LogonForm.class file in servers/default/webscm/Web-Inf/classes/com/ellacoya/webwcm/logon. Any suggestions? don /webscm/logon/logon.jsp: javax.servlet.ServletException: Exception thrown processing JSP page. javax.servlet.jsp.JspException: Exception creating bean of class com.ellacoya.webscm.logon.LogonForm: java.lang.ClassNotFoundException: com.ellacoya.webscm.logon.LogonForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at jrun__logon__logon2ejsp10._jspService(jrun__logon__logon2ejsp10.java:42) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) don zaremba Ellacoya Networks 603 577-5544 ext-247
RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2
Daniel, How did you convince Websphere to use your updated version? I tried adding the updated FormTag but it's not being picked up. I know it's a classpath issue, but I can't figure it out. From my experiments, it looks like Websphere 3.5.3 uses an old version of struts internally -- If I put the updated jar file on the classpath at one level, it complains because of "Cannot find message resources under key" but if I put it on the webapp's classpath or remove it entirely, I'm back to the "cant remove Attributes from request scope" error [Any chance we could get the apostrophe back in that error message?] Thanks, Roxie -Original Message-From: Daniel Benzimra-Ceuppens [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 30, 2001 6:40 AMTo: Jon.Ridgway; [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2 Yes sir, It does work, also under WAS 3.5.3. Thanks alot: you allow me to use Struts 1.0b2 ! Daniel. -Original Message-From: Jon.Ridgway [mailto:[EMAIL PROTECTED]]Sent: Wed, 30 May, 2001 12:58To: [EMAIL PROTECTED]; [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: Form tag problem in VAJ 3.5.3 WTE with 1.0b2 Hi All, Opps and apologies, adding a getRequest may resolve this little one, I tried editing org.apache.struts.taglib.FormTag.doEndTag as follows : // Remove the page scope attributes we created pageContext.getRequest().removeAttribute(Constants.BEAN_KEY); pageContext.getRequest().removeAttribute(Constants.FORM_KEY); And when I called : Object o = pageContext.getRequest().getAttribute(Constants.BEAN_KEY); Got null as I would expect. Jon.
RE: class not found errors
That was a typo, it was in webscm/logon -Original Message- From: Nigel Ainslie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 6:31 PM To: '[EMAIL PROTECTED]' Subject: RE: class not found errors ..is this just a typo or the cause of your error??? You say you have a class file in ellacoya/webwcm/logon but the output seems to be looking in ellacoya/webscm/logon (i.e. webwcm vs webscm) Cheers Nige -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 7:55 To: [EMAIL PROTECTED] Subject: class not found errors I keep getting class-not-found exceptions trying to deploy with JRUN 3.0 There is a LogonForm.class file in servers/default/webscm/Web-Inf/classes/com/ellacoya/webwcm/logon. Any suggestions? don /webscm/logon/logon.jsp: javax.servlet.ServletException: Exception thrown processing JSP page. javax.servlet.jsp.JspException: Exception creating bean of class com.ellacoya.webscm.logon.LogonForm: java.lang.ClassNotFoundException: com.ellacoya.webscm.logon.LogonForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at jrun__logon__logon2ejsp10._jspService(jrun__logon__logon2ejsp10.java:42) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) don zaremba Ellacoya Networks 603 577-5544 ext-247
RE: class not found errors
..is this just a typo or the cause of your error??? You say you have a class file in ellacoya/webwcm/logon but the output seems to be looking in ellacoya/webscm/logon (i.e. webwcm vs webscm) Cheers Nige -Original Message- From: Zaremba, Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 6 June 2001 7:55 To: [EMAIL PROTECTED] Subject: class not found errors I keep getting class-not-found exceptions trying to deploy with JRUN 3.0 There is a LogonForm.class file in servers/default/webscm/Web-Inf/classes/com/ellacoya/webwcm/logon. Any suggestions? don /webscm/logon/logon.jsp: javax.servlet.ServletException: Exception thrown processing JSP page. javax.servlet.jsp.JspException: Exception creating bean of class com.ellacoya.webscm.logon.LogonForm: java.lang.ClassNotFoundException: com.ellacoya.webscm.logon.LogonForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at jrun__logon__logon2ejsp10._jspService(jrun__logon__logon2ejsp10.java:42) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) don zaremba Ellacoya Networks 603 577-5544 ext-247
Re: throwing Exceptions from perform()
Thanks for the idea. - Original Message - From: "John Raley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 5:01 PM Subject: Re: throwing Exceptions from perform() > Hi Jonathon, > > Struts calls Action.perform from the ActionServlet. Servlets are > allowed to throw only these two exceptions from their service() methods > - so you'll need a proprietary Servlet framework as well... :^) > > In my app I have a base Action class with a final perform() method. All > of my actions are subclasses of this base - they implement a different, > protected method called doPerform() that can throw any exception. The > base perform() method calls doPerform(), catches exceptions and handles > them appropriately. Would this design work for you? > > > Jonathan wrote: > > > I am seeing that I can only throw IOException and ServletException > > from my Action classes. Now I was thinking about adding Exceptions to > > the Action class but that would make it proprietary. I could add just > > Exception, but I dont want to change anything without good reason. > > Can you all telll me why I am limited to these two exceptions and what > > you all are doing about this. The reason is that I have my own > > exceptions for my app, and will need to throw them sometimes within > > the perform method. > > > > Thanx > > > > Jonathan > > > > >
Re: Report to Recipient(s)
Apparently someone's spam filter doesn't like x's being lined up in bunches of three or more ;) Paladin wrote: > Incident Information:- > > Originator:"Deadman, Hal" <[EMAIL PROTECTED]> > Recipients:[EMAIL PROTECTED] > Subject: RE: Query: ActionMappings > > Message from "Deadman, Hal" <[EMAIL PROTECTED]> was NOT delivered, > because it contained banned content.
class not found errors
I keep getting class-not-found exceptions trying to deploy with JRUN 3.0 There is a LogonForm.class file in servers/default/webscm/Web-Inf/classes/com/ellacoya/webwcm/logon. Any suggestions? don /webscm/logon/logon.jsp: javax.servlet.ServletException: Exception thrown processing JSP page. javax.servlet.jsp.JspException: Exception creating bean of class com.ellacoya.webscm.logon.LogonForm: java.lang.ClassNotFoundException: com.ellacoya.webscm.logon.LogonForm at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:568) at jrun__logon__logon2ejsp10._jspService(jrun__logon__logon2ejsp10.java:42) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc her.java:34) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis patcher.java:88) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1131) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:330) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:107) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75) don zaremba Ellacoya Networks 603 577-5544 ext-247
Report to Recipient(s)
Incident Information:- Originator:"Deadman, Hal" <[EMAIL PROTECTED]> Recipients:[EMAIL PROTECTED] Subject: RE: Query: ActionMappings Message from "Deadman, Hal" <[EMAIL PROTECTED]> was NOT delivered, because it contained banned content.
RE: Query: ActionMappings
Yes you can. Just set the path to the path for the action and include the .do extension. XXX > -Original Message- > From: Upadhye, Sujit (GEAE, Foreign National) > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 5:52 PM > To: [EMAIL PROTECTED] > Subject: Query: ActionMappings > > > Hello, > > In local-forwards, can I forward the control to another Action object > instead of forwarding to a JSP? > > Sujit Upadhye >
RE: Query: ActionMappings
yes. -Original Message- From: Upadhye, Sujit (GEAE, Foreign National) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 5:52 PM To: [EMAIL PROTECTED] Subject: Query: ActionMappings Hello, In local-forwards, can I forward the control to another Action object instead of forwarding to a JSP? Sujit Upadhye
Query: ActionMappings
Hello, In local-forwards, can I forward the control to another Action object instead of forwarding to a JSP? Sujit Upadhye
Re: How to remove history list?
Alas, it is not permitted. "SHROM,BENJAMIN (HP-USA,ex1)" wrote: > Hello, > Does anybody know how to remove history list from browser using JavaScript? > Benjamin Shrom.
How to remove history list?
Hello, Does anybody know how to remove history list from browser using JavaScript? Benjamin Shrom.
testing for a nested bean value
Title: testing for a nested bean value Hi- Say you have a bean in the request that is being processed by the jsp, call it resultBean. In this bean you have a bean called multimediaBean, and this bean has a property called url. So, I think I should be able to say " > But if the multimediaBean is null this dies out. So, I think I should be able to protect this with a logic:present as follows: " > But this also dies. So I think this must be because the multimediaBean call returning null in the logic:present tag is not being checked, and so I nest them: " > and this too fails. Any tips on how to handle this one? Thanks in advance, S-
Report to Recipient(s)
Incident Information:- Originator:Joyce Tang <[EMAIL PROTECTED]> Recipients:"'[EMAIL PROTECTED] '" <[EMAIL PROTECTED]>, "'[EMAIL PROTECTED] '" <[EMAIL PROTECTED]> Subject: RE: URGENT - PLEASE HELP: DROPDOWN BOX Message from Joyce Tang <[EMAIL PROTECTED]> was NOT delivered, because it contained banned content.
RE: URGENT - PLEASE HELP: DROPDOWN BOX
Title: RE: URGENT - PLEASE HELP: DROPDOWN BOX Try this -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 6/5/01 1:58 PM Subject: URGENT - PLEASE HELP: DROPDOWN BOX Hi, In my form bean I have the following code: private void setHmTitles() { hmTitles.add( new LabelValueBean (" ", 0) ); hmTitles.add( new LabelValueBean ("Mr.", 1) ); hmTitles.add( new LabelValueBean ("Mrs.", 2) ); hmTitles.add( new LabelValueBean ("Ms.", 3) ); hmTitles.add( new LabelValueBean ("Miss", 4) ); hmTitles.add( new LabelValueBean ("Mr.and Mrs.", 5) ); hmTitles.add( new LabelValueBean ("Dr.", 6) ); } where LabelValueBean is a name value pair class similar to the one struts has. In my jsp I have the following code: name="sp" property="label" /> and the dropdown box displays all the values correctly except for the first one. Since the first one is " " (which is supposed to show the title as blank) it displays 0. What do I do to make it display a blank? I have tried and "''" which didn't work either. Can you please help me as I am approaching deadline soon. Sharmila Pandith Software Engineer iXL Inc. phone: 212-500-5180 AIM: spandith Yahoo: spandith MSN: spandith This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately.
RE: Anyone have the Struts Validator example working?
My findings with the following settings: == load-on-startup=0 or 1 web.xml's setting definition sequence: 1. validator servlet 2. strut action servlet == All registration example -> javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE both change language example -> javax.servlet.jsp.JspException: Cannot find global ActionForward for name registration == load-on-startup=0 or 1 web.xml's servlet definition sequence: 1. strut action servlet 2. validator servlet == Registration Example -> input form can be displayed -> error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Registration with Javascript Validation and Server Validation -> java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Multi-Part Registration Example with Javascript Validation and Server Validation java.lang.NullPointerException at com.wintecinc.struts.taglib.html.JavascriptValidatorTag.doStartTag(Javascrip tValidatorTag.java:174) Type Example validating some primitive numbers, a range on the integer, and a date. -> input form can be displayed -> error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) Both change language example -> input from with correct lang. can be displayed -> error when save java.lang.NullPointerException at com.wintecinc.struts.action.ValidatorForm.validate(ValidatorForm.java:123) == web.xml's servlet definition sequence: 1. validator servletwith load-on-startup = 2 2. strut action servlet with load-on-startup = 1 == Everything works Fine Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: June 5, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error 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.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) == My Settings are as follow: == Orion: 1.5.2 [application.xml] [default-web-site.xml] validator.war: extracted from validator20010510.zip this war file is extracted and put in directory "../../../../dev/share/struts-validator/validator/" modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too -> same error) as follows: validator com.wintecinc.struts.action.ValidatorServlet config /WEB-INF/validation.xml debug 2 1 action org.apache.struts.action.ActionServlet application com.wintecinc.struts.example.validator.ApplicationResources config /WEB-INF/struts-config.xml debug 2 detail 2 validate true 1 Am I missing sth? Thanks in advance! Chris -Original Message- From: Chuck Stern [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(Act
RE: Anyone have the Struts Validator example working?
Did you try leaving your value set to 2 on the action servlet configuration? Chuck -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 3:32 PM To: [EMAIL PROTECTED] Subject: RE: Anyone have the Struts Validator example working? I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error 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.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) == My Settings are as follow: == Orion: 1.5.2 [application.xml] [default-web-site.xml] validator.war: extracted from validator20010510.zip this war file is extracted and put in directory "../../../../dev/share/struts-validator/validator/" modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too -> same error) as follows: validator com.wintecinc.struts.action.ValidatorServlet config /WEB-INF/validation.xml debug 2 1 action org.apache.struts.action.ActionServlet application com.wintecinc.struts.example.validator.ApplicationResources config /WEB-INF/struts-config.xml debug 2 detail 2 validate true 1 Am I missing sth? Thanks in advance! Chris -Original Message- From: Chuck Stern [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 > O
Re: throwing Exceptions from perform()
Hi Jonathon, Struts calls Action.perform from the ActionServlet. Servlets are allowed to throw only these two exceptions from their service() methods - so you'll need a proprietary Servlet framework as well... :^) In my app I have a base Action class with a final perform() method. All of my actions are subclasses of this base - they implement a different, protected method called doPerform() that can throw any exception. The base perform() method calls doPerform(), catches exceptions and handles them appropriately. Would this design work for you? Jonathan wrote: > I am seeing that I can only throw IOException and ServletException > from my Action classes. Now I was thinking about adding Exceptions to > the Action class but that would make it proprietary. I could add just > Exception, but I dont want to change anything without good reason. > Can you all telll me why I am limited to these two exceptions and what > you all are doing about this. The reason is that I have my own > exceptions for my app, and will need to throw them sometimes within > the perform method. > > Thanx > > Jonathan >
URGENT - PLEASE HELP: DROPDOWN BOX
Hi, In my form bean I have the following code: private void setHmTitles() { hmTitles.add( new LabelValueBean (" ", 0) ); hmTitles.add( new LabelValueBean ("Mr.", 1) ); hmTitles.add( new LabelValueBean ("Mrs.", 2) ); hmTitles.add( new LabelValueBean ("Ms.", 3) ); hmTitles.add( new LabelValueBean ("Miss", 4) ); hmTitles.add( new LabelValueBean ("Mr.and Mrs.", 5) ); hmTitles.add( new LabelValueBean ("Dr.", 6) ); } where LabelValueBean is a name value pair class similar to the one struts has. In my jsp I have the following code: and the dropdown box displays all the values correctly except for the first one. Since the first one is " " (which is supposed to show the title as blank) it displays 0. What do I do to make it display a blank? I have tried and "''" which didn't work either. Can you please help me as I am approaching deadline soon. Sharmila Pandith Software Engineer iXL Inc. phone: 212-500-5180 AIM: spandith Yahoo: spandith MSN: spandith This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately.
Making over Half Million Dollars every 4 to 5 Months from your Home
AS SEEN ON NATIONAL TV:Making over Half Million Dollars every 4 to 5 Months from your Home for an investment of only$25 U.S. Dollars expense one timeTHANK'S TO THE COMPUTER AGE AND THE INTERNET!==BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!!Before you say ''Bull'', please read the following.This is the letter you have been hearing about on the news lately. Due to the popularityof this letter on the Internet, a national weekly news program recently devoted an entireshow to the investigation of this program described below, to see if it really can makepeople money. The show also investigated whether or not the program was legal. Their findingsproved once and for all that there are ''absolutely NO Laws prohibiting the participation inthe program and if people can follow the simple instructions, they are bound to make somemega bucks with only $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY& RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER.This is what one had to say: ''Thanks to this profitable opportunity. I was approached many times beforebut each time I passed on it. I am so glad I finally joined just to see what one could expectin return for the minimal effort and money required. To my astonishment, I receivedtotal $610,470.00 in 21 weeks, with money still coming in." Pam Hedland, Fort Lee, New Jersey.===Here is another testimonial: "This program has been around for a long time but I never believedin it. But one day when I received this again in the mail I decided to gamble my $25 on it. Ifollowed the simple instructions and 3 weeks later the money started to come in.First month I only made $240.00 but the next 2 months after that I made a total of $290,000.00.So far, in the past 8 months by re-entering the program, I have made over $710,000.00 and I amplaying it again. The key to success in this program is to follow the simple steps and NOT changeanything.'' More testimonials later but first,= PRINT THIS NOW FOR YOUR FUTURE REFERENCE ==$If you would like to make at least $500,000 every 4 to 5 months easily And comfortably, pleaseread the following...THEN READ IT AGAIN and AGAIN!!!$FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME TRUE,GUARANTEED!INSTRUCTIONS:=Order all 5 reports shown on the list below =For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT YOU ARE ORDERING andYOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report.MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mailproblems.=== When you place your order, make sure you order each of the 5 reports.You will need all 5 reports so that you can save them on your computer and resell them.YOUR TOTAL COST $5 X 5=$25.00.Within a few days you will receive, vie e-mail, each of the 5 reports from these 5 different individuals.Save them on your computer so they will be accessible for you to send to the 1,000's of peoplewho will order them from you. Also make a floppy of these reports and keep it on your desk incase something happen to your computer.IMPORTANT - DO NOT alter the names of the people who are listed next to each report, ortheir sequence on the list, in any way other than what is instructed below in step'' 1 through 6 '' or you will lose out on majority of your profits. Once you understandthe way this works, you will also see how it does not work if you change it. Remember, thismethod has been tested, and if you alter, it will NOT work !!! People have tried to put theirfriends/relatives names on all five thinking they could get all the money. But it does notwork this way. Believe us, we all have tried to be greedy and then nothing happened. So Do Nottry to change anything other than what is instructed. Because if you do, it will not work foryou. Remember, honesty reaps the reward!!!1 After you have ordered all 5 reports, take this advertisement and REMOVE thename & address of the person in REPORT # 5. This person has made it through the cycle andis no doubt counting their fortune.2 Move the name & address in REPORT # 4 down TO REPORT # 5.3 Move the name & address in REPORT # 3 down TO REPORT # 4.4 Move the name & address in REPORT # 2 down TO REPORT # 3.5 Move the name & address in REPORT # 1 down TO REPORT # 26 Insert YOUR name & address in the REPORT # 1 Position.PLEASE MAKE SURE you copy every name & address ACCURATELY!== Take this entire letter, with the modified list of names, and save it on your computer.DO NOT MAKE ANY OTHER CHANGES.Save this on a disk as well just in case you lose any data. To assist you wit
RE: Anyone have the Struts Validator example working?
I still have the following error when I tried to access http://localhost/share/validator/registration.jsp: 500 Internal Server Error 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.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) == My Settings are as follow: == Orion: 1.5.2 [application.xml] [default-web-site.xml] validator.war: extracted from validator20010510.zip this war file is extracted and put in directory "../../../../dev/share/struts-validator/validator/" modify web.xml for load-on-startup value to 1 from 2 (already tried 0 too -> same error) as follows: validator com.wintecinc.struts.action.ValidatorServlet config /WEB-INF/validation.xml debug 2 1 action org.apache.struts.action.ActionServlet application com.wintecinc.struts.example.validator.ApplicationResources config /WEB-INF/struts-config.xml debug 2 detail 2 validate true 1 Am I missing sth? Thanks in advance! Chris -Original Message- From: Chuck Stern [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 > ini
Re: Please help with logic notPresent
Be sure you've included the logic tld. The "I am here" would display regardless, since the browsers ignore tags they don't understand. Alex Colic wrote: > > Hi, > > I have an object in the session that if it is not there I want to display > and error msg to the user. My error code is as follows: > > > > > > > > I would think that the above code would show the message if the > "VendorResourceList" object is not found in the session but the error msg > is always displayed even though the below code snippet works. > > > > > > > > > I am here > > > > Amy help in understanding this is appreciated. > > Alex
RE: Setting focus to textbox?
Are you getting a JavaScript error? If so this may be fixed in a more recent struts build. There used to be a problem setting the focus on fields that used the nested property syntax. > -Original Message- > From: Alex Colic [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 4:11 PM > To: Struts > Subject: Setting focus to textbox? > > > > Hi, I am getting an error setting focus to a textbox. > > My form tag is as follows: > > method="GET"> > > I have created a text box as follows: > > maxlength="20" /> > > What I am trying to do is set focus to the text box when the > page is loaded. > > Any ideas where I have gone wrong? > > Thanks for the help. > > Alex >
RE: Setting value to a textarea?
Alex, If you don't fill in the 'value' attribute , struts will call the form.getRequisitionLines().getDescription() (where form is mapped in the struts-config.xml file for your action) and populate the 'value' attribute. However if you polulate the 'value' attribute, struts will show that value as it is..(i.e think of it as a constant u want to display). Hope this clarifies what u want to do. cheers, Amar.. -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 4:15 PM To: Struts Subject: Setting value to a textarea? Hi, I am trying to set the value of a textarea that I have created via: When the page is displayed the textarea text is populated with "requisitionLines.pcitem.name" not the value held in the bean. Could someone tell me what I am doing wrong? Thanks Alex
RE: Plz help: Exception thrown processing JSP page...
Hi Wes, please look that ApplicationResources.properties file contain the key index.title. Thanks Tanver > -Original Message- > From: Wes Bramhall [SMTP:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 4:24 PM > To: '[EMAIL PROTECTED]' > Subject: Plz help: Exception thrown processing JSP page... > > I know that I've read about this error on the list before, but I've not > been able to fix it with any of the suggestions given. As far as I can > tell, struts.jar is in the right place. Am I the only one working on a > Windows 2000 box running JRUN? > > I'm just trying to get the struts example to work. > > Thanks for any help you have! > > -Wes > > /struts-example/index.jsp: > > Exception thrown processing JSP page. > javax.servlet.jsp.JspException: Missing message for key index.title > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) > at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57) > at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228) > at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) > at > allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServ > ice.java:1082) > at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) > at > allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestD > ispatcher.java:89) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) > at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) > at > allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) > at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) > at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) > at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
RE: Managing resource life cycle during request
Just a few notes: 1. Struts doesn't dissallow the operations you outline below. If you are using Struts, and you really need to do this, you can make the same calls from your Action implementation. public class SomeAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { ServletContext context = servlet.getServletContext(); RequestDispatcher dispatcher = context.getRequestDispatcher(); rs <- request.setAttribute("rs", rs); dispatcher.include(request, response); rs.close(); // ActionServlet doesn't do any more response processing.. return null; } } I'm not suggesting that coding this way is wrong. I would suggest that this isn't optimal model/view separation, which is one of the main motives for using Struts, right? 2. My use of the term "acquiring" may have been wrong, or at least ambiguous. More accurately, I would suggest that view components should not have knowledge of, or responsibility for non-memory, finite resources. 3. You must rely on Garbage collection in Java, you may not like its behaviors, but its all you get. Also, I would never suggest that you rely on garbage collection to free, non-memory resources, like db-handles. -- Levi -Original Message- From: Jeff Trent [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 2:05 PM To: [EMAIL PROTECTED] Subject: Re: Managing resource life cycle during request Levi, The view/JSP does not acquire the resource. Here is a sample of how the code use to work pre-struts: Servlet.doGet() { ... rs <- request.setAttribute("rs", rs) requestDispatcher.include() rs.close(); } In JSP: ... rs = request.getAttribute("rs") while (rs.next()) { ... } - - - The problem is that there is no appropriate counterpart in the world of struts. Sure, I can copy the row data to a collection and then walk the collection. But for various reasons, this may be inappropriate (especially for large result sets represented by a cursor). Finally, you should not depend on garbage collection. The garbage collector is not always called and its certainly not called as often as you would want it to when you need to free scarce resources like db handles. - jeff - Original Message - From: "Cook, Levi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 1:40 PM Subject: RE: Managing resource life cycle during request > Can you elaborate on your resource cleanup requirements? > > My view on designing a responsible object is that I must make sure it > eventually releases any, non-memory, finite resources it uses. This design > strategy, coupled with garbage collection ensures my system doesn't run out > of those resources (eg. file handles, sockets, etc.). > > Given that ActionForms and JSPs should play the "view" role in Struts, I > would question a design that has them acquiring non-memory resources. But, > alas, I don't know your system or situation.. > > Regards, > Levi Cook > > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 10:31 PM > To: [EMAIL PROTECTED] > Subject: Re: Managing resource life cycle during request > > > I doubt that overriding ActionServlet.process() would work. The > controller sends back the response, and it's done. It's then up to HTTP > to deliver the view, usually a JSP. > > Any clean-up routine would have to be the responsibility of the view, > which puts you into the scriplet zone. > > Jeff Trent wrote: > > > > Well, it looks to me that short of overriding ActionServlet.process(), > there > > is no way one can clean-up resources after the page has been rendered... >
Setting value to a textarea?
Hi, I am trying to set the value of a textarea that I have created via: When the page is displayed the textarea text is populated with "requisitionLines.pcitem.name" not the value held in the bean. Could someone tell me what I am doing wrong? Thanks Alex Alex Colic.vcf
Setting focus to textbox?
Hi, I am getting an error setting focus to a textbox. My form tag is as follows: I have created a text box as follows: What I am trying to do is set focus to the text box when the page is loaded. Any ideas where I have gone wrong? Thanks for the help. Alex Alex Colic.vcf
Plz help: Exception thrown processing JSP page...
I know that I've read about this error on the list before, but I've not been able to fix it with any of the suggestions given. As far as I can tell, struts.jar is in the right place. Am I the only one working on a Windows 2000 box running JRUN? I'm just trying to get the struts example to work. Thanks for any help you have! -Wes /struts-example/index.jsp:Exception thrown processing JSP page.javax.servlet.jsp.JspException: Missing message for key index.title at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57) at allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228) at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416) at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionService.java:1082) at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270) at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552) at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542) at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364) at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115) at allaire.jrun.ThreadPool.run(../ThreadPool.java:272) at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
Please help with logic notPresent
Hi, I have an object in the session that if it is not there I want to display and error msg to the user. My error code is as follows: I would think that the above code would show the message if the "VendorResourceList" object is not found in the session but the error msg is always displayed even though the below code snippet works. I am here Amy help in understanding this is appreciated. Alex Alex Colic.vcf
throwing Exceptions from perform()
I am seeing that I can only throw IOException and ServletException from my Action classes. Now I was thinking about adding Exceptions to the Action class but that would make it proprietary. I could add just Exception, but I dont want to change anything without good reason. Can you all telll me why I am limited to these two exceptions and what you all are doing about this. The reason is that I have my own exceptions for my app, and will need to throw them sometimes within the perform method. Thanx Jonathan
Re: Getting values from ActionForm bean
Sorry... the error generated from my JSP is as follows, and not the error included in the original message: javax.servlet.jsp.JspException: No getter method available for property customers for bean under name null at org.apache.struts.taglib.html.OptionsTag.getIterator(OptionsTag.java:338) at org.apache.struts.taglib.html.OptionsTag.doEndTag(OptionsTag.java:234) at jsp_servlet._content._managerstart._jspService(_managerstart.java:337) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) Shannon Moschetti wrote: > I'm new to struts and would like to get a handle on a few things. I > made certain to search the archives for an answer to my current > problem, but was unable to find an answer. So I post my question here. > > I have an ActionForm in which I added a method that queries a database > and gets a name/id pair and adds them to a hashtable. On creation of > the form(in the JSP associated with the ActionForm class) I want to > populate a combobox on the form with values from the hashtable. > Here's what I tried, and the results of the code: > > JSP > >labelProperty="key"> > > > ActionForm > public Hashtable getCustomers(){ > // query database, build hashtable > return hash; > } > > The ActionForm is a request scope bean, as specified in struts-config. > Here's the error I get: > javax.servlet.jsp.JspException: Cannot find bean exportForm in scope > request > at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:486) > at > org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200) > at > jsp_servlet._content._managerstart._jspService(_managerstart.java:297) > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213) > > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246) > > at > >weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265) > > > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622) > > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) > > >
Need help with "Can't remove attributes from request scope" problem.
Hi everyone, We ran into a problem running b2/b3 on Servletmill that others seem to have hit with WTE. It occurs when trying to access the login page from struts-example, you get an IllegalArgumentException with message "Can't remove attributes from request scope". It seems this thread discusses a potential HACK to "fix" the issue. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08663.html The top-most posting in this thread indicates bugzilla id 932 which I checked into: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=932 So, according to Craig the bug is really in the servlet container and it would seem that my servlet container has the very same prolem. What is suggested work around for this? Can someone help me with some more details in the event that I need to speak with my container vendor? --Steve
Re: Managing resource life cycle during request
Levi, The view/JSP does not acquire the resource. Here is a sample of how the code use to work pre-struts: Servlet.doGet() { ... rs <- request.setAttribute("rs", rs) requestDispatcher.include() rs.close(); } In JSP: ... rs = request.getAttribute("rs") while (rs.next()) { ... } - - - The problem is that there is no appropriate counterpart in the world of struts. Sure, I can copy the row data to a collection and then walk the collection. But for various reasons, this may be inappropriate (especially for large result sets represented by a cursor). Finally, you should not depend on garbage collection. The garbage collector is not always called and its certainly not called as often as you would want it to when you need to free scarce resources like db handles. - jeff - Original Message - From: "Cook, Levi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 1:40 PM Subject: RE: Managing resource life cycle during request > Can you elaborate on your resource cleanup requirements? > > My view on designing a responsible object is that I must make sure it > eventually releases any, non-memory, finite resources it uses. This design > strategy, coupled with garbage collection ensures my system doesn't run out > of those resources (eg. file handles, sockets, etc.). > > Given that ActionForms and JSPs should play the "view" role in Struts, I > would question a design that has them acquiring non-memory resources. But, > alas, I don't know your system or situation.. > > Regards, > Levi Cook > > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 10:31 PM > To: [EMAIL PROTECTED] > Subject: Re: Managing resource life cycle during request > > > I doubt that overriding ActionServlet.process() would work. The > controller sends back the response, and it's done. It's then up to HTTP > to deliver the view, usually a JSP. > > Any clean-up routine would have to be the responsibility of the view, > which puts you into the scriplet zone. > > Jeff Trent wrote: > > > > Well, it looks to me that short of overriding ActionServlet.process(), > there > > is no way one can clean-up resources after the page has been rendered... >
Re: GenericDataSource error
> Now I've got > Begin event threw exception > java.lang.ClassNotFoundException: > org/apache/struts/util/GenericDataSource > > when Tomcat tries to compile struts-config.xml > > I can see that struts.jar is in the /lib folder and > GenericDataSource.class > is there, so what am I missing? Is there something > else I need to add to my Maybe you just need to place this class inside a jar file which resides in the WEB-INF/lib directory? AFAIK, assorted classes belong under WEB-INF/classes = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
GenericDataSource error
Title: GenericDataSource error Hi, I need to get familiar with using Struts and JDBC and I'm trying to run the fruit-glaze application. I've installed mysql and the driver, added the driver to my classpath and started mysql as a service. Then I added fruit-glaze.war to the webapps folder and started Tomcat. Now I've got Begin event threw exception java.lang.ClassNotFoundException: org/apache/struts/util/GenericDataSource when Tomcat tries to compile struts-config.xml I can see that struts.jar is in the /lib folder and GenericDataSource.class is there, so what am I missing? Is there something else I need to add to my classpath to make sure that Tomcat deploys the fruit-glaze.war correctly? Thanks, Kat Luna [EMAIL PROTECTED]
RE: Managing resource life cycle during request
Can you elaborate on your resource cleanup requirements? My view on designing a responsible object is that I must make sure it eventually releases any, non-memory, finite resources it uses. This design strategy, coupled with garbage collection ensures my system doesn't run out of those resources (eg. file handles, sockets, etc.). Given that ActionForms and JSPs should play the "view" role in Struts, I would question a design that has them acquiring non-memory resources. But, alas, I don't know your system or situation.. Regards, Levi Cook -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 10:31 PM To: [EMAIL PROTECTED] Subject: Re: Managing resource life cycle during request I doubt that overriding ActionServlet.process() would work. The controller sends back the response, and it's done. It's then up to HTTP to deliver the view, usually a JSP. Any clean-up routine would have to be the responsibility of the view, which puts you into the scriplet zone. Jeff Trent wrote: > > Well, it looks to me that short of overriding ActionServlet.process(), there > is no way one can clean-up resources after the page has been rendered...
RE: Error compiling 'cannot resolve symbol'
Ant's user manual has lots of useful pointers for you. http://jakarta.apache.org/ant/manual/index.html A quick fix for your junit problem is to place junit.jar in your CLASSPATH or in the $ANT_HOME/lib directory. HTH, Levi Cook FYI, JUnit and Ant both have good mailing lists for further info on this stuff. -Original Message- From: Sylvie Djihanian [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Error compiling 'cannot resolve symbol' Hi, I am trying to compile the sample application "business.zip" I found in the Struts, an open-source MVC implementation article http://www-106.ibm.com/developerworks/library/j-struts/?n-j-2151. I get the following error: [javac] E:\jakarta-struts-1.0-b3\samples\business\src\test\test\business\All JUnitTests.java:6: cannot resolve symbol [javac] symbol : class Test [javac] location: package framework [javac] import junit.framework.Test; [javac]^ I downloaded junit.jar and copied it into my E:\jakarta-struts-1.0-b3\samples\business\lib directory. (I thought JUnit should have come with the Ant binaries). I'm somewhat new to the struts and java world... Do you know how I can get the builder to find the junit package? Sylvie
RE: Report to Recipient(s)
-Original Message- From: Paladin Sent: Tue 6/5/2001 7:30 AM To: [EMAIL PROTECTED] Cc: Subject: Report to Recipient(s) Incident Information:- Originator:Ted Husted <[EMAIL PROTECTED]> Recipients:[EMAIL PROTECTED] Subject: Re: Action before loading a page Message from Ted Husted <[EMAIL PROTECTED]> was NOT deliverd, because it contained banned content. winmail.dat
Re: Problems with logic:equals tag, session timeouts
There has just been a discussion of adding an additional parameter to logic:present to tell it how to cope with empty Strings. Right now, it expects empty Strings to be represented as null. See < http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01451.html >, et seq., for more. The ProcessSession idea is interesting, but any discussion of this should be moved to Struts-Dev. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Andreas Prohaska wrote: > > Hi, > > during the development of one project using Struts I experienced some > problems with the logic:equals tag. What I want to do is to compare a string > in an ActionForm to the empty string. As far as I understand it, I would > have to use two nested tags like > > > > ... code fails here > > > > It seems as if the servlet API tries to convert the empty string to some > datatype but this obviously fails (or better is not possible) and so the > null value is still assigned to the value attribute in the CompareTagBase > class. And this class throws a NullPointerException when the condition() > method tries to convert the value into different types (line 180). > > Has anyone already thought of a tag that looks if a value is > null or empty? > Is there are public need for this tag? > > The other problem seems more serious! If the user waits for a long time, the > session gets timed-out. When the new request arrives, a new session will be > created and, in my case, an ActionForm instance will be put into the session > context (since I was in the middle of filling out a form). Now everything > looks fine to the application, but it is not since the ActionForm did not > contain the values I have entered but the default ones :-( > > There is no hook into the session management (as I have seen). The first > method that accesses and implicitly creates the session is processLocale() > in the ActionServlet. > > Shouldn't we introduce a method like processSession() at the very beginning > of the process() method to provide a possibility to intercept session > deprecation and creation. In my case it would be sufficient to redirect to > user to a special "your session has expired" page. > > Any comments are welcome! > > Andreas > > > Andreas Prohaska Mail: [EMAIL PROTECTED] > Apeiron GmbH Tel : +49 (089) 278257-40 > Hohenzollernstr. 81 Fax : +49 (089) 278257-49 > 80796 Muenchen >
Getting values from ActionForm bean
I'm new to struts and would like to get a handle on a few things. I made certain to search the archives for an answer to my current problem, but was unable to find an answer. So I post my question here. I have an ActionForm in which I added a method that queries a database and gets a name/id pair and adds them to a hashtable. On creation of the form(in the JSP associated with the ActionForm class) I want to populate a combobox on the form with values from the hashtable. Here's what I tried, and the results of the code: JSP ActionForm public Hashtable getCustomers(){ // query database, build hashtable return hash; } The ActionForm is a request scope bean, as specified in struts-config. Here's the error I get: javax.servlet.jsp.JspException: Cannot find bean exportForm in scope request at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:486) at org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200) at jsp_servlet._content._managerstart._jspService(_managerstart.java:297) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
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/
Problems with logic:equals tag, session timeouts
Hi, during the development of one project using Struts I experienced some problems with the logic:equals tag. What I want to do is to compare a string in an ActionForm to the empty string. As far as I understand it, I would have to use two nested tags like ... code fails here It seems as if the servlet API tries to convert the empty string to some datatype but this obviously fails (or better is not possible) and so the null value is still assigned to the value attribute in the CompareTagBase class. And this class throws a NullPointerException when the condition() method tries to convert the value into different types (line 180). Has anyone already thought of a tag that looks if a value is null or empty? Is there are public need for this tag? The other problem seems more serious! If the user waits for a long time, the session gets timed-out. When the new request arrives, a new session will be created and, in my case, an ActionForm instance will be put into the session context (since I was in the middle of filling out a form). Now everything looks fine to the application, but it is not since the ActionForm did not contain the values I have entered but the default ones :-( There is no hook into the session management (as I have seen). The first method that accesses and implicitly creates the session is processLocale() in the ActionServlet. Shouldn't we introduce a method like processSession() at the very beginning of the process() method to provide a possibility to intercept session deprecation and creation. In my case it would be sufficient to redirect to user to a special "your session has expired" page. Any comments are welcome! Andreas Andreas Prohaska Mail: [EMAIL PROTECTED] Apeiron GmbH Tel : +49 (089) 278257-40 Hohenzollernstr. 81 Fax : +49 (089) 278257-49 80796 Muenchen
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: 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 __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: Action before loading a page
Peter Alfors <[EMAIL PROTECTED]> writes: > I don't think that you have control of when the frames are loading. The browser > attempts to load both frames simultaneously. (Please correct me if I am wrong) > Therefore, you would have to do something kinda funky (javascript) to instruct > another frame to 'reload' after the current frame finishes. > If you cannot gaurantee that your users have javascript enabled, you will > probably want to avoid it. Right. To be more concrete, in your first frame your tag could create for example an 'onload'-handler, which updates your second frame with an request to an action (probably with extra parameters appended). However, I vote for Petes suggestion to put an action in front of your frameset. This action could fetch all your data, put it into the request and let your tags render the results. It seems to me always a good idea to use action for bussines logic (e.g. database lookups) and tags for visual rendering only (drop down list with the results from the action). cu... -- ...roland huss consol.de
Report to Recipient(s)
Incident Information:- Originator:Ted Husted <[EMAIL PROTECTED]> Recipients:[EMAIL PROTECTED] Subject: Re: Action before loading a page Message from Ted Husted <[EMAIL PROTECTED]> was NOT deliverd, because it contained banned content.
Re: Action before loading a page
Both JSPs and Actions are called by a HTTP request. It can be helpful to think of Actions as "invisible pages" that respond to a request with a "visible page". Any place where you request (or "load") a page, you can request an Action instead. So however you "load another file in the second frame", you should be able to request an Action instead. Your tag might also include the database ID as part of the request (/Action.do?ID=XXX), so you don't have to bother with the session. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Jack Xu wrote: > > I have a frameset of 2 frames. The first frame loads a JSP file containing a > custom tag. The tag retrieves a list from my database and displays it as a > drop down list. The tag then marks the first entry in the list as default > and then load another file in the second frame. In stead of having a static > welcome page in the second frame, I'm wondering if there's any way to > perform this: > > 1. The custom tag finishes in the first frame. It puts some kind of ID in > the session. > 2. Before the second frame loads, a struts action is executed. The action > retrieves information from my database based on the ID the custom tag put in > the session, construct a form containing the information returned from the > database and forwards to the JSP page to be loaded to the second frame. The > JSP load info from the form so that I have default page with information > loaded from the database. > > Your help is very much appreciated ! > > -- > Jack Xu > > March Networks > (416)977-7007 x 308 > Email: [EMAIL PROTECTED] > --
Re: Action before loading a page
I don't think that you have control of when the frames are loading. The browser attempts to load both frames simultaneously. (Please correct me if I am wrong) Therefore, you would have to do something kinda funky (javascript) to instruct another frame to 'reload' after the current frame finishes. If you cannot gaurantee that your users have javascript enabled, you will probably want to avoid it. A couple of thoughts... Instead, maybe you could use an action for both frames... Have them call a utility class that generates a static ID. Then each action will be able to share the same ID and perform the desired tasks using it? - Or - Your welcome page could be a single frame that calls an action. The action could generate the ID you want, then forward to a frameset page that loads the JSP page with the drop down list, and the action you mentioned below. HTH, Pete Jack Xu wrote: > I have a frameset of 2 frames. The first frame loads a JSP file containing a > custom tag. The tag retrieves a list from my database and displays it as a > drop down list. The tag then marks the first entry in the list as default > and then load another file in the second frame. In stead of having a static > welcome page in the second frame, I'm wondering if there's any way to > perform this: > > 1. The custom tag finishes in the first frame. It puts some kind of ID in > the session. > 2. Before the second frame loads, a struts action is executed. The action > retrieves information from my database based on the ID the custom tag put in > the session, construct a form containing the information returned from the > database and forwards to the JSP page to be loaded to the second frame. The > JSP load info from the form so that I have default page with information > loaded from the database. > > Your help is very much appreciated ! > > -- > Jack Xu > > March Networks > (416)977-7007 x 308 > Email: [EMAIL PROTECTED] > -- begin:vcard n:; x-mozilla-html:FALSE org:http://www.irista.com/logo/irista.gif";>Bringing Vision to Your Supply Chain adr:;; version:2.1 end:vcard
RE: logic:iterate or bean:write ERROR !!!
There is a working example in registration.jsp of the struts-example webapp. > -Original Message- > From: Geoffrey Van Nuffelen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 5:28 AM > To: Struts-User (E-Mail) > Subject: logic:iterate or bean:write ERROR !!! > > > Hi all, > > I always have a problem with the iterate and write tag. > > If I don't specify a "bean:write" tag into an "logic:iterate" > tag, I don't > have any error... But If a specify a write tag I have an > exception error : > > The error : > --- > javax.servlet.ServletException: Cannot find bean client in scope null > at > org.apache.jasper.runtime.PageContextImpl.handlePageException( > PageContextImp > l.java:459) > at _0002fClientList_0002ejspClientList_jsp_66._jspService > > > My JSP : > - > ... > > > > > > ... > test is an object wich has a property clients (array of client ) and a > method getClients(). pmclient is a property of client ( > the method > getPmclient() exist). > > Is someone has a working example... I would be really happy !!! > > Thanks, > Geoffrey... > >
Action before loading a page
I have a frameset of 2 frames. The first frame loads a JSP file containing a custom tag. The tag retrieves a list from my database and displays it as a drop down list. The tag then marks the first entry in the list as default and then load another file in the second frame. In stead of having a static welcome page in the second frame, I'm wondering if there's any way to perform this: 1. The custom tag finishes in the first frame. It puts some kind of ID in the session. 2. Before the second frame loads, a struts action is executed. The action retrieves information from my database based on the ID the custom tag put in the session, construct a form containing the information returned from the database and forwards to the JSP page to be loaded to the second frame. The JSP load info from the form so that I have default page with information loaded from the database. Your help is very much appreciated ! -- Jack Xu March Networks (416)977-7007 x 308 Email: [EMAIL PROTECTED] --
RE: Anyone have the Struts Validator example working?
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: 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
RE: Newie question
Hi, Thanks a lot! I will take a look at the link! ^torsten > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 05, 2001 2:11 PM > To: [EMAIL PROTECTED] > Subject: Re: Newie question > > > You could take a look at Part 2 of Strut by Strut, under Coming Soon at > < http://www.husted.com/about/struts/ > > > I'm working on some generic Access, Search, and Result actions there. > > Though, the usual approach would be that control goes to an action that > manages the data retrieval and forwards the result to another JSP for > display. > > [JSP] -> [ACTION] -> [JSP] ... > > -- Ted Husted, Husted dot Com, Fairport NY USA. > -- Custom Software ~ Technical Services. > -- Tel 716 737-3463. > -- http://www.husted.com/about/struts/ > > Torsten Terp wrote: > > > > Hi, > > > > Im I have just started using Struts and the idea > > of the framework seems great!! I could however > > use some help getting started the right way!! > > > > I want to do as folows: > > > > A jsp page with an input fields takes as input > > a string used to perform a seach in a database. > > E.g., a substring of the name of some customer. > > > > Control is forwarded to another jsp that displays > > the results, e.g., the customernames containing the > > substring provided in the input field above. These > > customernames should be displayed in a html:select > > > > Selecting one of the customers will result in another > > search which retrieves all data for that particular > > customer and displays it in another frame. > > > > Im thinkind this is a pretty generic setup, so my > > question is if anybody has example code of this. > > > > Im using the jBoss application server as the model, > > so its not the database pooling from struts im after, > > its the control flow and populating the jsp's > > > > It would be greatly apreciated. Thanks in advance... > > > > ^torsten > >
Re: Newie question
You could take a look at Part 2 of Strut by Strut, under Coming Soon at < http://www.husted.com/about/struts/ > I'm working on some generic Access, Search, and Result actions there. Though, the usual approach would be that control goes to an action that manages the data retrieval and forwards the result to another JSP for display. [JSP] -> [ACTION] -> [JSP] ... -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 737-3463. -- http://www.husted.com/about/struts/ Torsten Terp wrote: > > Hi, > > Im I have just started using Struts and the idea > of the framework seems great!! I could however > use some help getting started the right way!! > > I want to do as folows: > > A jsp page with an input fields takes as input > a string used to perform a seach in a database. > E.g., a substring of the name of some customer. > > Control is forwarded to another jsp that displays > the results, e.g., the customernames containing the > substring provided in the input field above. These > customernames should be displayed in a html:select > > Selecting one of the customers will result in another > search which retrieves all data for that particular > customer and displays it in another frame. > > Im thinkind this is a pretty generic setup, so my > question is if anybody has example code of this. > > Im using the jBoss application server as the model, > so its not the database pooling from struts im after, > its the control flow and populating the jsp's > > It would be greatly apreciated. Thanks in advance... > > ^torsten
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: 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
2nd try - excellent links on internationalization
http://www.acoin.com/i18n/ http://www.cs.uu.nl/wais/html/na-dir/internationalization/programming-faq.html http://www-106.ibm.com/developerworks/java/library/j-rbmgr/index.html?dwzone=java http://www-105.ibm.com/developerworks/education.nsf/java-onlinecourse-bytitle/F0CB1417D1C6BD99862569060062A7E5?OpenDocument http://www-106.ibm.com/developerworks/library/unicode.html http://web2.java.sun.com/docs/books/tutorial/i18n/text/string.html http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp.html http://library.maribyrnong.vic.gov.au/info.html http://www.openroad.vic.gov.au/ http://www.w3.org/Talks/1999/0830-tutorial-unicode-mjd/ http://babel.uoregon.edu/Yamada/fonts.html http://www.yarranet.net.au/aceweb/lote/notesw95/multi.html http://www.yarranet.net.au/aceweb/lote/notesw95/papers.html http://babel.alis.com:8080/ http://vancouver-webpages.com/multilingual/howto.html http://httpd.apache.org/docs/content-negotiation.html http://members.ozemail.com.au/~andjc/papers/cn99.html
question about Action Forwards in struts-config
I have boiled down action forward to a few exact situations. I would only want to do any of the following situations: 1) take me back where I was 2) take me back to where I was trying to go 3) take me to a specific page 4) take me to a default page I dont believe there is currently a neat and clean way of describing this in the struts-config. Maybe there doesnt need to be for things like "where I was trying to go" and "where I was". I am just looking for some clarity on the issues and what/why the implementation is what it is currently is
Re: Problems with struts and resin
I, too, use Resin without problems. I have seen the "repeating" problem, but only when mistakenly I bring up Resin on a port that is already being used by some other server. - Original Message - From: "Matthew Heaton (Software Engineer)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 04, 2001 6:33 PM Subject: RE: Problems with struts and resin > Humm, it does just to be my applications that are doing it but I can't see > where they are configured any differently. > > -Matt > > -Original Message- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Monday, June 04, 2001 3:10 PM > To: [EMAIL PROTECTED] > Subject: Re: Problems with struts and resin > > > I haven't had this problem myself. I've kept busy Struts applications in > play for several weeks without any unscheduled downtime under Resin. > > "Matthew Heaton (Software Engineer)" wrote: > > > > I'm trying to deploy a couple of struts apps on resin which I've deployed > > successfully on Weblogic and on Tomcat. It appears the server tries to > call > > the init method in the ActionServlet over and over eventially causing the > > server to run out of memory and crash. I've seen also seen this behavior > > also using some of the sample struts apps though not to the point of > > crashing the server. I haven't gotten much help on the Resin side of > > things, so does anybody on the struts list know a work around.
excellent links to internationalization issues
Links to developing internationalized websites Cheers yarranet.net.au - papers on multilingual web publishing.url cs.uu Programming for Internationalization FAQ.url developerWorks - Harnessing internationalization.url IBM International Text in JDK 1.2.url IBM java classes for Unicode.url Java Byte Encodings and Strings.url Javaworld - Internationalize JSP-based Websites.url Maribyrnong - multilingual ibrary Services.url Open Road - multilingual resource site.url w3c & alis study on internationalization - August 1999.url Yamada - Font Archive.url yarranet.net.au - Making a multilingual web site.url acoin i18n Internationalization Mailing List.url
Newie question
Hi, Im I have just started using Struts and the idea of the framework seems great!! I could however use some help getting started the right way!! I want to do as folows: A jsp page with an input fields takes as input a string used to perform a seach in a database. E.g., a substring of the name of some customer. Control is forwarded to another jsp that displays the results, e.g., the customernames containing the substring provided in the input field above. These customernames should be displayed in a html:select Selecting one of the customers will result in another search which retrieves all data for that particular customer and displays it in another frame. Im thinkind this is a pretty generic setup, so my question is if anybody has example code of this. Im using the jBoss application server as the model, so its not the database pooling from struts im after, its the control flow and populating the jsp's It would be greatly apreciated. Thanks in advance... ^torsten
Re: newbie to struts - confirm hierachy( packages - webapps)!!
jeez. You are up early! - Original Message - From: "Ted Husted" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 05, 2001 6:30 AM Subject: Re: newbie to struts - confirm hierachy( packages - webapps)!! > Some people like to keep the source Java files at a separate location, > and then have Ant copy them over to the classes directory, but mixing > the class and java files in the same folder works too. > > Personally, when using a package hierarchy for my classes, I tend to > just name things > > .\logon\Form.java > > But, yes you should either put your packages class files below the > classes directory, or in a JAR in the lib folder. For development at > least, you probably just want to put them under classes. > > We put these under the WEB-INF folder so that they cannot be directly > accessed by a client program (e.g. Web browser), only by the > application. > > Chuck Amadi wrote: > > > > Hi, i have constructed a web app within my file system as follows:- > > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\classes\logon\LogonForm .java > > > > The struts-bbnpa is were im placing all my work. thus the examples > > custom and logon packages are beneath my classes directory. Thus is > > this the correct procedure as im about to venture into JDBC Project > > (Postgresql) and im not sure weather the packages are one level above > > \WEB-INF dir. > > > > Any suggestions and confirmation extremely welcomed. Cheers inadvance. > > > > Chuck (Graduate Systems Programmer) > > -- >
input in XML config
Title: input in XML config Hi, in an action mapping i'd like to reexecute the complete action instead of a simple jsp when the validate method of the form fails, because i need to create some beans having request scope So my question is... Is it possible to have an action in the input fiele of a mapping instead of a simple jsp? thanks Max
Re: newbie to struts - confirm hierachy( packages - webapps)!!
Some people like to keep the source Java files at a separate location, and then have Ant copy them over to the classes directory, but mixing the class and java files in the same folder works too. Personally, when using a package hierarchy for my classes, I tend to just name things .\logon\Form.java But, yes you should either put your packages class files below the classes directory, or in a JAR in the lib folder. For development at least, you probably just want to put them under classes. We put these under the WEB-INF folder so that they cannot be directly accessed by a client program (e.g. Web browser), only by the application. Chuck Amadi wrote: > > Hi, i have constructed a web app within my file system as follows:- > C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\classes\logon\LogonForm.java > > The struts-bbnpa is were im placing all my work. thus the examples > custom and logon packages are beneath my classes directory. Thus is > this the correct procedure as im about to venture into JDBC Project > (Postgresql) and im not sure weather the packages are one level above > \WEB-INF dir. > > Any suggestions and confirmation extremely welcomed. Cheers inadvance. > > Chuck (Graduate Systems Programmer) > --
RE: Any Hashmap examples used in jsp page? - still not working
Hi all Still not getting this hashmap thing write...here is what i'm trying to do. I have a hashmap with a list of key-value pairs. I don't want to go thru each element and list it, i just want to evaluate the equivalent Java code : if (map.containsKey(LIC.LINE_TYPE)){ I want to find out whether the map has a certain key in it, without having to loop the whole way. I'm trying to use a logic:equals tag help!!! -Original Message- From: Steve A Drake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 05, 2001 3:17 AM To: [EMAIL PROTECTED] Subject: RE: Any Hashmap examples used in jsp page? On Mon, 4 Jun 2001, Deadman, Hal wrote: > I don't think what you are trying to do should be done in the JSP by a > struts/custom tag. Maybe it's a dumb idea, but that's never stopped me before. =:] > Why not copy the value objects in the HashMap to an array based on the order > of the keys in your String array? Then pass the array to the JSP instead of > the HashMap. If you need the keys and they aren't attributes of the value > objects then you can pass the String array of keys to the JSP too. I used an ArrayList of String[]s and that worked fine. Thanks.
struts & WLPS..
Hi, We have a web application on struts framework. Now we would like to use personalisation features of WLPS. Has anyone tried this? Any suggestion or guidelines is greatly appreciated. Thanks, Nagalli
RE: Struts and EJB's
Thanks Ameer. -Original Message-From: ameer [mailto:[EMAIL PROTECTED]]Sent: 05 June 2001 11:25To: [EMAIL PROTECTED]Subject: Re: Struts and EJB's Hi Taylor, imcurrently trying the samething on weblogic.. give me oneday time once im up with an example i would give you the source regards, Ameer Hussain SSs/w engineerYashaa Infotech Pvt.Ltd.#14 , 10th Main, HAL 3rd StageBangalore 560075phone: 5294430/53 http://www.yashaa.com
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
Re: newbie to struts - confirm hierachy( packages - webapps)!!
I decided to NOT use the Struts.jar, but instead use the Struts source files, and then add my own directories below the classes directory for that particular web app. That way I could tweak Struts and have a better way of replacing updates to the classes. My setup is like this: 1) Struts framework - /struts/org/apache/struts etc... with my classpath pointing to /struts 2) My framework - /vnu/com/vnu/ etc... with my classpath pointing to /vnu 3) My classes for the particular web app - WEB-INF/classes/com/mywebapp/actions WEB-INF/classes/com/mywebapp/forms WEB-INF/classes/com/mywebapp/globals WEB-INF/classes/com/mywebapp/models WEB-INF/classes/com/mywebapp/taglib with the classpath pointing to WEB-INF/classes - Original Message - From: Chuck Amadi To: Craig R. McClanahan ; Petr Jiricka Sent: Tuesday, June 05, 2001 5:31 AM Subject: newbie to struts - confirm hierachy( packages - webapps)!! Hi, i have constructed a web app within my file system as follows:- C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\classes\logon\LogonForm.java The struts-bbnpa is were im placing all my work. thus the examples custom and logon packages are beneath my classes directory. Thus is this the correct procedure as im about to venture into JDBC Project (Postgresql) and im not sure weather the packages are one level above \WEB-INF dir. Any suggestions and confirmation extremely welcomed. Cheers inadvance. Chuck (Graduate Systems Programmer) -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
Re: Struts and EJB's
Hi Taylor, imcurrently trying the samething on weblogic.. give me oneday time once im up with an example i would give you the source regards, Ameer Hussain SSs/w engineerYashaa Infotech Pvt.Ltd.#14 , 10th Main, HAL 3rd StageBangalore 560075phone: 5294430/53 http://www.yashaa.com
Struts and EJB's
We are building an application and hoping to take advantage of the Struts framework in conjunction with EJBs. If there is anyone out there using EJBs and can give example code or any advice on implementation, advantages, pitfalls or constraints in this area, I would be very gratefull. Many thanks, Mike. Michael Taylor Senior Software Developer Liberty Information Technology Direct Line: +44 (0) 28 9044 5522 Clarendon House Fax: +44 (0) 28 9044 5511 9-21 Adelaide Street Switchboard: +44 (0) 28 9044 5500 Belfast, Northern Ireland BT2 8DJ Email: [EMAIL PROTECTED] Disclaimer: The contents of this e-mail and any attached files in no way reflect any policies or opinions of Liberty Information Technology Ltd
newbie to struts - confirm hierachy( packages - webapps)!!
Hi, i have constructed a web app within my file system as follows:- C:\jakarta-tomcat-3.2.1\webapps\struts-bbnpa\WEB-INF\classes\logon\LogonForm.java The struts-bbnpa is were im placing all my work. thus the examples custom and logon packages are beneath my classes directory. Thus is this the correct procedure as im about to venture into JDBC Project (Postgresql) and im not sure weather the packages are one level above \WEB-INF dir. Any suggestions and confirmation extremely welcomed. Cheers inadvance. Chuck (Graduate Systems Programmer) -- The views expressed by the sender of this message don't necessarily represent those of Brecon Beacons National Park Authority. This message is intended for the addressee(s) only and is sent in confidence; if you receive it in error, please can you let us know (at [EMAIL PROTECTED]) and then destroy all copies. Nid yw'r farn a fynegir gan anfonwr y neges hon o anghenraid yn adlewyrchu barn Awdurdod Parc Cenedlaethol Bannau Brycheiniog. Neges yw hon a fwriadwyd ar gyfer y derbynnydd/derbynyddion yn unig ac fe'i hanfonir yn gyfrinachol; os ydych yn ei dderbyn mewn camgymeriad, a fyddech gystal â rhoi gwybod i ni (yn [EMAIL PROTECTED]) ac yna dilëwch bob copi.
logic:iterate or bean:write ERROR !!!
Hi all, I always have a problem with the iterate and write tag. If I don't specify a "bean:write" tag into an "logic:iterate" tag, I don't have any error... But If a specify a write tag I have an exception error : The error : --- javax.servlet.ServletException: Cannot find bean client in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002fClientList_0002ejspClientList_jsp_66._jspService My JSP : - ... ... test is an object wich has a property clients (array of client ) and a method getClients(). pmclient is a property of client ( the method getPmclient() exist). Is someone has a working example... I would be really happy !!! Thanks, Geoffrey...
multiple submit
Hi, In a jsp page, I would like to use several images such as submit button; and on "onClick" event, change the value of an input tag How can I do ??? I try to use a JavaScript function that I call on "onClick" event: function subWithOption(s){ with (window.document.forms[0]){ option.value = s; submit(); } } but no success ... Thanks for yours response. - Cyril -