help removing a formbean in session
i have this in my struts-config action path=/AddTmAccount type=com.fltic.crm.action.manager.AddTmAccountAction scope=session set-property property=loginRequired value=true/ forward name=success path=/manager/addtm.jsp/ /action action path=/SaveTmAccount type=com.fltic.crm.action.manager.SaveTmAccountAction name=userAccountForm scope=session input=/manager/addtm.jsp validate=true set-property property=loginRequired value=true/ forward name=success path=/ManageTmAccounts.do/ forward name=error path=/AddTmAccount.do/ /action i have set scope to session so that on error the textbox will be populated with previos user entry. If the validation succeeds then i'll save the record. But here's my problem whenever i return to the my AddScreen the last values is still there. How to i manually call the reset button of my formbean userAccountForm. thanks.
Re: help removing a formbean in session
Richard Raquepo wrote: i have set scope to session so that on error the textbox will be populated with previos user entry. If the validation succeeds then i'll save the record. But here's my problem whenever i return to the my AddScreen the last values is still there. How to i manually call the reset button of my formbean userAccountForm. In your saveTmAccount action remove like this: // remove the formBean from session session.removeAttribute(mapping.getAttribute()); return mapping.findForward(success'); Hth, Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can not run my application since update with Struts1.1 Release Candidate 1
Since I updated the new version of the Struts framework I have the following errors: - Problem with the Validator Plugin [INFO] ValidatorPlugIn - -Loading validation rules file from '/WEB-INF/validator-rules.xml' [ERROR] ValidatorPlugIn - -Operation timed out: connect java.net.ConnectException: Operation timed out: connectjava.net.ConnectException: Operation timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at (Bootstrap.java:243) I don't understand what is the problem ? - I have a Login page and when I select the Login button I must enter in the LoginAction, but it dosen't work no more . [ERROR] RequestProcessor - -No action instance for path /login could be created java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess or.java:324) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) I have the following entry in my struts-config.xml file controller processorClass=org.apache.struts.tiles.TilesRequestProcessor / and my class LoginAction extends a BaseAction class that extends the Struts Action class. I don't understand why it doesn't work, do you have an idea ? Thanks a lot in advance Sandra --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Frames and the Tile PutList
Hi, The extra '[' ']' are there because you declare the apps attribute as a list. You should either declare it as a normal attribute (put .../), or use an index to peek up the appropriate element in the list (not supported by getAsString or get or insert, you should get the list and use a scriptlet). Cedric Jean Mercier wrote: Hi All, I searched the archive and I have not found a solution to this problem. I unfortunately am required to use frames so when I attempt to use putlist to extend my tiles definition, I get /BrokerPortalWeb[/carosys/logon/logonApp.jsp] when I would like to get /BrokerPortalWeb/carosys/logon/logonApp.jsp is there a way around this. I submit my definition and results. I've defined my tiles in tiles-config.xml definition name=layout.notree.frame path=/carosys/templateNoTreeFrame.jsp put name=popupscript value=/carosys/popupjs.jsp direct=true/ put name=banner value=/carosys/cmon/cmonBanner.jsp direct=true / put name=navigation value=/carosys/cmon/cmonBlankNvgt.jsp direct=true / put name=footer value=/carosys/cmon/cmonFooter.jsp direct=true / putList name=apps / /definition definition name=logonFrame extends=layout.notree.frame putList name=apps add value=/carosys/logon/logonApp.jsp/ /putList /definition and carosys/templateNoTreeFrame.jsp is defined as frameset rows=50,25, *,10 frame src=%=request.getContextPath()%tiles:getAsString name=banner / name=banner frame src=%=request.getContextPath()%tiles:getAsString name=navigation / name=navigation frame src=%=request.getContextPath()%tiles:getAsString name=apps / name=apps frame src=%=request.getContextPath()%tiles:getAsString name=footer / name=footer /frameset When forward to logonFrame the following is rendered all except apps comes back fine frameset rows=50,25, *,10 frame src=/BrokerPortalWeb/carosys/cmon/cmonBanner.jsp name=banner frame src=/BrokerPortalWeb/carosys/cmon/cmonBlankNvgt.jsp name=navigation frame src=/BrokerPortalWeb[/carosys/logon/logonApp.jsp] name=apps frame src=/BrokerPortalWeb/carosys/cmon/cmonFooter.jsp name=footer /frameset Regards, Jean Mercier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how can I get request URI ?
Hi, in browser I have http://localhost:9080/app/adm/listGroups.do listGroups.do is directed to listGroups.jsp in jsp %= request.getServletPath() % returns: /app/adm/listGroups.jsp how can I retrive /app/adm/listGroups.do I want original url from the browser thank you, Slavic
Re: how can I get request URI ?
Veaceslav Chicu wrote: I want original url from the browser request.getRequestURI() Hth, Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how can I get request URI ?
in the browser http://localhost:9080/app/adm/listGroups.do in jsp: %= request.getServletPath() % %= request.getRequestURI() % results: /adm/listGroups.jsp /app/adm/listGroups.jsp it's also listGroups.jsp I want listGroups.do that is in the browser other possibility ? thanks, Slavic - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:00 AM Subject: Re: how can I get request URI ? Veaceslav Chicu wrote: I want original url from the browser request.getRequestURI() Hth, Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DynaActionForm vs ActionForm
Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? I thought there may be something to do with session states but i'm not sure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaActionForm vs ActionForm
James Prance writes: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? I thought there may be something to do with session states but i'm not sure. Uploading files with FileForms? ..Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NumberFormat Exception with ActionServlet
Hi, I extended ActionServlet and written my CustomActionServlet. Some time I am getting NumberFormat Exception when I added any jsp scriplets in my jsp page, like % System.out.println(I am working..); % The exception is at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) Same error I got when I added some get/set methods to ActionForm and included in jsp. The following is the Exception Message. java.lang.NumberFormatException: C at java.lang.Integer.parseInt(Integer.java(Compiled Code)) at java.lang.Integer.parseInt(Integer.java(Compiled Code)) at org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:244) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:261) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) Thanks Regards, Ashok.D
Re: DynaActionForm vs ActionForm
can you give an example.. Nick Sharples [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] James Prance writes: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? I thought there may be something to do with session states but i'm not sure. Uploading files with FileForms? ..Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaActionForm vs ActionForm
James Prance wrote: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? you want your own reset() implementation you have a tool which generates your Forms (eg xdoclet) Tib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DynaActionForm vs ActionForm
James Prance writes: can you give an example.. Nick Sharples [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] James Prance writes: Having used DynaActionForms in my app, i now wonder what use ActionForms are? Is there ever a case for needing an ActionForm and if so when and why? I thought there may be something to do with session states but i'm not sure. Uploading files with FileForms? I'm no expert, but if you want to upload a file using the html:file tag then the type for the form field must be FormFile and I don't thing that type is supported with DynaActionForms. I could be wrong though and if so maybe someone could correct me. ..Nick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] BEAN SCOPE
Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP 1 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return validateWIGAdminWizardForm(this); JSP 2 html:form action=/translator.do onsubmit=return validateWIGAdminWizardForm(this); now, when I call jsp1 the bean is getting created but when I move to jsp 2 , again new bean is created. And thatz the problem area. Thanks Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM Subject: RE: [Q] BEAN SCOPE Did you put scope=session on both action mappings? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:31 To: Struts Users Mailing List Subject: [Q] BEAN SCOPE Hi, I am trying to figure out what can be the problem in my struts-config from yday, will anyone tell me what can be the problem if, I am putting scope=session in my action-mapping and trying to access same formbean from two different actions. Once the bean is created, it should be there for the session, and when I move to next jsp and call another action it should use same bean rather than creating a new one. I know itz creating new bean, coz I have put default constructor in my formbean and am printing System.out.printing() through constructor. Regards Chetan ___ | | The trouble with being punctual | is that nobody's there to appreciate it. | | |___ __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender
Display error in JSP page with ActionError class
I would like to display en error in a JSP page without define a Key-Value in the resources.properties file. Because I retrieve the error message from a common file, used by all the applications of the project. So I have only a String and no key, how is it possible to add the error I tried errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ActionErrors.GLOBAL_ERROR, My Problem)); but it doesn't work Does a key must exist for each error in the resources.properties file ? --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] BEAN SCOPE
Yep my struts-config action look like this actionpath=/ominterfaceinfo type=wigadmin.struts.action.OMInterfaceInfoAction name=wigadminwizardform input=ominterfaceinfo scope=session validate=true /action - Original Message - From: David Bolsover [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:03 PM Subject: RE: [Q] BEAN SCOPE Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP 1 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return validateWIGAdminWizardForm(this); JSP 2 html:form action=/translator.do onsubmit=return validateWIGAdminWizardForm(this); now, when I call jsp1 the bean is getting created but when I move to jsp 2 , again new bean is created. And thatz the problem area. Thanks Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM Subject: RE: [Q] BEAN SCOPE Did you put scope=session on both action mappings? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:31 To: Struts Users Mailing List Subject: [Q] BEAN SCOPE Hi, I am trying to figure out what can be the problem in my struts-config from yday, will anyone tell me what can be the problem if, I am putting scope=session in my action-mapping and trying to access same formbean from two different actions. Once the bean is created, it should be there for the session, and when I move to next jsp and call another action it should use same bean rather than creating a new one. I know itz creating new bean, coz I have put default constructor in my formbean and am printing System.out.printing() through constructor. Regards Chetan ___ | | The trouble with being punctual | is that nobody's there to appreciate it. | | |___ __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
RE: Display error in JSP page with ActionError class
This problem was discussed yesterday. Please look at the thread Reporting an Exception message in a JSP. -Message d'origine- De: Heligon Sandra [mailto:[EMAIL PROTECTED] Date: mercredi 26 février 2003 11:38 À: '[EMAIL PROTECTED]' Objet: Display error in JSP page with ActionError class Importance: Haute I would like to display en error in a JSP page without define a Key-Value in the resources.properties file. Because I retrieve the error message from a common file, used by all the applications of the project. So I have only a String and no key, how is it possible to add the error I tried errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ActionErrors.GLOBAL_ERROR, My Problem)); but it doesn't work Does a key must exist for each error in the resources.properties file ? --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This mail has originated outside your organization, either from an external partner or the Global Internet. Keep this in mind if you answer this message. This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Display error in JSP page with ActionError class
Try this define a key in your resources.properties file like this foo.bar={0} errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(foo.bar, My Problem); This will place 'My Problem' at the place marked by {0} Then when you create your action errror object you do it like this Heligon Sandra wrote: I would like to display en error in a JSP page without define a Key-Value in the resources.properties file. Because I retrieve the error message from a common file, used by all the applications of the project. So I have only a String and no key, how is it possible to add the error I tried errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(ActionErrors.GLOBAL_ERROR, My Problem)); but it doesn't work Does a key must exist for each error in the resources.properties file ? --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Searching the Archive
It will be automatically populated on your formbean. -- James Mitchell Software Engineer/Struts Evangelist -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:06 AM To: Struts Users Mailing List Subject: RE: Searching the Archive If I leave the property blank - how do I get the value of the selection when the user submits the form? -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:53 PM To: Struts Users Mailing List Subject: RE: Searching the Archive Using your example, html:select property=foo html:options collection=bar property=name/ /html:select The short answer is that the value that will be shown selected is the value from the collection that matches the value returned by getFoo() on the form-bean. So if foo is 'apple' and the collection contains 'apple' then that item will be shown as selected. What I was saying was if want to always have the first item in the list shown as selected you *could* try to leave the value of foo blank. The sure-fire way is to set the value of foo to be the value of the first item in the collection. I should also point out that the usage you have shown above doesn't seem to be correct. I have always used it as follows html:select property=foo html:options collection=bar property=name labelProperty=label/ /html:select If you refer to the docs for html:options it reads (for the collection attribute): Name of the JSP bean (in some scope) which is itself a Collection of other beans, each of which has properties named by the property and labelProperty attributes that are used to retrieve the value and label for each option, respectively. (RT EXPR) Hope that gets you going in the right direction. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:49 PM To: Struts Users Mailing List Subject: RE: Searching the Archive I thought html:select worked as follows: property is the name of the request parameter where the answer is placed. name is the name of a bean that is consulted to set the selection value is the property of the bean identified by name to get the comparison if I use html:select property=foo html:options collection=bar property=name/ /html:select will create a select with the values from the bean in attribute bar with value getName ( ) But select comes up with no selection? I just want the first item. I don't want to have to set an attribute with the first element of the collection in my action class. I will, but - i don't wanna! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:36 AM To: Struts Users Mailing List Subject: RE: Searching the Archive Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set the property attribute of the html:select equal the value of the first option. Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first item be shown. Note that in the case of a html:select with multiple selections, this *may not* result in any item being selected; in this case your only choice to set the property attribute of the html:select. Sorry if I completely misunderstood your question. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:22 PM To: Struts Users Mailing List Subject: Searching the Archive I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(Veloc ityServlet.jav a:236) I was trying to locate some help in html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] BEAN SCOPE
You must specify the attribute value for you action mapping David Bolsover wrote: Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP 1 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return validateWIGAdminWizardForm(this); JSP 2 html:form action=/translator.do onsubmit=return validateWIGAdminWizardForm(this); now, when I call jsp1 the bean is getting created but when I move to jsp 2 , again new bean is created. And thatz the problem area. Thanks Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM Subject: RE: [Q] BEAN SCOPE Did you put scope=session on both action mappings? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:31 To: Struts Users Mailing List Subject: [Q] BEAN SCOPE Hi, I am trying to figure out what can be the problem in my struts-config from yday, will anyone tell me what can be the problem if, I am putting scope=session in my action-mapping and trying to access same formbean from two different actions. Once the bean is created, it should be there for the session, and when I move to next jsp and call another action it should use same bean rather than creating a new one. I know itz creating new bean, coz I have put default constructor in my formbean and am printing System.out.printing() through constructor. Regards Chetan ___ | | The trouble with being punctual | is that nobody's there to appreciate it. | | |___ __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally
Re: [Q] BEAN SCOPE
attribute as what ? I tried putting attribute value as my formbean name, nothing is happening when I checked in struts dtd for struts-config the explaination says attribute Name of the request-scope or session-scope attribute that is used to access our ActionForm bean, if it is other than the bean's specified name. Optional if name is specified, else not valid. it says optional if name is specified. Regards Chetan - Original Message - From: Brian Blignaut [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:31 PM Subject: Re: [Q] BEAN SCOPE You must specify the attribute value for you action mapping David Bolsover wrote: Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP 1 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return validateWIGAdminWizardForm(this); JSP 2 html:form action=/translator.do onsubmit=return validateWIGAdminWizardForm(this); now, when I call jsp1 the bean is getting created but when I move to jsp 2 , again new bean is created. And thatz the problem area. Thanks Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM Subject: RE: [Q] BEAN SCOPE Did you put scope=session on both action mappings? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:31 To: Struts Users Mailing List Subject: [Q] BEAN SCOPE Hi, I am trying to figure out what can be the problem in my struts-config from yday, will anyone tell me what can be the problem if, I am putting scope=session in my action-mapping and trying to access same formbean from two different actions. Once the bean is created, it should be there for the session, and when I move to next jsp and call another action it should use same bean rather than creating a new one. I know itz creating new bean, coz I have put default constructor in my formbean and am printing System.out.printing() through constructor. Regards Chetan ___ | | The trouble with being punctual | is that nobody's there to appreciate it. | | |___ __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference.
RE: [Q] BEAN SCOPE
I cannot see a problem with the way you have used 'name' in the action mapping. Another way of tracking the problem is to log/System.out.println access to the Form validate by logging the session id as well. Then you can find out if the session is somehow recreated. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 13:20 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE attribute as what ? I tried putting attribute value as my formbean name, nothing is happening when I checked in struts dtd for struts-config the explaination says attribute Name of the request-scope or session-scope attribute that is used to access our ActionForm bean, if it is other than the bean's specified name. Optional if name is specified, else not valid. it says optional if name is specified. Regards Chetan - Original Message - From: Brian Blignaut [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:31 PM Subject: Re: [Q] BEAN SCOPE You must specify the attribute value for you action mapping David Bolsover wrote: Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db [STUFF DELETED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best way to understand Struts
Hi Amit, Since no-one has replied to this question, shall we understand that there is no such UML diagram. How would it be if we draw it ourselves and ask them whether we understand this correctly. Cheers Puneet - Original Message - From: Amit Keshav Kulkarni [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:49 AM Subject: Best way to understand Struts Hi All, I have been using Struts for quite some time now. Thanks largely to people on this mailing list, who answered all my questions, ( many of the questions might have been stupid, I accept) I am very comfortable _using_ struts now.. I really want to understand the exact flow of Struts. Yes, I aceept that Struts code is the Best Place to learn that. I tried going throgh it, but found it a bit difficult to grasp. Craig, It would be great if there are some UML diagrams to understand it, especially, Sequence Diagram for the ActionServlet-Action class flow. If not, I am sure many of you must have learnt the Struts flow by going thr' the code using some debugger. Can you please let me know various tools and options available to do this, And the standard procedures, if any that are followed to understand struts. Thanks and Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best way to understand Struts
guys..there is a great sequence diagram in Ted Husted's book.. Struts in Action. I've just got a copy and its the best developers guide to anything i've ever read..really step by step stuff.. hope this helps James Puneet Agarwal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Amit, Since no-one has replied to this question, shall we understand that there is no such UML diagram. How would it be if we draw it ourselves and ask them whether we understand this correctly. Cheers Puneet - Original Message - From: Amit Keshav Kulkarni [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:49 AM Subject: Best way to understand Struts Hi All, I have been using Struts for quite some time now. Thanks largely to people on this mailing list, who answered all my questions, ( many of the questions might have been stupid, I accept) I am very comfortable _using_ struts now.. I really want to understand the exact flow of Struts. Yes, I aceept that Struts code is the Best Place to learn that. I tried going throgh it, but found it a bit difficult to grasp. Craig, It would be great if there are some UML diagrams to understand it, especially, Sequence Diagram for the ActionServlet-Action class flow. If not, I am sure many of you must have learnt the Struts flow by going thr' the code using some debugger. Can you please let me know various tools and options available to do this, And the standard procedures, if any that are followed to understand struts. Thanks and Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] BEAN SCOPE
As whatever you want it to be, this is the value that struts will store your form under in the session and the value it will use to retrieve the form. Look at the source code. //Form creation (BeanUtils) String attribute = mapping.getAttribute(); if(attribute == null) return null; String name = mapping.getName(); config = moduleConfig.findFormBeanConfig(name); if(config == null) return null; if(log.isDebugEnabled()) log.debug( Looking for ActionForm bean instance in scope ' + mapping.getScope() + ' under attribute key ' + attribute + '); instance = null; HttpSession session = null; if(request.equals(mapping.getScope())) { instance = (ActionForm)request.getAttribute(attribute); } else { session = request.getSession(); instance = (ActionForm)session.getAttribute(attribute); } //Form storing (RequestProcessor) ActionForm instance = RequestUtils.createActionForm(request, mapping, moduleConfig, servlet); if(instance == null) return null; if(log.isDebugEnabled()) log.debug( Storing ActionForm bean instance in scope ' + mapping.getScope() + ' under attribute key ' + mapping.getAttribute() + '); if(request.equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), instance); } else { HttpSession session = request.getSession(); session.setAttribute(mapping.getAttribute(), instance); } return instance; Chetan Sahasrabudhe wrote: attribute as what ? I tried putting attribute value as my formbean name, nothing is happening when I checked in struts dtd for struts-config the explaination says attribute Name of the request-scope or session-scope attribute that is used to access our ActionForm bean, if it is other than the bean's specified name. Optional if name is specified, else not valid. it says optional if name is specified. Regards Chetan - Original Message - From: Brian Blignaut [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:31 PM Subject: Re: [Q] BEAN SCOPE You must specify the attribute value for you action mapping David Bolsover wrote: Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP 1 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return validateWIGAdminWizardForm(this); JSP 2 html:form action=/translator.do onsubmit=return validateWIGAdminWizardForm(this); now, when I call jsp1 the bean is getting created but when I move to jsp 2 , again new bean is created. And thatz the problem area. Thanks Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM Subject: RE: [Q] BEAN SCOPE Did you put scope=session on both action mappings? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:31 To: Struts Users Mailing List Subject: [Q] BEAN SCOPE Hi, I am trying to figure out what can be the problem in my struts-config from yday,
Re: [Q] BEAN SCOPE
Sorry my, mistake, with further searching I see that the get attribute method returns the name if the attribute is not specified public String getAttribute() { if(attribute == null) return name; else return attribute; } Brian Blignaut wrote: As whatever you want it to be, this is the value that struts will store your form under in the session and the value it will use to retrieve the form. Look at the source code. //Form creation (BeanUtils) String attribute = mapping.getAttribute(); if(attribute == null) return null; String name = mapping.getName(); config = moduleConfig.findFormBeanConfig(name); if(config == null) return null; if(log.isDebugEnabled()) log.debug( Looking for ActionForm bean instance in scope ' + mapping.getScope() + ' under attribute key ' + attribute + '); instance = null; HttpSession session = null; if(request.equals(mapping.getScope())) { instance = (ActionForm)request.getAttribute(attribute); } else { session = request.getSession(); instance = (ActionForm)session.getAttribute(attribute); } //Form storing (RequestProcessor) ActionForm instance = RequestUtils.createActionForm(request, mapping, moduleConfig, servlet); if(instance == null) return null; if(log.isDebugEnabled()) log.debug( Storing ActionForm bean instance in scope ' + mapping.getScope() + ' under attribute key ' + mapping.getAttribute() + '); if(request.equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), instance); } else { HttpSession session = request.getSession(); session.setAttribute(mapping.getAttribute(), instance); } return instance; Chetan Sahasrabudhe wrote: attribute as what ? I tried putting attribute value as my formbean name, nothing is happening when I checked in struts dtd for struts-config the explaination says attribute Name of the request-scope or session-scope attribute that is used to access our ActionForm bean, if it is other than the bean's specified name. Optional if name is specified, else not valid. it says optional if name is specified. Regards Chetan - Original Message - From: Brian Blignaut [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:31 PM Subject: Re: [Q] BEAN SCOPE You must specify the attribute value for you action mapping David Bolsover wrote: Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP 1 html:form action=/ominterfaceinfo.do focus=sOMName onsubmit=return validateWIGAdminWizardForm(this); JSP 2 html:form action=/translator.do onsubmit=return validateWIGAdminWizardForm(this); now, when I call jsp1 the bean is getting created but when I move to jsp 2 , again new bean is created. And thatz the problem area. Thanks Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:05 PM Subject: RE: [Q] BEAN SCOPE Did you put scope=session on both action mappings?
Re: Best way to understand Struts
Amit, Puneet http://www.mycgiserver.com/~eboudrant/#uml11 this is the site where u will get UML for struts 1.1 u dont need to write it on ur own :) somebody has already spent time on it Happy working chetan - Original Message - From: Puneet Agarwal [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 5:11 PM Subject: Re: Best way to understand Struts Hi Amit, Since no-one has replied to this question, shall we understand that there is no such UML diagram. How would it be if we draw it ourselves and ask them whether we understand this correctly. Cheers Puneet - Original Message - From: Amit Keshav Kulkarni [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:49 AM Subject: Best way to understand Struts Hi All, I have been using Struts for quite some time now. Thanks largely to people on this mailing list, who answered all my questions, ( many of the questions might have been stupid, I accept) I am very comfortable _using_ struts now.. I really want to understand the exact flow of Struts. Yes, I aceept that Struts code is the Best Place to learn that. I tried going throgh it, but found it a bit difficult to grasp. Craig, It would be great if there are some UML diagrams to understand it, especially, Sequence Diagram for the ActionServlet-Action class flow. If not, I am sure many of you must have learnt the Struts flow by going thr' the code using some debugger. Can you please let me know various tools and options available to do this, And the standard procedures, if any that are followed to understand struts. Thanks and Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] BEAN SCOPE
itz done guys, thanks for ur help. brian thanks for taking efforts in sending me code. in my code there was a old function removing object from session thanks :) - Original Message - From: Brian Blignaut [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 5:36 PM Subject: Re: [Q] BEAN SCOPE Sorry my, mistake, with further searching I see that the get attribute method returns the name if the attribute is not specified public String getAttribute() { if(attribute == null) return name; else return attribute; } Brian Blignaut wrote: As whatever you want it to be, this is the value that struts will store your form under in the session and the value it will use to retrieve the form. Look at the source code. //Form creation (BeanUtils) String attribute = mapping.getAttribute(); if(attribute == null) return null; String name = mapping.getName(); config = moduleConfig.findFormBeanConfig(name); if(config == null) return null; if(log.isDebugEnabled()) log.debug( Looking for ActionForm bean instance in scope ' + mapping.getScope() + ' under attribute key ' + attribute + '); instance = null; HttpSession session = null; if(request.equals(mapping.getScope())) { instance = (ActionForm)request.getAttribute(attribute); } else { session = request.getSession(); instance = (ActionForm)session.getAttribute(attribute); } //Form storing (RequestProcessor) ActionForm instance = RequestUtils.createActionForm(request, mapping, moduleConfig, servlet); if(instance == null) return null; if(log.isDebugEnabled()) log.debug( Storing ActionForm bean instance in scope ' + mapping.getScope() + ' under attribute key ' + mapping.getAttribute() + '); if(request.equals(mapping.getScope())) { request.setAttribute(mapping.getAttribute(), instance); } else { HttpSession session = request.getSession(); session.setAttribute(mapping.getAttribute(), instance); } return instance; Chetan Sahasrabudhe wrote: attribute as what ? I tried putting attribute value as my formbean name, nothing is happening when I checked in struts dtd for struts-config the explaination says attribute Name of the request-scope or session-scope attribute that is used to access our ActionForm bean, if it is other than the bean's specified name. Optional if name is specified, else not valid. it says optional if name is specified. Regards Chetan - Original Message - From: Brian Blignaut [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 4:31 PM Subject: Re: [Q] BEAN SCOPE You must specify the attribute value for you action mapping David Bolsover wrote: Are you explicitly putting wigadminwizardform into session scope in OMInterfaceInfoAction? db -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 07:51 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE man i have attached my struts-config.xml in my privious mails check the attachment Chetan - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:13 PM Subject: RE: [Q] BEAN SCOPE What does you struts-config look like? The form bean and action mapping entries. -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 09:34 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE OH yeh ... they r all in same webapps folder and are having refferences in same WEB-INF web.xml and struts-config.xml files. Any changes required in my struts-config ? btw, how is world cup going at ur end :) r u planning to watch India-England match :) - Original Message - From: du Plessis, Corneil C [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:50 PM Subject: RE: [Q] BEAN SCOPE It may be a silly question but are these actions in the same web application? -Original Message- From: Chetan Sahasrabudhe [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 08:47 To: Struts Users Mailing List Subject: Re: [Q] BEAN SCOPE Yep, I have session scope in both action mappings I have attached my struts-config along with this mail. btw in my jsp i have form bean saying JSP
RE: html-el:link and logic-el:iterate and tiles --- Just a simple question.
Thanks that was what I was missing... I ended up with: html-el:link page=${item.link} jsp:getProperty name=item property=value//html-el:link Last questions is the jsp:getProperty needed? I was hoping to find a html-el:link / implementation that Produced Aproduced text/A.. Is that possible? Second question is how do I test for the last instance of item within the iterate tag? Thanks for all the insight as all ways, Jeff Born. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 2:06 AM To: Struts Users Mailing List Subject: RE: html-el:link and logic-el:iterate and tiles --- Just a simple question. I would check to see if items.footer an attribute in some scope and it has a collection bound to it. Also, the id=item: item is an instance of the current iteration not a string. In the link paramName=item should be item.someMethod ( ) that returns a string. and i suspect that paramProperty=value might be something like paramProperty=item.value which calls the getValue ( ) method on instance. I hope this helps Ray Madigan -Original Message- From: Jeff Born [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 7:49 PM To: 'Struts Users Mailing List' Subject: html-el:link and logic-el:iterate and tiles --- Just a simple question. I would like the html-el:link to produce A href=%=request.getContextPath()%jsp:getProperty name=item property=link/jsp:getProperty name=item property=value/A I would like in to work with the iterate tag. But so far I am not getting it to work. logic-el:iterate id=item name=items.footer type=org.apache.struts.tiles.beans.MenuItem td html-el:link paramName=item paramProperty=value/ /td /logic-el:iterate Any insight would be greatly appreciated, Jeff Born - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NumberFormat Exception with ActionServlet
Hi, I extended ActionServlet and written my CustomActionServlet. Some time I am getting NumberFormat Exception when I added any jsp scriplets in my jsp page, like % System.out.println(I am working..); % The exception is at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) Same error I got when I added some get/set methods to ActionForm and included in jsp. The following is the Exception Message. java.lang.NumberFormatException: C at java.lang.Integer.parseInt(Integer.java(Compiled Code)) at java.lang.Integer.parseInt(Integer.java(Compiled Code)) at org.apache.jasper.compiler.Compiler.getJspLineErrors(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313) at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:697) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:244) at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja va:261) at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:430) at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:565) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:112) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1759) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596) at com.vstl.wspr.WSPRActionServlet.process(WSPRActionServlet.java:49) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:167) at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:297) at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:110) at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:523) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:282) at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:112) at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:91) at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:184) at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl eInvocationContext.java:106) at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:125) at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener .java:315) at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja va:60) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:323) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:252) at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) Thanks Regards, Ashok.D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts-Validator: Problem
Hi I have just started to use the Validator. The problem is that my validation for the page are fired when the page is loaded. Rgds Ved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LocalStrings
Hi What is the use of LocalStrings.properties and how is it used? Is there any documentation? Rgds Ved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator Woes
Hi I was using DynaActionForm. I decided to change to DynaValidatorForm. After changing to DynaValidatorForm, the jsp pages that used to be displayed have stopped. Also, the control is not reaching the Action class. There is no error on the console (JBOSS), but the browser displays that the page is not available. The page is displayed if I remove the entries in validation.xml. But if I add the validations for the page in the validation.xml, the page stops being displayed. Similar code and xml setting works for another page. Any idea what I am doing wrong? Rgds \/ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: LocalStrings
They are used by the framework. Do you ask because of the logging messages? -- James Mitchell Software Engineer/Struts Evangelist -Original Message- From: Vedd Sampang [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 8:33 AM To: [EMAIL PROTECTED] Subject: LocalStrings Hi What is the use of LocalStrings.properties and how is it used? Is there any documentation? Rgds Ved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security without the use of Servlet Filters
I asked a while back about implementing a security check for session data, and some people recommended using Filter Objects. My current project is working with the Servlet 2.2 spec, so I don't have the option of using Filters. Someone else mentioned overriding the Default Action that all my pages extend, which sounds like my best option at this time. Could anyone point me to an example of how to do this? TIA, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Security without the use of Servlet Filters
Are you planning to use container managed security? I supposed either way you can try what we've done - as I posted it in another thread yesterday: It may be easier for you to extend RequestProcessor and override processRoles(...) and perform your own authorization there. I started down that road, but didn't like the effect of return false from processRoles, so we always return true and do the real role checking in our base action class (mapping.getRoleNames() gives us the value of the roles attribute) so that we can return mapping.getInputForward() when the role check fails... -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 7:57 AM To: Struts Users Mailing List Subject: Security without the use of Servlet Filters I asked a while back about implementing a security check for session data, and some people recommended using Filter Objects. My current project is working with the Servlet 2.2 spec, so I don't have the option of using Filters. Someone else mentioned overriding the Default Action that all my pages extend, which sounds like my best option at this time. Could anyone point me to an example of how to do this? TIA, Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
populating textbox with bean property
Hi, I am new to struts and just trying to find out how to populate a textbox with a bean property, for example I have the following: bean:write name=system property=name / and would like the textbox value to be the name of the system: tdhtml:text property= size=50//td does anyone know how to do this? Cheers. Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: populating textbox with bean property
Just like you did with the bean:write. html:text name=system property=name size=50/ Or am I missing something from your question? Sri -Original Message- From: Chonalal, Anil (Contractor) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:02 AM To: '[EMAIL PROTECTED]' Subject: populating textbox with bean property Hi, I am new to struts and just trying to find out how to populate a textbox with a bean property, for example I have the following: bean:write name=system property=name / and would like the textbox value to be the name of the system: tdhtml:text property= size=50//td does anyone know how to do this? Cheers. Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
security question #2
I am using the below code to check for the presence of session attributes for security. Are there any issues I may be overlooking by doing it this way? TIA, Jason // // Default spgAction class // package spg.logic; import com.clarify.cbo.*; import org.apache.struts.action.*; import org.apache.struts.actions.*; import javax.servlet.http.*; public class spgAction extends Action { public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); Session ClfySession = (Session)session.getAttribute(ClfySession); com.clarify.cbo.FormContext ClfyFormContext_S = (com.clarify.cbo.FormContext) session.getAttribute(ClfyFormContext_S); if ( ClfySession == null || ClfyFormContext_S == null) { return(mapping.findForward(login)); } else return super.execute(mapping, form, request, response); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Action extension problem
We are planning to use Struts as part of our framework code. As part of this work I have created an extension of the Action class that contains generic functionality (ExtendedAction). This new class is further extended by another class with authenticating capabilities (AuthenticatingAction). Which is great, application teams can extend the appropriate class depending on whether their Action requires authentication or not. However, what if an application wants to use a DispatchAction? I can create an ExtendedDispatchAction and an AuthenticatingDispatchAction that contain the same code as in the classes above. However, what if an application then wanted to use a LookupDispatchAction? And so on. Is there a more elegant way of solving this problem other than to add more extended classes each time and duplicate the code? Thanks, Graeme - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: populating textbox with bean property
Thanks for that, I did the same before and was getting some exception, but it works fine now. Cheers. Anil -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: 26 February 2003 14:31 To: Struts Users Mailing List Subject: RE: populating textbox with bean property Just like you did with the bean:write. html:text name=system property=name size=50/ Or am I missing something from your question? Sri -Original Message- From: Chonalal, Anil (Contractor) [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:02 AM To: '[EMAIL PROTECTED]' Subject: populating textbox with bean property Hi, I am new to struts and just trying to find out how to populate a textbox with a bean property, for example I have the following: bean:write name=system property=name / and would like the textbox value to be the name of the system: tdhtml:text property= size=50//td does anyone know how to do this? Cheers. Anil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action extension problem
Is there a more elegant way of solving this problem other than to add more extended classes each time and duplicate the code? Have you considered a Servlet Filter for the authentication part? And the 'generic functionality' might be able to be moved out into 'Helper' classes rather than put directly into the Actions. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
Re: Best way to understand Struts
I have longed for something like this too -- because while struts attempts to solve some very real problems, and does a good job at it, I think the documentation and the mental model that people need to have can be reset straight by a key few pieces of documentation that are still missing. - You talk about UML diagrams and class flows. Personally I've used WSAD/Eclipse to set breakpoints and follow through the code pieces. Typically what I would do is to put a breakpoint in my Action class's perform() method, and then traverse up the stack to look at how things got there, and then when my action class returned follow through how various forwarding logic was working. The most frustrating aspect about struts is that even though the tag semantics is fairly easy to understand.. they sometimes interact in mysterious ways. I still stumble over iterate's inside iterate's, or with html:link or nested, select etc. Since struts uses reflection fairly heavily, your best bet is to make sure you can look at the generated java from jsp's. This will help when some of the exceptions get thrown as they inevitably will. If you can run your container (I use tomcat) in the debugger and set a breakpoint to trigger on an exception that is better -- because several of these container exceptions, or introspection exceptions are very poorly designed. Often they just say exception X -- and you get this huge stack trace of catalina design abstractions that no doubt people labored over, but won't help you in actually divining and fixing the exceptions. - So in addition to understanding how struts is put together I think we really need a much better user level document that is short, devoid of architecture verbosity, and clearly introduces the scope/semantics assumptions that guided the tag design and you need to know to get work done, the back-end flow and a debugging methodology to take when things go wrong. Maybe the struts experts have all written books to do this -- and that's probably the economic/business model for struts (after all it's open source, and you didn't expect to get this kind of software for free, right :)? In any case, I'd be happy to help out in any way I can if people think such a thing could be useful. Regards. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help with optionsCollection error
I don't understand the question -- if your example is working, the setter method is getting called and it's storing whatever got passed to it. Can you ask the question a different way? - Original Message - From: Peng Tuck Kwok [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:25 AM Subject: Re: Help with optionsCollection error Another question Ian, since I changed it, what values would be passed into the two inputs ? I tried doing a System.out.println to see what's in there but apparently the output does not come out. Ian Hunter wrote: Lowly me? Contribute to the FAQ? hee hee. Glad to help. (Hey, who's in charge of the FAQ around here?) - Original Message - From: Peng Tuck Kwok [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:39 PM Subject: Re: Help with optionsCollection error Hi Ian, your tip worked like a charm and I substituted it with the setRecipient(String key, String value) method. Hmm now I need to see what exactly I put in there. Ian ever thought of adding this as a faq in Struts ? Peng Tuck Kwok wrote: Will try that and post results. Thanks. Ian Hunter wrote: I think so -- whichever setter method within your ActionForm applies to the field named in your html:select tag has to be the ONLY setter method named whatever it's named. That's contradictory to normal bean conventions where you would normally have public void setValues(Vector values) and public void setValues(String key, String value) for instance. The introspection done by Struts can't tell the difference so you get an error thrown by BeanUtils.populate where it tries to call setValues(String key, String value) with only one value. There has been a fair amount of debate about this recently, but if you have overloaded setter methods, comment all but the one that suits the type of value you're really using, and see if it works. I had to go from having public void setIds(String ids[]) and public void setIds(int i; String ids[]) to having public void setIds(String ids[]) and public void setId(int i; String ids[]) see the difference? The s is gone in the case of the indexed property. See if that applies to your situation. - Original Message - From: Peng Tuck Kwok [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:56 PM Subject: Re: Help with optionsCollection error I'm currently implementing the recipients as a vector of beans and I do provide method setRecipients which takes in a vector and sets the recipients vector to it. Is that the setter method you are referring to ? Thanks. Ian Hunter wrote: The ActionForm descendant. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DynaActionForm vs ActionForm
Gemes Tibor wrote: you want your own reset() implementation You can still override reset in DynaActionForm... you just get out of writing all the get/set methods. I have a DynaValidatorForm in which I've implemented both reset and validate-- I couldn't convince the validator to handle a complicated dependency so I do that one manually and then call super.validate() to see if anything else is wrong. you have a tool which generates your Forms (eg xdoclet) I've read a little on this but haven't managed to get anywhere. Do you have a simple example of doing something useful with xdoclet and Struts? I don't know if I'm missing something or not. ;) -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
RE: security question #2
Jason, One thing you may want to consider is using the Template pattern here. Make your class abstract, declare an abstract method called doExecute or something like that, have your execute method call doExecute where it currently calls super.execute() (the super call is unnecesary I think). Sub classes would then implement doExecute() instead of execute, the ActionServlet would call the execute that was inherited from your abstract class, and you'd be guaranteed that the security logic would be executed immediately before the doExecute method. That having been said, I think the processRoles might be a better place to put this logic if you can use it. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:38 AM To: Struts Users Mailing List Subject: security question #2 I am using the below code to check for the presence of session attributes for security. Are there any issues I may be overlooking by doing it this way? TIA, Jason // // Default spgAction class // package spg.logic; import com.clarify.cbo.*; import org.apache.struts.action.*; import org.apache.struts.actions.*; import javax.servlet.http.*; public class spgAction extends Action { public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); Session ClfySession = (Session)session.getAttribute(ClfySession); com.clarify.cbo.FormContext ClfyFormContext_S = (com.clarify.cbo.FormContext) session.getAttribute(ClfyFormContext_S); if ( ClfySession == null || ClfyFormContext_S == null) { return(mapping.findForward(login)); } else return super.execute(mapping, form, request, response); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: security question #2
You can use container based security. http://jakarta.apache.org/struts/userGuide/preface.html#jaas -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: 26 February, 2003 16:38 To: Struts Users Mailing List Subject: security question #2 I am using the below code to check for the presence of session attributes for security. Are there any issues I may be overlooking by doing it this way? TIA, Jason // // Default spgAction class // package spg.logic; import com.clarify.cbo.*; import org.apache.struts.action.*; import org.apache.struts.actions.*; import javax.servlet.http.*; public class spgAction extends Action { public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); Session ClfySession = (Session)session.getAttribute(ClfySession); com.clarify.cbo.FormContext ClfyFormContext_S = (com.clarify.cbo.FormContext) session.getAttribute(ClfyFormContext_S); if ( ClfySession == null || ClfyFormContext_S == null) { return(mapping.findForward(login)); } else return super.execute(mapping, form, request, response); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relating to the official business of Standard Bank Group Limited is proprietary to the company. It is confidential, legally privileged and protected by law. Standard Bank does not own and endorse any other content. Views and opinions are those of the sender unless clearly stated as being that of Standard Bank. The person addressed in the e-mail is the sole authorised recipient. Please notify the sender immediately if it has unintentionally reached you and do not read, disclose or use the content in any way. Standard Bank can not assure that the integrity of this communication has been maintained nor that it is free of errors, virus, interception or interference. __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can not run my application since update with Struts1.1 Release C andidate 1
Finally I resolved one on the two errors. The error concerning the ClastCastException was due to a modification of my UML model when I updated the Struts classes. The generated code was false. The BaseAction doesn't extend no more the struts Action class. But I don't have resolved the second problem. To not have the [ERROR] ValidatorPlugIn I must place teh following lines in the validator-rules.xml file. !--!DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;-- --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain Has someone any idea ? -Original Message- From: Heligon Sandra Sent: 26 February 2003 09:24 To: '[EMAIL PROTECTED]' Subject: Can not run my application since update with Struts1.1 Release C andidate 1 Importance: High Since I updated the new version of the Struts framework I have the following errors: - Problem with the Validator Plugin [INFO] ValidatorPlugIn - -Loading validation rules file from '/WEB-INF/validator-rules.xml' [ERROR] ValidatorPlugIn - -Operation timed out: connect java.net.ConnectException: Operation timed out: connectjava.net.ConnectException: Operation timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at (Bootstrap.java:243) I don't understand what is the problem ? - I have a Login page and when I select the Login button I must enter in the LoginAction, but it dosen't work no more . [ERROR] RequestProcessor - -No action instance for path /login could be created java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess or.java:324) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) I have the following entry in my struts-config.xml file controller processorClass=org.apache.struts.tiles.TilesRequestProcessor / and my class LoginAction extends a BaseAction class that extends the Struts Action class. I don't understand why it doesn't work, do you have an idea ? Thanks a lot in advance Sandra --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jstl runtime expression evaluation
Hi, I have a question about JSTL expressions. Here is my scenario: I am storing several objects into the users Session using keys that are defined in a .property file and I want to reference these objects in JSTL. Here is an example: The key that will be used to store a Book is defined as a constant in the BookGlobals.class. So I store a Book object in the users session with the following in a Struts Action: session.setAttribute(BookGlobals.BOOK_KEY, book); I have placed the BookGlobals.BOOK_KEY variable into the ServletContext so that I can retrieve it like so: c:out value=${BOOK_KEY}/ However, I cannot figure out how to retrieve the book object from the session using JSTL and the Expression Language. Any idea on how to accomplish this. I have tried variations of the following with no luck: c:set var=book value=${sessionScope.BOOK_KEY}/ c:set var=book value=${sessionScope.[${BOOK_KEY}]}/ Im stuck on this one. Any suggestions are appreciated. Thanks, John -- ** John Thorhauer ** Web Developer ** Phoenix Color Corp. ** [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action extension problem
Thanks for your reply. Is there a more elegant way of solving this problem other than to add more extended classes each time and duplicate the code? Have you considered a Servlet Filter for the authentication part? A good idea, unfortunately we are still using Websphere v4.x which doesn't support the Servlet API v2.3. And the 'generic functionality' might be able to be moved out into 'Helper' classes rather than put directly into the Actions. Yes, could do, but I like the idea of having a base Action class. It also seems to be the recommended approach, e.g. from Struts In Action Always create a base class for the custom Actions in your application. Thanks again. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best way to understand Struts
Hi Puneet, Here are a couple of URLs that may help you out. http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11 http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11 Brian Puneet Agarwal 02/26/03 05:41am Hi Amit, Since no-one has replied to this question, shall we understand that there is no such UML diagram. How would it be if we draw it ourselves and ask them whether we understand this correctly. Cheers Puneet - Original Message - From: Amit Keshav Kulkarni To: Struts Users Mailing List Sent: Wednesday, February 26, 2003 4:49 AM Subject: Best way to understand Struts Hi All, I have been using Struts for quite some time now. Thanks largely to people on this mailing list, who answered all my questions, ( many of the questions might have been stupid, I accept) I am very comfortable _using_ struts now.. I really want to understand the exact flow of Struts. Yes, I aceept that Struts code is the Best Place to learn that. I tried going throgh it, but found it a bit difficult to grasp. Craig, It would be great if there are some UML diagrams to understand it, especially, Sequence Diagram for the ActionServlet-Action class flow. If not, I am sure many of you must have learnt the Struts flow by going thr' the code using some debugger. Can you please let me know various tools and options available to do this, And the standard procedures, if any that are followed to understand struts. Thanks and Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
websites that use Struts..
The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jstl runtime expression evaluation
How 'bout: c:set var=book value=${sessionScope[BOOK_KEY]}/ Quoting John Thorhauer [EMAIL PROTECTED]: Hi, I have a question about JSTL expressions. Here is my scenario: I am storing several objects into the users Session using keys that are defined in a .property file and I want to reference these objects in JSTL. Here is an example: The key that will be used to store a Book is defined as a constant in the BookGlobals.class. So I store a Book object in the users session with the following in a Struts Action: session.setAttribute(BookGlobals.BOOK_KEY, book); I have placed the BookGlobals.BOOK_KEY variable into the ServletContext so that I can retrieve it like so: c:out value=${BOOK_KEY}/ However, I cannot figure out how to retrieve the book object from the session using JSTL and the Expression Language. Any idea on how to accomplish this. I have tried variations of the following with no luck: c:set var=book value=${sessionScope.BOOK_KEY}/ c:set var=book value=${sessionScope.[${BOOK_KEY}]}/ Im stuck on this one. Any suggestions are appreciated. Thanks, John -- ** John Thorhauer ** Web Developer ** Phoenix Color Corp. ** [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can not run my application since update with Struts1.1 Relea se Candidate 1
I had a similar problem. My App Server is behind a firewall and cannot directly access the web. For some reason, the version of the commons-validator.jar bundled with RC1 does not satisfy the DTD lookup. I resolved this by downloading the current release of the validator framework (1.0.1) and using that instead. Of course, commenting out the DOCTYPE will disable the XML validation, which would also work. Heligon Sandra [EMAIL PROTECTED]To: 'Struts Users Mailing List' [EMAIL PROTECTED] homson.net cc: Subject: RE: Can not run my application since update with Struts1.1 Relea se C andidate 1 02/26/03 09:27 AM Please respond to Struts Users Mailing List Finally I resolved one on the two errors. The error concerning the ClastCastException was due to a modification of my UML model when I updated the Struts classes. The generated code was false. The BaseAction doesn't extend no more the struts Action class. But I don't have resolved the second problem. To not have the [ERROR] ValidatorPlugIn I must place teh following lines in the validator-rules.xml file. !--!DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN http://jakarta.apache.org/commons/dtds/validator_1_0.dtd;-- --- As of February 12, 2003 Thomson unifies its email addresses on a worldwide basis.Please note my new email address: [EMAIL PROTECTED] Thomson is the leader in solutions and technologies for the entertainment and media industries and serves its customers under its four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. More about Thomson: http://www.thomson.net/videochain Has someone any idea ? -Original Message- From: Heligon Sandra Sent: 26 February 2003 09:24 To: '[EMAIL PROTECTED]' Subject: Can not run my application since update with Struts1.1 Release C andidate 1 Importance: High Since I updated the new version of the Struts framework I have the following errors: - Problem with the Validator Plugin [INFO] ValidatorPlugIn - -Loading validation rules file from '/WEB-INF/validator-rules.xml' [ERROR] ValidatorPlugIn - -Operation timed out: connect java.net.ConnectException: Operation timed out: connectjava.net.ConnectException: Operation timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at (Bootstrap.java:243) I don't understand what is the problem ? - I have a Login page and when I select the Login button I must enter in the LoginAction, but it dosen't work no more . [ERROR] RequestProcessor - -No action instance for path /login could be created java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess or.java:324) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268) at
Re: Best way to understand Struts
Sorry about that, I meant to add this URL http://rollerjm.free.fr/pro/Struts.html Brian Brian Holzer 02/26/03 09:41am Hi Puneet, Here are a couple of URLs that may help you out. http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11 http://www.mycgiserver.com/~eboudrant/?nostat=true#uml11 Brian Puneet Agarwal 02/26/03 05:41am Hi Amit, Since no-one has replied to this question, shall we understand that there is no such UML diagram. How would it be if we draw it ourselves and ask them whether we understand this correctly. Cheers Puneet - Original Message - From: Amit Keshav Kulkarni To: Struts Users Mailing List Sent: Wednesday, February 26, 2003 4:49 AM Subject: Best way to understand Struts Hi All, I have been using Struts for quite some time now. Thanks largely to people on this mailing list, who answered all my questions, ( many of the questions might have been stupid, I accept) I am very comfortable _using_ struts now.. I really want to understand the exact flow of Struts. Yes, I aceept that Struts code is the Best Place to learn that. I tried going throgh it, but found it a bit difficult to grasp. Craig, It would be great if there are some UML diagrams to understand it, especially, Sequence Diagram for the ActionServlet-Action class flow. If not, I am sure many of you must have learnt the Struts flow by going thr' the code using some debugger. Can you please let me know various tools and options available to do this, And the standard procedures, if any that are followed to understand struts. Thanks and Regards, Amit - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jstl runtime expression evaluation
On Wed, 2003-02-26 at 10:42, Kris Schneider wrote: How 'bout: c:set var=book value=${sessionScope[BOOK_KEY]}/ that worked. thanks a bunch. john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: websites that use Struts..
On Wed, 26 Feb 2003 15:42:17 - James Prance [EMAIL PROTECTED] wrote: The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. I don't have a list of links to websites using Struts, but if it helps any, I had to come up with a quick list of topics to go over of how Struts could provide a better MVC architecture than what is currently being done (might help to over some of these with your PM). You could check out the list here: http://nagoya.apache.org/wiki/apachewiki.cgi?BenefitsOfStruts Please anyone add to it and fix it up. I wrote it very quickly. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts and Portlets
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] On Tue, 25 Feb 2003, Mete Kural wrote: From: Mete Kural [EMAIL PROTECTED] ---- --- Craig R. McClanahan [EMAIL PROTECTED] wrote: I'm definitely interested in making it possible to reuse Struts-based webapp things (actions, form beans, pages, business logic) in a portlet. That's going to take some refactoring and abstraction of the fundamental APIs -- but it's definitely going to be worth doing. Craig, what would be the scope of implementing the Portlet API in Struts? Would it encompass implementing some features of a portal server? Do you think it is practical to provide a portal server platform within Struts? The result of JSR 168 is going to be an API contract between a portal server and a portlet -- much like the Servlet API contract between a servlet container and a Servlet. As such, I think the best role for Struts is to answer the how do you program a portlet rather than how do I build a portal server. ---- Does anyone have a copy of the JSR 168 as a PDF or MS WORD document? If you do, could you save -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-4923 *** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: websites that use Struts..
Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Rick Reumann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 26 Feb 2003 15:42:17 - James Prance [EMAIL PROTECTED] wrote: The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. I don't have a list of links to websites using Struts, but if it helps any, I had to come up with a quick list of topics to go over of how Struts could provide a better MVC architecture than what is currently being done (might help to over some of these with your PM). You could check out the list here: http://nagoya.apache.org/wiki/apachewiki.cgi?BenefitsOfStruts Please anyone add to it and fix it up. I wrote it very quickly. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: monkey tree - must be session-based?
Affan, Iam sorry, I dont the answer for u r question. But, just wondering if you know a way to access a SESSION variables from the constructor of MONKEYTREEBEAN which is an ActionForm. -Pani. -- On Wed, 26 Feb 2003 08:27:56 Affan Qureshi wrote: I have been using Nested tags to create pretty complicated nested structures in a flash. But I have a problem when the user opens multiple windows and the session values can get messed up and the trees throw ArrrayIndexOutOfBound Exceptions. Has anyone come across the same? How to resolve it? Can we make the html:form to pick up a ActionForm bean from the session dynamically? I mean instead of using the name defined in struts-config.xml, can we specify a name of formbean to use at runtime? This way we can create 'N' no. of independent trees and store in session under different names and and the user can work with them simultaneously. Thanks a lot. Affan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: websites that use Struts..
On Wed, 26 Feb 2003 16:03:01 - James Prance [EMAIL PROTECTED] wrote: Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Just recently someone posted about a major company now using Struts- can't remember which one. I'll have to search the archives. I want to say it was a very large automobile company but I could be way off. I agree a nice recent up-to-date list would be helpful. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
Here's the original post. -- James Mitchell Software Engineer/Struts Evangelist -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: mercredi 26 février 2003 11:41 To: Struts Users Mailing List Subject: Re: websites that use Struts.. On Wed, 26 Feb 2003 16:03:01 - James Prance [EMAIL PROTECTED] wrote: Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Just recently someone posted about a major company now using Struts- can't remember which one. I'll have to search the archives. I want to say it was a very large automobile company but I could be way off. I agree a nice recent up-to-date list would be helpful. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---BeginMessage--- Title: Struts officially supported at Ford FYI I thought people might be interested to know that Ford Motor Company has chosen Struts to use as their officially supported Servlet framework. Interestingly, support is being provided through IBM although I'm not sure what they can offer above the user list =) Here is the statement from the Java Center of Excellent website: quote The Ford Servlet Framework is a packaged version of Struts 1.1 provided by and supported by IBM. This download includes Struts provided by IBM with some custom integration of the other Frameworks and services provided by the Java COE. The Java COE will only be supporting the versions of Struts downloaded from here. Application teams should NOT be downloading Struts from the Jakarta website but are encouraged to use the website for learning and documentation. /quote I'd be interested to hear what people think about the last part of the quote Currently, Ford is distributing 1.1b2. I imagine there will be quite a delay before they actually distribute 1.1 final (when it comes out), which I don't think is in the best interest of the project teams. --- - Nayan Hajratwala - Chikli Consulting LLC - http://www.chikli.com http://www.chikli.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javasript and checkboxes
Is there an easy way in Struts to check if a checkbox has been checked via javascript before you let the user submit? I am using Struts javascript for other validation, but I don't' see anything for checkboxes... I know how to hand code this but I am wondering if Struts has this covered... Thanks! -- Sloan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
And, I will once again mention that we are using Struts here at Lands' End for an internal application and are in the process of developing a customer-facing application with it. Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:47 AM To: 'Struts Users Mailing List' Subject: RE: websites that use Struts.. Here's the original post. -- James Mitchell Software Engineer/Struts Evangelist -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: mercredi 26 février 2003 11:41 To: Struts Users Mailing List Subject: Re: websites that use Struts.. On Wed, 26 Feb 2003 16:03:01 - James Prance [EMAIL PROTECTED] wrote: Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Just recently someone posted about a major company now using Struts- can't remember which one. I'll have to search the archives. I want to say it was a very large automobile company but I could be way off. I agree a nice recent up-to-date list would be helpful. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
Mandalay Bay Hotels uses Struts: www.mandalaybay.com -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:56 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
Found this one too. https://service.capitalone.com/oas/login.do?objectclicked=LoginSplash Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:56 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
http://shop.t-mobile.com Mark -Original Message- From: Ron Day [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:58 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Mandalay Bay Hotels uses Struts: www.mandalaybay.com -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:56 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Javascript displayed on page
What woudl cause Struts to put Javascript into a page but NOT put script type=text/javascript language=Javascript1.1 !-- Begin and //End -- /script It seems to be leaving it out for me on a certain page. On other pages it works fine though. Also, is there any way to get strust to send only the javascript methods it needs? Right now it sends a lot of methods that are not needed for my forms. Thanks! -- Sloan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
My site uses it: http://raibledesigns.com If you login (link at bottom right) as test/roller, you can edit the test weblog at http://raibledesigns.com/page/test. The Editor UI is written in Struts, and the main weblog UI is using Velocity. Powered by Roller (http://www.rollerweblogger.org). HTH, Matt -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:03 AM To: [EMAIL PROTECTED] Subject: Re: websites that use Struts.. Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Rick Reumann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 26 Feb 2003 15:42:17 - James Prance [EMAIL PROTECTED] wrote: The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. I don't have a list of links to websites using Struts, but if it helps any, I had to come up with a quick list of topics to go over of how Struts could provide a better MVC architecture than what is currently being done (might help to over some of these with your PM). You could check out the list here: http://nagoya.apache.org/wiki/apachewiki.cgi?BenefitsOfStruts Please anyone add to it and fix it up. I wrote it very quickly. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts and Portlets
-Original Message- From: PILGRIM, Peter, FM ---- servlet container and a Servlet. As such, I think the best role for Struts is to answer the how do you program a portlet rather than how do I build a portal server. ---- Does anyone have a copy of the JSR 168 as a PDF or MS WORD document? If you do, could you save I meant could you send me a copy of the draft specification document off list. Actually the last thing I do have on my work drive is a Power Point presentation from JavaOne 2002 on JSR 168. MTIA == many thanks in advance -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-4923 *** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to implement/describe an action that can be invoked on from any view and forward the request back to that view?
Andrew, what I did was to define views where this action may be invoked from in global forwards and use the forward alias as a paramter so now the action knows where to forward the request to. The use of global forwards allows me to conceal the real view names so the user still doesn't see them. Cheers, Ivan - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:12 AM Subject: RE: how to implement/describe an action that can be invoked on from any view and forward the request back to that view? Yeh. You may be right about that. (input mappings). Im not too strong on that subject myself so can't advise. Might be an idea to wait a short while to see what other replies your question gets before you spend time following my suggestion as there may well be a better way of doing it that Im not aware of. -Original Message- From: Ivan N. Zhidov [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 February 2003 13:01 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: how to implement/describe an action that can be invoked on from any view and forward the request back to that view? Andrew, thank you for the suggestion. I will extend ActionServlet in order to do that but I thought this should be part of Struts to where if I don't define an 'input' in action mapping the should be routed back to where it comes from. Or at least be available from the ActionMapping object, is that what getInputForward supposed to do? If so can it work dynamically with no 'input' paramater described? Thanks for the info. Cheers, Ivan - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:53 PM Subject: RE: how to implement/describe an action that can be invoked on from any view and forward the request back to that view? What I did (in 1.1) was to extend RequestProcessor (or in your case of 1.0 you would extend ActionServlet) to check what the request Locale is and update the Locale in the session appropriately. I wouldnt be too afraid to extend ActionServlet if I were you. It gives you a lot of flexibility, especially if your not using a container with support for filters - so another option (if using = Servlet API 2.3) would be to define a filter to do the same thing. As the Locale used by struts is stored in Session you should be able to modify it from the filter. Havent tried it myself though. btw One problem I came across implementing this sort of dynamic Locale switching, in regards to IE5 (havent tried it with 6 yet), was that if the user has modified their Regional Settings in the control panel, (and thus the language selected there does not match the language they have selected in their IE language settings), then for some requests IE submits the IE language setting, while for others it submits the Regional Settings language setting. I havent narrowed down what 'rules' it uses to determine which to submit when, but I can tell you its a damn nuisance! /btw -Original Message- From: Ivan N. Zhidov [mailto:[EMAIL PROTECTED] Sent: Tuesday, 25 February 2003 12:33 To: [EMAIL PROTECTED] Subject: how to implement/describe an action that can be invoked on from any view and forward the request back to that view? I'm working with Struts 1.0 and Velocity and here's my problem: I want to be able to change the locale from any view meaning that I would like to have a universal action that changes the locale and forwards the request to the view where it came from. I can't find a way to implement that unless I extend ActionServlet. First I don't want to describe the action in struts-config as many times as there are views it can be called from. Second if I create a BaseAction and BaseActionForm and handle it there, I'd need to make any other form validation to be convoluted not to be invoked if its a locale changing request. Does anybody know of an easy way to implement it? Cheers, Ivan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running example app on Websphere 4.0
Finally got it to work. The solution is similar to the one suggested by Ryan below - After I restarted the app server, I also needed to restart the actual application. I also forgot to regenerate web server plugin after installing the example app, which caused it not to work. Thank you to everyone for your help. -Original Message- From: Shkolnik, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:15 PM To: 'Struts Users Mailing List' Subject: RE: Running example app on Websphere 4.0 Actually I'm getting that exception when the application server is starting. I think what is happening is that on the startup, it tries to load the Action servlet which uses commons logging and thats's when it fails. Thanks. -Original Message- From: Owens, Ryan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:53 PM To: Struts Users Mailing List Subject: RE: Running example app on Websphere 4.0 May not be related at all, but: I'm not using Websphere (using Jboss with Tomcat) but I get that same error: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory whenever I recompile my classes but don't restart JBoss/Tomcat. once I restart them everything works fine. So maybe try restarting Websphere. Hope that helps. Ryan Owens -Original Message- From: Shkolnik, Mike [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 6:46 PM To: 'Struts Users Mailing List' Subject: RE: Running example app on Websphere 4.0 Yes, the struts.jar is only in that directory. The strange thing is that when I'm running the example application, I'm not getting the NoClassDefFoundError, but I am getting a different one: [2/25/03 15:37:27:247 PST] 33fc3e53 WebGroup X Servlet Error-[action]: Failed to load servlet: java.lang.ExceptionInInitializerError: org.apache.commons.logging.LogConfigurationException: java.lang.ClassCastException: org.apache.commons.logging.impl.Log4jFactory at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:549) at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:337) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:375) at org.apache.struts.action.ActionServlet.clinit(ActionServlet.java:376) at java.lang.Class.newInstance0(Native Method) And I'm not sure whether that is what causing the example application to fail or if it's something else. But that's the only error that I can find. Thank you. -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 3:09 PM To: Struts Users Mailing List Subject: Re: Running example app on Websphere 4.0 So are you sure that it isn't in *any* other place? Shkolnik, Mike wrote: Initially, I just had it in one place - where it's suppose to be in /WEB-INF/LIB/. But that didn't seem to work. Thanks. -Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:56 PM To: Struts Users Mailing List Subject: Re: Running example app on Websphere 4.0 Mike: I don't know anything about WebSphere, but thought you may like to know this: the time that I got a similar error NoClassDefFoundError was in fact when I had placed a jar in one place too many... not to be confused with the ClassNotFoundError. (I believe the error occurs when a class found in the compilation path is not the same as the one found at run time. ) Since you say below that you tried to put the struts.jar in lots of places, maybe this is the problem..? So try to remove the struts.jar from everywhere *except* one place, rebuild everything and then try again. Regards, Geeta Shkolnik, Mike wrote: The link or file that you were trying to include is not there. Deploying example app directly to the WS 4.0 appserver does not seem to work. When I try to deploy and run my own struts application (not the example) I get following error: [2/25/03 10:52:01:630 PST] 37191c7f WebGroup X Servlet Error-[action]: Failed to load servlet: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionServlet at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:254) at java.beans.Beans.instantiate(Beans.java:213) at java.beans.Beans.instantiate(Beans.java:57) at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet I tried to put the struts.jar everywhere I could think of, but it still can not find it. When I deploy example application, I'm not getting above error, however when I try to invoke any action from a browser I get File not found... error. Thanks. -Original Message- From: Hajratwala, Nayan (N.) [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:03 PM To: 'Struts Users Mailing List' Subject: RE: Running example app on Websphere 4.0 Assuming you're trying to get
Upload and BeanUtils problem
Hi, I'm trying to get the html:file tag working, but I'm stuck. When I submit my form, I have a NoClassDefFoundError exception for org/apache/commons/beanutils/MethodUtils. The commons-beanutils.jar file is in my /WEB-INF/lib directory, so I don't understand. Any idea? Following is the exception trace. Thanks in advance. Sebastien javax.servlet.ServletException: L''exécution de la servlet a lancé une exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:386) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:530) at java.lang.Thread.run(Thread.java:536) cause mère java.lang.NoClassDefFoundError: org/apache/commons/beanutils/MethodUtils at org.apache.commons.fileupload.FileUpload.getNewInstanceMethod(FileUpload.jav a:669) at org.apache.commons.fileupload.FileUpload.createItem(FileUpload.java:600) at org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:473) at org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:355) at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(Common sMultipartRequestHandler.java:233) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1055) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
RE: Netscape 4.7x and Struts performance problems
Unfortunately, I don't have the luxury of developing to IE only. We're deploying a struts app to a pretty broad audience, about 20% of which still prefer Netscape 4.x. The problems I think we're having relate to the way Tiles were implemented by one of our developers. He had very complex table nesting, which we're working to clean up right now. We've already cut the render time in half, but its still pretty slow. -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:36 PM To: 'Struts Users Mailing List' Subject: RE: Netscape 4.7x and Struts performance problems You're probably not going to like my advice, but IMHO Netscape 4.x should be banished from the list of browsers supported by modern webapps. I agree - you don't support IE 3.0 do you? It was released at the same time as the first Netscape 4 version. You'll save yourself countless hours of development time by developing for modern browsers. DOM Support + CSS makes life s much easier IMO. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts and Portlets
Hi Vic, Sounds good to me. Good. You are welcome to start analyzing Liferay's source code then. You can either download the source zip archive available here http://sourceforge.net/project/showfiles.php?group_id=49260 or log in to the sourceforge cvs with this command: cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/lportal login I prefer logging into the CVS with an IDE. When you have questions about the source, please ask them in the mailing list for which you can subscribe at http://lists.sourceforge.net/lists/listinfo/lportal-development Thank you, Mete Mete Kural wrote: Hi Vic, I read your proposal. As you say, I think it would be great to provide Struts-based verticals under a portal platform. In your proposal you have mentioned that one of BasicPortal's goals is to provide a UI that is similar to my.netscape.com. I think that Liferay has accomplished this and it also has pretty extensive personalization and administration features. Please surf through the demo at my.liferay.com Log in as the administrator so you can check out the administration features as well: Login: [EMAIL PROTECTED] Pass: test Since now I am somewhat involved in both Liferay and BasicPortal (although I have not yet contributed a single line of code to either of them) I can clearly see that there is a common goal in both of these projects: providing an open-source Struts-based portal server. Both projects have their strengths. While BasicPortal has a good lightweight persistence framework, Liferay has an extensive UI for personalization and administration. I suggest that the best of both projects can be combined under a brand new Jakarta subproject that would aim to provide a Struts-based alternative to JetSpeed. What do you think? -Mete --- Vic Cekvenich [EMAIL PROTECTED] wrote: http://nagoya.apache.org/wiki/apachewiki.cgi?PortalProposal Mete Kural wrote: --- Craig R. McClanahan [EMAIL PROTECTED] wrote: There are certainly people in the world who have done this sort of thing already (Liferay, BasicPortal, etc.) for non-JSR-168 portlet APIs, so it's clearly feasible, and it's a pretty good idea. But, from my perspective, this sort of thing is actually a Struts-based application, rather than part of the framework itself. Thanks for the insight. Now I understand what the role of Struts would be regarding the Portlet API. In this case I have another question to follow. If Struts will hopefully provide a framework for building Struts-based portlets, how do you find the idea of cultivating interest for open-source programmers to work on a Struts-based portal server under the Jakarta umbrella? As you say, there are already people who have implemented Struts-based non-JSR-168 portal servers such as Liferay and BasicPortal. I think that it would be wonderful if there could be a joint effort to create an open-source Struts-based portal server under Jakarta, as an alternative to JetSpeed. What do you think? Thanks, Mete - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can not run my application since update with Struts1.1Releas e C andidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TOVALIDATOR- RULES.XML remote dtd problem?
This is the same issue I am reporting in my post titled [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd problem? See post below. -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:24 AM To: '[EMAIL PROTECTED]' Subject: Can not run my application since update with Struts1.1 Release C andidate 1 Importance: High Since I updated the new version of the Struts framework I have the following errors: - Problem with the Validator Plugin [INFO] ValidatorPlugIn - -Loading validation rules file from '/WEB-INF/validator-rules.xml' [ERROR] ValidatorPlugIn - -Operation timed out: connect java.net.ConnectException: Operation timed out: connectjava.net.ConnectException: Operation timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at (Bootstrap.java:243) I don't understand what is the problem ? - I have a Login page and when I select the Login button I must enter in the LoginAction, but it dosen't work no more . [ERROR] RequestProcessor - -No action instance for path /login could be created java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcess or.java:324) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:268) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) I have the following entry in my struts-config.xml file controller processorClass=org.apache.struts.tiles.TilesRequestProcessor / and my class LoginAction extends a BaseAction class that extends the Struts Action class. I don't understand why it doesn't work, do you have an idea ? Thanks a lot in advance Sandra --- I am experiencing a problem with the parsing/validation of the validator-rules.xml file; the error output from Tomcat is shown below. It appears that the remote DTD document specified in the validator-rules.xml file is not being retrieved. I have looked in the file, and it is indeed specifying the correct (Commons 1.0) version of the dtd, based on what I've read previously on this list. I have seen a number of posts about this issue, with the implication that the issue was resolved in 1.1b2; I have seen a bugzilla report that was closed as INVALID/FIXED. However, I've just downloaded both rc1 and the nightly build of 2003-02-25 and the problem exists in those builds. What is up with this, and where is there a clear explanation of how to address this? Thanks. --- [ERROR] ValidatorPlugIn - -Host unreachable: connect java.net.NoRouteToHostExce ption: Host unreachable: connectjava.net.NoRouteToHostException: Host unreachab le: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.init(Socket.java:268) at java.net.Socket.init(Socket.java:95) at sun.net.NetworkClient.doConnect(NetworkClient.java:45) at sun.net.www.http.HttpClient.openServer(HttpClient.java:334) at sun.net.www.http.HttpClient.openServer(HttpClient.java:520) at sun.net.www.http.HttpClient.init(HttpClient.java:270) at sun.net.www.http.HttpClient.init(HttpClient.java:280) at sun.net.www.http.HttpClient.New(HttpClient.java:292) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:417) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:510) at java.net.URL.openStream(URL.java:793) at org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultRe aderFactory.java:149) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExtern alEntity(DefaultEntityHandler.java:767) at
RE: websites that use Struts..
Baahhh, they don't like modern browsers eh? Using Mozilla, I get the following page. No response needed, just thought maybe the developers are listening ;-) You cannot access Online Account Services with your current Web browser. Possible reasons for this could be one of the following: * You are using Netscape 4.0 through 4.07, which we cannot support for online account transactions due to security reasons. * You are using a browser that is incompatible with our Online Account Services system. We suggest Netscape version 4.08 or higher or Internet Explorer version 4.0 or higher. For Macintosh users, we suggest Internet Explorer version 4.5 or higher. * Your browser does not support 128-bit encryption. We regret any inconvenience this may cause but, with these policies, we strive to keep your account information as secure as possible. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:01 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Found this one too. https://service.capitalone.com/oas/login.do?objectclicked=LoginSplash Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:56 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: websites that use Struts..
Hello, I think tomcat administration uses struts. that will be a good one and also websphere 5.0 administration. I am not sure, I remember reading somewhere [EMAIL PROTECTED] wrote: Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Rick Reumann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 26 Feb 2003 15:42:17 - James Prance [EMAIL PROTECTED] wrote: The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. I don't have a list of links to websites using Struts, but if it helps any, I had to come up with a quick list of topics to go over of how Struts could provide a better MVC architecture than what is currently being done (might help to over some of these with your PM). You could check out the list here: http://nagoya.apache.org/wiki/apachewiki.cgi?BenefitsOfStruts Please anyone add to it and fix it up. I wrote it very quickly. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dropdown list
Hi, I have a form say X. I have GetX action which prefills form and SetX action which process the values entered by user. I have dropdown list [fetched by GetX and populated in form object]. When the form is posted, and it fails in validation, i am losing this dropdown list [ArrayList]. I get only the selected values. It goes back to the form with empty dropdown list. Is there a flaw in my design? I think i am not getting back the dropdown list because it is not sent back from browser. What is the solution. I believe the dropdown list should be part of the form. Thanks, Prabu _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can not run my application since update with Struts1.1Releas e C andidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TOVALIDATOR - RULES.XML remote dtd problem?
If you can get to the DTD with your browser, and you're behind a firewall, you may have to add your proxy information to Tomcat. To do this, create a CATALINA_OPTS environment variable, and add something like the following: -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=85 -Original Message- From: Peterkofsky, Don [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:25 AM To: 'Struts Users Mailing List' Subject: RE: Can not run my application since update with Struts1.1 Releas e C andidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR- RULES.XML remote dtd problem? This is the same issue I am reporting in my post titled [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd problem? See post below. -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:24 AM To: '[EMAIL PROTECTED]' Subject: Can not run my application since update with Struts1.1 Release C andidate 1 Importance: High Since I updated the new version of the Struts framework I have the following errors: - Problem with the Validator Plugin [INFO] ValidatorPlugIn - -Loading validation rules file from '/WEB-INF/validator-rules.xml' [ERROR] ValidatorPlugIn - -Operation timed out: connect java.net.ConnectException: Operation timed out: connectjava.net.ConnectException:Operation timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at (Bootstrap.java:243) I don't understand what is the problem ? - I have a Login page and when I select the Login button I must enter in the LoginAction, but it dosen't work no more . [ERROR] RequestProcessor - -No action instance for path /login could be created java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction at org.apache.struts.action.RequestProcessor.processActionCreate( RequestProcess or.java:324) at org.apache.struts.action.RequestProcessor.process(RequestProce ssor.java:268) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1420) I have the following entry in my struts-config.xml file controller processorClass=org.apache.struts.tiles.TilesRequestProcessor / and my class LoginAction extends a BaseAction class that extends the Struts Action class. I don't understand why it doesn't work, do you have an idea ? Thanks a lot in advance Sandra --- I am experiencing a problem with the parsing/validation of the validator-rules.xml file; the error output from Tomcat is shown below. It appears that the remote DTD document specified in the validator-rules.xml file is not being retrieved. I have looked in the file, and it is indeed specifying the correct (Commons 1.0) version of the dtd, based on what I've read previously on this list. I have seen a number of posts about this issue, with the implication that the issue was resolved in 1.1b2; I have seen a bugzilla report that was closed as INVALID/FIXED. However, I've just downloaded both rc1 and the nightly build of 2003-02-25 and the problem exists in those builds. What is up with this, and where is there a clear explanation of how to address this? Thanks. --- [ERROR] ValidatorPlugIn - -Host unreachable: connect java.net.NoRouteToHostExce ption: Host unreachable: connectjava.net.NoRouteToHostException: Host unreachab le: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124) at java.net.Socket.init(Socket.java:268) at java.net.Socket.init(Socket.java:95) at sun.net.NetworkClient.doConnect(NetworkClient.java:45) at sun.net.www.http.HttpClient.openServer(HttpClient.java:334) at
Re: websites that use Struts..
I think www.enterprise.com , use Struts -- Original Message -- From: asatrasala [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] Date: Wed, 26 Feb 2003 09:31:28 -0800 Hello, I think tomcat administration uses struts. that will be a good one and also websphere 5.0 administration. I am not sure, I remember reading somewhere [EMAIL PROTECTED] wrote: Cheers Rick.. thats will help, what i really need to demonstrate is its not just another latest techies geegaw.. seeing them in action will do more for them at this stage i feel.. Rick Reumann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 26 Feb 2003 15:42:17 - James Prance [EMAIL PROTECTED] wrote: The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. I don't have a list of links to websites using Struts, but if it helps any, I had to come up with a quick list of topics to go over of how Struts could provide a better MVC architecture than what is currently being done (might help to over some of these with your PM). You could check out the list here: http://nagoya.apache.org/wiki/apachewiki.cgi?BenefitsOfStruts Please anyone add to it and fix it up. I wrote it very quickly. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
I get the same thing with IE 6.0 with 128 bit encryption. -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:29 PM To: 'Struts Users Mailing List' Subject: RE: websites that use Struts.. Baahhh, they don't like modern browsers eh? Using Mozilla, I get the following page. No response needed, just thought maybe the developers are listening ;-) You cannot access Online Account Services with your current Web browser. Possible reasons for this could be one of the following: * You are using Netscape 4.0 through 4.07, which we cannot support for online account transactions due to security reasons. * You are using a browser that is incompatible with our Online Account Services system. We suggest Netscape version 4.08 or higher or Internet Explorer version 4.0 or higher. For Macintosh users, we suggest Internet Explorer version 4.5 or higher. * Your browser does not support 128-bit encryption. We regret any inconvenience this may cause but, with these policies, we strive to keep your account information as secure as possible. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:01 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Found this one too. https://service.capitalone.com/oas/login.do?objectclicked=LoginSplash Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:56 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dropdown list
Is the input attribute of your SetX action set to the jsp or the GetX action? You can either set it to the GetX action so that the drop-down collection gets reloaded, or stick the drop-down collection in session scope so the jsp can access it on the next request... -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Prabu Babu [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:35 AM To: [EMAIL PROTECTED] Subject: Dropdown list Hi, I have a form say X. I have GetX action which prefills form and SetX action which process the values entered by user. I have dropdown list [fetched by GetX and populated in form object]. When the form is posted, and it fails in validation, i am losing this dropdown list [ArrayList]. I get only the selected values. It goes back to the form with empty dropdown list. Is there a flaw in my design? I think i am not getting back the dropdown list because it is not sent back from browser. What is the solution. I believe the dropdown list should be part of the form. Thanks, Prabu _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Struts with Cocoon?
Anyone used struts with Cocoon? Is it feasible? Is it worth it? How best to do this? -To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: websites that use Struts..
I'm using IE6.0.2 with 128-bit and it works great. I didn't develop the app... but i do use their credit card. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Jerome Jacobsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:42 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. I get the same thing with IE 6.0 with 128 bit encryption. -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:29 PM To: 'Struts Users Mailing List' Subject: RE: websites that use Struts.. Baahhh, they don't like modern browsers eh? Using Mozilla, I get the following page. No response needed, just thought maybe the developers are listening ;-) You cannot access Online Account Services with your current Web browser. Possible reasons for this could be one of the following: * You are using Netscape 4.0 through 4.07, which we cannot support for online account transactions due to security reasons. * You are using a browser that is incompatible with our Online Account Services system. We suggest Netscape version 4.08 or higher or Internet Explorer version 4.0 or higher. For Macintosh users, we suggest Internet Explorer version 4.5 or higher. * Your browser does not support 128-bit encryption. We regret any inconvenience this may cause but, with these policies, we strive to keep your account information as secure as possible. -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:01 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Found this one too. https://service.capitalone.com/oas/login.do?objectclicked=LoginSplash Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:56 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Opps... One of my links was bad. :-o http://www.bearmountainmercantile.com Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 9:53 AM To: Struts Users Mailing List Subject: RE: websites that use Struts.. Here is a collection of sites that use struts: http://www.bearmountainmercantilec.com http://www.joebasirico.com http://www.whitefishre.com http://www.eisenhartbuilders.com http://www.parkersvilllecollection.com - contact page only. Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: James Prance [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: websites that use Struts.. The list on the Apache website, half the links dont work... does anyone know of some websites out there on the old 'interweb' that are currently live using struts.. I need to find some good examples to convince our PM's that this is our way forward.. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Dropdown list
Prabu wrote: I have a form say X. I have GetX action which prefills form and SetX action which process the values entered by user. I have dropdown list [fetched by GetX and populated in form object]. When the form is posted, and it fails in validation, i am losing this dropdown list [ArrayList]. I get only the selected values. It goes back to the form with empty dropdown list. Is there a flaw in my design? I think i am not getting back the dropdown list because it is not sent back from browser. What is the solution. I believe the dropdown list should be part of the form. How are you storing the ArrayList that populates the drop-down list? If you're putting it in request scope, then you cannot expect it to be there after the page/request is completed. The entire list will never be sent by the browser, that's not the way HTML forms work. I put a bunch of Maps in application scope when my webapp loads. If the contents of that drop down list should be the same for every user, then that might be the way to go. If the list needs to be customized for each user, then session scope might be appropriate. And if the list could change each time a single user displays the form, then you'll have to put that ArrayList back in request scope every time, which means doing it after a failed validation. This has come up fairly recently so you might check the archives, but I don't remember the solution to the last situation. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management
[OT] database access philosophy
Hello, I'm in the process of converting an old webapp over to using struts and, in the process, I decide to clean up the database access. Old Way: I had written a connection pool and instantiated an instance of this that was passed to all methods that needed the db, and they they had the sql code embedded in the methods. New Way that I'm working on: I've set up a DataSource for my jdbc connection, and I'm partitioning off all of the database access code into it's own package. If my business logic needs database info, it calls a method from the database access package to get it. My problem: Many methods from the database access return simple data. However, I currently have it written so that some of the more complex ones return a ResultSet, which I'm not really happy with. This exposes the DB layer to the business logic, but I'm not totally sure what the best way to avoid this is. In addition, this doesn't work :( because the underlying connection gets closed when the database access method exists, and the ResultSet is no longer valid. SO, I am wondering what people do when they need to return all of the data in a ResultSet to their business layer. Do you have to go to the hassle of copying everything to some sort of data structure, or is there a better, cleaner, faster way to handle this? (I'm kind of assuming that the ResultSet will be small enough to fit in memory and there won't be issues with pulling it in in pieces; how would that be handled, though?) Thanks, -- Kirby Vandivort Theoretical and Computational Biophysics Email: [EMAIL PROTECTED] 3051 Beckman Institute http://www.ks.uiuc.edu/~kvandivo/University of Illinois Phone: (217) 244-5711405 N. Mathews Ave Fax : (217) 244-6078Urbana, IL 61801, USA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Netscape 4.7x and Struts performance problems
Who said anything about IE only? I develop all my apps to the xhtml 1.0 spec as closely as possible. Like magic, they work in all the major browsers :-). David From: scarter [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Netscape 4.7x and Struts performance problems Date: Wed, 26 Feb 2003 12:22:24 -0500 Unfortunately, I don't have the luxury of developing to IE only. We're deploying a struts app to a pretty broad audience, about 20% of which still prefer Netscape 4.x. The problems I think we're having relate to the way Tiles were implemented by one of our developers. He had very complex table nesting, which we're working to clean up right now. We've already cut the render time in half, but its still pretty slow. -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:36 PM To: 'Struts Users Mailing List' Subject: RE: Netscape 4.7x and Struts performance problems You're probably not going to like my advice, but IMHO Netscape 4.x should be banished from the list of browsers supported by modern webapps. I agree - you don't support IE 3.0 do you? It was released at the same time as the first Netscape 4 version. You'll save yourself countless hours of development time by developing for modern browsers. DOM Support + CSS makes life s much easier IMO. Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tripping over request variables again
For some reason, I am not catching on to the idea of beans in the request. Here's my code: request.setAttribute(caseInfo, theCase); theForm.setCaseInfo(theCase); and my jsp: td valign=topbbean:write name=caseInfo scope=request property=id/ /b/td td valign=topbbean:write name=caseInfo scope=request property=title/ /b/td td valign=topbbean:write name=caseInfo scope=request property=busOrg//b/td td valign=topbbean:write name=caseInfo scope=request property=status//b/td and the error: javax.servlet.jsp.JspException: Cannot find bean caseInfo in scope request what am i missing this time? Jason - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can not run my application since update with Struts1.1 Releas e Candidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR- RULES.XML remote dtd problem?
This does not resolve the overall issue... Why is the DTD, which is stored in the commons-validator.jar not being recognized in RC1? The lookup should recognize the DTD in the path and not even require a remote lookup. |-+--- | | Raible, Matt | | | [EMAIL PROTECTED]| | | omcast.com | | | | | | 02/26/03 11:35 AM | | | Please respond to | | | Struts Users | | | Mailing List | | | | |-+--- -| | | | To: 'Struts Users Mailing List' [EMAIL PROTECTED] | | cc: | | Subject: RE: Can not run my application since update with Struts1.1 Releas e C andidate 1 -- | |duplicate of [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR - RULES.XML remote dtd problem? | -| If you can get to the DTD with your browser, and you're behind a firewall, you may have to add your proxy information to Tomcat. To do this, create a CATALINA_OPTS environment variable, and add something like the following: -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=85 -Original Message- From: Peterkofsky, Don [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 10:25 AM To: 'Struts Users Mailing List' Subject: RE: Can not run my application since update with Struts1.1 Releas e C andidate 1 -- duplicate of [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR- RULES.XML remote dtd problem? This is the same issue I am reporting in my post titled [NOT FIXED] WHAT IS SOLUTION TO VALIDATOR-RULES.XML remote dtd problem? See post below. -Original Message- From: Heligon Sandra [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:24 AM To: '[EMAIL PROTECTED]' Subject: Can not run my application since update with Struts1.1 Release C andidate 1 Importance: High Since I updated the new version of the Struts framework I have the following errors: - Problem with the Validator Plugin [INFO] ValidatorPlugIn - -Loading validation rules file from '/WEB-INF/validator-rules.xml' [ERROR] ValidatorPlugIn - -Operation timed out: connect java.net.ConnectException: Operation timed out: connectjava.net.ConnectException: Operation timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at (Bootstrap.java:243) I don't understand what is the problem ? - I have a Login page and when I select the Login button I must enter in the LoginAction, but it dosen't work no more . [ERROR] RequestProcessor - -No action instance for path /login could be created java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction java.lang.ClassCastException: xms.clients.web.security.actions.LoginAction at org.apache.struts.action.RequestProcessor.processActionCreate( RequestProcess or.java:324) at org.apache.struts.action.RequestProcessor.process(RequestProce ssor.java:268) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1420) I have the following entry in my struts-config.xml file controller processorClass=org.apache.struts.tiles.TilesRequestProcessor / and my class LoginAction extends a BaseAction class that extends the Struts Action class. I don't understand why it doesn't work, do you have an idea ? Thanks a lot in advance Sandra --- I am experiencing a problem with the parsing/validation of the validator-rules.xml file; the error output from Tomcat is shown below. It appears that the remote DTD document specified in the validator-rules.xml file is not being retrieved. I
Action without FormBean
I set up the following: action path=/myAction type=com.ui.action.MyAction parameter=userAction/ //myJsp.jsp html:form action=/myAction /html:form Thats it nothing in between the form tags and I get exception can not access formbean null. Well I dont want a formbean. Is this not a legal form? I do this all the time from anchor hrefs but this is the first time I've tried it in html:form style. I can't find anywhere in the docs that says that a html:form MUST have a related formbean. Is this just an implied rule? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Using Struts with Cocoon?
Hi, I use struts cocoon together. I have an area in my webapp which has some reports. These reports are in xml and generated either by an EJB or an Action. After the generation of such a XML this is saved in this area which is controlled by cocoon. If a request (directly or as redirect from an Action) to such a report comes, Cocoon transforms the xml file and serializes it to a HTML or PDF document. I use Cocoon only as transformer without the features like forms and so on (this part takes struts) Similary how struts CX works. It works fine and I will use it further. Juraj -Ursprüngliche Nachricht- Von: Clement, Stephen [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 26. Februar 2003 18:52 An: [EMAIL PROTECTED] Betreff: Using Struts with Cocoon? Anyone used struts with Cocoon? Is it feasible? Is it worth it? How best to do this? -To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] database access philosophy
The two typical solutions are disconnected RowSets and copying the ResultSet into a collection of value objects. Pros and cons abound for either method - one pollutes your code with sql packages and one involves copying a lot of data... -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Kirby Vandivort [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 11:59 AM To: [EMAIL PROTECTED] Subject: [OT] database access philosophy Hello, I'm in the process of converting an old webapp over to using struts and, in the process, I decide to clean up the database access. Old Way: I had written a connection pool and instantiated an instance of this that was passed to all methods that needed the db, and they they had the sql code embedded in the methods. New Way that I'm working on: I've set up a DataSource for my jdbc connection, and I'm partitioning off all of the database access code into it's own package. If my business logic needs database info, it calls a method from the database access package to get it. My problem: Many methods from the database access return simple data. However, I currently have it written so that some of the more complex ones return a ResultSet, which I'm not really happy with. This exposes the DB layer to the business logic, but I'm not totally sure what the best way to avoid this is. In addition, this doesn't work :( because the underlying connection gets closed when the database access method exists, and the ResultSet is no longer valid. SO, I am wondering what people do when they need to return all of the data in a ResultSet to their business layer. Do you have to go to the hassle of copying everything to some sort of data structure, or is there a better, cleaner, faster way to handle this? (I'm kind of assuming that the ResultSet will be small enough to fit in memory and there won't be issues with pulling it in in pieces; how would that be handled, though?) Thanks, -- Kirby Vandivort Theoretical and Computational Biophysics Email: [EMAIL PROTECTED] 3051 Beckman Institute http://www.ks.uiuc.edu/~kvandivo/University of Illinois Phone: (217) 244-5711405 N. Mathews Ave Fax : (217) 244-6078Urbana, IL 61801, USA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Action without FormBean
html:form must have a form bean. Form beans are the framework's way of dealing with forms. David From: Chen, Gin [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Action without FormBean Date: Wed, 26 Feb 2003 13:05:29 -0500 I set up the following: action path=/myAction type=com.ui.action.MyAction parameter=userAction/ //myJsp.jsp html:form action=/myAction /html:form Thats it nothing in between the form tags and I get exception can not access formbean null. Well I dont want a formbean. Is this not a legal form? I do this all the time from anchor hrefs but this is the first time I've tried it in html:form style. I can't find anywhere in the docs that says that a html:form MUST have a related formbean. Is this just an implied rule? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] database access philosophy
Check out this article http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html A nice to way to keep the ResultSet in yr db classes and allow your other classes to remain ignorant of db access. -Original Message- From: Kirby Vandivort [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 12:59 To: [EMAIL PROTECTED] Subject: [OT] database access philosophy Hello, I'm in the process of converting an old webapp over to using struts and, in the process, I decide to clean up the database access. Old Way: I had written a connection pool and instantiated an instance of this that was passed to all methods that needed the db, and they they had the sql code embedded in the methods. New Way that I'm working on: I've set up a DataSource for my jdbc connection, and I'm partitioning off all of the database access code into it's own package. If my business logic needs database info, it calls a method from the database access package to get it. My problem: Many methods from the database access return simple data. However, I currently have it written so that some of the more complex ones return a ResultSet, which I'm not really happy with. This exposes the DB layer to the business logic, but I'm not totally sure what the best way to avoid this is. In addition, this doesn't work :( because the underlying connection gets closed when the database access method exists, and the ResultSet is no longer valid. SO, I am wondering what people do when they need to return all of the data in a ResultSet to their business layer. Do you have to go to the hassle of copying everything to some sort of data structure, or is there a better, cleaner, faster way to handle this? (I'm kind of assuming that the ResultSet will be small enough to fit in memory and there won't be issues with pulling it in in pieces; how would that be handled, though?) Thanks, -- Kirby Vandivort Theoretical and Computational Biophysics Email: [EMAIL PROTECTED] 3051 Beckman Institute http://www.ks.uiuc.edu/~kvandivo/University of Illinois Phone: (217) 244-5711405 N. Mathews Ave Fax : (217) 244-6078Urbana, IL 61801, USA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action without FormBean
Yes, you *must* have a name attribute if you are going to use an html:form. Here's a snippet from the docs for html:form If the name and type attributes are not specified, then the form bean will be located, and created if necessary, based on the form bean specification for the associated ActionMapping By the way, this is the default operation since name and type are deprecated. Sri -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 26, 2003 1:05 PM To: 'Struts Users Mailing List' Subject: Action without FormBean I set up the following: action path=/myAction type=com.ui.action.MyAction parameter=userAction/ //myJsp.jsp html:form action=/myAction /html:form Thats it nothing in between the form tags and I get exception can not access formbean null. Well I dont want a formbean. Is this not a legal form? I do this all the time from anchor hrefs but this is the first time I've tried it in html:form style. I can't find anywhere in the docs that says that a html:form MUST have a related formbean. Is this just an implied rule? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] database access philosophy
I usually copy each row into a domain layer object like Person or Account. That's probably too slow for a batch type application but it works fine for web applications. Alternatively you can use a RowSet which is disconnected from the database. David From: Kirby Vandivort [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [OT] database access philosophy Date: Wed, 26 Feb 2003 11:59:23 -0600 Hello, I'm in the process of converting an old webapp over to using struts and, in the process, I decide to clean up the database access. Old Way: I had written a connection pool and instantiated an instance of this that was passed to all methods that needed the db, and they they had the sql code embedded in the methods. New Way that I'm working on: I've set up a DataSource for my jdbc connection, and I'm partitioning off all of the database access code into it's own package. If my business logic needs database info, it calls a method from the database access package to get it. My problem: Many methods from the database access return simple data. However, I currently have it written so that some of the more complex ones return a ResultSet, which I'm not really happy with. This exposes the DB layer to the business logic, but I'm not totally sure what the best way to avoid this is. In addition, this doesn't work :( because the underlying connection gets closed when the database access method exists, and the ResultSet is no longer valid. SO, I am wondering what people do when they need to return all of the data in a ResultSet to their business layer. Do you have to go to the hassle of copying everything to some sort of data structure, or is there a better, cleaner, faster way to handle this? (I'm kind of assuming that the ResultSet will be small enough to fit in memory and there won't be issues with pulling it in in pieces; how would that be handled, though?) Thanks, -- Kirby Vandivort Theoretical and Computational Biophysics Email: [EMAIL PROTECTED] 3051 Beckman Institute http://www.ks.uiuc.edu/~kvandivo/University of Illinois Phone: (217) 244-5711405 N. Mathews Ave Fax : (217) 244-6078Urbana, IL 61801, USA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Desperate search for struts tree view-component
Hello Struts Gurus, I'm searching for some tree-view component for struts. Ideally it should provide the same type of tree view as Explorer tool on Win32 does. I would greatly appreciate any tip regarding this. -- Andrei Svirida, Projekte Entwicklung MIDRAY GmbH - a debitel company Phone: +49.221.8884 435 Fax:+49.221.8884 455 http://www.midray.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]