RE: What is the best way to display pictures from a database usin g Struts
Hi, from an Action's perform() you can do two things: a) do something (usefull) and return an ActionForward-object b) do somthing (usefull), write the desired output (html, pdf-stream, image-bytes,...) to the response-objects output (just like standard servlet-programming!) and return a NULL-object (return null) in this case you want to use b). Important is returning null to indicate that the Action did complete the processing. Else ActionServlet will pass on to the returned ActionForward-object... hope this helps Alexander Jesse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 5:20 PM To: Struts Users Mailing List Subject: Re: What is the best way to display pictures from a database using Struts Hi When you say that I should use an action and write the bytes in the perform method I am not quite sure I follow. I have only returned an ActionForward object from the perform() method in an Action class. So how do I make it return a byte string representing the image?, should I write another perform() method? Cheers Antony in the JSP you write an image tag like - img src=html:rewrite page=/servlet/ImageServlet paramId=id paramName=imageBean paramProperty=id - this hopefully renders to img src=/servlet/ImageServlet?id=1234432 This will cause an extra http request to the mapped servlet. In the servlet you should do something like: - response.setContentType(image/gif); response.setContentLength(imageBean.getLength()); response.setHeader(Content-disposition,attachement; filename=+imageBean.getFilename()); ServletOutputStream stream = response.getOutputStream(); //copy dbstream to servletOutputStream stream.write(imageBytes); - Instead of the servlet you could probably use an action img src=/ImageAction.do?id=1234432 and write the bytes in the perform method, but I did not test this one. Hi I need to retrieve pictures from a database and use struts to display them. I am not sure about the best way to do this. Can someone please tell me how they do it and what they beleive the best approach is. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tiles vs. Frames
Hi, I'd say, that generally using tiles (or making presentation using single frame and tables) leads to less complex application. There might however be cases, when using frames could solve a problem or two. We had a system where we used hidden frame containing lot of client side information and other hidden frame where we reloaded javascripts, which were making changes in main frame, where something like 1000 layers where shown and they were clickable. I can not imagine how that application could be rewritten without using frames (reloading main frame on every click would lead to major network load problems). However I must say that to support and extend that application, it was nightmare. So, my opinion is that if you can solve problem without frames - do it. Besides it might help you, if one day you need to port your application do mobile network enabled devices... Regards, Gundars At 15:58 2002.01.08.s +, you wrote: Hi all, I've (functionally) prototyped an application using Tiles with no frames. Our 'front end' guy has presented me with the presentation html and javascript, and it uses frames. The application is not portal-like, just a fairly standard app with a header, footer and side menu bar. I've had a search for any information about what would be preferable - to use tiles or frames, or some combination of both (I'm struggling a bit with this option), but there's not much out there. Has anyone had to make this decision? What are the pros and cons of frames vs. tiles? Is it feasible and/or desirable to use them in combination? Any input much appreciated. Cheers, Sean. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Gundars Kulups Project manager A/S Dati Phone: +371-7067713 Mobile: +371-9466055 Fax: +371-7619573 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: setContentType() for xml output
On Thu, 31 May 2001, Wu, Ying (LNG-CIS) wrote: I need to send a string which represents a xml file to browser, I need to call response.setContentType(text/xml). But it is at ActionServlet level and is default to text/html. 1. Any idea? Although the controller servlet sets the default output type, this gets replaced if you forward to a JSP page (or whatever) at the end of your action. 2. I can do the output at MyAction.perform() level, but how to handle the return type of this method? If you are generating the output in your Action itself, you should return null from your perform() method. This tells the controller servlet that the response has already been created, so no forwarding is required. Does this this mean if I want the perform() method to output a jpg file then I should open an output stream inside the action, ie ServletOutputStream stream = response.getOutputStream() and just write the jpg file to this stream, then at the end of the perform() method return null? Cheers Antony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best way to store configuration data
Hi, how does this sound to you: - write a dedicated servlet that reads in the configuration-info either from - a dedicated configuration-file (your private format... xml or properties) - init-param's specified for this servlet - context-param's - load this servlet at startup - use the doGet() to provide a listing of the configuration-parameters (for debugging) - create a java.util.Property object and make it accessible through static methods to all classes in need for it in the same JVM That's how I would do it... Alexander Jesse -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 3:46 PM To: [EMAIL PROTECTED] Subject: Best way to store configuration data Hi What is the best way to set a number of configuration variables to be used in Struts. Ie , I have variables like WORKING_DIR=/var/webapp/tmp PIC_DIR=/var/webapp/pictures I need to be able to set them in one of the configuration files in the WEB-INF dir so I can access the values from my servlets. Should I use the context-param tag in the web.xml file for tomcat? or is there a better way? Cheers Antony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What is the best way to display pictures from a database usin g Struts
It surely does help, I shall put it to work now! Cheers Tony Jesse Alexander (KABS 11) wrote: Hi, from an Action's perform() you can do two things: a) do something (usefull) and return an ActionForward-object b) do somthing (usefull), write the desired output (html, pdf-stream, image-bytes,...) to the response-objects output (just like standard servlet-programming!) and return a NULL-object (return null) in this case you want to use b). Important is returning null to indicate that the Action did complete the processing. Else ActionServlet will pass on to the returned ActionForward-object... hope this helps Alexander Jesse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Simple HTML form tag issue related to NAME attribute
Hi, To my understanding, in the context of html Taglib, the Name attribute for the form elements such as html:text takes a different meaning than its original meaning in the standard html form elements. In this case, it refers to the name of a javabean whose property will be used. Also, there's a very important characteristic of the property attribute for html:text that is it will be used for the name attribute in the underling html element. So by specifying the property attribute in the html taglib, you already specify the name attribute for the html element. To solve your problem, you have to make appropriate changes to ensure that the value (name) used for the property attribute has to be the same with your JavaScript used element name. Hope this helps, Shengmeng Liu - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 9:02 PM Subject: Re: Simple HTML form tag issue related to NAME attribute Freek, Thanks for responding. The problem is that I am trying to use the NAME attribute in my Javascript code and if I put the NAME attribute in the html:text tag, it means something special to Struts. I want Struts to ignore the NAME attribute. Example: html:text property=myProperty name=myTextField/ I want Struts to ignore the name so that I can refer to the text field by name in Javascript. Example. javascript validate(myTextField.value); /javascript Thanks, Dennis
Re: custom tags: IBM 1.3 JDK vs SUN 1.3 JDK -- SOLVED
Hi, Does it have anything to deal with the HotSpot capability of Sun 1.3 JDK? Just my two cents, Shengmeng Liu - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 12:53 AM Subject: RE: custom tags: IBM 1.3 JDK vs SUN 1.3 JDK -- SOLVED In case anybody else runs into this, it's evidently a bug in the SUN 1.3 JDK. http://groups.google.com/groups?th=dd4229956bceb2f4rnum=1 Lee -Original Message- From: Torrence, Lee Sent: Sunday, January 06, 2002 10:38 AM To: 'Struts Users Mailing List' Subject: custom tags: IBM 1.3 JDK vs SUN 1.3 JDK I have a struts jsp page with a lot of custom tags; it compiles to around 40k. Under Win2k, when I set JAVA_HOME to run Tomcat 4.1 with the IBM 1.3 JDK, the page executes almost instantaneously, but when I set JAVA_HOME to the Sun JDK 1.3.1, it takes about 5 seconds to load. Does the IBM jdk handle the compilation differently (the compiled size is about the same either way), or is there a switch that's on by default with the IBM JDK that improves performance over the Sun JDK? Lee Torrence
Re: Best way to store configuration data
Hi, I think the best example of implementing what you mentioned is how Struts's ActionServlet refers to its config file struts-config.xml in the web.xml, by using following code: init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param Hope this helps, Shengmeng Liu - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 10:45 PM Subject: Best way to store configuration data Hi What is the best way to set a number of configuration variables to be used in Struts. Ie , I have variables like WORKING_DIR=/var/webapp/tmp PIC_DIR=/var/webapp/pictures I need to be able to set them in one of the configuration files in the WEB-INF dir so I can access the values from my servlets. Should I use the context-param tag in the web.xml file for tomcat? or is there a better way? Cheers Antony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: scope for form beans
Hi, Essentially, the form bean is the model for the web tier. It's state can be associated with a certain request, in this case, it will be stored as a request-scope attribute. If it's state is associated with a certain user/session, then it will be stored as a session-scope attribute. Categorizing state into different scopes, namely request, session and context will best reflect its nature and allow the servlet container to manage(instantiate/use/destroy) accordingly. Form bean is just one of this kind of state. Hope this helps, Shengmeng Liu - Original Message - From: Chen, Yong [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 11:43 PM Subject: RE: scope for form beans what if one of your forms is never used in a session? and with session level bean, how would you know the form bean doesn't contain old data? form is request based not session based. you can certainly store some info. from the form in the session. yc -Original Message- From: Kuntz Peter, NY [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 7:29 AM To: [EMAIL PROTECTED] Subject: scope for form beans Hi, what are the motivations for having a request or session scoped form bean. As far as I could see in the struts source code a request scoped form bean is instantiated newly for every request. What are the reasons for that. Why shouldn't a form bean always exist during the time the session exists? peter DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What is the best way to display pictures from a database usin g Struts
There's one important thing to do, too : don't forget to set the mime-type, else it will be text/plain or text/html, and your browser will display your byte stream as text - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 6:40 PM Subject: Re: What is the best way to display pictures from a database usin g Struts It surely does help, I shall put it to work now! Cheers Tony Jesse Alexander (KABS 11) wrote: Hi, from an Action's perform() you can do two things: a) do something (usefull) and return an ActionForward-object b) do somthing (usefull), write the desired output (html, pdf-stream, image-bytes,...) to the response-objects output (just like standard servlet-programming!) and return a NULL-object (return null) in this case you want to use b). Important is returning null to indicate that the Action did complete the processing. Else ActionServlet will pass on to the returned ActionForward-object... hope this helps Alexander Jesse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: response has already been committed
Hi, forward() is supposed to be used only when nothing so far has been written to the buffers. That is why the ServletContext has a include()- method... I think there is a reset() somewhere supposed to allow a forward() after having written something, but it will fail also if some buffer has been flushed. regards Alexander Jesse -Original Message- From: Boudreau, Mike [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 9:25 PM To: '[EMAIL PROTECTED]' Subject: response has already been committed I am using the Struts Template Tag Library with Tomcat 3.3 and I am receiving the Cannot forward because the response has already been committed javax.servlet.ServletException. I know that the cause is that some page is being flushed or written and then I am trying do a jsp:forward page=xxx.jsp/ I don't know why the pages are being flushed or how to fix the problem. I tried upping the page buffer, but that did not solve the problem. Does anyone know what the problem and resolution is? These are the JSP pages with the problem: mainTemplate.jsp %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ page errorPage=error.jsp % %@ page buffer=20kb % html:html locale=true head titletemplate:get name=title//title link rel=stylesheet href=css/templates.css charset=ISO-8859-1 type=text/css html:base/ /head body background=graphics/background.gif table tr valign=top tdtemplate:get name=sidebar//td td table trtdtemplate:get name=header//td/tr trtdtemplate:get name=content//td/tr trtdtemplate:get name=footer//td/tr /table /td /tr /table /body /html:html home.jsp template:insert template='/mainTemplate.jsp' template:put name='title' direct='true' bean:message key=home.title/ /template:put template:put name='header' content='/header.jsp' / template:put name='sidebar' content='/sidebar.jsp' / template:put name='content' content='/homeContent.jsp'/ template:put name='footer' content='/footer.html' / /template:insert error.jsp %@ page buffer=12kb % %@ page isErrorPage=true% %@ page import = org.apache.log4j.Log % % Log logger = new Log(JSP Error Handler); if (exception != null) { logger.error(JSP Error,exception); } else { logger.error(JSP Container Error, the exception object should always be filled); } % jsp:forward page=unavailable.jsp/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What is the best way to display pictures from a database usin g Struts
A nice design for an action such as this is to create a BinaryRenderAction which receives as request parameters the db reference of the image so it or soime business delegate/DAO can retrieve it, and a reference to the mime-type so that it can set the header in the response. This way the action doesn't care what type of binary data it is rendering, all it does is get some binary data from the db using the reference suppplied and, then set the header in the response to the one that recieved as a parameter (or to the one that is stored on the row if you db schema is set that way) All it needs to do now is write the bytes to the ServletouputStream and return null in the perform() method and Bobs you Uncle a re-usable BinaryrenderAction that can be used any where on the site... HTH Jin - Original Message - From: Olivier Dinocourt [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 9:15 AM Subject: Re: What is the best way to display pictures from a database usin g Struts There's one important thing to do, too : don't forget to set the mime-type, else it will be text/plain or text/html, and your browser will display your byte stream as text - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 6:40 PM Subject: Re: What is the best way to display pictures from a database usin g Struts It surely does help, I shall put it to work now! Cheers Tony Jesse Alexander (KABS 11) wrote: Hi, from an Action's perform() you can do two things: a) do something (usefull) and return an ActionForward-object b) do somthing (usefull), write the desired output (html, pdf-stream, image-bytes,...) to the response-objects output (just like standard servlet-programming!) and return a NULL-object (return null) in this case you want to use b). Important is returning null to indicate that the Action did complete the processing. Else ActionServlet will pass on to the returned ActionForward-object... hope this helps Alexander Jesse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Struts-Validator ActionForm error
Thanks Michelle Unfortunately this doesn't seem to be the problem (although I'm told the classpath issue you mention can be a source of problems for new struts users). Struts framework builds and runs fine. I have the struts-jar on my webapps's classpath as stated below. It's not on my container classpath, otherwise I'd be getting other problems unrelated to the wintecinc validator problem. I am using the latest October release of Validator against the 1.0 Struts release. I'll try the July 2 build instead. It says here http://home.earthlink.net/~dwinterfeldt/ that this could be the correct version. Thanks Patrick -Original Message- From: Michelle Popovits [SMTP:[EMAIL PROTECTED]] Sent: 08 January 2002 20:47 To: 'Struts Users Mailing List' Subject: RE: Struts-Validator ActionForm error remove struts-jar from classpath and add to web-inf/lib directory. Check to make sure the jar is no where in the web/app server class path. -Original Message- From: Patrick Liardet [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 3:32 PM To: Struts Users Mailing List Subject: Struts-Validator ActionForm error Hi All I'm using the com.wintecinc.struts validator library. When I subclass my formbean from an ActionForm, it runs Ok, but doesn't validate. When I subclass my formbean from a com.wintecinc.struts.action.ValidatorForm as suggested, I receive the following runtime error: java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm This seems odd. I certainly have the struts.jar in my webapp's classpath as standard struts functionality is available. Any ideas ? Patrick == = The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. == = -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] === The information in this E-mail (which includes any files transmitted with it), is confidential and may also be legally privileged. It is intended for the addressee only. Access to this E-mail by anyone else is unauthorised. If you have received it in error, please destroy any copies and delete it from your system notifying the sender immediately. Any use, dissemination, forwarding, printing or copying of this E-mail is prohibited. E-mail communications are not secure and therefore Rolfe Nolan does not accept legal responsibility for the contents of this message. Any views or opinions presented are solely those of the author and do not necessarily represent those of Rolfe Nolan. === -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
PROBLEM USING THE LATEST NIGHTLY BUILD
Hi all! Just downloaded the latest nbuild to get the LookupDispatchAction but it seem's that the commons lib is not complete cause I got The following when starting struts java.lang.NoClassDefFoundError: org/apache/commons/logging/LogSource at org.apache.commons.digester.Digester.init(Digester.java:309) at org.apache.struts.action.ActionServlet.initDigester(ActionServlet.java:1576) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1755) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:496) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartup Interceptor.java:130) at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Exception in thread main
Re: What is the best way to display pictures from a database usin g Struts
+1 How about a nice little package that also documented the standard mime types as static finals, grabbed the mimeType and content from request attributes, as as Jin, says Bob's your Uncle. Anyone else interested in contributing this to the Actions package before I do it myself :) -Ted. Jin Bal wrote: A nice design for an action such as this is to create a BinaryRenderAction which receives as request parameters the db reference of the image so it or soime business delegate/DAO can retrieve it, and a reference to the mime-type so that it can set the header in the response. This way the action doesn't care what type of binary data it is rendering, all it does is get some binary data from the db using the reference suppplied and, then set the header in the response to the one that recieved as a parameter (or to the one that is stored on the row if you db schema is set that way) All it needs to do now is write the bytes to the ServletouputStream and return null in the perform() method and Bobs you Uncle a re-usable BinaryrenderAction that can be used any where on the site... HTH Jin - Original Message - From: Olivier Dinocourt [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 9:15 AM Subject: Re: What is the best way to display pictures from a database usin g Struts There's one important thing to do, too : don't forget to set the mime-type, else it will be text/plain or text/html, and your browser will display your byte stream as text - Original Message - From: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 6:40 PM Subject: Re: What is the best way to display pictures from a database usin g Struts It surely does help, I shall put it to work now! Cheers Tony Jesse Alexander (KABS 11) wrote: Hi, from an Action's perform() you can do two things: a) do something (usefull) and return an ActionForward-object b) do somthing (usefull), write the desired output (html, pdf-stream, image-bytes,...) to the response-objects output (just like standard servlet-programming!) and return a NULL-object (return null) in this case you want to use b). Important is returning null to indicate that the Action did complete the processing. Else ActionServlet will pass on to the returned ActionForward-object... hope this helps Alexander Jesse -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: What is the best way to display pictures from a database using Struts
See the source code for org.apache.struts.actions.ReloadAction It writes OK when it's done. Makes for a good hello world example. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ [EMAIL PROTECTED] wrote: Hi When you say that I should use an action and write the bytes in the perform method I am not quite sure I follow. I have only returned an ActionForward object from the perform() method in an Action class. So how do I make it return a byte string representing the image?, should I write another perform() method? Cheers Antony in the JSP you write an image tag like - img src=html:rewrite page=/servlet/ImageServlet paramId=id paramName=imageBean paramProperty=id - this hopefully renders to img src=/servlet/ImageServlet?id=1234432 This will cause an extra http request to the mapped servlet. In the servlet you should do something like: - response.setContentType(image/gif); response.setContentLength(imageBean.getLength()); response.setHeader(Content-disposition,attachement; filename=+imageBean.getFilename()); ServletOutputStream stream = response.getOutputStream(); //copy dbstream to servletOutputStream stream.write(imageBytes); - Instead of the servlet you could probably use an action img src=/ImageAction.do?id=1234432 and write the bytes in the perform method, but I did not test this one. Hi I need to retrieve pictures from a database and use struts to display them. I am not sure about the best way to do this. Can someone please tell me how they do it and what they beleive the best approach is. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Best way to store configuration data
If these need to be used by an action, you may also be able to store it in the ActionMapping parameter, and then retrieve it in the action class as String workingDir = mapping.getParameter(); Of course, this works best if each setting is only used by one action. [EMAIL PROTECTED] wrote: Hi What is the best way to set a number of configuration variables to be used in Struts. Ie , I have variables like WORKING_DIR=/var/webapp/tmp PIC_DIR=/var/webapp/pictures I need to be able to set them in one of the configuration files in the WEB-INF dir so I can access the values from my servlets. Should I use the context-param tag in the web.xml file for tomcat? or is there a better way? Cheers Antony -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Commons Logging Lib??
Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc
Re: Commons Logging Lib??
try http://jakarta.apache.org/commons/index.html :) Struts Users Mailing List [EMAIL PROTECTED] wrote: Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
LookupDispatcherAction
Thanks! have allready found it..but now I found out a null pointer exception in LookupDispatcherAction... it seem's like that the LookupDispatcherAction want's to get a Ressource (MessageResources resources = servlet.getResources();) wich never was initialized in the ActionServlet... java.lang.NullPointerException at org.apache.struts.actions.LookupDispatchAction.perform(LookupDispatchAction. java:216) :-( -Ursprüngliche Nachricht- Von: Tom Goemaes [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 09. Jänner 2002 02:27 An: Struts Users Mailing List Betreff: Re: Commons Logging Lib?? try http://jakarta.apache.org/commons/index.html :) Struts Users Mailing List [EMAIL PROTECTED] wrote: Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LookupDispatcherAction
Could you please provide the code that is causing this problem along with the ApplicationResources.properties file that contains the mappings? Have you checked the Javadoc for LookupDispatchAction to ensure you've got all the pieces configured properly? Erik - Original Message - From: Michael Clay [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 7:32 AM Subject: LookupDispatcherAction Thanks! have allready found it..but now I found out a null pointer exception in LookupDispatcherAction... it seem's like that the LookupDispatcherAction want's to get a Ressource (MessageResources resources = servlet.getResources();) wich never was initialized in the ActionServlet... java.lang.NullPointerException at org.apache.struts.actions.LookupDispatchAction.perform(LookupDispatchAction. java:216) :-( -Ursprüngliche Nachricht- Von: Tom Goemaes [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 09. Jänner 2002 02:27 An: Struts Users Mailing List Betreff: Re: Commons Logging Lib?? try http://jakarta.apache.org/commons/index.html :) Struts Users Mailing List [EMAIL PROTECTED] wrote: Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Commons Logging Lib??
For now, the package is at http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/ Michael Clay wrote: Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: LookupDispatcherAction
Hi! 1. I have the latest nightly build 20020109 2. i think the LookupDispatcherAction shoud take the ressource from the servletcontext (MESSAGES_KEY) instead of calling servlet.getResources() because this returns an MessageResources (named application in ActionServlet) wich was never be constructed ..see //initApplication(); // Replaced by new-style initialization 3. my properties file *** Method's for LookupDispatcherAction method.load=Open method.open=Open 4. my code is same as your sample from http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18378.html Michael -Ursprüngliche Nachricht- Von: Erik Hatcher [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 09. Jänner 2002 13:40 An: Struts Users Mailing List Betreff: Re: LookupDispatcherAction Could you please provide the code that is causing this problem along with the ApplicationResources.properties file that contains the mappings? Have you checked the Javadoc for LookupDispatchAction to ensure you've got all the pieces configured properly? Erik - Original Message - From: Michael Clay [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 7:32 AM Subject: LookupDispatcherAction Thanks! have allready found it..but now I found out a null pointer exception in LookupDispatcherAction... it seem's like that the LookupDispatcherAction want's to get a Ressource (MessageResources resources = servlet.getResources();) wich never was initialized in the ActionServlet... java.lang.NullPointerException at org.apache.struts.actions.LookupDispatchAction.perform(LookupDispatchAction. java:216) :-( -Ursprüngliche Nachricht- Von: Tom Goemaes [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 09. Jänner 2002 02:27 An: Struts Users Mailing List Betreff: Re: Commons Logging Lib?? try http://jakarta.apache.org/commons/index.html :) Struts Users Mailing List [EMAIL PROTECTED] wrote: Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multibox in iterate
Hi I iterate through a collection without any problem, but now I want to add a checkbox for each row. I used the following in my jsp page: logic:iterate id=role name=myBean property=allRoles tr td html:multibox property=testChecked bean:write name=role property=name/ /html:multibox /td td bean:write name=role property=name/ /tdtd bean:write name=role / /td /tr /logic:iterate If I remove the multibox tag I iterate successfully, but with the iterate tag I'm getting: javax.servlet.ServletException: No getter method available for property testChecked for bean under name org.apache.struts.taglib.html.BEAN Thank You Danie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: LookupDispatcherAction
CC'ing over to dev as it seems that something has been broken. I don't have the bandwidth right now to track down what the issue is, but I'm successfully using LookupDispatchAction with no problems with an earlier nightly build. Also, its LookupDispatchAction, not LookupDispatcherAction - just to be clear and avoid confusion! :) Ted? Did something change that could have affected this? Erik - Original Message - From: Michael Clay [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 7:48 AM Subject: AW: LookupDispatcherAction Hi! 1. I have the latest nightly build 20020109 2. i think the LookupDispatcherAction shoud take the ressource from the servletcontext (MESSAGES_KEY) instead of calling servlet.getResources() because this returns an MessageResources (named application in ActionServlet) wich was never be constructed ..see //initApplication(); // Replaced by new-style initialization 3. my properties file *** Method's for LookupDispatcherAction method.load=Open method.open=Open 4. my code is same as your sample from http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18378.html Michael -Ursprüngliche Nachricht- Von: Erik Hatcher [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 09. Jänner 2002 13:40 An: Struts Users Mailing List Betreff: Re: LookupDispatcherAction Could you please provide the code that is causing this problem along with the ApplicationResources.properties file that contains the mappings? Have you checked the Javadoc for LookupDispatchAction to ensure you've got all the pieces configured properly? Erik - Original Message - From: Michael Clay [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 7:32 AM Subject: LookupDispatcherAction Thanks! have allready found it..but now I found out a null pointer exception in LookupDispatcherAction... it seem's like that the LookupDispatcherAction want's to get a Ressource (MessageResources resources = servlet.getResources();) wich never was initialized in the ActionServlet... java.lang.NullPointerException at org.apache.struts.actions.LookupDispatchAction.perform(LookupDispatchAction. java:216) :-( -Ursprüngliche Nachricht- Von: Tom Goemaes [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 09. Jänner 2002 02:27 An: Struts Users Mailing List Betreff: Re: Commons Logging Lib?? try http://jakarta.apache.org/commons/index.html :) Struts Users Mailing List [EMAIL PROTECTED] wrote: Anybody knows where I can find/download the lib where this class-org.apache.commons.logging.LogSource belongs in ?? Many thanks mc -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question on Struts debugging - one more time
I've not had better luck. I think it's the way it is. Here's how I do it - I'd like to know how others do. I use hundreds of log messages so I can trace the flow of my program. I make the method calls for logging easy to type - dbmd(a debug msg) or dbmw(warning message). I code traces into action classes from the start. to show the perform method starting ending so a dud struts config is found because the Action i expect to run doesn't log it's start. I check for null pointers all over the place log a warning or throw an exception for them. I constantly restart the server (tomcat 3.2.2) to make weird problems go away. Auto class reloading doesn't work properly so - I restart after every compile. I use these 3 methods in jsp's Action classes a lot, to check the contents of the session request - this finds things left in the session by mistake. public static void printSessionAttributeNames(String caller, HttpSession session) { public static void printRequestAttributeNames(String caller, HttpServletRequest request) { public static void printRequestParameters(String caller, HttpServletRequest request) { I've attached the code for them, someone may find them useful - the codes a bit dodgy old but it's easy to understand. I have my own logging code (from old servlet programming) but I want to use log4j (one day!) - You really need to be able to switch trace messages on/off without re-compiling classes or restarting the server. Only when it's quite reliable do I remove the messages. Often I just comment the mesages out in expectation it will go wrong in future. All in all a bit primitive compared to some (non-web) environments I've worked in. we're in the early days - things will get easier. We'll get informative/instructive messages that tell us what to do to put it right we'll be able to step thru our action classes in the debugger. Happy bug hunting! - Keith --- Kilmer, Erich [EMAIL PROTECTED] wrote: Thought I would give this one more try. Has anyone had better luck with debugging problems caused by say bad action mappings, ie: mis-named action classes, missing action forms etc. Currently when these problems are encountered I see no useful error messages in any of my logs (even when debug is set to 2). Is this just the way that it is or have I failed to do something? Thanks, Erich Sent previously: I have been using Struts for some time now. My app's Struts config file has almost 50 action mappings so I have been down this road a time or two. Many times when adding a new mapping I run into errors though. For example the latest on was where the mapping listed an action class called something like UserCreateAction (package removed). But when I wrote the class itself I named it UserAddAction. Now when I built the app and moved to the Orion apps server and ran it when I get to the JSP that references this action mapping I get a null exception. Typically I do not catch exceptions in a JSP and the uncaught exceptions go to my error JSP where it states that the exception is null. So I go into my web.xml file and change the debug param to 2. I also changed detail to 2. (By the way what does detail = 2 do?) Then I re-ran everything after rebuilding and re-deploying. The app still does the same thing. OK, fine now I go to check the logs. I check the apps server log where system outs go. I see no Struts messages except for the flurry of them at startup. I look at the log4j error logs and see nothing. I also looked at the apps servers application log where I see some Struts messages but see nothing about this error. So my Struts debugging question is this. Are errors encountered when converting the Struts tags in my JSP written anywhere? Is there more debug settings I must make? Is there another log that I can check? I know this is a fairly simple example and I am getting better at debugging them but it would be nice if there was someway to make this so I check the log and it says that Action class UserCreateAction does not exist. Let me know, Erich Kilmer Bell+Howell -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public static void printSessionAttributeNames(String caller, HttpSession session) { Enumeration ee3 = session.getAttributeNames(); dbmd(printSessionAttributeNames: for caller: + caller + -start...); while (ee3.hasMoreElements()) { String name = (String)ee3.nextElement(); Object object =
BaseTag
Hi. We have several Apache servers in our network. Just one of them sits in front of all the others, is listening to port 80 and is acting as a proxy server for all other web servers, which are running on different machines on different ports. The Apache proxy server is using named virtual hosts to forward requests to the correct internal web server. In a struts application the base tag is being used, which causes a problem: BaseTag.java always uses request.getServerName and request.getServerPort. So the corresponding HTML page contains base href=http://invisible-internal-server.foo.bar:12345/test/test.jsp; This name is not known on the internet and port 12345 will never pass our firewall. Instead, this line should look like base href=http://external-name.domain.com:80/test/test.jsp; The Apache proxy server will automatically map external-name.domain.com to our internal server invisible-internal-server.foo.bar:12345. IMHO there should be a possibility to override getServerName and getServerPort with some user-defined strings. Exactly as it is possible in Tomcat 4.0 (see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html, item #4). Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: BaseTag
Hi, I don't understand something. What kind of internal web server do you have that runs struts? Is it not Tomcat? If it is Tomcat you can set in the server.xml config file the proxyName and proxyPort attributes on the Connector tag. Best wishes, Andras. On Wed, 2002-01-09 at 15:54, Martin Renner wrote: Hi. We have several Apache servers in our network. Just one of them sits in front of all the others, is listening to port 80 and is acting as a proxy server for all other web servers, which are running on different machines on different ports. The Apache proxy server is using named virtual hosts to forward requests to the correct internal web server. In a struts application the base tag is being used, which causes a problem: BaseTag.java always uses request.getServerName and request.getServerPort. So the corresponding HTML page contains base href=http://invisible-internal-server.foo.bar:12345/test/test.jsp; This name is not known on the internet and port 12345 will never pass our firewall. Instead, this line should look like base href=http://external-name.domain.com:80/test/test.jsp; The Apache proxy server will automatically map external-name.domain.com to our internal server invisible-internal-server.foo.bar:12345. IMHO there should be a possibility to override getServerName and getServerPort with some user-defined strings. Exactly as it is possible in Tomcat 4.0 (see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/proxy-howto.html, item #4). Martin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
New to Struts and stuck already...
I am trying to build a simple Struts app to play around with it and i'm stuck on the following error message: javax.servlet.ServletException: No bean found under attribute key registrationForm I have the following in my struts-config.xml file: struts-config ... form-beans form-bean name=registrationForm type=com.codemonkey.struts.RegistrationForm/ /form-beans ... struts-config Any suggestions anyone? Kevin J Turner
How use bean:message with custom arguments
Hi all, I'm currently trying to display an i18n customised welcome message like 'Hello name.' where name value is stored in a bean session context. So far I couldn't find the proper syntax using bean:message key=message.hello arg0=' ' / I'd like to know how to attach the arg {0} of the resourse message to this bean value. I've just joint the mailing list so I apologie if the answer has already been done. Thanks for your help. Thierry. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New to Struts and stuck already...
welcome to struts, I'd need more info - more of the error stack trace. Also maybe the struts-config entry for the action class involved. If this is from your jsp maybe it refers to the form bean but you've started the jsp directly (localhost:8080/myapp/myJsp.jsp) rather than through the action mapping (localhost:8080/myapp/myJsp.do) Keith. PS struts is a wee bit painful at 1st but you'll soon get the hang of it --- Kevin J. Turner [EMAIL PROTECTED] wrote: I am trying to build a simple Struts app to play around with it and i'm stuck on the following error message: javax.servlet.ServletException: No bean found under attribute key registrationForm I have the following in my struts-config.xml file: struts-config ... form-beans form-bean name=registrationForm type=com.codemonkey.struts.RegistrationForm/ /form-beans ... struts-config Any suggestions anyone? Kevin J Turner __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Simple HTML form tag issue related to NAME attribute
Freek and Shengmeng, Thanks for the clarification. I understand now what I have to do! Dennis Freek Segers freek.segers@coTo: Struts Users Mailing List [EMAIL PROTECTED] ntingo.nl cc: Subject: Re: Simple HTML form tag issue related to NAME attribute 01/09/2002 02:02 AM Please respond to Struts Users Mailing List Hi Dennis, What I tried to point out was that if you use html:text property=myProperty/ the tag library will generate input type=text name=myProperty value= So you can use 'myProperty' as the name of the field, you just specify is with the property attribbute in Struts. Freek. on 08-01-2002 14:02 you wrote: Thanks for responding. The problem is that I am trying to use the NAME attribute in my Javascript code and if I put the NAME attribute in the html:text tag, it means something special to Struts. I want Struts to ignore the NAME attribute. Example: html:text property=myProperty name=myTextField/ I want Struts to ignore the name so that I can refer to the text field by name in Javascript. Example. javascript validate(myTextField.value); /javascript -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Link Edit/Delete
Hi, I am developing a page which shows multiple records. I am using multibox control to enable the user to select multiple records he/she wants to delete and providing links to each record , so user can click the link and go to the edit page for that record. I would like to call JavaScript method under the href property and pass id for the record as an argument. The JavaScript method will call the editable page for the record by calling the window.showModalDialogBox method. I have a problem passing the Id for the record the to JavaScript method (upItem). I appreciate your help. following is the code I have written. table logic:iterate id=objActivities name=groupActivityForm property=activities indexId=index tr style=background:#FF; td align=center valign=top html:multibox name=groupActivityForm property=activityIds bean:write name=objActivities property=actId/ /html:multibox /td td align=left valign=top class=tablelist style=margin-left:0.2in; bean:write name=objActivities property=actId/ /td td align=left valign=top class=tablelist style=margin-left:0.2in; html:link href=javascript:upItem(bean:write name=\'objActivities\' property=\'actId\'/) bean:write name=objActivities property=actName/ /html:link /td /tr /logic:iterate /table Thanks Sarveswara Rao -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: upload fails
make sure your form tag sets the encoding type to multi-part html:form action=/saveReferences.do enctype=multipart/form-data Hope this helps. Doug -Original Message- From: SCHACHTER,MICHAEL (HP-NewJersey,ex2) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:58 AM To: 'Struts Users Mailing List' Subject: RE: upload fails Ken, Do you have a corresponding ActionForm containing these methods: public FormFile getFormFile(); public void setFormFile(FormFile file); -Original Message- From: Domen, Ken [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 12:20 PM To: '[EMAIL PROTECTED]' Subject: upload fails I'm trying to do a simple file upload and my jsp has this snippet: html:file property=formFile/br html:submit / When I submit, I get the error: IllegalArgumentException: Argument Type Mismatch Am I missing something? thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mutating bean properties set by bean:define
I think bean:define has a gap in its functionality which needs to be filled. PROBLEM/GAP: With bean:define I can define a String on a context as below which is not possible with jsp:useBean. jsp:useBean requires the String to be part of another JavaBean (both name and property are required). bean:define id=foo value=bar/ But now if I want to modify the value of foo to be frodo in the same JSP page, I cannot use bean:define again (see USAGE NOTE at http://jakarta.apache.org/struts/struts-bean.html#define). I cannot use jsp:setProperty either because I cannot refer to the foo with a name and property combination. PROPOSED SOLUTION: If bean:define allowed a mustCreate attribute (default value would be true for backward compatibility) it could be set to false in such cases thereby telling the DefineTei to not export the foo variable while the DefineTag can still set/modify the value. I know that a single line of Java scriptlet can be used to achieve this but I am trying to avoid that by exclusively using tags. I am posting it on the user's list first for a sanity check. If there are no counter-arguments, I will post it to the dev list and/or submit a patch. Thanks, Mitesh Mehta S1 Corp (http://www.s1.com) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Advice needed on Stuts versus Struts/Expresso
Stephen Owens wrote about Expresso: ... The mailing list is not as amazingly helpful as the Struts mailing list, but it is pretty good and will hopefully keep getting better. ... My question is, is it really true that it will keep getting better, given that the company responsible for Expresso is trying to make money by supporting it? This implies that the people most knowledgeable about Expresso has an incentive not to support the mailing list. Or am I just being paranoid? Note that I have not used Expresso, or seen their mailing list. -- Larry Maturo [EMAIL PROTECTED] winmail.dat Description: application/ms-tnef -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Indexed html:radio is broken
I could be mistaken, but this seems related to the issue I noticed recently, which is that the property attribute (and apparently, the name/property pair, in the indexed case) is improperly overloaded to serve two purposes, I agree with you that there are many ways one might want to map the collection to the radio buttons and the limited set of html:radio properties can't handle all the reasonable things one might want to do. You should submit your proposal. Can it handle the scenario that Dave Hay also raised? Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
migrating ejb app form websphere 3.5.5 to 4.0.1
Hi, We are migrating our application that was developed on websphere 3.5.5 to websphere 4.0.1 Advanced edition single server. The ejb(s) were developed with ejb version 1.0. Is it necessary to upgrade all ejb(s) to version 1.1 in order for this to run in websphere 4.0.1. Is this necessary to convert all ejb(s) or is there an easier way to get this accomplished. If you have any advice regarding this please offer a suggestion at your earliest convenience. Kind Regards, Jay Milam Sr. Project Manager Radiant Systems -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Indexed html:radio is broken
That way the buttons SHOULD all have the same name for each iteration, and different one for the next one etc.. That was the thinking behind it. Thanks for your quick and helpful response. That is yet another reasonable interpretation of how to map the collection to radio buttons. There many reasonable ways one might want to map the collection. I think is important that 1) the tag supports the reasonable mappings (e.g., how do I do what I wanted to do using the html:radio tag) 2) since there are many possible mappings and how to do it is NOT AT ALL INTUITIVE there needs to be some decent documentation and examples. I think it would be good to start this process by defining some of the mappings it should support. This would include mapping of the collection information to the button specs and the mapping of the button selection back to the collection (or something else - e.g., makes sense to me to allow mapping of the selected value to a single variable). David Karr seems to have some good suggestions. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Multibox in iterate
make sure in your ActionForm class, you have an attribute called testChecked and coresponding getter/setter Yong Chen -Original Message- From: Viljoen, Danie [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 6:54 AM To: 'Struts Users Mailing List' Subject: Multibox in iterate Hi I iterate through a collection without any problem, but now I want to add a checkbox for each row. I used the following in my jsp page: logic:iterate id=role name=myBean property=allRoles tr td html:multibox property=testChecked bean:write name=role property=name/ /html:multibox /td td bean:write name=role property=name/ /tdtd bean:write name=role / /td /tr /logic:iterate If I remove the multibox tag I iterate successfully, but with the iterate tag I'm getting: javax.servlet.ServletException: No getter method available for property testChecked for bean under name org.apache.struts.taglib.html.BEAN Thank You Danie -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Multipart Iterator Error
I have a view that contains a form (Form-A) that is a multipart/form-data that is submitted to an action (Action-A). Form-A is empty when the cancel button is pressed. The cancel button returns the user to a previous form. This is accomplished within Action-A. Action-A looks to see if the cancel button is pressed and when the cancel button is pressed it forwards to the previous by forwarding to Action-B. Action-B should then populate it's corresponding form (Form-B) and display it's view. But I get the following error instead. Any answers? Internal Servlet Error: javax.servlet.ServletException: MultipartIterator: no multipart request data sent at org.apache.struts.upload.MultipartIterator.parseRequest(MultipartIterator.ja va:341) at org.apache.struts.upload.MultipartIterator.(MultipartIterator.java:152) at org.apache.struts.upload.DiskMultipartRequestHandler.handleRequest(DiskMulti partRequestHandler.java:65) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:735) at org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm pl.java:222) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl .java:162) at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja va:1758) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1595) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Thanks, Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
changing html:errors / default text.
How do you change the default text Validation Error\n you must correct the following error(s) before proceeding: that is displayed whenever you use the html:errors / tag? Also, I've been happily using ActionErrors for returning errors from forms but I would also like to use it for displaying other errors (not from forms) is ActionErrors the appropriate facility to be doing this with or is there something else I should be using for this purpose? Lastly, struts seems to be a very complete framework and as a new web programmer I am unfamiliar with all of the capabilities that struts could be providing for me. In order to avoid re-writing code that struts may already provide is there a listing of all of the 'things you can do' with struts persay listed online? Thanks rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: changing html:errors / default text.
I don't remeber wich option but try to find(grep?) the string Validation Error in a properties(*.properties) file. []'s JP Robert Tyler Retzlaff wrote: How do you change the default text Validation Error\n you must correct the following error(s) before proceeding: that is displayed whenever you use the html:errors / tag? Also, I've been happily using ActionErrors for returning errors from forms but I would also like to use it for displaying other errors (not from forms) is ActionErrors the appropriate facility to be doing this with or is there something else I should be using for this purpose? Lastly, struts seems to be a very complete framework and as a new web programmer I am unfamiliar with all of the capabilities that struts could be providing for me. In order to avoid re-writing code that struts may already provide is there a listing of all of the 'things you can do' with struts persay listed online? Thanks rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Mulitple controllers..
Under what situation would consider using multiple controllers? This question was asked of me, and I have seen references on Ted's site to an extension to enable multi- controllers. Would this be because of scaleability or because different functionality from different Action Controllers is needed. My struts presentation to my IT department is tomorrow, so I would'nt mind knowing the answer :) Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Advice needed on Stuts versus Struts/Expresso
Question below and previous question answered in this reply. Does Jcorporate compete against it's own Expresso mail list to increase it's support income? I have been active for 16 months now, and so far, completely not. Three of us are pretty active contributors similar to Ted here, and most questions do get answered, but it is a pretty slow list, for some reason. There are 4000 people on the list, so there is no reason why you would not get the answer you want. What would you lose by moving to Expresso? Theoretically nothing, but I will tell you the more that is done for me, the lazier and more impatient I get. So even though all the guts are the same Apache classes available here, I get lazy and try not to learn how they work sometimes, but just do it by copying some code. The flip side of that is I can get stuff done in an hour that would take me months if doing from scratch, so it goes both ways. Expresso could also use a lot more active contributors, but that is beginning to happen. Users there tend to be more passive or quiet, though some of us are still having a lot of fun being rowdies. Hope this helps. Larry Maturo wrote: Stephen Owens wrote about Expresso: ... The mailing list is not as amazingly helpful as the Struts mailing list, but it is pretty good and will hopefully keep getting better. ... My question is, is it really true that it will keep getting better, given that the company responsible for Expresso is trying to make money by supporting it? This implies that the people most knowledgeable about Expresso has an incentive not to support the mailing list. Or am I just being paranoid? Note that I have not used Expresso, or seen their mailing list. -- Larry Maturo [EMAIL PROTECTED] Name: winmail.dat winmail.datType: application/ms-tnef Encoding: base64 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Pete Carapetyan http://datafundamentals.com Java Development Services Open standards technology for commercial profitability -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: changing html:errors / default text.
You can find that in ApplicationResources.properties under errors.header / errors.footer TOM -Original Message- From: João Paulo G. Batistella [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 09. Jänner 2002 19:34 To: Struts Users Mailing List Subject: Re: changing html:errors / default text. I don't remeber wich option but try to find(grep?) the string Validation Error in a properties(*.properties) file. []'s JP Robert Tyler Retzlaff wrote: How do you change the default text Validation Error\n you must correct the following error(s) before proceeding: that is displayed whenever you use the html:errors / tag? Also, I've been happily using ActionErrors for returning errors from forms but I would also like to use it for displaying other errors (not from forms) is ActionErrors the appropriate facility to be doing this with or is there something else I should be using for this purpose? Lastly, struts seems to be a very complete framework and as a new web programmer I am unfamiliar with all of the capabilities that struts could be providing for me. In order to avoid re-writing code that struts may already provide is there a listing of all of the 'things you can do' with struts persay listed online? Thanks rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: changing html:errors / default text.
Ah yes your right it's in ApplicationResource.properties however if I change it there it will change it for all occurences, sometimes I'd like to have it say one thing and another time something else is this possible? Thanks again rob I don't remeber wich option but try to find(grep?) the string Validation Error in a properties(*.properties) file. []'s JP Robert Tyler Retzlaff wrote: How do you change the default text Validation Error\n you must correct the following error(s) before proceeding: that is displayed whenever you use the html:errors / tag? Also, I've been happily using ActionErrors for returning errors from forms but I would also like to use it for displaying other errors (not from forms) is ActionErrors the appropriate facility to be doing this with or is there something else I should be using for this purpose? Lastly, struts seems to be a very complete framework and as a new web programmer I am unfamiliar with all of the capabilities that struts could be providing for me. In order to avoid re-writing code that struts may already provide is there a listing of all of the 'things you can do' with struts persay listed online? Thanks rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Multipart Iterator Error
There was a long thread on this a couple of weeks ago. Everything should be in the archives. Basically, with redirect = true you lose the data in the request, but with redirect = false, Struts gets confused about the multiple actions. I couldn't find a way around this. If you do, would love to hear it. - JKL -Original Message- From: Phase Communcations [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:18 AM To: Struts Users Mailing List Subject: Multipart Iterator Error I have a view that contains a form (Form-A) that is a multipart/form-data that is submitted to an action (Action-A). Form-A is empty when the cancel button is pressed. The cancel button returns the user to a previous form. This is accomplished within Action-A. Action-A looks to see if the cancel button is pressed and when the cancel button is pressed it forwards to the previous by forwarding to Action-B. Action-B should then populate it's corresponding form (Form-B) and display it's view. But I get the following error instead. Any answers? Internal Servlet Error: javax.servlet.ServletException: MultipartIterator: no multipart request data sent at org.apache.struts.upload.MultipartIterator.parseRequest(Multip artIterator.ja va:341) at org.apache.struts.upload.MultipartIterator.(MultipartIterator. java:152) at org.apache.struts.upload.DiskMultipartRequestHandler.handleReq uest(DiskMulti partRequestHandler.java:65) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:735) at org.apache.struts.action.ActionServlet.processPopulate(ActionS ervlet.java:20 61) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1563) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.doForward(Reque stDispatcherIm pl.java:222) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Request DispatcherImpl .java:162) at org.apache.struts.action.ActionServlet.processActionForward(Ac tionServlet.ja va:1758) at org.apache.struts.action.ActionServlet.process(ActionServlet.j ava:1595) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper .java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextM anager.java:81 2) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro cessConnection (Ajp12ConnectionHandler.java:166) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:501) at java.lang.Thread.run(Thread.java:484) Thanks, Brandon Goodin Phase Web and Multimedia P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: changing html:errors / default text.
This message only tell you that you had an error. You can use your own messages with ActionError class. See in the example that came with Struts. JP Robert Tyler Retzlaff wrote: Ah yes your right it's in ApplicationResource.properties however if I change it there it will change it for all occurences, sometimes I'd like to have it say one thing and another time something else is this possible? Thanks again rob I don't remeber wich option but try to find(grep?) the string Validation Error in a properties(*.properties) file. []'s JP Robert Tyler Retzlaff wrote: How do you change the default text Validation Error\n you must correct the following error(s) before proceeding: that is displayed whenever you use the html:errors / tag? Also, I've been happily using ActionErrors for returning errors from forms but I would also like to use it for displaying other errors (not from forms) is ActionErrors the appropriate facility to be doing this with or is there something else I should be using for this purpose? Lastly, struts seems to be a very complete framework and as a new web programmer I am unfamiliar with all of the capabilities that struts could be providing for me. In order to avoid re-writing code that struts may already provide is there a listing of all of the 'things you can do' with struts persay listed online? Thanks rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
ApplicationResource.properties
Are there any plans to move the ApplicationResource.properties to be xml based? I think log4j has the option to be .properties or xml which is a very nice. Kris -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re:Thanks! - Advice needed on Stuts versus Struts/Expresso
Thanks everyone for the information on moving to struts. It has been most helpful. Still not sure what I am going to do in the long run, but at the very least I will learn expresso so I can make a more informed decision... I am also going to try to get an answer on if they are planning on keeping pace with struts... Thanks again for a lot of excellent points on this topic. Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
need a jdbc driver to access db2 running on AS400
We are in dire need of a jdbc driver that will access the db2 database running on the AS400 platrom (license v4r4mo). The driver should be able to run on WAS 4.0.1. Does anyone have an answer for usplease Kind Regards, Jay Milam Sr. Project Manager Radiant Systems -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Indexed html:radio is broken
Frank == Frank Lawlor [EMAIL PROTECTED] writes: I could be mistaken, but this seems related to the issue I noticed recently, which is that the property attribute (and apparently, the name/property pair, in the indexed case) is improperly overloaded to serve two purposes, Frank I agree with you that there are many ways one might want to Frank map the collection to the radio buttons and the limited set Frank of html:radio properties can't handle all the reasonable things Frank one might want to do. Frank You should submit your proposal. Can it handle the scenario Frank that Dave Hay also raised? If you're referring to his example in his response to your original note, with the values of on, off and deferred, I would say my proposal wouldn't really be useful there. My impression (I haven't used them yet) is that by using indexed properties, the resulting HTML component name is a little more useful (and provides a little more context). -- === David M. Karr ; Best Consulting [EMAIL PROTECTED] ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: New to Struts and stuck already...
Kevin, first of all, please take into account I am new to Struts too... Your mail doesn't include enough information, hence I don't know whether the issues not mentioned in your mail are absent just in your mail or absent in your application... For instance, in the struts-config.xml file depicted, there is no action tag, which should be there if you want to use a form bean. Furthermore, that tag should include several attributes, i.e., name, path, scope, etc.. And take care they match the features of the form bean, and to use the right scope: as far as I understand it, it is the one assigned to the form bean. Hope this helps Luis - Original Message - From: Keith Bacon [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 11:38 AM Subject: Re: New to Struts and stuck already... welcome to struts, I'd need more info - more of the error stack trace. Also maybe the struts-config entry for the action class involved. If this is from your jsp maybe it refers to the form bean but you've started the jsp directly (localhost:8080/myapp/myJsp.jsp) rather than through the action mapping (localhost:8080/myapp/myJsp.do) Keith. PS struts is a wee bit painful at 1st but you'll soon get the hang of it --- Kevin J. Turner [EMAIL PROTECTED] wrote: I am trying to build a simple Struts app to play around with it and i'm stuck on the following error message: javax.servlet.ServletException: No bean found under attribute key registrationForm I have the following in my struts-config.xml file: struts-config ... form-beans form-bean name=registrationForm type=com.codemonkey.struts.RegistrationForm/ /form-beans ... struts-config Any suggestions anyone? Kevin J Turner __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: need a jdbc driver to access db2 running on AS400
Jay Milam wrote: We are in dire need of a jdbc driver that will access the db2 database running on the AS400 platrom (license v4r4mo). The driver should be able to run on WAS 4.0.1. Does anyone have an answer for usplease You need the DB2 client installation and the DB2 Connect package (required for communication with DB2 running on AS/400 and S/390). There are two drivers to choose from: the 'net' driver and the 'app' driver. The 'net' driver is primarily intended for applets, so you'd be better off using the 'app' driver. There are also type 4 drivers from third parties (IBMs drivers are type 2 and type 3 which is faster than type 4 but requires you to install more software). /Robert -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
iterate issue
I am trying to iterate through a collection. But get No getter method for property dailyList of bean myDailyRptForm Here is my code: DailyRptForm.jsp %-- Display any daily info --% logic:iterate id=dailyRpt name=DailyRptForm property=dailyList tr td VALIGN=TOP bean:write name=dailyRpt property=variable1 filter=true/ /td td VALIGN=TOP bean:write name=dailyRpt property=variable2 filter=true/ /td td VALIGN=TOP bean:write name=dailyRpt property=variable3 filter=true/ /td /tr /logic:iterate DailyRptForm.java ... private ArrayList dailyList = null; // Collection of daily found ... public ArrayList getDailyList() { return (this.dailyList); } public void setDailyList(boolean isAdmin) throws ServletException { ... } ... Any Ideas? Thanks, John Collard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: iterate issue
Strange. But, why getDailyList returns ArrayList and setDailyList receives a boolean?? []'s JP public ArrayList getDailyList() { return (this.dailyList); } public void setDailyList(boolean isAdmin) throws ServletException { ... } ... Any Ideas? Thanks, John Collard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New to Struts and stuck already...
Kevin, I'm also relatively new to struts, however, this looks like something I've encountered before. I saw the same (or a similar error message) whenever my form tags weren't properly enclosed in html:form action=/MyServlet.do ... /html:form. HTH Thank You, Mike Ashamalla, CEBS VistaXtreme [EMAIL PROTECTED] -Original Message- From: Luis M. Rosso [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 11:02 AM To: Struts Users Mailing List Subject: Re: New to Struts and stuck already... Kevin, first of all, please take into account I am new to Struts too... Your mail doesn't include enough information, hence I don't know whether the issues not mentioned in your mail are absent just in your mail or absent in your application... For instance, in the struts-config.xml file depicted, there is no action tag, which should be there if you want to use a form bean. Furthermore, that tag should include several attributes, i.e., name, path, scope, etc.. And take care they match the features of the form bean, and to use the right scope: as far as I understand it, it is the one assigned to the form bean. Hope this helps Luis - Original Message - From: Keith Bacon [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 11:38 AM Subject: Re: New to Struts and stuck already... welcome to struts, I'd need more info - more of the error stack trace. Also maybe the struts-config entry for the action class involved. If this is from your jsp maybe it refers to the form bean but you've started the jsp directly (localhost:8080/myapp/myJsp.jsp) rather than through the action mapping (localhost:8080/myapp/myJsp.do) Keith. PS struts is a wee bit painful at 1st but you'll soon get the hang of it --- Kevin J. Turner [EMAIL PROTECTED] wrote: I am trying to build a simple Struts app to play around with it and i'm stuck on the following error message: javax.servlet.ServletException: No bean found under attribute key registrationForm I have the following in my struts-config.xml file: struts-config ... form-beans form-bean name=registrationForm type=com.codemonkey.struts.RegistrationForm/ /form-beans ... struts-config Any suggestions anyone? Kevin J Turner __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: iterate issue
setDailyList queries a database based on whether the user is an administor or not. The results are placed in the arraylist dailyList. John Collard -Original Message- From: João Paulo G. Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 2:17 PM To: Struts Users Mailing List Subject: Re: iterate issue Strange. But, why getDailyList returns ArrayList and setDailyList receives a boolean?? []'s JP public ArrayList getDailyList() { return (this.dailyList); } public void setDailyList(boolean isAdmin) throws ServletException { ... } ... Any Ideas? Thanks, John Collard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Question on Struts debugging - one more time
Hi Keith, Thanks for your reply. I do use already many of the techniques listed in your email as well as log4j. I do not have any problem catching errors in form and actions classes. I do have problem finding errors that come out of the html tags in JSPs. If there is a bad mapping and an html:form's action point to the mapping with a problem I do not see any errors in any of the logs. I have modified my error.jsp in hopes of seeing more but so far nothing. If I have better luck with this I will let the group know. Developing in Struts would be much faster if there was a way to diagnose such problems. Erich -Original Message- From: Keith Bacon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 8:54 AM To: Struts Users Mailing List Subject: Re: Question on Struts debugging - one more time I've not had better luck. I think it's the way it is. Here's how I do it - I'd like to know how others do. I use hundreds of log messages so I can trace the flow of my program. I make the method calls for logging easy to type - dbmd(a debug msg) or dbmw(warning message). I code traces into action classes from the start. to show the perform method starting ending so a dud struts config is found because the Action i expect to run doesn't log it's start. I check for null pointers all over the place log a warning or throw an exception for them. I constantly restart the server (tomcat 3.2.2) to make weird problems go away. Auto class reloading doesn't work properly so - I restart after every compile. I use these 3 methods in jsp's Action classes a lot, to check the contents of the session request - this finds things left in the session by mistake. public static void printSessionAttributeNames(String caller, HttpSession session) { public static void printRequestAttributeNames(String caller, HttpServletRequest request) { public static void printRequestParameters(String caller, HttpServletRequest request) { I've attached the code for them, someone may find them useful - the codes a bit dodgy old but it's easy to understand. I have my own logging code (from old servlet programming) but I want to use log4j (one day!) - You really need to be able to switch trace messages on/off without re-compiling classes or restarting the server. Only when it's quite reliable do I remove the messages. Often I just comment the mesages out in expectation it will go wrong in future. All in all a bit primitive compared to some (non-web) environments I've worked in. we're in the early days - things will get easier. We'll get informative/instructive messages that tell us what to do to put it right we'll be able to step thru our action classes in the debugger. Happy bug hunting! - Keith --- Kilmer, Erich [EMAIL PROTECTED] wrote: Thought I would give this one more try. Has anyone had better luck with debugging problems caused by say bad action mappings, ie: mis-named action classes, missing action forms etc. Currently when these problems are encountered I see no useful error messages in any of my logs (even when debug is set to 2). Is this just the way that it is or have I failed to do something? Thanks, Erich Sent previously: I have been using Struts for some time now. My app's Struts config file has almost 50 action mappings so I have been down this road a time or two. Many times when adding a new mapping I run into errors though. For example the latest on was where the mapping listed an action class called something like UserCreateAction (package removed). But when I wrote the class itself I named it UserAddAction. Now when I built the app and moved to the Orion apps server and ran it when I get to the JSP that references this action mapping I get a null exception. Typically I do not catch exceptions in a JSP and the uncaught exceptions go to my error JSP where it states that the exception is null. So I go into my web.xml file and change the debug param to 2. I also changed detail to 2. (By the way what does detail = 2 do?) Then I re-ran everything after rebuilding and re-deploying. The app still does the same thing. OK, fine now I go to check the logs. I check the apps server log where system outs go. I see no Struts messages except for the flurry of them at startup. I look at the log4j error logs and see nothing. I also looked at the apps servers application log where I see some Struts messages but see nothing about this error. So my Struts debugging question is this. Are errors encountered when converting the Struts tags in my JSP written anywhere? Is there more debug settings I must make? Is there another log that I can check? I know this is a fairly simple example and I am getting better at debugging them but it would be nice if there was someway to make this so I check the log and it says that Action class UserCreateAction does not exist. Let me know, Erich Kilmer Bell+Howell -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
Re: iterate issue
But you should have the same type for set/get methods. The information concerning about administrator should be in another attribute. Try! Collard, John wrote: setDailyList queries a database based on whether the user is an administor or not. The results are placed in the arraylist dailyList. John Collard -Original Message- From: João Paulo G. Batistella [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 2:17 PM To: Struts Users Mailing List Subject: Re: iterate issue Strange. But, why getDailyList returns ArrayList and setDailyList receives a boolean?? []'s JP public ArrayList getDailyList() { return (this.dailyList); } public void setDailyList(boolean isAdmin) throws ServletException { ... } ... Any Ideas? Thanks, John Collard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- João Paulo G. Batistella CiT - Software enabling the e-world Phone: +55 (19) 3737-4515 http://www.cit.com.br -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: iterate issue
Try declaring the return type as Collection. I had the same problem which disappeared when I changed type from List to Collection. Dave This message contains official information which is intended for the use of the addressee(s) only. If you are not the intended recipient, please notify the sender immediately. You should not further disseminate or copy this message in any way. * -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re:Thanks! - Advice needed on Stuts versus Struts/Expresso
But good luck working with Expresso right off the bat. Does anyone in this whole open source world know anything about proper, usable, and useful documentation (sorry - it just gets frustrating; truth is -- I'm probably just an idiot and I hate to admit it.) - Cody [EMAIL PROTECTED] on 01/09/2002 12:35:04 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re:Thanks! - Advice needed on Stuts versus Struts/Expresso Thanks everyone for the information on moving to struts. It has been most helpful. Still not sure what I am going to do in the long run, but at the very least I will learn expresso so I can make a more informed decision... I am also going to try to get an answer on if they are planning on keeping pace with struts... Thanks again for a lot of excellent points on this topic. Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Thanks! - Advice needed on Stuts versus Struts/Expresso
[EMAIL PROTECTED] wrote: But good luck working with Expresso right off the bat. Does anyone in this whole open source world know anything about proper, usable, and useful documentation (sorry - it just gets frustrating; truth is -- I'm probably just an idiot and I hate to admit it.) - Cody Thanks for volunteering. http://jakarta.apache.org/site/getinvolved.html -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: why have another xml file?
At the risk of being flamed.. I've been very interested in struts for quite a while now. Actually tried using it for a project that I was recently working on. After many days of fighting with the struts-config.xml file the team decided to implement our own ModelII framework. We had this implemented in about a half a day. (Keep in mind we did not do anything with validation or internationalization.) We did not use anything like a config file . Essentially we used reflection to create the action class before calling into it. Making this work in this way has greatly speed up our development. It was very clear when the submit had the wrong class name in it. The answers I saw to the original post were in the vane that everyone else is using XML so why shouldn't we. I haven't seen a good technical reason for doing this. I would be VERY interested to understand the need for this file. In seems it introduces unnecessary complexity into an application and the same information can be retrieved from a more straight forward mechanism. Jeff Canna -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Thanks! - Advice needed on Stuts versus Struts/Expresso
Personally I dont know any coders that like to write documentation. Any really good docs produced by a company are most likely by people hired to specifically do that job. Aside from that, if your going to donate time and effort to open source - do you really want to spend this time writing documentation?! besides, what fun would it be with good docs :) -Original Message- From: husted [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 3:05 PM To: struts-user Subject: Re: Thanks! - Advice needed on Stuts versus Struts/Expresso [EMAIL PROTECTED] wrote: But good luck working with Expresso right off the bat. Does anyone in this whole open source world know anything about proper, usable, and useful documentation (sorry - it just gets frustrating; truth is -- I'm probably just an idiot and I hate to admit it.) - Cody Thanks for volunteering. http://jakarta.apache.org/site/getinvolved.html -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: why have another xml file?
What would be most helpful is an example of your alternative approach. The struts-config.xml itself is not really required, but is perceived as a convenient way to initialize and configure the objects used by the framework. Once the objects are initalized, the struts-config is not referenced, so loading them from an alternate method is certainly feasible. (And it sounds like you have proven this in practice.) The purpose of the struts-config is to create the lists of ActionForms, ActionForwards, and ActionMappings. Many applications have many more ActionMappings than classes, so it can become a very long list. An XML format is perceived as the simplest way to create this list. I doubt that this perception could be easily changed without a working prototype. I know that in my work, I have made significant changes and additons to applications just by changing the struts-config, without touching a single Java class. Personally, I perceive that as a Good Thing, but your mileage may vary. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Jeff Canna wrote: At the risk of being flamed.. I've been very interested in struts for quite a while now. Actually tried using it for a project that I was recently working on. After many days of fighting with the struts-config.xml file the team decided to implement our own ModelII framework. We had this implemented in about a half a day. (Keep in mind we did not do anything with validation or internationalization.) We did not use anything like a config file . Essentially we used reflection to create the action class before calling into it. Making this work in this way has greatly speed up our development. It was very clear when the submit had the wrong class name in it. The answers I saw to the original post were in the vane that everyone else is using XML so why shouldn't we. I haven't seen a good technical reason for doing this. I would be VERY interested to understand the need for this file. In seems it introduces unnecessary complexity into an application and the same information can be retrieved from a more straight forward mechanism. Jeff Canna -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: need a jdbc driver to access db2 running on AS400
Great info...Thanx alot... -Original Message- From: Robert Claeson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 2:08 PM To: Struts Users Mailing List Subject: Re: need a jdbc driver to access db2 running on AS400 Jay Milam wrote: We are in dire need of a jdbc driver that will access the db2 database running on the AS400 platrom (license v4r4mo). The driver should be able to run on WAS 4.0.1. Does anyone have an answer for usplease You need the DB2 client installation and the DB2 Connect package (required for communication with DB2 running on AS/400 and S/390). There are two drivers to choose from: the 'net' driver and the 'app' driver. The 'net' driver is primarily intended for applets, so you'd be better off using the 'app' driver. There are also type 4 drivers from third parties (IBMs drivers are type 2 and type 3 which is faster than type 4 but requires you to install more software). /Robert -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to set Dynamic hyper link using html:link
Another way to go would be writing your own menuForward tag, that knew about your menu object, so you could write the whole thing in a fell swoop. app:menuForward name=menu/ For menuing, this is an interesting package: http://husted.com/struts/resources/struts-menu.zip -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Lee, Dennis wrote: Hi , I would like to know the way to set a dynamic hyper link using Struts html: I am trying to do it as follows: html:link forward=bean:write name=menu property=menuAction/ bean:write name=menu property=menuDesc/ /html:link But it will return a JspParser Exception : org.apache.jasper.compiler.ParseException: C:\jakarta-tomcat-3.2.3\webapps\mpfs\mainMenu.jsp(28,47) Attribute menu has no value Thanks in advance, Regards, Dennis ** This message and any files transmitted with it are confidential and may be privileged and/or subject to the provisions of privacy legislation. They are intended solely for the use of the individual or entity to whom they are addressed. If the reader of this message is not the intended recipient, please notify the sender immediately and then delete this message. You are notified that reliance on, disclosure of, distribution or copying of this message is prohibited. Bank of Bermuda ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: JDeveloper and Tomcat
Im not a JDeveloper user, but as I recall it is (or at least was) an IDE based on JBuilder and licensed by Borland/Inprise to Oracle. If that is still the case then maybe you need to follow the same steps to integrated Struts with JDeveloper as you would for JBuilder. That means installing the open tool to add the *.tld files to the war you build and remove struts.jar from the Tomcat classpath. Try looking at: http://www.netstore.ch/mesi/strutsTutorial/ and ignore the stuff specific to WebLogic. VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote: Has anybody integrated Tomcat with JDeveloper. I want to know if we can run struts application using Tomcat from JDeveloper. - Do You Yahoo!? Send FREE video emails in Yahoo! Mail.
Re: JDeveloper and Tomcat
JDeveloper 9i is no longer based on Borland code as it has been rewritten. I would recommend consulting the forums at http://otn.oracle.com/ for help on using JDeveloper. I am currently working with Oracle to integrate the Struts Console software with JDeveloper and that should be available very soon (no firm date at this point). -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Reid Pinchback [EMAIL PROTECTED] wrote: Im not a JDeveloper user, but as I recall it is (or at least was) an IDE based on JBuilder and licensed by Borland/Inprise to Oracle. If that is still the case then maybe you need to follow the same steps to integrated Struts with JDeveloper as you would for JBuilder. That means installing the open tool to add the *.tld files to the war you build and remove struts.jar from the Tomcat classpath. Try looking at: http://www.netstore.ch/mesi/strutsTutorial/ and ignore the stuff specific to WebLogic. VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote: Has anybody integrated Tomcat with JDeveloper. I want to know if we can run struts application using Tomcat from JDeveloper. - Do You Yahoo!? Send FREE video emails in Yahoo! Mail. __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Expresso installation - administrator access?
So, I installed the Expresso.war file. And It all seems to be working ok. But I cannot login to configure the app. Is there a default install administrator login? When I regiuster a new user, I still do noit get appropriate access. Sorry - I know this is not the Exprosso list, but i searched all the docs and found nothing. - Cody The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Detecting a particular error
Is it possible to detect if one particular error has occurred while on the jsp when using the validator? We are trying to change the color of the label of a button when an error has occurred. I have been looking everywhere and trying everything, and I can't seem to find a way to do this. Thanks, dave
RE: Expresso installation - administrator access?
It's Admin, no password. Took me a while to find that, I forget where it was mentioned... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 4:21 PM To: [EMAIL PROTECTED] Subject: Expresso installation - administrator access? So, I installed the Expresso.war file. And It all seems to be working ok. But I cannot login to configure the app. Is there a default install administrator login? When I regiuster a new user, I still do noit get appropriate access. Sorry - I know this is not the Exprosso list, but i searched all the docs and found nothing. - Cody The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Expresso installation - administrator access?
At 04:47 PM 1/9/2002 -0500, you wrote: It's Admin, no password. Took me a while to find that, I forget where it was mentioned... Also for the record to save Struts bandwidth, there is are expresso forums and a listserv on Jcorp's website. HTH! -Mike -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
How to achieve html:cancel but with an image?
Is there a way to achieve html:cancel characteristics with an input image? I'd like to call isCancelled() in my perform() method when a cancel image is pressed. Does the HTML tag library support that? Thanks, George Cutrell Technical Manager, Wireless Applications Development Nextel Communications, Inc. Desk: 703.433.8868 Mobile: 703.926.7851 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to achieve html:cancel but with an image?
html:image src=images/cancel.gif border=0 property=org.apache.struts.taglib.html.CANCEL/ -Original Message- From: Cutrell, George [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 4:45 PM To: 'Struts Users Mailing List' Subject: How to achieve html:cancel but with an image? Is there a way to achieve html:cancel characteristics with an input image? I'd like to call isCancelled() in my perform() method when a cancel image is pressed. Does the HTML tag library support that? Thanks, George Cutrell Technical Manager, Wireless Applications Development Nextel Communications, Inc. Desk: 703.433.8868 Mobile: 703.926.7851 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: New API specification
I was getting caught up on the Jetspeed list and just read the thread discussing integrating different frameworks including Struts with Jetspeed. I would be interested in hearing from people interested in using Jetspeed with Struts and perhaps doing some collaboration on this effort. Sandra Cann [EMAIL PROTECTED] -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 23, 2001 4:00 PM To: 'Jetspeed Developers List' Subject: RE: New API specification De: Thomas Schaeck [mailto:[EMAIL PROTECTED]] Enviado el: domingo 23 de diciembre de 2001 11:46 A portlet container needs not be tied to any particular framework, e.g. an architecture like this can avoid any dependency of a portlet container implementation to the framework on which a portal that uses the container is built: Agreed, i was confusing the terms, talking about the mix of portlet container and portal implementation.. Portal| Portlet Runtime Env +--++---+ | +-+ +---+ |+--+ |Portlet| | |Portlet | |+---+ +|Portal|-|Invoker|-|-|Container|-+|Portlet|+ +--+| | I/F | | | |+---+| +--+ +---+ | +-+ +---+ The portal could be based on any framework, be it Struts, Turbine, or something else. Also, many different portals may use the same comtainer. JetSpeed 2 will be a the sum of 3 things instead of 2: 1) Portlet Container and Portlet Specs.. 2) A Portlet Container Implementation, independent of any framework 3) A Portal implementation, framework dependant.. Typically, the portal needs to call portlets for purposes such as dispatching events (e.g. action events or window events) to portlets so they can react on those events and for obtaining markup from portlets. The Which is your idea of the methods to transmit markup between layers? like it's now? adding SAX to the mix? PortletInvoker interface to be used by portal implementations for invoking portlets needs to have corresponding methods that are additionally taking portlet identifiers and portlet instance identifiers as parameters that identify the target portlets to invoke. Best regards, Thomas Many Thanks .. for jump in and the brief clarification.. still learning.. I need urgently to read the portlet spec present in the CVS ;) Saludos , Ignacio J. Ortega -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: RE: Accessing EJB references by extending ActionServlet
Thanks for the reply. I was planning to put the look up of the EJB reference in the init method of the servlet, so unless Iam missing something, It should be thread safe. I looked at the java pet store source code specifically at WebControllerImpl. I found that , it looks up the EJB reference in a non synchronized method. All the other methods that access the EJB are synchronized, Does that mean lookups in general are thread safe? Appreciate your help, Sunder - Original Message - From: James Dasher [EMAIL PROTECTED] Date: Tuesday, January 8, 2002 7:20 pm Subject: RE: Accessing EJB references by extending ActionServlet Uh, careful--synchronization issues (immediate problem) and data abstraction (long term problem). Servlets are not thread-safe, so be very careful handing that referencearound. Also, do you want your struts stuff knowing about EJB? EJB is complicated. Possible alternatives: 1. Use session-scope beans as web-tier Helpers, abstracting data- accessimplementation. (Your actions don't really need to know how to use an EJB, do they?) 2. Consider adding a service locator, which implements HttpSessionListener, which binds itself in session and knows how to get/create above Helper objects 3. Value object are a pretty good idea, too. 4. (Extreme) Have a single point of entry into the EJB tier, a controller which has one operant method, something like public synchronized ModificationResponse handleModification(Modification Request) {} public interface ModificationRequest { public String getName(); } public interface ModifcationResponse { public Object getPayload(); } Your controller (a stateful EJB) can delegate to various other EJB's based on an XML file or environment entries with ModificationRequest.getName() as the key. Your Data-Access Objects can take that response, grab the payload, and put it in session as needs be. Then your actions can just grab what they need likewise: Locator l = (Locator)request.getSession().getAttribute(Keys.SERVICE_LOCATOR) Carthelper c = l.getCartWebhelper(); request.setSessionAttribute(Keys.SHOPPING_CART,c.addStuffToCart (someItem )) where addStuffToCart returns some kind of Value Object you can expose as a bean. Meanwhile, your cart has been updated back in the EJB's somewhere. Most of this is ripped straight from the pages of the petstore demo Web Application Framework. If you haven't read it, it is worth it. The part you are looking for is petstore1.3/src/waf/src/controller/com/sun/j2ee/blueprints/waf Remember--Sun pushes EJB so you buy bigger appservers. Basically, 90% of the projects using EJB don't have to. If you are in the other 10%, then your project is large-scale enough to merit some extra time thinking about data abstraction. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 9:17 PM To: Struts Users Mailing List Subject: Accessing EJB references by extending ActionServlet Hello, I have a design question about accessing EJB references from the servlet. I would like to obtain a reference to my proxy session bean in the init of the servlet and use that reference to call methods on the bean from the action classes. I have extended the ActionServlet and added additional code to the init method for the EJB lookup. I would like to know how I can pass the remote reference across the different action classes? I am not sure if putting the remote reference in session would be a good idea. I have all my action classes extend from the new ExtendedActionServlet Sunder -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Thanks! - Advice needed on Stuts versus Struts/Expresso
Cody: Any and all ideas on how we can make the Expresso doc better *really* will be listened to! Honest! :-) It always lags the code, I think that's the nature of the beast, but the core group are very serious about making the doc as high-quality as the code. We've just upgraded to allow all the core contribs to be able to online edit and upload new doc, which will start to help soon I hope as well. Let us know what we can do better, please! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 3:00 PM To: Struts Users Mailing List Subject: Re:Thanks! - Advice needed on Stuts versus Struts/Expresso But good luck working with Expresso right off the bat. Does anyone in this whole open source world know anything about proper, usable, and useful documentation (sorry - it just gets frustrating; truth is -- I'm probably just an idiot and I hate to admit it.) - Cody [EMAIL PROTECTED] on 01/09/2002 12:35:04 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re:Thanks! - Advice needed on Stuts versus Struts/Expresso Thanks everyone for the information on moving to struts. It has been most helpful. Still not sure what I am going to do in the long run, but at the very least I will learn expresso so I can make a more informed decision... I am also going to try to get an answer on if they are planning on keeping pace with struts... Thanks again for a lot of excellent points on this topic. Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Advice needed on Stuts versus Struts/Expresso
Stephen: Just to answer your question below, it is definitely the core group's intention with Expresso to upgrade with Struts, and workflow is one of the new features we've very much looking forward to. Mike Which brings up another point, will Expresso upgrade in step with Struts? If the next revision to Struts has wonderful workflow management will your Expresso code be able to take advantage of it? At that point I think we're probably just trying to read tea leaves, you always have to plant a stake in the ground and start coding with what exists. regards, Stephen Owens Corner Software -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:59 AM To: [EMAIL PROTECTED] Subject: Advice needed on Stuts versus Struts/Expresso Hi all, I've gotten a full app to work with Struts and have a good understanding of how things are supposed to be done and work. Now I am looking at possibly using Expresso to speed development. In anyone's experience what would I lose by moving to Expresso. I can see how it would speed development, but do I lose anything that struts gives me? Is there anything that I would come across that I could not do with Expresso that I could do with Struts? I've read all the JCorporate docs on the struts integration and such, but would like to draw on the experience of those more, well experienced. I guess I am at the point where I understand Struts so I am hesitant to move on to something else if I will just be coming back to struts later. My needs rotate mostly around rapid development of applications. Thanks much for this information and all the previous help in getting me going with struts. PS. For anyone starting with struts, get Ted Husted's struts-catalog and read it once a day while you are learning struts. In the beginning you may not understand it, but as the days go on, more and more will help you out. (Thanks Ted) Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Advice needed on Stuts versus Struts/Expresso
Bill: You shouldn't lose a thing by using Struts/Expresso in combination, as we've incorporated the entire Struts framework into Expresso. On the flip side, you would gain a powerful object/relational mapping layer, background job queuing/scheduling, auto-generated UI's for prototyping, XML UI generation (w/optional XSLT) and a bunch of other good stuff. We've extended the configuration to support a seperate struts-config.xml for each application, and automatically merge them at startup, but basically everything you are doing now in Struts you can do in Expresso, plus what Expresso adds. Of course, I'm a bit biased, I'm lead developer on Expresso. :-) We're currently at release 1.0 of Struts, but upgrades are indeed in the works. Have a look at the doc on the site as well, and don't miss the Expresso Developer's Guide - a lot of good material is in there, but people don't seem to find it sometimes. 200+ pages of doc in total. Regards, Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:59 AM To: [EMAIL PROTECTED] Subject: Advice needed on Stuts versus Struts/Expresso Hi all, I've gotten a full app to work with Struts and have a good understanding of how things are supposed to be done and work. Now I am looking at possibly using Expresso to speed development. In anyone's experience what would I lose by moving to Expresso. I can see how it would speed development, but do I lose anything that struts gives me? Is there anything that I would come across that I could not do with Expresso that I could do with Struts? I've read all the JCorporate docs on the struts integration and such, but would like to draw on the experience of those more, well experienced. I guess I am at the point where I understand Struts so I am hesitant to move on to something else if I will just be coming back to struts later. My needs rotate mostly around rapid development of applications. Thanks much for this information and all the previous help in getting me going with struts. PS. For anyone starting with struts, get Ted Husted's struts-catalog and read it once a day while you are learning struts. In the beginning you may not understand it, but as the days go on, more and more will help you out. (Thanks Ted) Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: can content be dynamic in JSP templating
Hi, Ken == Ken Domen Domen writes: Ken Do we have to create a separate content.jsp for every content that's Ken different? Ken Doesn't that mean that you have to create 2 jsp's for every page that's Ken different? Ken Is there a way to make the content dynamic so that I don't have to create an Ken extra JSP page per content change? Ken template:put name='content' content='/login.jsp'/ Ken Can the above be: Ken template:put name='content' content='%=dynamic_value%'/ I have not used this, but you might consider looking at the Struts Tiles taglib, instead of using the Struts template taglib. I don't believe you get any more dynamic flexibility, but if you have two (or more) pages that only differ by the value of the content attribute, then instead of creating a separate JSP page for each variation, you can just specify an additional element in the Tiles configuration file. This makes the content variations a little easier to manage. If you're interested, read the recent article in JavaWorld about Tiles. The complete URL for the article is: http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html? Comments and suggestions are most welcome, -Prakash - eBuilt, Inc. - Builders of Industrial-Strength e-Business (http://www.eBuilt.com) Learn Java! (http://www.cact.csupomona.edu/javacert.html) Learn Design Patterns! (http://www.cact.csupomona.edu/UML_Specialist.htm) Want answers to Java, OOAD, UML, Design Patterns, EJBs, JSPs, Servlets, XP, etc? (http://clubs.yahoo.com/clubs/bartssandbox) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help! Differences in Browser Behavior for Reloading FramesetVia Struts Action.
Hi, Has anyone else observed the following behavior, and if so, could they explain it to me? Better still, could they explain how to avoid it? Or am I going mad? To summarize, this is what I see happening (details below): 1. If I go straight to the frameset page, invoke an action on one of its child pages, then reload the frameset, the child request I see invoked during the reload is that for the last request invoked on the child page, rather than that previously invoked for that child page by the frameset's frame's src parameter. This is the same for both Internet Explorer 6.0 (IE) and Netscape 6.2 (NS). 2. If, on the other hand, I go to the frameset page by submitting an action that struts looks up in struts-config.xml, then forwards to that same frameset page, the exact sequence of requests submitted by the browser resulting from the same user actions seems to vary. Specifically, the child page request submitted as the result of the reload/refresh seems to be that originating from the frameset's frame's src parameter for IE, but that submitted for NS is still that for the last request invoked on the child page itself. Any info relating to similar experiences appreciated! Thanks, Vaughan. --- Details Below --- I have a frameset page called framesWithError.jsp. This contains the following single frame: frameset rows=100% frame name=test src=testPage.html?origin=frameset /frameset testPage.html is the following: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN HTML HEAD TITLETest Page/TITLE META HTTP-EQUIV=Expires CONTENT=0 META HTTP-EQUIV=Pragma CONTENT=no-cache META HTTP-EQUIV=Cache-Control CONTENT=no-cache /HEAD BODY FORM INPUT TYPE=hidden NAME=origin VALUE=page BUTTON TYPE=submit NAME=submit VALUE=submit SUBMIT /BUTTON /FORM /BODY /HTML Making these part of a struts web app, and hitting the submit button on testPage results in the following request being submitted: http://homer:8080/frames/testPage.html?origin=pagesubmit=submit If I go straight to the URL of the frameset page in either Internet Explorer 6.0 (IE) or Netscape 6.2 (NS), then hit the submit button on testPage.html (in the frame), and lastly hit the browser's Reload or Refresh button, I see the same sequence of requests being submitted by the browser: 1.http://homer:8080/Frames/framesWithError.jsp 2.http://homer:8080/Frames/testPage.html?origin=frameset 3.http://homer:8080/Frames/testPage.html?origin=pagesubmit=SUBMIT - SAME 4.http://homer:8080/Frames/framesWithError.jsp - start of reload 5.http://homer:8080/Frames/testPage.html?origin=pagesubmit=SUBMIT - SAME (request from page) Using Netscape 6.2 (NS), if instead I go to the URL http://homer:8080/frames/updateBean.do?action=showErrorFrame, repeating the same sequence of actions as described above, I see more or less the same thing. I believe the significant thing that struts does with this initial URL is look up the corresponding struts-config.xml entry and forward the request to the same frameset page framesWithError.jsp: !-- Update Bean -- actionpath=/updateBean type=com.tumbleweed.tsg.ca.web.action.UpdateBeanAction name=updateBeanForm input=/updateBean.jsp forward name=showErrorFrame path=/framesWithError.jsp/ /action The sequence of requests submitted by the browser in this case is: 1.http://homer:8080/frames/updateBean.do?action=showErrorFrame 2.http://homer:8080/frames/testPage.html?origin=frameset 3.http://homer:8080/frames/testPage.html?origin=pagesubmit=submit - SAME 4.http://homer:8080/frames/updateBean.do?action=showErrorFrame - start of reload 5.http://homer:8080/frames/testPage.html?origin=pagesubmit=submit - SAME (request from page) Now I perform EXACTLY the same sequence of actions with Internet Explorer 6.0 (IE), starting with the URL http://homer:8080/frames/updateBean.do?action=showErrorFrame, I see a different sequence of requests submitted from the browser: 1.http://homer:8080/frames/updateBean.do?action=showErrorFrame 2.http://homer:8080/frames/testPage.html?origin=frameset- SAME 3.http://homer:8080/frames/testPage.html?origin=pagesubmit=SUBMIT 4.http://homer:8080/frames/updateBean.do?action=showErrorFrame - start of reload 5.http://homer:8080/frames/testPage.html?origin=frameset- SAME (request from frameset) ___ Vaughan Jackson Development Tumbleweed Communications [EMAIL PROTECTED] / +1 (650) 216 2532 ___ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Thanks! - Advice needed on Stuts versus Struts/Expresso
Well, for starters - First rule of thumb: Always provide one basic generic implementation procedure in step-by-step tutorial format (HelloWorld x2). Is this somewhere? Did I miss this? It is so difficult to open all the configs and try to get an idea of how to build an app, struts integrated, just by studying API's and such. One single little hand-holding tutorial would be all that I would need to get sailing. How important is this? EXTREMELY. When evaluating new solutions, consultants have limited time. If the value of the solution and the way the solution is implemented cannot be clarified briefly and succinctly, the consultant will abandon interest even when the answers may be just around the next corner. I myself have not yet abandoned my interest. With struts, I was able to come to a quick flow sequence because I found tutorials online. I could have never gotten there with the API. Now, I understand the API when I read it. I will make some notes as I continue with my attempts to understand Expresso and will be happy to deliver them if and when I begin to achieve results. Cody Burleson Principal Consultant PwC Consulting Michael Nash [EMAIL PROTECTED] on 01/09/2002 06:02:48 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject: RE: Thanks! - Advice needed on Stuts versus Struts/Expresso Cody: Any and all ideas on how we can make the Expresso doc better *really* will be listened to! Honest! :-) It always lags the code, I think that's the nature of the beast, but the core group are very serious about making the doc as high-quality as the code. We've just upgraded to allow all the core contribs to be able to online edit and upload new doc, which will start to help soon I hope as well. Let us know what we can do better, please! Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 3:00 PM To: Struts Users Mailing List Subject: Re:Thanks! - Advice needed on Stuts versus Struts/Expresso But good luck working with Expresso right off the bat. Does anyone in this whole open source world know anything about proper, usable, and useful documentation (sorry - it just gets frustrating; truth is -- I'm probably just an idiot and I hate to admit it.) - Cody [EMAIL PROTECTED] on 01/09/2002 12:35:04 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re:Thanks! - Advice needed on Stuts versus Struts/Expresso Thanks everyone for the information on moving to struts. It has been most helpful. Still not sure what I am going to do in the long run, but at the very least I will learn expresso so I can make a more informed decision... I am also going to try to get an answer on if they are planning on keeping pace with struts... Thanks again for a lot of excellent points on this topic. Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Accessing form bean data
Hello, This may be a basic question, but I've searched the archives on this to no avail. So here goes... I'm working on making a page that uses a form to select whether a graph should be displayed as a bar or pie chart. My form looks like this: form:form action=InitGraph.do method=POST Select chart type: form:select property=graphType form:options property=graphTypes/ /form:select form:submit property=submit value=Go/ /form:form What I want to do is have the form submit to itself, and then pass the graph type to an image tag in this manner: img border=0 width=500 height=400 src=graph.jsp?type=pie My question is, how can I access the graph type (which is a member in the graph form class) from the image tag? Would it be exposed as a bean property to the JSP page? If so, how to I reference it? Thanks in advance. -- Jason Wells Web Architect Xsilogy, Inc. http://www.xsilogy.com/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: JDeveloper and Tomcat
I could run Tomcat from jbuilder and debug my Application from within JDeveloper 9i.It's also possible to debug jsp's from JDeveloper 9i. I am trying to get CVS for my struts app work in JDeveloper.Any Experts about this in our struts mailing list.. -Original Message- From: Reid Pinchback [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 4:04 PM To: Struts Users Mailing List Subject: Re: JDeveloper and Tomcat Im not a JDeveloper user, but as I recall it is (or at least was) an IDE based on JBuilder and licensed by Borland/Inprise to Oracle. If that is still the case then maybe you need to follow the same steps to integrated Struts with JDeveloper as you would for JBuilder. That means installing the open tool to add the *.tld files to the war you build and remove struts.jar from the Tomcat classpath. Try looking at: http://www.netstore.ch/mesi/strutsTutorial/ and ignore the stuff specific to WebLogic. VEDRE, RANAPRATAP REDDY [EMAIL PROTECTED] wrote: Has anybody integrated Tomcat with JDeveloper. I want to know if we can run struts application using Tomcat from JDeveloper. - Do You Yahoo!? Send FREE video emails in Yahoo! Mail. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Advice needed on Stuts versus Struts/Expresso
I've been looking at Expresso today, I was wondering for UI creation do you guys use struts tags or expresso tags? - Original Message - From: Michael Nash [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 3:55 PM Subject: RE: Advice needed on Stuts versus Struts/Expresso Bill: You shouldn't lose a thing by using Struts/Expresso in combination, as we've incorporated the entire Struts framework into Expresso. On the flip side, you would gain a powerful object/relational mapping layer, background job queuing/scheduling, auto-generated UI's for prototyping, XML UI generation (w/optional XSLT) and a bunch of other good stuff. We've extended the configuration to support a seperate struts-config.xml for each application, and automatically merge them at startup, but basically everything you are doing now in Struts you can do in Expresso, plus what Expresso adds. Of course, I'm a bit biased, I'm lead developer on Expresso. :-) We're currently at release 1.0 of Struts, but upgrades are indeed in the works. Have a look at the doc on the site as well, and don't miss the Expresso Developer's Guide - a lot of good material is in there, but people don't seem to find it sometimes. 200+ pages of doc in total. Regards, Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 10:59 AM To: [EMAIL PROTECTED] Subject: Advice needed on Stuts versus Struts/Expresso Hi all, I've gotten a full app to work with Struts and have a good understanding of how things are supposed to be done and work. Now I am looking at possibly using Expresso to speed development. In anyone's experience what would I lose by moving to Expresso. I can see how it would speed development, but do I lose anything that struts gives me? Is there anything that I would come across that I could not do with Expresso that I could do with Struts? I've read all the JCorporate docs on the struts integration and such, but would like to draw on the experience of those more, well experienced. I guess I am at the point where I understand Struts so I am hesitant to move on to something else if I will just be coming back to struts later. My needs rotate mostly around rapid development of applications. Thanks much for this information and all the previous help in getting me going with struts. PS. For anyone starting with struts, get Ted Husted's struts-catalog and read it once a day while you are learning struts. In the beginning you may not understand it, but as the days go on, more and more will help you out. (Thanks Ted) Bill Chmura Ensign-Bickford Industries, Inc. Information Technologies Department -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Questions regarding action and form interaction - thanks Ted!
First: Apologies for sending this email directly to the list instead of replying. I am not getting emails from the list and I don't know why (I've sent a query to struts-user-owner) To see the original message, go to: http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg20541.html Ted Husted wrote: 2) My initial plan was to forward back to the list form after the update is complete. I initially assumed that the action for this form would be executed again, but it's not. So, I always get a blank form. Is there a way to get this action to run again? If I click the link in my navigation bar to go to this page, the action does run again. You'd have to forward back to the Action. The Actions fun the forms, not the other way around. Thank you very much Ted, for your response on this, it worked. Mike _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Exception deploying struts-logon.war on weblogic6.1sp2
Hi Ted, I am new to struts. I have downloaded struts-logon.war from husted.com and had installed it in applications directory ...on weblogic6.1sp2. I get following exceptions on server console on startup of server. What may have gone wrong? Parse Error at line 49 column 78: Attribute rewrite must be declared for element type forward. org.xml.sax.SAXParseException: Attribute rewrite must be declared for element type forward. at weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java :1008) at weblogic.apache.xerces.validators.common.XMLValidator.validateElement AndAttributes(XMLValidator.java:2733) at weblogic.apache.xerces.validators.common.XMLValidator.callStartElemen t(XMLValidator.java:818) at weblogic.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDo cumentScanner.java:1852) at weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher .dispatch(XMLDocumentScanner.java:1233) at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocu mentScanner.java:380) at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:900) at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:66) at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:108) at javax.xml.parsers.SAXParser.parse(SAXParser.java:155) at javax.xml.parsers.SAXParser.parse(SAXParser.java:77) at org.apache.struts.digester.Digester.parse(Digester.java:716) at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java :1247) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:437) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm pl.java:638) at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub Impl.java:581) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI mpl.java:526) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS ervletContext.java:1078) at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp ServletContext.java:1022) at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4 68) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:404) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:133) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl oymentTarget.java:327) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl oymentTarget.java:143) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe r.java:76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB eanImpl.java:562) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl .java:548) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat ionMBeanImpl.java:285) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 55) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:439) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:180) at $Proxy29.addWebDeployment(Unknown Source) at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe ployment(WebServerMBean_CachingStub.java:1012) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl oymentTarget.java:313) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl oymentTarget.java:143) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB eanImpl.java:562) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl .java:548) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat ionMBeanImpl.java:285) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 55) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBean s(ConfigurationMBeanImpl.java:409) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat ionMBeanImpl.java:287) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 55) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15 23) at