RE: Debug ON/OFF
Hi Shashank, First check out which logging tools you are using. By default the commomns-logging uses hte Simple-Logging. If you are using the log4j for logging purpose, then check out the log4j.properties file. If there is no properties then add one overridding the default setting. thanks and regards kishor -Original Message- From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: Debug ON/OFF Hi All Anybody knows how to make debug on/off to make on/off struts-logging messages. I couldn't see any xml file for struts logging, Pls tell me how to make debug ON or OFF. Shashank S. Dixit Cognizant Technology Solutions Pvt. Ltd. Hinjewadi, Pune Mobile : 98904 25400 An Obstacle is something you see when you take your eyes off the goal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Grid..........
Sounds great.. On 1 Mar 2004, at 06:05, Milind P wrote: Hi All! Iam a new developer using the struts framework... We are developing a web application where in we are using the MVC architecture..Hence we are using the Jsp for the view. Now the problem is our project demands to dsiplay the data and read the same from a grid. So how do I do this . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Grid..........
Hang on one cotton pickin minute... snip We are developing a web application where in we are using the MVC architecture..Hence we are using the Jsp for the view. /snip Since when did MVC imply JSP? -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, 1 March 2004 16:39 To: Struts Users Mailing List Subject: Re: Grid.. Sounds great.. On 1 Mar 2004, at 06:05, Milind P wrote: Hi All! Iam a new developer using the struts framework... We are developing a web application where in we are using the MVC architecture..Hence we are using the Jsp for the view. Now the problem is our project demands to dsiplay the data and read the same from a grid. So how do I do this . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems with UTF-8 and forms
On 03/01/2004 12:29 AM Jon Bohm wrote: BUT if I rewrite my custombean's getValue method it all works fine (except for swedish uppercase letters): public String getValue() { return new String( value.getBytes(), UTF-8); } Still shouldn't be necessary. Apache Tomcat/5.0.12 Java 1.4.2_01-b06 Struts 1.1 (I think - how do I check?) Windows XP (I know, I'm a Linuxdude gone bad) Open up struts.jar in winzip or something and view META-INF/MANIFEST.mf - check implementation-version. So what does the debugging say at the end of your JSPs? Is your response UTF-8 or iso- encoded? I bet it says the page content-type is still iso-8859. How are you setting your struts controller parameter (in struts-config.xml): set-property property=contentType value=text/html; charset=UTF-8/ Do you have any locale-encoding-mapping-list in your web.xml? You don't need it with UTF-8. You also don't need to specify it in any jsp-property-group since the struts controller will handle it. http://www.anassina.com/struts/i18n/i18n.html Good link, but getting a little out-of-date now. You have a better one? :) I wish! If you get this solved, we can condense this thread and post it in the struts wikki. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Debug ON/OFF
I am not using logging yet. Struts is using I think Log4j. Which is in commonsLogging.jar. If I want to make debug statements of struts programms on or off what should I do? Shashank S. Dixit Cognizant Technology Solutions Pvt. Ltd. Hinjewadi, Pune Mobile : 98904 25400 An Obstacle is something you see when you take your eyes off the goal. -Original Message- From: kishor Patil [mailto:[EMAIL PROTECTED] Sent: Monday, 1 March 2004 7:12 PM To: 'Struts Users Mailing List' Subject: RE: Debug ON/OFF Hi Shashank, First check out which logging tools you are using. By default the commomns-logging uses hte Simple-Logging. If you are using the log4j for logging purpose, then check out the log4j.properties file. If there is no properties then add one overridding the default setting. thanks and regards kishor -Original Message- From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: Debug ON/OFF Hi All Anybody knows how to make debug on/off to make on/off struts-logging messages. I couldn't see any xml file for struts logging, Pls tell me how to make debug ON or OFF. Shashank S. Dixit Cognizant Technology Solutions Pvt. Ltd. Hinjewadi, Pune Mobile : 98904 25400 An Obstacle is something you see when you take your eyes off the goal. This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful. Visit us at http://www.cognizant.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Broken pipe problem
Thanks .. :-) I'll read up and give it a try ... --- [EMAIL PROTECTED] wrote: Hi this exception will occur in the following situation. 1. User uses the Stop, Back and forward button while the browser waiting for a respond. 2. He submits 1+ request to the server while the first request is on the process. To avoid that struts has some token mechanism (tokenInValid(), resetToken()) to implement. So that you can find out and filter the user action. We implemented this, and we are able to reduce this exception, but not completely Thanks Mohamed Abdul Khaliq.M IT Specialist SDC2 - Chennai Ph 8272628 Ext 8098 [EMAIL PROTECTED] co.ukTo: [EMAIL PROTECTED] cc: 02/29/2004 09:58 Subject: Broken pipe problem PM Please respond to Struts Users Mailing List Hi there ... :-) I was wondering if someone could help me with a 'broken pipe' error? Every so often, my Tomcat server throws out this error. -- 2004-02-27 09:40:25 - Ctx(/letsco) : Broken pipe in R( /letsco + /editmail.jsp + null) - java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.tomcat.modules.server.Ajp13.send(Ajp13.java:841) at org.apache.tomcat.modules.server.Ajp13.doWrite(Ajp13.java:727) at org.apache.tomcat.modules.server.Ajp13Response.doWrite(Ajp13Interceptor.java:491) at org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:188) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338) at org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:234) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:334) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:402) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:406) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:150) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:183) at org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:126) at org.apache.tomcat.core.OutputBuffer.realWriteChars(OutputBuffer.java:337) at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388) at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:314) at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305) at org.apache.tomcat.core.Response.finish(Response.java:271) at org.apache.tomcat.modules.server.Ajp13Response.finish(Ajp13Interceptor.java:483) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:838) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Intercept or.java:341) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:536) -- Now I'm told that this is a harmless error caused when someone shuts down a browser
Using commons-collections lazylist for nested actionforms
Im about to have a go using the lazylist stuff in commons-collections 2.1 to implement some nested actionforms stuff (previously Ive always been initialising the lists the hard way in my reset method!). http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect ions/ListUtils.html Anyhow , one thing that struck me from reading the description was the bit about... snip Object obj = lazy.get(3); After the above code is executed, obj will contain a new Date instance. Furthermore, that Date instance is the fourth element in the list. The first, second, and third element are all set to null. /snip ...how the elements before the requested one are initialised to null. Does this mean that Im going to encounter problems if the browser decides to submit my parameters in the wrong order for example: foo[2].bob=blah foo[2].baz=yada foo[1].bob=blah foo[1].baz=yada foo[0].bob=blah foo[0].baz=yada My html will have the items in the correct order - but does that necessarily mean the browser has to submit in that order - and if it doesnt will my use of the lazylist stuff be broken? (And I do already know that some broswers submit fields in different orders if you happen to have been messing round with that html on the clientside using javascript to modify the dom synamically though I wont be doing that here) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about File downlods and letting users save a downloaded file. I am losing the original file name.
My Problem is with the URL presented when i get prompted to save a file. I am retreiving files/resources from a database and want to let the users browse them at will. The code below works except when i get prompted to Save or Open the file. The name of the file is the name of my Action Mapping. in this case Attachments.do How can i place the file name i saved in the database in the browser. The Action below it an example from the mailing list. public final class AttachmentsAction extends eCABaseAction { /** * @param mapping The ActionMapping used to select this instance * @param actionForm The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * @exception IOException if an input/output error occurs * @exception ServletException if a servlet exception occurs * @exception SessionTimeoutException if the session times out, user must relog */ public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception, IOException, ServletException, SessionTimeoutException { Log log = LogFactory.getLog(AttachmentsAction.class); log.debug(At Template); checkSession(request); securityAccess cmap=(securityAccess)mapping; cmap.validateAccess(request); int id = 0; try { id = Integer.parseInt(request.getParameter(id)); } catch (NumberFormatException ex) { throw new NoValidWebData(error.NoWebData.issueNumber.Missing); } IeCAService serviceImpl = this.geteCAService(); Attachment attch = serviceImpl.getAttachment(new Integer(id)); response.setContentType(attch.getContentType()); response.setContentLength(attch.getAttachment().length); ServletOutputStream ostream = response.getOutputStream(); ostream.write(attch.getAttachment()); ostream.flush(); return new ActionForward(null); } actionpath=/AttachmentGet type=com.myplace.AttachmentsAction name=AttachmentGet scope=request validate=false set-property property=accessLevel value=ASU / /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Debug ON/OFF
Hi Shashank, If you have not configured the Struts Logging mechnism i.e. log4j / jdk1.4 is not in the classpath. Then the Struts makes use of the SimpleLog. Simple implementation of Log that sends all enabled log messages, for all defined loggers, to System.err. The following system properties are supported to configure the behavior of this logger: org.apache.commons.logging.simplelog.defaultlog - Default logging detail level for all instances of SimpleLog. Must be one of (trace, debug, info, warn, error, or fatal). If not specified, defaults to info. org.apache.commons.logging.simplelog.log.x - Logging detail level for a SimpleLog instance named x. Must be one of (trace, debug, info, warn, error, or fatal). If not specified, the default logging detail level is used. org.apache.commons.logging.simplelog.showlogname - Set to true if you want the Log instance name to be included in output messages. Defaults to false. org.apache.commons.logging.simplelog.showShortLogname - Set to true if you want the last componet of the name to be included in output messages. Defaults to true. org.apache.commons.logging.simplelog.showdatetime - Set to true if you want the current date and time to be included in output messages. Default is false. I think this will help you out. Set the system properties as mentioned above kishor -Original Message- From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 2:39 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Debug ON/OFF I am not using logging yet. Struts is using I think Log4j. Which is in commonsLogging.jar. If I want to make debug statements of struts programms on or off what should I do? Shashank S. Dixit Cognizant Technology Solutions Pvt. Ltd. Hinjewadi, Pune Mobile : 98904 25400 An Obstacle is something you see when you take your eyes off the goal. -Original Message- From: kishor Patil [mailto:[EMAIL PROTECTED] Sent: Monday, 1 March 2004 7:12 PM To: 'Struts Users Mailing List' Subject: RE: Debug ON/OFF Hi Shashank, First check out which logging tools you are using. By default the commomns-logging uses hte Simple-Logging. If you are using the log4j for logging purpose, then check out the log4j.properties file. If there is no properties then add one overridding the default setting. thanks and regards kishor -Original Message- From: Dixit, Shashank (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:27 PM To: [EMAIL PROTECTED] Subject: Debug ON/OFF Hi All Anybody knows how to make debug on/off to make on/off struts-logging messages. I couldn't see any xml file for struts logging, Pls tell me how to make debug ON or OFF. Shashank S. Dixit Cognizant Technology Solutions Pvt. Ltd. Hinjewadi, Pune Mobile : 98904 25400 An Obstacle is something you see when you take your eyes off the goal. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question about File downlods and letting users save a downloaded file. I am losing the original file name.
Answered My own Question. Thank you Jacob -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:04 AM To: Struts Users Mailing List Subject: [OT] RE: File Download? This is what we use for file downloads (Excel/PDF files). String contentType = this.beanWriter.getContentType(); response.setContentType(contentType); response.setHeader(Content-Disposition,attachment;filename=\ + this.beanWriter.getFileName(request) + \); And have your struts action return null. -Jacob -Original Message- From: Stephan Jones [mailto:[EMAIL PROTECTED] Sent: March 1, 2004 1:42 AM To: [EMAIL PROTECTED] Subject: Question about File downlods and letting users save a downloaded file. I am losing the original file name. My Problem is with the URL presented when i get prompted to save a file. I am retreiving files/resources from a database and want to let the users browse them at will. The code below works except when i get prompted to Save or Open the file. The name of the file is the name of my Action Mapping. in this case Attachments.do How can i place the file name i saved in the database in the browser. The Action below it an example from the mailing list. public final class AttachmentsAction extends eCABaseAction { /** * @param mapping The ActionMapping used to select this instance * @param actionForm The optional ActionForm bean for this request (if any) * @param request The HTTP request we are processing * @param response The HTTP response we are creating * @exception IOException if an input/output error occurs * @exception ServletException if a servlet exception occurs * @exception SessionTimeoutException if the session times out, user must relog */ public ActionForward execute (ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception, IOException, ServletException, SessionTimeoutException { Log log = LogFactory.getLog(AttachmentsAction.class); log.debug(At Template); checkSession(request); securityAccess cmap=(securityAccess)mapping; cmap.validateAccess(request); int id = 0; try { id = Integer.parseInt(request.getParameter(id)); } catch (NumberFormatException ex) { throw new NoValidWebData(error.NoWebData.issueNumber.Missing); } IeCAService serviceImpl = this.geteCAService(); Attachment attch = serviceImpl.getAttachment(new Integer(id)); response.setContentType(attch.getContentType()); response.setContentLength(attch.getAttachment().length); ServletOutputStream ostream = response.getOutputStream(); ostream.write(attch.getAttachment()); ostream.flush(); return new ActionForward(null); } actionpath=/AttachmentGet type=com.myplace.AttachmentsAction name=AttachmentGet scope=request validate=false set-property property=accessLevel value=ASU / /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Using commons-collections lazylist for nested actionforms
Cheers mate! Exactly what I was hoping to hear :-) -Original Message- From: Arron Bates [mailto:[EMAIL PROTECTED] Sent: Monday, 1 March 2004 17:57 To: [EMAIL PROTECTED] Subject: Re: Using commons-collections lazylist for nested actionforms No worries about the order of the submit. The nulls are just place holders. Whenever an oject for a given index is requested, it looks to see if it's out of bounds, or null. In both those cases it will use the factory to make an object and populate the index. The other scenario is that there's already a non-null object for that index, in which case it's already solved. Cheers, Arron. Im about to have a go using the lazylist stuff in commons- collections 2.1 to implement some nested actionforms stuff (previously Ive always been initialising the lists the hard way in my reset method!). http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect ions/ListUtils.html Anyhow , one thing that struck me from reading the description was the bit about... snip Object obj = lazy.get(3); After the above code is executed, obj will contain a new Date instance. Furthermore, that Date instance is the fourth element in the list. The first, second, and third element are all set to null. /snip ...how the elements before the requested one are initialised to null. Does this mean that Im going to encounter problems if the browser decides to submit my parameters in the wrong order for example: foo[2].bob=blah foo[2].baz=yada foo[1].bob=blah foo[1].baz=yada foo[0].bob=blah foo[0].baz=yada My html will have the items in the correct order - but does that necessarily mean the browser has to submit in that order - and if it doesnt will my use of the lazylist stuff be broken? (And I do already know that some broswers submit fields in different orders if you happen to have been messing round with that html on the clientside using javascript to modify the dom synamically though I wont be doing that here) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameters to an Action in struts-config.xml
Hi Is there a why to give config parameters to an Action entry in the struts-config.xml (I mean several parameters - the parameter attribute isn't enuff) Thanks Boaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Parameters to an Action in struts-config.xml
Yes. Here is an example: action path=/blah type=com.example.MyAction className=com.example.MyActionMapping name=blah scope=request set-property property=foo value=hamlet/ set-property property=bar value=othello/ set-property property=baz value=romeo / /action You set the className attribute of the actionmapping to your ActionMapping subclass that has setters (and usually getters) for the properties you want. You have to set those properties using the set-property element (darn nuisance) to get around the dtd. And remember that the properties belong not to the action instance but to the mapping so in your action you could use mapping.getFoo() to get the value... hth Andrew -Original Message- From: Boaz Barkai [mailto:[EMAIL PROTECTED] Sent: Monday, 1 March 2004 18:05 To: 'Struts Users Mailing List' Subject: Parameters to an Action in struts-config.xml Hi Is there a why to give config parameters to an Action entry in the struts-config.xml (I mean several parameters - the parameter attribute isn't enuff) Thanks Boaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts and DHTML
Hi, maybe the question is of topic but. I need to mix javascript in my strut application. I am looking some DHTML taglibs that would help me to build proper javascript code for things like DHTML menus... Does it exist ? I also try to develop my own tags with java forte CE It works ... but when I try to use style I got a strange behavior I output this code to the JSPWriter :: style={background-color:red; border-style: solid; border-width: 1; border-color:blue;} and thats what I get in my Browser :: style=BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: blue; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: blue; BORDER-TOP-COLOR: blue; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: blue Any idea ? Regards, Michel Van Asten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Broken pipe problem
This exception is harmless exception. You can also ignore it ... If you want to. It doesn't stop weblogic from processing requests. Regards, Abhishek. -Original Message- From: Ray [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 2:59 PM To: Struts Users Mailing List Subject: Re: Broken pipe problem Thanks .. :-) I'll read up and give it a try ... --- [EMAIL PROTECTED] wrote: Hi this exception will occur in the following situation. 1. User uses the Stop, Back and forward button while the browser waiting for a respond. 2. He submits 1+ request to the server while the first request is on the process. To avoid that struts has some token mechanism (tokenInValid(), resetToken()) to implement. So that you can find out and filter the user action. We implemented this, and we are able to reduce this exception, but not completely Thanks Mohamed Abdul Khaliq.M IT Specialist SDC2 - Chennai Ph 8272628 Ext 8098 [EMAIL PROTECTED] co.ukTo: [EMAIL PROTECTED] cc: 02/29/2004 09:58 Subject: Broken pipe problem PM Please respond to Struts Users Mailing List Hi there ... :-) I was wondering if someone could help me with a 'broken pipe' error? Every so often, my Tomcat server throws out this error. -- 2004-02-27 09:40:25 - Ctx(/letsco) : Broken pipe in R( /letsco + /editmail.jsp + null) - java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.tomcat.modules.server.Ajp13.send(Ajp13.java:841) at org.apache.tomcat.modules.server.Ajp13.doWrite(Ajp13.java:727) at org.apache.tomcat.modules.server.Ajp13Response.doWrite(Ajp13Interceptor.java :491) at org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:188) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:338) at org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java: 234) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:334) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:402) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:406) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:150) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:183) at org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:126) at org.apache.tomcat.core.OutputBuffer.realWriteChars(OutputBuffer.java:337) at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388) at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:314) at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305) at org.apache.tomcat.core.Response.finish(Response.java:271) at org.apache.tomcat.modules.server.Ajp13Response.finish(Ajp13Interceptor.java: 483) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:838) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int ercept or.java:341) at
Avoiding app server restarts while doing struts development
Hello All, I develop my apps on weblogic app server. When doing development on struts I feel for every little operation (change in resource file, change in source file, change config files) it requires me to either redeploy the app or to restart the app server. I have tried to switch to the debug mode, but still the number of redeploys or restarts have not reduced. I find these very time-consuming. Has someone figured out a way in which they can do development without redeployment at every single change? Regards, Abhishek. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic validation
Hi, does anybody have idea, how can I dynamicaly change, which field from form will be validated against validation defined in validation.xml? Which field should be validated will be determined on data from DB or other source Regards miro
Re: multipart-request / file upload problem
I'm going to put this another way: what's the secret with file upload requests? I can't see my file parameter in the request parameters when I submit the form with the multipart-request. Adam On 02/29/2004 07:05 PM Adam Hardy wrote: I use the Commons multipart request handler stuff to set up a DynaActionForm properly for my file upload so: form-bean name=linklibImportForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=bookmarksFile type=org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFile/ /form-bean which works fine, but in some circumstances I want to manually create this form, grab the file and save the DynaActionForm (in a filter). Like so: ActionForm form = RequestUtils.createActionForm(request, actionMapping, moduleConfig, actionServlet); form.reset(actionMapping, request); BeanUtils.populate(form, request.getParameterMap()); But it isn't working. My file comes back as null. Anyone know why or have a solution? -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts and DHTML
Hi Michel, I don't know what the solution to your jsp problem is, but, as a side note I would use html style tags for css specification and html element 'class=' on your elements. It enables you to reuse/extend css references that you have defined elsewhere. You can even add css rules for your menus. It will make your dhtml code a lot easier to maintain as well. Chris -Original Message- From: Michel Van Asten [mailto:[EMAIL PROTECTED] Sent: 01 March 2004 10:51 To: Struts Users Mailing List (E-mail) Subject: struts and DHTML Hi, maybe the question is of topic but. I need to mix javascript in my strut application. I am looking some DHTML taglibs that would help me to build proper javascript code for things like DHTML menus... Does it exist ? I also try to develop my own tags with java forte CE It works ... but when I try to use style I got a strange behavior I output this code to the JSPWriter :: style={background-color:red; border-style: solid; border-width: 1; border-color:blue;} and thats what I get in my Browser :: style=BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: blue; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: blue; BORDER-TOP-COLOR: blue; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: blue Any idea ? Regards, Michel Van Asten *** This e-mail and its attachments are confidential and are intended for the above named recipient only. If this has come to you in error, please notify the sender immediately and delete this e-mail from your system. You must take no action based on this, nor must you copy or disclose it or any part of its contents to any person or organisation. Statements and opinions contained in this email may not necessarily represent those of Littlewoods. Please note that e-mail communications may be monitored. The registered office of Littlewoods Limited and its subsidiaries is 100 Old Hall Street, Liverpool, L70 1AB. Registered number of Littlewoods Limited is 262152. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts and DHTML
You want to put all the stuff that you need to be dynamic in div with id's .. then layer the javascript and css on after. This will allow you to get a minimal version running (no dhtml) and get the dhtml stuff running on one browser at a time. Trying to throw it all in together will push your deadline beyond a measurable time span. So server-side user agent detection would be useful, as then you can hide-show dynamic bits when the page is loaded. Beyond that there's no fixed way of going about the problem, and i doubt that forte or any tag lib will do it for you. On 1 Mar 2004, at 11:51, Michel Van Asten wrote: Hi, maybe the question is of topic but. I need to mix javascript in my strut application. I am looking some DHTML taglibs that would help me to build proper javascript code for things like DHTML menus... Does it exist ? I also try to develop my own tags with java forte CE It works ... but when I try to use style I got a strange behavior I output this code to the JSPWriter :: style={background-color:red; border-style: solid; border-width: 1; border-color:blue;} and thats what I get in my Browser :: style=BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: blue; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: blue; BORDER-TOP-COLOR: blue; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: blue Any idea ? Regards, Michel Van Asten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[FRIDAY] YA Stuts In Action / JUnit in Action Trivia Quiz
Last time, we asked contestants to recite the jingle from The Demolished Man by Alfred Bester and the Fear litany from Dune -OR- name two favorite changes, improvements, or new additions to theStruts Nightly Build since 1.1 was released (now known as Struts 1.2.0 yeah! /). The sought answers were: Demolished Man: Tenser, said the Tensor. Tenser, said the Tensor. Tension, apprehension, and dissension have begun. Dune: I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. I will permit it to pass over me and through me. And when it has gone past I will turn the inner eye to see its path. Where the fear has gone there will be nothing. Only I will remain. As to favorite changes, we had votes for * Maven project files (still under development!) * Tiles EL Tag Library * Session-Scoped ActionMessages * Struts-Chain (still unreleased) Of coursem, we had several correct responses. The lucky winner, selected arbitrarily, is: RANDY DILLON (Randy, please send your surface mail address to [EMAIL PROTECTED], and indicate whether you would like JUnit in Action or Struts in Action) NEXT: To play, correctly answer -- *DIRECTLY* to me at [EMAIL PROTECTED] -- one or both of these questions. (1) One of the original creators of JUnit now works on a popular open source IDE (with some excellent Struts addins!). Name this computer scientist. -OR- (2) A SF author, best know for his edgy short stories, wrote one of the first Star Treck episodes dealing with time travel. Later, he served as the creative consultant for another popular TV series, in which time travel plays a pivotal role. Name this SF author and his single Star Trek episode. Send your answers to [EMAIL PROTECTED] Contestants sending -- *DIRECTLY* to me at [EMAIL PROTECTED] -- correct answers to the to the Computer question *OR* the SF question to me will be eligible for the next drawing. (the correct answers being the ones I expect). Prior winners excluded (but feel free to play anyway). The contest will run until Thursday, March 11, 2004, 23:59:59, so everyone has a chance to participate. The lucky winner selected from the correct responses will receive theirchoice of either a signed copy of Struts in Action *OR* JUnit in Action. (Signed only by me, I'm afraid, my co-authors are scattered across the globe -- gotta love the Internet!) PLEASE be sure to reply to [EMAIL PROTECTED] If you have an interesting science fiction or computer science question that is hard, or at least fun, to google, please send it to me. The first to suggest a question that we use also wins! -Ted. PLEASE be sure to reply to [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
validation.xml with German Characters (sauch as uuml;)
Hi, I want to use German Characters in validation.xml but when I use the expression below I get an error message attached to the end of this email: constant constant-nameusername/constant-name constant-value[EMAIL PROTECTED]uuml;]+$/constant-value /constant Error message: Reference to undefined entity uuml;. org.xml.sax.SAXParseException: Reference to undefined entity uuml;. How can I use German Characters? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tiles - smth like addToList?
Hi people! Concerning tiles definition and extension of those. First part-o-mail: concrete problem Second part-o-mail: a more general approach (beginning of it ;) First part: I see the need for extending the entries of a putList without overriding the entries in the super definition. Example: definition name=.head.common path=htmlHead.jsp putList name=httpEquiv item value=pragma link=no-cache / item value=cache-control link=no-cache / item value=expires link=0 / /putList /definition definition name=.head.project extends=.head.common putList name=httpEquiv item value=expires link=1 / item value=description link=tiles definition extension example / /putList /definition so usually this would replace the list in .head.common with the one in .head.project desired behaviour would be to just add the new entries (description) and overwrite those which are already present (expires). Even without the feature to overwrite old values, it would be really nice to have a tag for that (i.e. addToList name=httpEquiv..). At the moment I use 'specialised' definitions (wrapping those attributes likely to change in another definition), as I didn't go deep into tiles code until now. But that just works in some cases. Second part: I think to have this as a general capability would make a lot of sense (virtually adding+replacing nodes in the definition to those the superdefinition at the same place of hierarchy) Especially if the other config files are going to support extension, too. So questions arise; did anybody do this? do others think there's a real need? how to judge, which nodes should be overwritten? thanks for your patience, Axel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validation.xml with German Characters (sauch as uuml;)
Moin zsolt! hi didn't do this before, so i'm not to sure about it. looks like your current problem is a xml related one import the namespace of html, or define the entity by yourself (should be something on selfhtml.teamone.de about it...) if it works with the validator, i don't know besides... if anybody knows, if struts uses internationalisation on the validition.xml, i'd be glad to know :))) lg, Axel On 2004-03-01 at 14:29:52 +0100, Zsolt Koppany wrote: Hi, I want to use German Characters in validation.xml but when I use the expression below I get an error message attached to the end of this email: constant constant-nameusername/constant-name constant-value[EMAIL PROTECTED]uuml;]+$/constant-value /constant Error message: Reference to undefined entity uuml;. org.xml.sax.SAXParseException: Reference to undefined entity uuml;. How can I use German Characters? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: is struts UI internationalized?
yes, you can i use smth like: bean:define id=buttonText bean:message key=button.submit / /bean:define html:submit value=${buttonText} / hope it helps, Axel On 2004-02-24 at 09:50:21 -0500, Glanville, Jay wrote: Are the UI components of Struts internationalized for me, or do I need to do that myself? For example, the html:submit / and html:cancel / tags create buttons with the text Submit and Cancel on them. When I'm in a different locale, do these buttons get created with text based on that locale's language? Or do I have to implement my own internationalization by doing something like the following: html:submit bean:message key=general.submit / /html:submit Thanks JDG -- Jay Glanville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: validation.xml with German Characters (sauch as uuml;)
Hi guys, I had similar issues with Greek. Certain regular expressions that were supposed to work with Unicode characters, actually didn't. A Struts fellow suggested changing the xml's encoding to UTF-8 as follows ?xml version=1.0 encoding=UTF-8 ? I was then able to insert Greek characters directly, so it should work with German also. Hope that helps, Theo - Original Message - From: Axel Gross [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:47 PM Subject: Re: validation.xml with German Characters (sauch as uuml;) Moin zsolt! hi didn't do this before, so i'm not to sure about it. looks like your current problem is a xml related one import the namespace of html, or define the entity by yourself (should be something on selfhtml.teamone.de about it...) if it works with the validator, i don't know besides... if anybody knows, if struts uses internationalisation on the validition.xml, i'd be glad to know :))) lg, Axel On 2004-03-01 at 14:29:52 +0100, Zsolt Koppany wrote: Hi, I want to use German Characters in validation.xml but when I use the expression below I get an error message attached to the end of this email: constant constant-nameusername/constant-name constant-value[EMAIL PROTECTED]uuml;]+$/constant-value /constant Error message: Reference to undefined entity uuml;. org.xml.sax.SAXParseException: Reference to undefined entity uuml;. How can I use German Characters? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SwitchAction
My SwitchAction doesn't work, in my struts-congig.xml I put this: action path=goToComer type=org.apache.struts.actions.SwitchAction / at my struts-config-comer.xml I have this: !-- Pesquisa de Clientes -- action attribute=ComClienteListaIBean input=/comer/popups/wndComBuscaCliente.jsp name=ComClienteListaIBean path=/pesqClientes type=com.topit.comer.action.ClienteBuscaAction validate=false forward name=sucesso path=/popups/wndComBuscaCliente.jsp redirect=true / /action and type this on internet explorer: http://localhost:8080/TopitSGI/goToComer.do?prefix=/comerpage=/pesqClientes.do and the result is: The requested resource (/goToComer.do) is not available What I'm forget ?? Obrigado Daniel S.
RE: Avoiding app server restarts while doing struts development
HI, I guess those changes,which have 'context scope', need Always a redeploy Only changes that don't need a redeploy can be jsp changes (provided that You deploy your application as a 'directory' rather than war file) Regards marco -Original Message- From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] Sent: 01 March 2004 11:28 To: 'Struts Users Mailing List' Subject: Avoiding app server restarts while doing struts development Hello All, I develop my apps on weblogic app server. When doing development on struts I feel for every little operation (change in resource file, change in source file, change config files) it requires me to either redeploy the app or to restart the app server. I have tried to switch to the debug mode, but still the number of redeploys or restarts have not reduced. I find these very time-consuming. Has someone figured out a way in which they can do development without redeployment at every single change? Regards, Abhishek. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-form vs struts html
Newbie here trying to make sense out of usage of these two tag libraries. I am using struts 1.1. Should I just use struts-html instead of struts-form? I haven't looked really close but there appears to be overlap. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Avoiding app server restarts while doing struts development
How about not redeploying on every single change and do things in batches? On 1 Mar 2004, at 15:18, Marco Mistroni wrote: HI, I guess those changes,which have 'context scope', need Always a redeploy Only changes that don't need a redeploy can be jsp changes (provided that You deploy your application as a 'directory' rather than war file) Regards marco -Original Message- From: Abhishek Srivastava [mailto:[EMAIL PROTECTED] Sent: 01 March 2004 11:28 To: 'Struts Users Mailing List' Subject: Avoiding app server restarts while doing struts development Hello All, I develop my apps on weblogic app server. When doing development on struts I feel for every little operation (change in resource file, change in source file, change config files) it requires me to either redeploy the app or to restart the app server. I have tried to switch to the debug mode, but still the number of redeploys or restarts have not reduced. I find these very time-consuming. Has someone figured out a way in which they can do development without redeployment at every single change? Regards, Abhishek. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: validation.xml with German Characters (sauch as uuml;)
I tried that but it didn't help either. it is strange because I can use the following expression does work: constant constant-namefilename/constant-name constant-value^[^\\/:*?quot;lt;gt;|]+$/constant-value /constant Zsolt -Original Message- From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:09 PM To: Struts Users Mailing List Subject: Re: validation.xml with German Characters (sauch as uuml;) Hi guys, I had similar issues with Greek. Certain regular expressions that were supposed to work with Unicode characters, actually didn't. A Struts fellow suggested changing the xml's encoding to UTF-8 as follows ?xml version=1.0 encoding=UTF-8 ? I was then able to insert Greek characters directly, so it should work with German also. Hope that helps, Theo - Original Message - From: Axel Gross [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:47 PM Subject: Re: validation.xml with German Characters (sauch as uuml;) Moin zsolt! hi didn't do this before, so i'm not to sure about it. looks like your current problem is a xml related one import the namespace of html, or define the entity by yourself (should be something on selfhtml.teamone.de about it...) if it works with the validator, i don't know besides... if anybody knows, if struts uses internationalisation on the validition.xml, i'd be glad to know :))) lg, Axel On 2004-03-01 at 14:29:52 +0100, Zsolt Koppany wrote: Hi, I want to use German Characters in validation.xml but when I use the expression below I get an error message attached to the end of this email: constant constant-nameusername/constant-name constant-value[EMAIL PROTECTED]uuml;]+$/constant-value /constant Error message: Reference to undefined entity uuml;. org.xml.sax.SAXParseException: Reference to undefined entity uuml;. How can I use German Characters? Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user-guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getting started
I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) org.apache.jsp.index_jsp._jspService(index_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What am I doing wrong? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
replacing messages tag with fmt tag - can both exist at 1x?
does anyone have the messages tag working in the same application as the fmt tag using the fmt tag for displaying messages in some pages and messages for other pages? can you implement both at once? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I have been extremely happy with IDEA on the MacOS X platform, although Mac was a little late getting a jdk1.4 up and running. I'm on Jaguar, have not migrated to Panther... -jeff On Monday, March 1, 2004, at 09:07 AM, Paul, R. Chip wrote: I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user- guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user- guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Splitting struts-config into multiple jar and read them as resource stream
Hi, we have many projects whose output is a single jar: - two general framework projects; - more than 8 specific functional projects, each focused on a particular functional area; All those projects have a source structure like this: | |- java packages (struts action files plus some other not strictly related to struts) |- xsl (our MVC views) |- xml (our specific config files) |- struts-config (struts-config.xml with only action mappings related to this functional project, so only related to those action files) Each as a plug-in. Then, we have many web-apps whose output is an installable war. All those web-apps are made including some or all the jar described above. Each web-app has one struts-config with the following sections: - plug-in (an entry for each framework + functional jar) - global exception - global forward - request-processor We need to merge all these struts-config pieces at run-time (web-apps start-up), reading them from each jar, as resource stream. For this reason, we cannot use the comma-delimited list of multiple struts-config files feature of Struts 1.1. What we made is to delegate each plug-in to notify his presence by calling, in a subclassed ActionServlet, a method with this signature: - public void addStrutsConfigXML (Class callerClass, String prefix, String StrutsConfigXML) This method was written copying some part of Struts ActionServlet's code. Here is the main code (without any catch and other not important code): public void addStrutsConfigXML (Class callerClass, String prefix, String StrutsConfigXML) { ModuleConfig modConfig = null; if (prefix == ) { modConfig = (ModuleConfig) getServletContext().getAttribute(Globals.MODULE_KEY); } else { ModuleConfigFactory factoryObject = ModuleConfigFactory.createFactory(); modConfig = factoryObject.createModuleConfig(prefix); } Digester digester = initConfigDigester(); try { InputStream input = callerClass.getResourceAsStream(strutsConfigXML); if(input != null) { digester.push(modConfig); digester.parse(input); if (prefix != ) { getServletContext().setAttribute(Globals.MODULE_KEY + prefix, modConfig); } } } } A tipical call is something like this, made in the init method of the plug-in: - ((MyActionServlet)servlet).addStrutsConfigXML(getClass(), , /struts_config/function1.xml); We'd like not to subclass ActionServlet, but is really difficult to do something like this outside the ActionServlet hierarchy mainly 'cause of the call to initConfigDigester(), that's obviously protected. The questions are: - is there a way to do the same without subclassing ActionServlet? - do you think is it reasonable to include a similar feature in the main source tree on CVS (dynamic read pieces of struts-config from jar files)? Thanks, Filippo Munafò - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:23 AM To: Struts Users Mailing List Subject: Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) I have been extremely happy with IDEA on the MacOS X platform, although Mac was a little late getting a jdk1.4 up and running. I'm on Jaguar, have not migrated to Panther... -jeff On Monday, March 1, 2004, at 09:07 AM, Paul, R. Chip wrote: I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user- guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user- guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[REPOST] Problem updating bean from multi-select box
Hi, I posted this a week ago and didn't get a resolution - now I'm back on the case I would appreciate a few ideas on what else I could try:- Here's a bit more info (bean names etc sanitised to protect the innocent...) The main FormBean:- public class MyFormBean extends MyAncestorFormBean { private MyBean myBean = null; snip getters/setters and other stuff } The embedded bean:- public class MyBean extends SomeOtherBean { private Collection myCollection = null; private Collection myCollectionListData = null; snip getters/setters and other stuff } Relevant content of the JSP with the multi-select box:- html:select property=myBean.myCollection multiple=true size=7 html:options name=myFormBean property=myBean.myCollectionListData/ /html:select Error log:- DEBUG 2004-03-01 15:15:39,437 [worker2] [EMAIL PROTECTED] - org.apache.commons.beanutils.BeanUtils Target name = myCollection DEBUG 2004-03-01 15:15:39,447 [worker2] [EMAIL PROTECTED] - org.apache.commons.beanutils.ConvertUtils Convert string 'Lalalalala' to class 'java.util.Collection' DEBUG 2004-03-01 15:15:39,447 [worker2] [EMAIL PROTECTED] - org.apache.commons.beanutils.ConvertUtils Using converter [EMAIL PROTECTED] javax.servlet.ServletException: BeanUtils.populate at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1098) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at bss.athena.framework.controller.FrameworkServlet.process(FrameworkServlet.ja va:149) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:520) at javax.servlet.http.HttpServlet.service(HttpServlet.java:772) at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) at com.persistence.web.JMillConnection.run(JMillConnection.java:1172) at com.persistence.web.JMillConnection.run(JMillConnection.java:292) at com.persistence.web.JMillThreadPool$WorkerThread.run(JMillThreadPool.java:96 ) Basically, I have a field on a page which is a multi-select box showing 7 items. The currently selected values are in myCollection, the available values are in myCollectionListData. The HTML SELECT displays fine with all the options but when I submit the page, and Struts (more specifically Jakarta Commons), tries to put the data back into the form bean, it blows up with the error above. Am I missing something or will the above just never work? If I'm barking up the wrong tree can anyone suggest an alternative approach? Thanks, Andrew -Original Message- From: Andrew Bate Sent: 23 February 2004 10:47 To: '[EMAIL PROTECTED]' Subject: Problem updating bean from multi-select box Hi, I am having a problem with the internals of BeanUtils/RequestUtils when my posting changes of a form to an action where the page contains a multi-select box. Can anyone spot what I am doing wrong from the code snippets below..? [MyBean] (inside the Form Bean) public void setMyFieldList(Collection myFieldList) (list containing the options to choose from) public Collection getMyFieldList() public void setMyField (Collection myField) (the field in question, multi-option) public Collection getMyField() [JSP] html:select property=myBean.myField multiple=true size=7 html:options name=myFormBean property=myBean.myFieldList/ /html:select The page renders fine and automatically selects the right items in the list but when the page is updated things blow up trying to update the data back into the bean inside RequestUtils. Do I need to do anything else to tell the posted data to go back into the main field (which is a collection)? Thanks, Andrew -- Andrew Bate Serco Justice Direct Line: (01452) 880433 Email: [EMAIL PROTECTED] This e-mail and any attachments may contain confidential and/or privileged material; it is for the intended addressee(s) only. If you are not a named addressee, you must not use, retain or disclose such information. Serco cannot guarantee that the e-mail or any attachments are free from viruses. The views expressed in this e-mail are those of the originator and do not necessarily represent the views of Serco. Nothing in this e-mail shall bind Serco in any contract or obligation. Serco Group plc. Registered in England and Wales. No: 2048608 Registered Office: Serco House, 16 Bartley Wood Business Park, Bartley Way, Hook, Hampshire, RG27 9UY, United Kingdom. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: replacing messages tag with fmt tag - can both exist at 1x?
Yes, just point them to the same file. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Menke, John [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:16 AM Subject: replacing messages tag with fmt tag - can both exist at 1x? does anyone have the messages tag working in the same application as the fmt tag using the fmt tag for displaying messages in some pages and messages for other pages? can you implement both at once? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I use xcode on osx and personally i prefer it to those swing based things, (although IDEA I hear is in a class of its own). Xcode isn't as bigger leap at apple would have you believe I had project builder doing the same sorts of things with ant. But its quite nice that all the basics are there (JBoss-tomcat, ant, xdoclet) and you can create you own templates. Does all you need without messing with your stuff too much like eclipse. Its a different kettle of fish to the old java development on MacOS that you mentioned. On 1 Mar 2004, at 16:45, Nguyen, Hien wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 10:23 AM To: Struts Users Mailing List Subject: Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) I have been extremely happy with IDEA on the MacOS X platform, although Mac was a little late getting a jdk1.4 up and running. I'm on Jaguar, have not migrated to Panther... -jeff On Monday, March 1, 2004, at 09:07 AM, Paul, R. Chip wrote: I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user- guide.html#Overriding_Stated_Dependen cies Properties are defined like so: (http://maven.apache.org/reference/user- guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin - To unsubscribe,
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NullPointerException struts form is null
Hi, Struts form is giving null in my action class .execute().Below are my files.Hep appreciated.Thanks import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * * @struts.action * path=/addTeacher * name=teacherAddForm * scope=request * validate=false * * @struts.action-forward * name=success * path=/teachers.jsp * * @struts.action-forward * name=failure * path=/error.jsp */ public final class TeacherAddAction extends Action { /** * @param actionmapping The ActionMapping * @param actionform The ActionForm object * @param httpservletrequest The httpservletrequest of the incoming request * @param httpservletresponse The httpservletresponse corresponding to the request * @param ActionForward The return path */ public ActionForward execute( ActionMapping mapping, ActionForm actionform, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println(In TeacherAddAction:); TeacherAddForm teacherAddForm = (TeacherAddForm) actionform; if (teacherAddForm == null) teacherAddForm = new TeacherAddForm(); else System.out.println(teacherAddForm is not null); try { Teacher teacher= null; teacher.setLast(teacherAddForm.getLast()); ** Thanks! - Do you Yahoo!? Get better spam protection with Yahoo! Mail
RE: java.lang.NullPointerException struts form is null
Well... doublecheck your mapping in struts config. If you misspelled the class name or got the wrong form name struts can be rather silent about it and just give you a null form! -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:29 To: [EMAIL PROTECTED] Subject: java.lang.NullPointerException struts form is null Hi, Struts form is giving null in my action class .execute().Below are my files.Hep appreciated.Thanks import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * * @struts.action * path=/addTeacher * name=teacherAddForm * scope=request * validate=false * * @struts.action-forward * name=success * path=/teachers.jsp * * @struts.action-forward * name=failure * path=/error.jsp */ public final class TeacherAddAction extends Action { /** * @param actionmapping The ActionMapping * @param actionform The ActionForm object * @param httpservletrequest The httpservletrequest of the incoming request * @param httpservletresponse The httpservletresponse corresponding to the request * @param ActionForward The return path */ public ActionForward execute( ActionMapping mapping, ActionForm actionform, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println(In TeacherAddAction:); TeacherAddForm teacherAddForm = (TeacherAddForm) actionform; if (teacherAddForm == null) teacherAddForm = new TeacherAddForm(); else System.out.println(teacherAddForm is not null); try { Teacher teacher= null; teacher.setLast(teacherAddForm.getLast()); ** Thanks! - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
snip Feeling Like I Just Started Another OS Shouting Match /snip Yeh, cos windows is like really really g00d. Yeh. All us 133t [EMAIL PROTECTED] d00ds use it n' stuff. So dont be like putting it down cos its totally 133t and like .net will [EMAIL PROTECTED] owns linux and mac soon. Yeh. Ye gods! Mother warned me about staying up past bedtime. Looks like its all true. (Im outta here. Night all!) ;- -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:24 To: Struts Users Mailing List Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.NullPointerException struts form is null
Try changing the name attribute in your config file to be TeacherAddForm instead of teacherAddForm. HTH. Daniel -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 8:29 AM To: [EMAIL PROTECTED] Subject: java.lang.NullPointerException struts form is null Hi, Struts form is giving null in my action class .execute().Below are my files.Hep appreciated.Thanks import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * * @struts.action * path=/addTeacher * name=teacherAddForm * scope=request * validate=false * * @struts.action-forward * name=success * path=/teachers.jsp * * @struts.action-forward * name=failure * path=/error.jsp */ public final class TeacherAddAction extends Action { /** * @param actionmapping The ActionMapping * @param actionform The ActionForm object * @param httpservletrequest The httpservletrequest of the incoming request * @param httpservletresponse The httpservletresponse corresponding to the request * @param ActionForward The return path */ public ActionForward execute( ActionMapping mapping, ActionForm actionform, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println(In TeacherAddAction:); TeacherAddForm teacherAddForm = (TeacherAddForm) actionform; if (teacherAddForm == null) teacherAddForm = new TeacherAddForm(); else System.out.println(teacherAddForm is not null); try { Teacher teacher= null; teacher.setLast(teacherAddForm.getLast()); ** Thanks! - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Semi-OT: Saving state when using EJB Session Beans and Struts
I have an ordering application that will use stateful session beans to do the business logic. It can store session state in those stateful session beans. What implications does this have on the way state is handled in the upstream Struts app? In short, the Actions will be calling various Stateful Session Beans to do the actual work. These are used for various reasons with the main one being their built-in transaction support (online orders...need to be either done...or not done). How should state be handled and at what level (page...request...session...) in the upstream struts portion? Thanks!
Re: DropDowns....
1-This tag is free for comercial applications 2-At JDBC provider example, there is a select statement inside param tag into xml file, there is a possibitity of this select statment will be created inside my java code and xml file read it? 3-How can I make for get pa parameter value and pass this value for other JDBC dropdown ??? obrigado Daniel S. - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Saturday, February 28, 2004 10:24 AM Subject: RE: DropDowns Take a look at http://providers.sourceforge.net/ and see ComboSelectTag. This tag allows you to create 2 or more dependant drop down lists using Struts and javascript. With this tag, you do not need to reload the page in the onchange of the first select. Cheers. Guillermo. -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Sábado, 28 de Febrero de 2004 10:19 a.m. To: Struts Users Mailing List Subject: DropDowns Whats the best way for implement this situation: On the window I have 2 dropdown, the second depends of the first dropdown value, then I'll back to the class action with the first dropdown value for populate the second. After choice the value at second dropdown, I'll qualify for sending this informations to data base. How many action I need for to implement this ? I'll need one action for the first dropdown (at onchange event submit the form???), other action for the second dropdown and other for to send all informations to database ? Some one have a example for help-me ?? obrigado Daniel S. NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:36 PM Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) snip Feeling Like I Just Started Another OS Shouting Match /snip Yeh, cos windows is like really really g00d. Yeh. All us 133t [EMAIL PROTECTED] d00ds use it n' stuff. So dont be like putting it down cos its totally 133t and like .net will [EMAIL PROTECTED] owns linux and mac soon. Yeh. Ye gods! Mother warned me about staying up past bedtime. Looks like its all true. (Im outta here. Night all!) ;- -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:24 To: Struts Users Mailing List Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException struts form is null
hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Daniel Kalcevich [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:40 PM Subject: RE: java.lang.NullPointerException struts form is null Try changing the name attribute in your config file to be TeacherAddForm instead of teacherAddForm. HTH. Daniel -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 8:29 AM To: [EMAIL PROTECTED] Subject: java.lang.NullPointerException struts form is null Hi, Struts form is giving null in my action class .execute().Below are my files.Hep appreciated.Thanks import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * * @struts.action * path=/addTeacher * name=teacherAddForm * scope=request * validate=false * * @struts.action-forward * name=success * path=/teachers.jsp * * @struts.action-forward * name=failure * path=/error.jsp */ public final class TeacherAddAction extends Action { /** * @param actionmapping The ActionMapping * @param actionform The ActionForm object * @param httpservletrequest The httpservletrequest of the incoming request * @param httpservletresponse The httpservletresponse corresponding to the request * @param ActionForward The return path */ public ActionForward execute( ActionMapping mapping, ActionForm actionform, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println(In TeacherAddAction:); TeacherAddForm teacherAddForm = (TeacherAddForm) actionform; if (teacherAddForm == null) teacherAddForm = new TeacherAddForm(); else System.out.println(teacherAddForm is not null); try { Teacher teacher= null; teacher.setLast(teacherAddForm.getLast()); ** Thanks! - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles - smth like addToList?
On 03/01/2004 02:37 PM Axel Gross wrote: I see the need for extending the entries of a putList without overriding the entries in the super definition. Example: definition name=.head.common path=htmlHead.jsp putList name=httpEquiv item value=pragma link=no-cache / item value=cache-control link=no-cache / item value=expires link=0 / /putList /definition definition name=.head.project extends=.head.common putList name=httpEquiv item value=expires link=1 / item value=description link=tiles definition extension example / /putList /definition so usually this would replace the list in .head.common with the one in .head.project desired behaviour would be to just add the new entries (description) and overwrite those which are already present (expires). Axel, this is the behaviour that I use already. I don't know how you manage to replace the list. My definitions inherit the list and its contents. (I am not sure about replacement). Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.NullPointerException struts form is null
Try sending an empty email to [EMAIL PROTECTED] Daniel -Original Message- From: Tarik El Berrak [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 9:02 AM To: Struts Users Mailing List Subject: Re: java.lang.NullPointerException struts form is null hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Daniel Kalcevich [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:40 PM Subject: RE: java.lang.NullPointerException struts form is null Try changing the name attribute in your config file to be TeacherAddForm instead of teacherAddForm. HTH. Daniel -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 8:29 AM To: [EMAIL PROTECTED] Subject: java.lang.NullPointerException struts form is null Hi, Struts form is giving null in my action class .execute().Below are my files.Hep appreciated.Thanks import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * * @struts.action * path=/addTeacher * name=teacherAddForm * scope=request * validate=false * * @struts.action-forward * name=success * path=/teachers.jsp * * @struts.action-forward * name=failure * path=/error.jsp */ public final class TeacherAddAction extends Action { /** * @param actionmapping The ActionMapping * @param actionform The ActionForm object * @param httpservletrequest The httpservletrequest of the incoming request * @param httpservletresponse The httpservletresponse corresponding to the request * @param ActionForward The return path */ public ActionForward execute( ActionMapping mapping, ActionForm actionform, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println(In TeacherAddAction:); TeacherAddForm teacherAddForm = (TeacherAddForm) actionform; if (teacherAddForm == null) teacherAddForm = new TeacherAddForm(); else System.out.println(teacherAddForm is not null); try { Teacher teacher= null; teacher.setLast(teacherAddForm.getLast()); ** Thanks! - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hiding jsp files under WEB-INF
I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) org.apache.jsp.index_jsp._jspService(index_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What am I doing wrong? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
It's included at the bottom of every message... An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Tarik El Berrak [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 12:02 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:36 PM Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) snip Feeling Like I Just Started Another OS Shouting Match /snip Yeh, cos windows is like really really g00d. Yeh. All us 133t [EMAIL PROTECTED] d00ds use it n' stuff. So dont be like putting it down cos its totally 133t and like .net will [EMAIL PROTECTED] owns linux and mac soon. Yeh. Ye gods! Mother warned me about staying up past bedtime. Looks like its all true. (Im outta here. Night all!) ;- -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 00:24 To: Struts Users Mailing List Subject: RE: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)) Nguyen, Hien [EMAIL PROTECTED] wrote: I'm using Panther (OS X 10.3) with Eclipse, tomcat, mySQL and things are working perfectly fine. The latest JDK on OS X is 1.4.2. Same here. I like it all pretty well, but the only minor drawback is that sometimes I think the Eclipse interface in OS X is a little clunky. But that's just with Eclipse -- you might find that other IDEs aren't that way. All the other great features of OS X definitely make up for it though. I don't see how you could go wrong with getting rid of your Windoze setup. And after how many hours I spent in a failed effort yesterday trying to simply *install* XP on my in-laws computer, I'd encourage you to! I have no plans of ever going back to the Windoze world -- enough of that pathetic junk is enough. Feeling Like I Just Started Another OS Shouting Match, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles - smth like addToList?
On 2004-03-01 at 17:53:30 +0100, Adam Hardy wrote: On 03/01/2004 02:37 PM Axel Gross wrote: I see the need for extending the entries of a putList without overriding the entries in the super definition. Example: definition name=.head.common path=htmlHead.jsp putList name=httpEquiv item value=pragma link=no-cache / item value=cache-control link=no-cache / item value=expires link=0 / /putList /definition definition name=.head.project extends=.head.common putList name=httpEquiv item value=expires link=1 / item value=description link=tiles definition extension example / /putList /definition so usually this would replace the list in .head.common with the one in .head.project desired behaviour would be to just add the new entries (description) and overwrite those which are already present (expires). Axel, Hi Adam! this is the behaviour that I use already. I don't know how you manage to replace the list. ??? *puzzled* so you would actually get for .head.project the pragma and cache-control values? I'd be really surprised.. (i don't get them) My definitions inherit the list and its contents. (I am not sure about replacement). mine do too. So for clarification: what happens if you do putList on a name you already did a putList in the superdefinition? Adam Axel -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 struts 1.1 + tomcat 5.0.19 + java 1.4.2_03 Linux 2.4.20 Debian winXP home ed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hiding jsp files under WEB-INF
I usually code my index.jsp as follows: jsp:forward page=Welcome.do / If your index.jsp isn't being processed through the struts controller, I'm not sure how much the logic tags like that. That should eliminate at least one problem. An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:59 AM To: [EMAIL PROTECTED] Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) org.apache.jsp.index_jsp._jspService(index_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What am I doing wrong? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:
RE: hiding jsp files under WEB-INF
Also, are sure sure welcome is not supposed to be Welcome? (case sensitive?) An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:59 AM To: [EMAIL PROTECTED] Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) org.apache.jsp.index_jsp._jspService(index_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What am I doing wrong? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are the property of Kmart Corporation
Capture array from form bean into struts action class
Any samples? Thanks (BAsically I am trying to get list of shoping cart items from my jsp and retrieve them like an array to later send it to my ItemDeleteAction.java class for deleeion.But how to stor the delete array in request or session?Request.setParameter or session permits only String right? and not String array? Thanks. - Do you Yahoo!? Get better spam protection with Yahoo! Mail
Re: hiding jsp files under WEB-INF
Mainguy, Mike wrote: Also, are sure sure welcome is not supposed to be Welcome? (case sensitive?) The way I understand it, welcome is globally forwarded to /Welcome.do, as per the struts-config.xml. An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:59 AM To: [EMAIL PROTECTED] Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) org.apache.jsp.index_jsp._jspService(index_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) What am I doing wrong? Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are
Re: hiding jsp files under WEB-INF
If you look in 'logic tags' package: http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/taglib/logic/ In LocalStrings.properties you will see that the message you are getting (Exception forwarding for name ?) matches the message named 'forward.forward'. If you then look in ForwardTag.java this message is only thrown when it tries to do: pageContext.forward(path); This means that it has found your forward named welcome and the problem lies when it tries to forward to the path associated with that forward (i.e. /Welcome.do). Quite why that throwing a ServletException I haven't got a clue. Maybe you could try setting up another forward for one of your other actions and see if that works - how about a logoff forward for the /Logoff.do action - that forwards to Welcome.jsp? Or can you just specify /WEB-INF/Welcome.jsp in your welcome forward? Niall - Original Message - From: Dean A. Hoover [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 01, 2004 4:58 PM Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82)
RE: hiding jsp files under WEB-INF
Whoops, didn't see that. Now I'm more inclined to think this will not work as this page is not being handled by the struts controller. An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 12:35 PM To: Struts Users Mailing List Subject: Re: hiding jsp files under WEB-INF Mainguy, Mike wrote: Also, are sure sure welcome is not supposed to be Welcome? (case sensitive?) The way I understand it, welcome is globally forwarded to /Welcome.do, as per the struts-config.xml. An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:59 AM To: [EMAIL PROTECTED] Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon textI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte xtImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173) org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:82) org.apache.jsp.index_jsp._jspService(index_jsp.java:58) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:3 11)
Re: hiding jsp files under WEB-INF
Alternatively Change the logic:forward on your index.jsp page to an ordinary link and see if that works. html:link action=/Welcome.doClick Here/html:link Niall - Original Message - From: Niall Pemberton [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:40 PM Subject: Re: hiding jsp files under WEB-INF If you look in 'logic tags' package: http://cvs.apache.org/viewcvs.cgi/jakarta-struts/src/share/org/apache/struts/taglib/logic/ In LocalStrings.properties you will see that the message you are getting (Exception forwarding for name ?) matches the message named 'forward.forward'. If you then look in ForwardTag.java this message is only thrown when it tries to do: pageContext.forward(path); This means that it has found your forward named welcome and the problem lies when it tries to forward to the path associated with that forward (i.e. /Welcome.do). Quite why that throwing a ServletException I haven't got a clue. Maybe you could try setting up another forward for one of your other actions and see if that works - how about a logoff forward for the /Logoff.do action - that forwards to Welcome.jsp? Or can you just specify /WEB-INF/Welcome.jsp in your welcome forward? Niall - Original Message - From: Dean A. Hoover [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 01, 2004 4:58 PM Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
RE: hiding jsp files under WEB-INF
Hi, The taglibs will work, whether or not the page is being handled by struts controller,so long as they have the required objects(form bean , other beans)in the scopes mentioned in jsps. :-)) -Original Message- From: Mainguy, Mike [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:45 PM To: 'Struts Users Mailing List' Subject: RE: hiding jsp files under WEB-INF Whoops, didn't see that. Now I'm more inclined to think this will not work as this page is not being handled by the struts controller. An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 12:35 PM To: Struts Users Mailing List Subject: Re: hiding jsp files under WEB-INF Mainguy, Mike wrote: Also, are sure sure welcome is not supposed to be Welcome? (case sensitive?) The way I understand it, welcome is globally forwarded to /Welcome.do, as per the struts-config.xml. An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:59 AM To: [EMAIL PROTECTED] Subject: hiding jsp files under WEB-INF I realized that the subject I filed this under (getting started) may not get attention. So I'm sending it out under this subject. Did some google searching but still don't see what the problem is. = I am experimenting with some code from Struts in Action but I am moving source code around abit. Specifically, I am moving all of the .jsp files into the WEB-INF directory except index.jsp. This is so that a user cannot hit a given .jsp directly. Anyway, I am getting an exception right from the get go and don't know what I am doing wrong. Here's the relevant pieces: == index.jsp === %@ taglib uri=/tags/struts-logic prefix=logic % logic:forward name=welcome/ == Welcome.jsp === ?xml version=1.0 encoding=UTF-8? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN DTD/xhtml1-trans itional.dtd % taglib uri=/tags/struts-bean prefix=bean % % taglib uri=/tags/struts-html prefix=html % % taglib uri=/tags/struts-logic prefix=logic % html:html xhtml=true head titleWelcome World!/title html:base/ /head body logic:present scope=session name=user h3Welcome bean:write name=user property=username/!/h3 /logic:present logic:notPresent scope=session name=user h3Welcome World!/h3 /logic:notPresent html:errors/ ul lihtml:link forward=logonSign in/html:link/li logic:present scope=session name=user lihtml:link forward=logoffSign out/html:link/li /logic:present /ul /body /html:html === struts-config.xml === ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http:/jakarta.apache.org/struts/dtds/struts-config_1_1.dtd struts-config form-beans form-bean name=registerForm type=app.RegisterForm/ form-bean name=logonForm type=app.LogonForm/ /form-beans global-forwards forward name=welcome path=/Welcome.do/ /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Welcome.jsp/ action path=/Logon type=org.apache.struts.actions.ForwardAction parameter=/WEB-INF/Logon.jsp/ action path=/LogonSubmit type=app.LogonAction name=logonForm scope=request validate=true input=/WEB-INF/Logon.jsp/ action path=/Logoff type=app.LogoffAction forward name=success path=/WEB-INF/Welcome.jsp/ /action action path=/Register type=app.RegisterAction name=registerForm input=/WEB-INF/Register.jsp forward name=success path=/WEB-INF/success.jsp/ forward name=failure path=/WEB-INF/failure.jsp/ /action /action-mappings /struts-config Here's the exception: *exception* javax.servlet.ServletException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon textI mpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte xtImp l.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava:3 11) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) *root cause* javax.servlet.jsp.JspException: Exception forwarding for name welcome: javax.servlet.ServletException org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173)
RE: java.lang.NullPointerException struts form is null
It seems like that user is getting that text automagically added to the top of his messages... An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Daniel Kalcevich [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 11:57 AM To: Struts Users Mailing List; Tarik El Berrak Subject: RE: java.lang.NullPointerException struts form is null Try sending an empty email to [EMAIL PROTECTED] Daniel -Original Message- From: Tarik El Berrak [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 9:02 AM To: Struts Users Mailing List Subject: Re: java.lang.NullPointerException struts form is null hi excuse me, can you tell me can i unsubscribe from this mailig list thanks a lot - Original Message - From: Daniel Kalcevich [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:40 PM Subject: RE: java.lang.NullPointerException struts form is null Try changing the name attribute in your config file to be TeacherAddForm instead of teacherAddForm. HTH. Daniel -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 8:29 AM To: [EMAIL PROTECTED] Subject: java.lang.NullPointerException struts form is null Hi, Struts form is giving null in my action class .execute().Below are my files.Hep appreciated.Thanks import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; /** * * @struts.action * path=/addTeacher * name=teacherAddForm * scope=request * validate=false * * @struts.action-forward * name=success * path=/teachers.jsp * * @struts.action-forward * name=failure * path=/error.jsp */ public final class TeacherAddAction extends Action { /** * @param actionmapping The ActionMapping * @param actionform The ActionForm object * @param httpservletrequest The httpservletrequest of the incoming request * @param httpservletresponse The httpservletresponse corresponding to the request * @param ActionForward The return path */ public ActionForward execute( ActionMapping mapping, ActionForm actionform, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { System.out.println(In TeacherAddAction:); TeacherAddForm teacherAddForm = (TeacherAddForm) actionform; if (teacherAddForm == null) teacherAddForm = new TeacherAddForm(); else System.out.println(teacherAddForm is not null); try { Teacher teacher= null; teacher.setLast(teacherAddForm.getLast()); ** Thanks! - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DropDowns....
Providers is an open source project under GNU General Public License (GPL), so you can use it freely. You can create your own provider class (in className attribute in providers) to produce anything you need if you want to avoid placing SQL statements in configuration file. We are working in next versions for Providers and there will be some enhacements in JDBCProvider and will post an announcement in this list. Saludos. Por un Mercosur unido... Guillermo. -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Lunes, 01 de Marzo de 2004 01:55 p.m. To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: DropDowns 1-This tag is free for comercial applications 2-At JDBC provider example, there is a select statement inside param tag into xml file, there is a possibitity of this select statment will be created inside my java code and xml file read it? 3-How can I make for get pa parameter value and pass this value for other JDBC dropdown ??? obrigado Daniel S. - Original Message - From: Guillermo Meyer [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Saturday, February 28, 2004 10:24 AM Subject: RE: DropDowns Take a look at http://providers.sourceforge.net/ and see ComboSelectTag. This tag allows you to create 2 or more dependant drop down lists using Struts and javascript. With this tag, you do not need to reload the page in the onchange of the first select. Cheers. Guillermo. -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Sábado, 28 de Febrero de 2004 10:19 a.m. To: Struts Users Mailing List Subject: DropDowns Whats the best way for implement this situation: On the window I have 2 dropdown, the second depends of the first dropdown value, then I'll back to the class action with the first dropdown value for populate the second. After choice the value at second dropdown, I'll qualify for sending this informations to data base. How many action I need for to implement this ? I'll need one action for the first dropdown (at onchange event submit the form???), other action for the second dropdown and other for to send all informations to database ? Some one have a example for help-me ?? obrigado Daniel S. NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Capture array from form bean into struts action class
Tons of samples with discussion in the archives. http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=indexedq=b http://marc.theaimsgroup.com/?l=struts-userm=107600405406119w=2 --- as as [EMAIL PROTECTED] wrote: Any samples? Thanks (BAsically I am trying to get list of shoping cart items from my jsp and retrieve them like an array to later send it to my ItemDeleteAction.java class for deleeion.But how to stor the delete array in request or session?Request.setParameter or session permits only String right? and not String array? Thanks. - Do you Yahoo!? Get better spam protection with Yahoo! Mail __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts and Javascript
HI, I am working on an app that has a jsp with a drop down.This drop down must automatically be populated(on first page load) with the defualt value showing up as Selected. i got the drop down working with select tag but it shows the drp down and not the defualta s teh selected .how to accomplish this? also,on changing the selection in the drop down, i need to refresh the page showing the new selection Book has ISBN and author, title.so if i change ISBN in the drop down, i need to repaing the jsp showing the new Title and Author corresponding to this new Book's ISBN .how to do it.do i need to use javascript for this if struts' tags are not sufficient Thanks in advance my code snippet below: tr bgcolor=A9A9A4 th align=right Supervisor: /th td select name=ISBN style=width:225px logic:iterate id=book name=books option value=bean:write name=book property =ISBN/ bean:write name=book property =ISBN/ /option /logic:iterate /select /td /tr - Do you Yahoo!? Get better spam protection with Yahoo! Mail
Re: Capture array from form bean into struts action class
Hubert, Excellent and thanks for the quick response.I will look and try following these examples! Hubert Rabago [EMAIL PROTECTED] wrote: Tons of samples with discussion in the archives. http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=indexedq=b http://marc.theaimsgroup.com/?l=struts-userm=107600405406119w=2 --- as as wrote: Any samples? Thanks (BAsically I am trying to get list of shoping cart items from my jsp and retrieve them like an array to later send it to my ItemDeleteAction.java class for deleeion.But how to stor the delete array in request or session?Request.setParameter or session permits only String right? and not String array? Thanks. - Do you Yahoo!? Get better spam protection with Yahoo! Mail __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Get better spam protection with Yahoo! Mail
Re: multipart-request / file upload problem
Adam Hardy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm going to put this another way: what's the secret with file upload requests? I can't see my file parameter in the request parameters when I submit the form with the multipart-request. Ah, if I told you that, it wouldn't be a secret any more, now would it? ;-) The biggest difference with multipart requests is that the request is wrapped by Struts, so when you invoke a method on the request object, you are actually invoking a method on the MultipartRequestWrapper class. This is necessary so that calls to, for example, getParameter() go to Struts, which parsed your request, rather than the container, which didn't. In the code fragment below, I see you are invoking getParameterMap(). Note that this is a Servlet 2.3 method. Since Struts 1.x is built for Servlet 2.2, that method is not implemented, and simply returns null. Actually, there isn't a way to get the file items from the request itself, since it doesn't have them. They're stored in the multipart request handler itself. So, you would get the set of uploaded file items like this: Hashtable fileItems = formBean.getMultipartRequestHandler().getFileElements(); I'll be the first to admit that the current multipart implementation is a little, um, arcane (not that I invented it ;). The plan is to completely rewrite it for Struts 2.x, when we get there. Hope this helps. -- Martin Cooper Adam On 02/29/2004 07:05 PM Adam Hardy wrote: I use the Commons multipart request handler stuff to set up a DynaActionForm properly for my file upload so: form-bean name=linklibImportForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=bookmarksFile type=org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFil e/ /form-bean which works fine, but in some circumstances I want to manually create this form, grab the file and save the DynaActionForm (in a filter). Like so: ActionForm form = RequestUtils.createActionForm(request, actionMapping, moduleConfig, actionServlet); form.reset(actionMapping, request); BeanUtils.populate(form, request.getParameterMap()); But it isn't working. My file comes back as null. Anyone know why or have a solution? -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action class calling other Action class
When I try to call actionA from actionB by forwarding to the path which mapped to actionA it is not actually invoking actionA. action name=myaccountDomainActionForm type=com.register.struts.account.AccountDomainAction scope=session path=/myaccount/domains !-- set-property property=secure value=true/ -- forward name=success path=myaccount.dmdetails redirect=false / forward name=requiresLogin path=myaccount.login redirect=false / forward name=restoreDefaultDNSSettings path=myaccount.dmdetails.outsidedns.restore.confirm redirect=false / forward name=addMoreDNS path=myaccount.dmdetails.dns.add redirect=false / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered redirect=false / /action action name=myaccountDomainActionForm type=com.register.struts.account.AccountDomainAction scope=session path=/myaccount/domains !-- set-property property=secure value=true/ -- forward name=success path=myaccount.dmdetails redirect=false / forward name=requiresLogin path=myaccount.login redirect=false / forward name=restoreDefaultDNSSettings path=myaccount.dmdetails.outsidedns.restore.confirm redirect=false / forward name=addMoreDNS path=myaccount.dmdetails.dns.add redirect=false / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered redirect=false / /action -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 5:18 PM To: Struts Users Mailing List Subject: RE: Action class calling other Action class You could do this by just forwarding to an action mapping entry for ActionClassB. In you action mapping for ActionClassA, have multiple forwards. And the logic in ActionClassA would forward to whichever, with 1 of them being ActionClassB. action path=/actionA type=ActionClassA name=form scope=request forward name=SUCCESS path=/do/actionB / forward name=FAILURE path=/test.jsp / forward name=CANCEL path=whatever / /action action path=actionB type=ActionClassB name=form scope=request set-property property=secure value=true / forward name=SUCCESS path=/any.jsp / forward name=FAILURE path=/anyOther.jsp / /action hth -jayash -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:29 PM To: [EMAIL PROTECTED] Subject: Action class calling other Action class Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with URL forwarding
Watch these following url. They work fine in the browser directly. The second one does'nt work through struts-config.xml. First one works fine either way. Can some one tell me the reason for this ? pls. https://server.mycompany.com/webapp/wcs/stores/servlet/MYAUCTION/index.jsp https://server.mycompany.com/MYAUCTION/ Here is the struts-config.xml entry. This action doesn't work. If i replace the path with the first url it works fine. action path=/store type=com.mycompany.MyAction forward name=success path=https://server.mycompany.com/MYAUCTION/; redirect=true/ /action - Do you Yahoo!? Get better spam protection with Yahoo! Mail
RE: Action class calling other Action class
When I try to call actionA from actionB by forwarding to the path which mapped to actionA it is not actually invoking actionA. I dont know what is wrong with my codefollowing is piece of my code action name=actionA type=ActionA scope=session path=/myaccount/domains forward name=success path=myaccount.dmdetails redirect=false / /action action name=actionB type=ActionB scope=session path=/myaccount/domains forward name=updateSuccess path=/myaccount/domains redirect=true / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered/ /action Note: I hv tried set-property property=secure value=true/ in the actionA but was getting exception from the server saying the bean does not contain the property secure. Can you help me where Im doing wrong? Tnx, -Ramadoss -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 5:18 PM To: Struts Users Mailing List Subject: RE: Action class calling other Action class You could do this by just forwarding to an action mapping entry for ActionClassB. In you action mapping for ActionClassA, have multiple forwards. And the logic in ActionClassA would forward to whichever, with 1 of them being ActionClassB. action path=/actionA type=ActionClassA name=form scope=request forward name=SUCCESS path=/do/actionB / forward name=FAILURE path=/test.jsp / forward name=CANCEL path=whatever / /action action path=actionB type=ActionClassB name=form scope=request set-property property=secure value=true / forward name=SUCCESS path=/any.jsp / forward name=FAILURE path=/anyOther.jsp / /action hth -jayash -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:29 PM To: [EMAIL PROTECTED] Subject: Action class calling other Action class Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action class calling other Action class
Try changing updateSuccess path to reflect your actual relative URL: forward name=updateSuccess path=/myaccount/domains.do redirect=true / - or whatever extension you're using. --- Ramadoss Chinnakuzhandai [EMAIL PROTECTED] wrote: When I try to call actionA from actionB by forwarding to the path which mapped to actionA it is not actually invoking actionA. I dont know what is wrong with my codefollowing is piece of my code action name=actionA type=ActionA scope=session path=/myaccount/domains forward name=success path=myaccount.dmdetails redirect=false / /action action name=actionB type=ActionB scope=session path=/myaccount/domains forward name=updateSuccess path=/myaccount/domains redirect=true / forward name=manageRegdNameServers path=myaccount.dmdetails.dns.registered/ /action Note: I hv tried set-property property=secure value=true/ in the actionA but was getting exception from the server saying the bean does not contain the property secure. Can you help me where Im doing wrong? Tnx, -Ramadoss -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 5:18 PM To: Struts Users Mailing List Subject: RE: Action class calling other Action class You could do this by just forwarding to an action mapping entry for ActionClassB. In you action mapping for ActionClassA, have multiple forwards. And the logic in ActionClassA would forward to whichever, with 1 of them being ActionClassB. action path=/actionA type=ActionClassA name=form scope=request forward name=SUCCESS path=/do/actionB / forward name=FAILURE path=/test.jsp / forward name=CANCEL path=whatever / /action action path=actionB type=ActionClassB name=form scope=request set-property property=secure value=true / forward name=SUCCESS path=/any.jsp / forward name=FAILURE path=/anyOther.jsp / /action hth -jayash -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:29 PM To: [EMAIL PROTECTED] Subject: Action class calling other Action class Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: microsoft sqlserver driver struts
Hi, newbie to struts and I have similar problem namely I added a datasource in my struts-config.xml and after that I can't even reload my app. Non - struts applications are using this driver without problems. Bellow are stack trace from tomcat log (5.0.18) and part of my struts-config. I have all three MS jar files in both my WEB-INF\lib and CATALINA-HOME\common\lib. I did try both types org.apache.commons.dbcp.BasicDataSource and com.microsoft.jdbc.sqlserver.SQLServerDriver without any success data-source key=ContactDB type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName value=com.microsoft.jdbc.sqlserver.SQLServerDriver/ set-property property=url value=jdbc:microsoft:sqlserver://localhost:1433;databaseName=CONTACT/ set-property property=username value=***/ set-property property=password value=***/ set-property property=maxActive value=20/ set-property property=maxWait value=5000/ set-property property=defaultAutoCommit value=true/ /data-source 2004-03-01 15:18:02 StandardContext[/manager]Manager: restart: Reloading web application at '/contact-struts' 2004-03-01 15:18:03 StandardContext[/contact-struts]StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1677) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:900) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1350) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1230) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1084) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4283) at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2992) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:1019) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:587) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at
RE: Action class calling other Action class
Look at this. It is working fine and fires callMe action. action path=/travelInfo type=com.mycompany.MyFirstAction validate=false forward name=success path=/callMe.do/ /action action path=/callMe type=com.mycompany.MySecondAction forward name=success path=mytargerpage/ /action Ramadoss Chinnakuzhandai [EMAIL PROTECTED] wrote: When I try to call actionA from actionB by forwarding to the path which mapped to actionA it is not actually invoking actionA. I dont know what is wrong with my codefollowing is piece of my code Note: I hv tried in the actionA but was getting exception from the server saying the bean does not contain the property secure. Can you help me where Im doing wrong? Tnx, -Ramadoss -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 5:18 PM To: Struts Users Mailing List Subject: RE: Action class calling other Action class You could do this by just forwarding to an action mapping entry for ActionClassB. In you action mapping for ActionClassA, have multiple forwards. And the logic in ActionClassA would forward to whichever, with 1 of them being ActionClassB. type=ActionClassA name=form scope=request / type=ActionClassB name=form scope=request / path=/anyOther.jsp / hth -jayash -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:29 PM To: [EMAIL PROTECTED] Subject: Action class calling other Action class Hi, I hv ActionClassA ==Display JSP of ActionClassA having a link to Edit JSP of ActionClassB==ActionClassB=Edit JSP of ActionClassB==ActionClassB(Update records)=dispatch control over to ActionClassA. My question is that Can I forward my control to ActionClassA from ActionClassB? or is there any better approach/alternative?? Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Get better spam protection with Yahoo! Mail
Starting time-consuming jobs early
Hi all, It looks like I am going to be involved with a project where the goal is to gather a bunch of product information from multiple databases, and then mix-n-match (a highly-technical term there) all that data to ultimately generate some metrics charts. It seems that making this a web application would be good here becuase several groups within this company X can then share this information. But since it will take so long to get the results, I'm wondering if there is some sort of way using servlets or whatever that I can have this job kick off at maybe midnight on Friday night so that all the data will be freshly available on Monday morning when it would be needed. I've considered maybe using a cron job to fire off a Perl script to do all the work, and then load the database with the data that would be replaced each week. But, I'd be interested in knowing if I could have it setup some slick way with Struts/Servlets/etc. Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tiles - smth like addToList?
On 03/01/2004 06:12 PM Axel Groß wrote: On 2004-03-01 at 17:53:30 +0100, Adam Hardy wrote: I see the need for extending the entries of a putList without overriding the entries in the super definition. Example: definition name=.head.common path=htmlHead.jsp putList name=httpEquiv item value=pragma link=no-cache / item value=cache-control link=no-cache / item value=expires link=0 / /putList /definition definition name=.head.project extends=.head.common putList name=httpEquiv item value=expires link=1 / item value=description link=tiles definition extension example / /putList /definition so usually this would replace the list in .head.common with the one in .head.project desired behaviour would be to just add the new entries (description) and overwrite those which are already present (expires). this is the behaviour that I use already. I don't know how you manage to replace the list. so you would actually get for .head.project the pragma and cache-control values? I'd be really surprised.. (i don't get them) My definitions inherit the list and its contents. (I am not sure about replacement). mine do too. So for clarification: what happens if you do putList on a name you already did a putList in the superdefinition? Ah. I spoke too soon. Sorry. I do name the lists seperate names - that's why. I name blah1, blah2, blah3. So you're right, it would be good to be able to inherit and add to the same name. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting time-consuming jobs early
Quartz might work for you http://www.quartzscheduler.org Andy Engle [EMAIL PROTECTED] .com To [EMAIL PROTECTED] 03/01/2004 03:53 cc PM Subject Starting time-consuming jobs early Please respond to Struts Users Mailing List [EMAIL PROTECTED] rta.apache.org Hi all, It looks like I am going to be involved with a project where the goal is to gather a bunch of product information from multiple databases, and then mix-n-match (a highly-technical term there) all that data to ultimately generate some metrics charts. It seems that making this a web application would be good here becuase several groups within this company X can then share this information. But since it will take so long to get the results, I'm wondering if there is some sort of way using servlets or whatever that I can have this job kick off at maybe midnight on Friday night so that all the data will be freshly available on Monday morning when it would be needed. I've considered maybe using a cron job to fire off a Perl script to do all the work, and then load the database with the data that would be replaced each week. But, I'd be interested in knowing if I could have it setup some slick way with Struts/Servlets/etc. Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multipart-request / file upload problem
Thanks for the expos. :) So it's worse than I feared! Well, I shall just come up with a convincing error message in those situations where I would have needed it, rather than try to force a square peg somewhere it doesn't want to go. Adam On 03/01/2004 08:23 PM Martin Cooper wrote: I'm going to put this another way: what's the secret with file upload requests? I can't see my file parameter in the request parameters when I submit the form with the multipart-request. Ah, if I told you that, it wouldn't be a secret any more, now would it? ;-) The biggest difference with multipart requests is that the request is wrapped by Struts, so when you invoke a method on the request object, you are actually invoking a method on the MultipartRequestWrapper class. This is necessary so that calls to, for example, getParameter() go to Struts, which parsed your request, rather than the container, which didn't. In the code fragment below, I see you are invoking getParameterMap(). Note that this is a Servlet 2.3 method. Since Struts 1.x is built for Servlet 2.2, that method is not implemented, and simply returns null. Actually, there isn't a way to get the file items from the request itself, since it doesn't have them. They're stored in the multipart request handler itself. So, you would get the set of uploaded file items like this: Hashtable fileItems = formBean.getMultipartRequestHandler().getFileElements(); I'll be the first to admit that the current multipart implementation is a little, um, arcane (not that I invented it ;). The plan is to completely rewrite it for Struts 2.x, when we get there. Hope this helps. -- Martin Cooper Adam On 02/29/2004 07:05 PM Adam Hardy wrote: I use the Commons multipart request handler stuff to set up a DynaActionForm properly for my file upload so: form-bean name=linklibImportForm type=org.apache.struts.validator.DynaValidatorActionForm form-property name=bookmarksFile type=org.apache.struts.upload.CommonsMultipartRequestHandler$CommonsFormFil e/ /form-bean which works fine, but in some circumstances I want to manually create this form, grab the file and save the DynaActionForm (in a filter). Like so: ActionForm form = RequestUtils.createActionForm(request, actionMapping, moduleConfig, actionServlet); form.reset(actionMapping, request); BeanUtils.populate(form, request.getParameterMap()); But it isn't working. My file comes back as null. Anyone know why or have a solution? -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Starting time-consuming jobs early
You ought to be able to make a struts plugin or a servlet thats loaded by your webserver that starts a thread that watches for a certain time each week then wakes up and does stuff.. -David - Original Message - From: Andy Engle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 01, 2004 1:53 PM Subject: Starting time-consuming jobs early Hi all, It looks like I am going to be involved with a project where the goal is to gather a bunch of product information from multiple databases, and then mix-n-match (a highly-technical term there) all that data to ultimately generate some metrics charts. It seems that making this a web application would be good here becuase several groups within this company X can then share this information. But since it will take so long to get the results, I'm wondering if there is some sort of way using servlets or whatever that I can have this job kick off at maybe midnight on Friday night so that all the data will be freshly available on Monday morning when it would be needed. I've considered maybe using a cron job to fire off a Perl script to do all the work, and then load the database with the data that would be replaced each week. But, I'd be interested in knowing if I could have it setup some slick way with Struts/Servlets/etc. Thanks, Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: microsoft sqlserver driver struts
Just a guess . but its looking for the old GenericDataSource have the the struts-legacy.jar in your lib directory? There's also some weird BillGates-tastic argument you have to pass though with the url string. But i have no experience with ms sql server. On 1 Mar 2004, at 21:28, Danko Desancic wrote: Hi, newbie to struts and I have similar problem namely I added a datasource in my struts-config.xml and after that I can't even reload my app. Non - struts applications are using this driver without problems. Bellow are stack trace from tomcat log (5.0.18) and part of my struts-config. I have all three MS jar files in both my WEB-INF\lib and CATALINA-HOME\common\lib. I did try both types org.apache.commons.dbcp.BasicDataSource and com.microsoft.jdbc.sqlserver.SQLServerDriver without any success data-source key=ContactDB type=org.apache.commons.dbcp.BasicDataSource set-property property=driverClassName value=com.microsoft.jdbc.sqlserver.SQLServerDriver/ set-property property=url value=jdbc:microsoft:sqlserver://localhost:1433; databaseName=CONTACT/ set-property property=username value=***/ set-property property=password value=***/ set-property property=maxActive value=20/ set-property property=maxWait value=5000/ set-property property=defaultAutoCommit value=true/ /data-source 2004-03-01 15:18:02 StandardContext[/manager]Manager: restart: Reloading web application at '/contact-struts' 2004-03-01 15:18:03 StandardContext[/contact-struts]StandardWrapper.Throwable java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java: 123) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappCl assLoader.java:1677) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoade r.java:900) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r.java:1350) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoade r.java:1230) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServ let.java:1084) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.ja va:1044) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 887) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext. java:3960) at org.apache.catalina.core.StandardContext.start(StandardContext.java: 4283) at org.apache.catalina.core.StandardContext.reload(StandardContext.java: 2992) at org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java: 1019) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java: 377) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic ationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.java:257) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC ontext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCo ntextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC ontext.java:151) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBase.java:587) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC ontext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC ontext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC ontext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .java:156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveC ontext.java:151) at
Actions with Modules
I have 2 modules (moduloA,moduloB), and I'm use SwitcAction, when I call page1.jsp from moduloB form it's ok, but doesn't work page1jsp action , I think the problem is just path, when I change module the can't find actions. obrigado Daniel S.
RE: [OT] RE: Memory usage
Sorry to continue on this topic. I've learnt a great deal of non struts stuff on this list and this only adds to it. I've been bothered (mostly in my mind) with questions about peoples capabilities and desires when it comes to work. Viru, this original poster of the question on Memory Usage clearly has a desire to learn, but what about people who don't? How do you deal with them? I currently work with a Tech Lead who wouldn't be able to output a String to standard out if asked to write a program. I don't care about her taking credit for the work that we do. She doesn't provide any leadership whatsoever to the project except produce paper that no one bothers to read. Have you guys come across situations like this? What have you done about it? Don't get me wrong - I am not prone to complaining nor do I think I am a member of the elite 'Black Team'. Quoting Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]: +1 I agree with everyone who has responded. We should not clutter this very friendly mailing list with things that don't belong here, that includes not so nice responses. I haven't been on many, but this is by far my favorite list, even though I am mainly a spectator. I lashed out because this question clearly didn't belong here. If the person had followed anything in http://www.catb.org/~esr/faqs/smart-questions.html, it must that they were polite. They certainly didn't do much investigation outside on the internet. The little bit of unfriendliness, I dunno why it came out. Unprofessional, it shouldn't have came out. Even questions that don't belong here deserve to be treated with respect. That is the single most obvious characteristic of STRUTS-USER that is distinctive (even though it has lots of other good qualities). Unfortunately, you decided to unload on a poster in a manner that is decidedly out of the norm for STRUTS-USER. Your response is the kind of behavior that creates problems for the perception of open source projects as being friendly to users or not. If you think the topic is totally out of scope for STRUTS-USER, then you should either (a) answer the question anyway but point people to where they should really be asking; (b) *gently* encourage the user to explore the other resources that are available (the archives are full of examples of folks who have done this), or (c) shut your yap and press DELETE instead of SUBMIT on your replies :-). The culture of the STRUTS-USER list has always been *deliberately* different from the you idiot, how could you be so stupid as to ask that question in that way sort of attitude that far too many open source projects have. Fortunately, despite the fact that this is the most-subscribed-to user list at Jakarta (ten short of 3000 at the moment), the occurrences of rude behavior are so rare that they immediately attract notice for being out of character for what we're trying to achieve :-). I'd say that we've been doing a pretty good job maintaining a friendly, welcoming, and helpful community. I'd also like to keep it that way. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Get better spam protection with Yahoo! Mail
Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)
While the original flame war was less helpful, the question that has emerged from it's ashes is a good one. I don't claim to have all the answers, but I can offer some personal observations. Feel free to disagree. 1. You can do nothing about those who choose not to learn. I've tried changing them and it doesn't work. I consider this a basic fact. 2. You have a great deal of control over your ability to learn. If you aren't big time into learning, then I recommend catching some enthusiasm for it. 3. There will be always be good and bad tech leads. I am a tech lead; I try to be a good one. I can put a String to standard out or standard error! ;-) 4. I had the same frustrations that you have. I made the decision that the best way to restore the balance of good in the universe, was to try to become the kind of tech lead that I would have wanted when I was a newbie/humble grunt. I teach a class on learning Java one lunchtime a week and try to bestow a little wisdom and encouragement whenever I can. I am a Java mentor here and I lead a study group of us that are seeking our Java Certification. 5. No one reads documentation. This is a fact. Learn what is drop dead fired and escorted from the building important and then try to auto-generate it. :-) 6. Leadership is a rare commodity. There's a lot of management out there, but precious little leadership. Again, deal with it. Become a leader and just do what needs to be done. This is what I have tended to do. The ol' saying about it's easier to ask forgiveness than permission is very true (except I sometimes forget to ask for forgiveness! :-) 7. Black team? How 90's, Our team wears Hawaiian shirts! (Honest. :-) Simon -Original Message- From: P K [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:58 PM To: [EMAIL PROTECTED] Subject: RE: [OT] RE: Memory usage Sorry to continue on this topic. I've learnt a great deal of non struts stuff on this list and this only adds to it. I've been bothered (mostly in my mind) with questions about peoples capabilities and desires when it comes to work. Viru, this original poster of the question on Memory Usage clearly has a desire to learn, but what about people who don't? How do you deal with them? I currently work with a Tech Lead who wouldn't be able to output a String to standard out if asked to write a program. I don't care about her taking credit for the work that we do. She doesn't provide any leadership whatsoever to the project except produce paper that no one bothers to read. Have you guys come across situations like this? What have you done about it? Don't get me wrong - I am not prone to complaining nor do I think I am a member of the elite 'Black Team'. Quoting Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]: +1 I agree with everyone who has responded. We should not clutter this very friendly mailing list with things that don't belong here, that includes not so nice responses. I haven't been on many, but this is by far my favorite list, even though I am mainly a spectator. I lashed out because this question clearly didn't belong here. If the person had followed anything in http://www.catb.org/~esr/faqs/smart-questions.html, it must that they were polite. They certainly didn't do much investigation outside on the internet. The little bit of unfriendliness, I dunno why it came out. Unprofessional, it shouldn't have came out. Even questions that don't belong here deserve to be treated with respect. That is the single most obvious characteristic of STRUTS-USER that is distinctive (even though it has lots of other good qualities). Unfortunately, you decided to unload on a poster in a manner that is decidedly out of the norm for STRUTS-USER. Your response is the kind of behavior that creates problems for the perception of open source projects as being friendly to users or not. If you think the topic is totally out of scope for STRUTS-USER, then you should either (a) answer the question anyway but point people to where they should really be asking; (b) *gently* encourage the user to explore the other resources that are available (the archives are full of examples of folks who have done this), or (c) shut your yap and press DELETE instead of SUBMIT on your replies :-). The culture of the STRUTS-USER list has always been *deliberately* different from the you idiot, how could you be so stupid as to ask that question in that way sort of attitude that far too many open source projects have. Fortunately, despite the fact that this is the most-subscribed-to user list at Jakarta (ten short of 3000 at the moment), the occurrences of rude behavior are so rare that they immediately attract notice for being out of character for what we're trying to achieve :-). I'd say that we've been doing a pretty good job maintaining a friendly, welcoming, and helpful community. I'd also like to keep it that way. Craig
RE: [OT] RE: Memory usage
I think especially in large corporate environments, it can be very difficult to boil to the surface without stepping on toes. People have different ideas on what it means to work and what is acceptable code ;-) I have managers who only know the way things were done 5-10 years ago, but I'm very lucky in that they know that they have the business knowledge and the new blood has the technology knowledge. -Original Message- From: P K [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:58 PM To: [EMAIL PROTECTED] Subject: RE: [OT] RE: Memory usage Sorry to continue on this topic. I've learnt a great deal of non struts stuff on this list and this only adds to it. I've been bothered (mostly in my mind) with questions about peoples capabilities and desires when it comes to work. Viru, this original poster of the question on Memory Usage clearly has a desire to learn, but what about people who don't? How do you deal with them? I currently work with a Tech Lead who wouldn't be able to output a String to standard out if asked to write a program. I don't care about her taking credit for the work that we do. She doesn't provide any leadership whatsoever to the project except produce paper that no one bothers to read. Have you guys come across situations like this? What have you done about it? Don't get me wrong - I am not prone to complaining nor do I think I am a member of the elite 'Black Team'. Quoting Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]: +1 I agree with everyone who has responded. We should not clutter this very friendly mailing list with things that don't belong here, that includes not so nice responses. I haven't been on many, but this is by far my favorite list, even though I am mainly a spectator. I lashed out because this question clearly didn't belong here. If the person had followed anything in http://www.catb.org/~esr/faqs/smart-questions.html, it must that they were polite. They certainly didn't do much investigation outside on the internet. The little bit of unfriendliness, I dunno why it came out. Unprofessional, it shouldn't have came out. Even questions that don't belong here deserve to be treated with respect. That is the single most obvious characteristic of STRUTS-USER that is distinctive (even though it has lots of other good qualities). Unfortunately, you decided to unload on a poster in a manner that is decidedly out of the norm for STRUTS-USER. Your response is the kind of behavior that creates problems for the perception of open source projects as being friendly to users or not. If you think the topic is totally out of scope for STRUTS-USER, then you should either (a) answer the question anyway but point people to where they should really be asking; (b) *gently* encourage the user to explore the other resources that are available (the archives are full of examples of folks who have done this), or (c) shut your yap and press DELETE instead of SUBMIT on your replies :-). The culture of the STRUTS-USER list has always been *deliberately* different from the you idiot, how could you be so stupid as to ask that question in that way sort of attitude that far too many open source projects have. Fortunately, despite the fact that this is the most-subscribed-to user list at Jakarta (ten short of 3000 at the moment), the occurrences of rude behavior are so rare that they immediately attract notice for being out of character for what we're trying to achieve :-). I'd say that we've been doing a pretty good job maintaining a friendly, welcoming, and helpful community. I'd also like to keep it that way. Craig McClanahan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Get better spam protection with Yahoo! Mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] MacOS X Java/Struts development (was RE: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available))
I have been doing Struts projects on Mac OS X (currently Panther) for nearly 2 years now using Eclipse/Dreamweaver/Ant etc I like it. Most of my associate developers using windows on the same projects seem to wish they had a mac to work with. Java on the Mac has come a long way in 8 years. Just be prepared for different frustrations :-) I had been considering moving to MacOS X for a while now just because of general windows frustration. I was wondering how many issues, such as the one below, there are in developing on a mac? I've heard that Eclipse runs much faster in Windows than on a Mac as well, and I don't know if their Xcode environment can work with java. The last time I was developing java on a mac was about 8 years ago, I think we were using Codewarrior at the time. Are many people on the list developing java with MacOS, and which tools work best on that platform? -Original Message- From: Joe Germuska [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:57 AM To: Struts Users Mailing List Cc: [EMAIL PROTECTED] Subject: Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Action not forwarding to another Action
Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] extension [WAS] RE: Action not forwarding to another Action
Wow, that's almost like me setting the mapping extension to .asp and confusing the heck out of the people I was talking too. Has that issue come up? An Obstacle is something you see when you take your eyes off the goal -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Alternate Presentations
Heylo all, We are currently using struts (started with 1.0) and are moving to 1.1 and using Tiles. Our managers want us to develop for both the desktop browser client and the PocketPC browser client (possibly more in the future). In our applications we have the same actions, just need separate views depending on which platform we are on. In Struts 1.0 we would simply define separate actions for each path, but was wondering if there is a better way to do this or a Best Practice under struts 1.1 (Tiles). !-- Patient Page for Pocket PC -- actionpath=/showPatientPDA type=org.chboston.ShowPatientAction forward name=success path=/WEB-INF/jsp/PDA/showPatientRx.jsp/ /action !-- Patient Page for Desktop -- actionpath=/showPatient type=org.chboston.ShowPatientAction forward name=success path=/WEB-INF/jsp/showPatientRx.jsp/ /action Initially we were hoping modules would allow us to define them, but we still needed separate actions. Now in searching the mailing list I saw reference to Dynamic Tiles, but couldn't find much more. Also currently we only have the two client platforms, but obviously managers/doctors love new toys. Thanks for advice Joe(new member)
RE: Action not forwarding to another Action
If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Semi-OT: Saving state when using EJB Session Beans and Struts
On 03/01/2004 05:47 PM Smith, Darrin wrote: In short, the Actions will be calling various Stateful Session Beans to do the actual work. These are used for various reasons with the main one being their built-in transaction support (online orders...need to be either done...or not done). How should state be handled and at what level (page...request...session...) in the upstream struts portion? Hmmm. Thought someone more knowledgeable would answer this, and was waiting with interest myself. Oh well. Without too much experience with EJBs myself, I can say a couple of things: the gurus say 'use the business delegate pattern with an EJB session facade'. Secondly, it depends heavily on what your stateful session beans are holding as state. Care to name something? Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not forwarding to another Action
I think when you say 'redirect=true', then you lose your request object. This is like a client side/browser redirect. Remove this attribute from your forward element and give it a try. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:24 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not forwarding to another Action
tnx a lot for your help. -Ramadoss -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:45 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action I think when you say 'redirect=true', then you lose your request object. This is like a client side/browser redirect. Remove this attribute from your forward element and give it a try. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:24 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validator multiple message-resources
Hi, I have successfully used validator with a single message resources file specified in the config file, everything works out fine. Since the project has gotten bigger, i created another message-resource file but when 'required' error happens, the message specifying the field name which is in the 2nd file doesn't come out. Only the validator part which is specified in the 1st file comes out. Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Rick Hightower on Thursday, March 18th in Mountain View, CA
Rick Hightower will be presenting at the March 18th meeting of the Silicon Valley Struts User Group. We are still working out the final details, but, it looks like Rick will make a presentation on the Tiles framework. A partial meeting announcement is already on the web. It will be updated soon with the full talk details. Here it is: http://www.baychi.org/bof/struts/20040318/ That's all folks, Mike Van Riper Silicon Valley Struts User BOF http://www.baychi.org/bof/struts/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)
Ive found the best way to avoid those kind of morons is to work at small companies where any deadwood has nowhere to hide and is quickly pruned :-) Our tech leads really know their stuff here. -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Tuesday, 2 March 2004 06:28 To: Struts Users Mailing List Subject: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage) While the original flame war was less helpful, the question that has emerged from it's ashes is a good one. I don't claim to have all the answers, but I can offer some personal observations. Feel free to disagree. 1. You can do nothing about those who choose not to learn. I've tried changing them and it doesn't work. I consider this a basic fact. 2. You have a great deal of control over your ability to learn. If you aren't big time into learning, then I recommend catching some enthusiasm for it. 3. There will be always be good and bad tech leads. I am a tech lead; I try to be a good one. I can put a String to standard out or standard error! ;-) 4. I had the same frustrations that you have. I made the decision that the best way to restore the balance of good in the universe, was to try to become the kind of tech lead that I would have wanted when I was a newbie/humble grunt. I teach a class on learning Java one lunchtime a week and try to bestow a little wisdom and encouragement whenever I can. I am a Java mentor here and I lead a study group of us that are seeking our Java Certification. 5. No one reads documentation. This is a fact. Learn what is drop dead fired and escorted from the building important and then try to auto-generate it. :-) 6. Leadership is a rare commodity. There's a lot of management out there, but precious little leadership. Again, deal with it. Become a leader and just do what needs to be done. This is what I have tended to do. The ol' saying about it's easier to ask forgiveness than permission is very true (except I sometimes forget to ask for forgiveness! :-) 7. Black team? How 90's, Our team wears Hawaiian shirts! (Honest. :-) Simon -Original Message- From: P K [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:58 PM To: [EMAIL PROTECTED] Subject: RE: [OT] RE: Memory usage Sorry to continue on this topic. I've learnt a great deal of non struts stuff on this list and this only adds to it. I've been bothered (mostly in my mind) with questions about peoples capabilities and desires when it comes to work. Viru, this original poster of the question on Memory Usage clearly has a desire to learn, but what about people who don't? How do you deal with them? I currently work with a Tech Lead who wouldn't be able to output a String to standard out if asked to write a program. I don't care about her taking credit for the work that we do. She doesn't provide any leadership whatsoever to the project except produce paper that no one bothers to read. Have you guys come across situations like this? What have you done about it? Don't get me wrong - I am not prone to complaining nor do I think I am a member of the elite 'Black Team'. Quoting Dhaliwal, Pritpal (HQP) [EMAIL PROTECTED]: +1 I agree with everyone who has responded. We should not clutter this very friendly mailing list with things that don't belong here, that includes not so nice responses. I haven't been on many, but this is by far my favorite list, even though I am mainly a spectator. I lashed out because this question clearly didn't belong here. If the person had followed anything in http://www.catb.org/~esr/faqs/smart-questions.html, it must that they were polite. They certainly didn't do much investigation outside on the internet. The little bit of unfriendliness, I dunno why it came out. Unprofessional, it shouldn't have came out. Even questions that don't belong here deserve to be treated with respect. That is the single most obvious characteristic of STRUTS-USER that is distinctive (even though it has lots of other good qualities). Unfortunately, you decided to unload on a poster in a manner that is decidedly out of the norm for STRUTS-USER. Your response is the kind of behavior that creates problems for the perception of open source projects as being friendly to users or not. If you think the topic is totally out of scope for STRUTS-USER, then you should either (a) answer the question anyway but point people to where they should really be asking; (b) *gently* encourage the user to explore the other resources that are available (the archives are full of examples of folks who have done this), or (c) shut your yap and press DELETE instead of SUBMIT on your replies :-). The culture of the STRUTS-USER list has always been *deliberately* different from the you idiot, how could you be so stupid as to ask that question in that way sort of attitude that far too many open source projects have. Fortunately, despite the fact that this is the
[OT] Applet communication with web app
Quick question: Given an applet that is part of a web app, what is the usual (best/easiest?) technique for said applet to communicate with the server and vice-versa: 1. Handle the socket stuff itself and open a connection with the server 2. Use RMI 3. Other? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not forwarding to another Action
Thanks Ramadoss. You led me to look into my web.xml file. It is mapped to *.exec and not *.exe. It's an oversight on my part. Let me elaborate my question #3: If my .JSP has a html:form action=/app/UpdateOrder?id=30 , I know when I click a 'submit' button to get to an Action class, I can retrieve the id in my Action class by doing String id = Request.getParameter(id); But if my .jsp uses a link to pass the id such as a href=app/UpdateOrder.exec?id=30.. In other words, I get to the Action class through a 'link' rather than a 'submit', can I still use String id = Request.getParameter(id); to retrieve the id? I tried it and I can't find id from the Request object. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:24 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Life, the Universe and Everything (was: RE: [OT] RE: Memory usage)
-Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] 4. I had the same frustrations that you have. I made the decision that the best way to restore the balance of good in the universe, was to try to become the kind of tech lead that I would have wanted when I was a newbie/humble grunt. +1 .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action not forwarding to another Action
Nop. I removed 'redirect=true' as followed and still can't retrieve the parameter in OrderSearchAction. I even tried to specifically do request.setParamter(...) first and that doesn't work either. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.OrderSearchAction name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 6:45 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action I think when you say 'redirect=true', then you lose your request object. This is like a client side/browser redirect. Remove this attribute from your forward element and give it a try. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:24 PM To: Struts Users Mailing List Subject: RE: Action not forwarding to another Action If Im not wrongif .exe is what you hv configured in web.xml then I see there is no reason why it is not picking up / possible reason could be... make sure that you are forwarding to Content which is mapped to /app/ListOfOrder.exe in your OrderMaintainAction 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? the same scenarion where I'm not able to get the value of request attribute which I set in my previous Action class then I set as session attribute and Im able to get that value in the other Action class where Im redirecting to. 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? I dont really understand your point but I assumed that you are passing a parameter from one form to another in such case if you are calling other page/calling action class by passing request parameter you could get those parameters on the other page/action class. hth -Ramadoss -Original Message- From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 5:51 PM To: '[EMAIL PROTECTED]' Subject: Action not forwarding to another Action Hi: I have a similar problem that I can't invoke OrderSearchAction.exe from OrderMaintainAction. I set a debug breakpoint at the beginning of OrderSearchAction and never get there. actionpath=/app/DeleteOrder type=com.cat.action.OrderMaintainAction name=OrderFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.exe redirect=true / forward name=ContentError path=/app/DeleteError.jsp/ /action actionpath=/app/ListOfOrder type=com.cat.action.'redirect=true' name=OrderSearchFormBean scope=request validate=false forward name=Content path=/app/ListOfOrder.jsp/ forward name=ContentError path=/app/OrderError.jsp/ /action I have two other questions: 1) Can someone also tell me if I have a Request attribute defined in OrderMaintainAction, if the above redirection works, will I be able to see the same Request attribute in OrderSearchAction? 2) A general question: if formA is linked to formB through a 'link'. If I click on the 'link' in formA, can I get to the passed parameter of FormA by doing Request.geParameter(id) or I can only retrieve 'id' throught a 'submit' rather than through a 'link'? Thanks for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: struts-form vs struts html
Ya you should use struts:html tag lib -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 7:52 PM To: [EMAIL PROTECTED] Subject: struts-form vs struts html Newbie here trying to make sense out of usage of these two tag libraries. I am using struts 1.1. Should I just use struts-html instead of struts-form? I haven't looked really close but there appears to be overlap. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]