Mapped Backed ActionForm
I am having a difficult time getting Map backed ActionForm's working. In the ActionForm class I have the following methods defined private Map elementMap = new HashMap ( ); public Object getElementMap ( String key ) { return ( String ) elementMap.get ( key ); } public void setElementMap ( String key, Object value ) { elementMap.put ( key, value ); } In the jsp page I have trtdc:out value='${element.element}'//td tdhtml-el:text property='elementMap(${element.element})' value='${element.value}'//td td[c:out value='${element.format}'/]/td /tr The form initializes correctly, the initial value is set correctly, etc. When I submit the form I get the following error, which I usually get when a parameter is attempting to set a value in the form. java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor In the reset method of the form I look at the parameters of the request and see elementMap(perPage) with a value that is what I entered on the form. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: xmlns:bean was already specified for element jsp:root.
How it happens for me is when I copy the tag line for %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % and forget to change the prefix. Then bean is already a prefix for another tag lib. -Original Message- From: Loren Hall [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 9:35 PM To: Struts Users Mailing List Subject: xmlns:bean was already specified for element jsp:root. I just started using jstl's core tags on top of the struts tag my app was built on. But I get a conflict when I import struts-bean.tld and c.tld on the same .jsp page . . . help appreciated . . . maybe there's a particular parser that will overcome this? [Versions: tomcat 4.1.24, Struts 1.0.2, jakarta taglibs standard-1.0.3] e.g. %@ taglib uri=/WEB-INF/c.tld prefix=c % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % ``` HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: jsp.error.tlv.invalid.page null: org.xml.sax.SAXParseException: Attribute xmlns:bean was already specified for element jsp:root. at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler. java:105) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430 ) at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:112 ) at org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:661) at org.apache.jasper.compiler.Validator.validate(Validator.java:613) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:230) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 73) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 90) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at
RE: Map backed action form
You have not allocated the Properties instance that you will use. private Map properties = new Properties ( ); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, September 15, 2003 7:00 AM To: Struts Users Mailing List Subject: Map backed action form Hello, I have a problem with my map backed form. When I try to validate the form, when I try to retrieve value it throws a null pointer exception, as if the map was null. I am successful going through my jsp and populating the bean, so i am not sure what is going on. What might be the problem? form: private Map properties; public Map getProperties() { return this.properties; } /** Setter for property properties. * @param properties New value of property properties. * */ public void setProperties(Map properties) { this.properties = properties; } public void setValue(String key, Object value) { properties.put(key, value); } public Object getValue(String key) { return properties.get(key); } struts-config definitions form-bean name=registerUserForm type=com.blah.gum.forms.RegisterUserForm/ action path=/registerUser type=com.blah.gum.actions.RegisterUser name=registerUserForm scope=request input=new_register.jsp forward name=success path=/out.jsp/ /action - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Map Backed Form/Tiles
Nope! Im sorry to say. I only wish it were so. The page comes up and initializes correctly with the value that ${element.value} evaluates to. So _ I think it might be in some way environmental, so I will double and triple check the common-* jars for size and dates. Thanks for all of your help! -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 4:20 PM To: Struts Users Mailing List Subject: Re: Map Backed Form/Tiles Ray Madigan wrote: I have narrowed the problem down to: html-el:text property='elementMap(${element.element})' value='${element.value}'/ being in a tile. If the tag is in the main body of the JSP everything works as it should. - Guess I better look harder at the tiles I use. Thanks Looking at this I haven't used the value='' attribute before. The Struts taglib API says ' Value to which this field should be initialized. [Use the corresponding bean property value] [RT Expr]' This sounds like it will try to access the method in the form bean to find the initial value. If your ${element.value} evaluates to abc then it will try to do a Form.getAbc() for the initial value. I don't think that is what you want. I think you should be using this: html-el:text property='elementMap(${element.element})'/ and in the action that you call to get to this JSP page, you should be putting in the initial values. -- Jason Lea - 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 Form Design Question
I populate a bean with the data in the Action class and store the bean in a request scope attribute. I like to keep the Form as clean and small as I can. I usually use the same form for multiple jsp's so I don't need the clutter of all of the collections of stuff in the Form. Just My Opinion! :-) -Original Message- From: K.C. Baltz [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 5:16 PM To: Struts Users Mailing List Subject: Re: Action Form Design Question Personally, I've tried to stay away from putting data in the ActionForm that isn't related to an actual form submission value. So if I have a drop down with a list of countries for the user to choose, the list of countries goes into the request attributes and the single choosen country value goes into the ActionForm. That way, you don't need to repopulate the Country List when the user submits their form, something you might have to do if you put the list into the ActionForm. This is just what has worked for me. I've definitely struggled with where to put data and I'm going to be curious to see other replies to your question. K.C. Michael Thompson wrote: I've hit a stumbling block and I'm not quite sure how to work around it. I've written struts apps in the past and I've taken the approach of putting everything in the ActionForm so that the jsp has a one stop shop for all it's display needs. So where I've hit an issue is when say I have jsp A that is rendered with form A. When user submits data to action A, the ActionForm pushed to execute is form A. What happens when I need to forward from action A to jsp B which is rendered with form B? I need to populate an ActionForm B to send to jsp B, but I don't have one. Is it normal to create a form of a different type in your Action? So essentially the code would look something like: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { FormA inputForm = (FormA)form; Result result = doSomeCrunchingOnDataSubmittedViaFormA(inputForm); FormB outputForm = getInstanceOfFormB(mapping, request); //this would stash in request/session also populateFormBWithResults(outputForm, result); return mapping.findForward(success); } getInstanceOfFormB is a little hazy, but I did notice a method in RequestUtils that might help. Seems like this might be breaking some struts abstractions by knowing what form to create etc. Is this the correct way to approach this or should I think about a redesign of my forms and actions? Thanks in advance! --m - 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]
Map Backed Form
I am having some difficulty with my Map Backed Form implementation. I have in my Form: private Properties elementMap = null; public String getElementMap ( String key ) { return ( String ) elementMap.getProperty ( key ); } public void setElementMap ( String key, String value ) { elementMap.put ( key, value ); } public void reset ( ActionMapping mapping, HttpServletRequest request ) { ... elementMap = new Properties ( ); } I have in my JSP: html-el:text property='elementMap(${element.element})' value='${element.value}'/ If I enumerate the request parameters in the reset method of the form the paramaters and values look like: name-elementMap(PerPage) value-4 I get the exception java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor From past experience I get this exception when struts is looking for a setter in my form and can't find it. I think that struts is looking for a method 'setElementMap(perPage)' and has not figured out it is a mapped property for some reason. And I can't write a method with name. Any help would be appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:link question (for a relative newbie)
If you are not opposed to using the JSTL standard library I personally have a difficult time keeping track of the parameters and values using the other syntax. c:url value='/collaborator.do' var='collaboratorURL' c:param name='mode' value='edit'/ c:param name='code' value='${code}'/ /c:url html-el:link href='${collaboratorURL}' Edit /html-el:link -Original Message- From: Zimmerman, Steven R. [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 1:45 PM To: '[EMAIL PROTECTED]' Subject: html:link question (for a relative newbie) I cannot seem to get this to work html:link page=/collaborator.do?mode=editcode=%=code%Edit/html:link or better yet this instead html:link action=collaborator.do?mode=editcode=%=code%Edit/html:link but the %=code% is not picking up the value of code, instead it is putting %=code% in its place. That all makes sense why, but is there a way I can get at a expression using Struts tags like I can using the code below with a hard coded HREF ('cuse it works fine there but is not what I want). A href=logon.jsp?task=deletecode=%=code%Delete/A All else works fine, I realize that I could be chaining actions or some other do not do but I am under a bit of a time crunch (as always... :). TIA, Steve - 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: Map Backed Form
I tried this - same result? h -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:18 PM To: Struts Users Mailing List Subject: Re: Map Backed Form I read this somewhere (perhaps Struts in Action) and I use map-backed properties... the methods should have String keys, but Object values eg public Object getElementMap ( String key ) { public void setElementMap ( String key, Object value ) Ray Madigan wrote: I am having some difficulty with my Map Backed Form implementation. I have in my Form: private Properties elementMap = null; public String getElementMap ( String key ) { return ( String ) elementMap.getProperty ( key ); } public void setElementMap ( String key, String value ) { elementMap.put ( key, value ); } public void reset ( ActionMapping mapping, HttpServletRequest request ) { ... elementMap = new Properties ( ); } I have in my JSP: html-el:text property='elementMap(${element.element})' value='${element.value}'/ If I enumerate the request parameters in the reset method of the form the paramaters and values look like: name-elementMap(PerPage) value-4 I get the exception java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor From past experience I get this exception when struts is looking for a setter in my form and can't find it. I think that struts is looking for a method 'setElementMap(perPage)' and has not figured out it is a mapped property for some reason. And I can't write a method with name. Any help would be appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - 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: Map Backed Form
Jason - thanks for your help. I do appreciate it. This code worked in 1.1 beta and I haven't had a chance to look at it since then. I have found that the exception I am getting is caused by Struts via BeanUtils attempting to access a setter on a bean when the setter method doesn't exist. I added to the line: private Properties elementMap = new Properties(); I rechecked the name of the methods and the name in the jsp. I remember once I had a space between the ( and the parameter and the parser couldn't find the parameter. This page lives in a set of pages that all use the same formBean it is the only page that uses the map. Also the html text control code lives in a tile. The tile declares itself a form and uses the correct form. I'll have to dig in the source I guess. -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:29 PM To: Struts Users Mailing List Subject: Re: Map Backed Form Perhaps you need to step through the struts-config to make sure you are referencing the correct form bean. Do you access the .jsp page directly or go through an action first? I would also look at your initialisation of the elementMap. Perhaps you should be using private Properties elementMap = new Properties(); and in your reset method: elementMap.clear() to make sure it is initialised at first use. If you accessed the .jsp directly I don't think the reset method is called, but the bean is created. Ray Madigan wrote: I tried this - same result? h -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:18 PM To: Struts Users Mailing List Subject: Re: Map Backed Form I read this somewhere (perhaps Struts in Action) and I use map-backed properties... the methods should have String keys, but Object values eg public Object getElementMap ( String key ) { public void setElementMap ( String key, Object value ) Ray Madigan wrote: I am having some difficulty with my Map Backed Form implementation. I have in my Form: private Properties elementMap = null; public String getElementMap ( String key ) { return ( String ) elementMap.getProperty ( key ); } public void setElementMap ( String key, String value ) { elementMap.put ( key, value ); } public void reset ( ActionMapping mapping, HttpServletRequest request ) { ... elementMap = new Properties ( ); } I have in my JSP: html-el:text property='elementMap(${element.element})' value='${element.value}'/ If I enumerate the request parameters in the reset method of the form the paramaters and values look like: name-elementMap(PerPage) value-4 I get the exception java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor From past experience I get this exception when struts is looking for a setter in my form and can't find it. I think that struts is looking for a method 'setElementMap(perPage)' and has not figured out it is a mapped property for some reason. And I can't write a method with name. Any help would be appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - 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] -- Jason Lea - 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]
(Tiles) format message
I have a tile I use to build a html control that has to write a string. I use several message bundles within my application. I pass the bundle into the tile. Is it legal to pass in the name of the bundle to the tile. What happens is somehow the first bundle that is written to is used for all calls into the tile. It doesn't use the current bundle definition. So, throughout my application I have columns named ???x.yyy??? whatever the name of the column is because it couldn't find it in the bundle of the first caller. Any suggestions Thanks tile:insert page='/com/mbresearch/main/tile/column.jsp' !-- The action target -- tile:put name='target' value='/APPLICATION.do'/ !-- The name of the Resource Bundle -- tile:put name='bundle' value='APPLICATION'/ !-- The name of the resource element to get from the bundle -- tile:put name='column' value='name.column'/ !-- The name of the sortBy field -- tile:put name='sortBy' value='${form.sortBy}'/ /tile:insert Inside the tile I do tile:importAttribute name='bundle'/ head fmt:setLocale value='en'/ fmt:setBundle basename='${bundle}'/ tile:importAttribute name='target'/ tile:importAttribute name='column'/ tile:importAttribute name='sortBy'/ td class=column nowrap c:url var='sortName' value='${target}' c:param name='topic' value='sort'/ c:param name='sortBy' value='${sortBy}'/ c:param name='sortOrder' value='false'/ /c:url html-el:link href='${sortName}' !-- WRITE THE NAME OF THE COLUMN FROM THE BUNDLE -- fmt:message key=${column}/ html:img page=/images/UArrow.jpg border=0 align=middle/ /html-el:link /td - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OT - c:fmt
I am using many fmt:bundle resources within my application for different sections of my application, and every time I add a new bundle, an old one bundle that used to work, or sometimes even the new one won't find the resources in the bundle? Is there a limit on the number of bundles within an application? Is it tied to physical memory on the machine? What could cause this behaviour? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IllegalAccessError
Hello: I have been using struts in my application on Tomcat 4.2.24. I have had a an Exceptions that is very puzzling to me. The Exception is: java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor From the Java Platform API: Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. Does anyone know how to go about debuging this kind of Error? What in Struts could cause this type of error? My application doesn't work anymore, and I have a near deadline. Any help would be appreciated. Full Exception Report: 2003-08-08 17:52:31 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilter Chain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor at org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMetho ds(MappedPropertyDescriptor.java:383) at org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(Map pedPropertyDescriptor.java:453) at org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPrope rtyDescriptor.java:527) at org.apache.commons.beanutils.MappedPropertyDescriptor.init(MappedPropertyD escriptor.java:149) at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti ls.java:907) at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934) at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1096) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j ava:816) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at
RE: IllegalAccessError
I am using the binary distribution struts 1-1. I checked anyplace where the library is copied and all have the same size. I check inside the jar and the classes in question are the same size, if that matters or not. I am using a third party application that uses BeanUtils but it also has the same sizes and dates. So I assume that the library's are the correct ones. Im unsure where to look next, or what test I should do to figure out what could be the problem. Thanks RayM -Original Message- From: Robert Leland [mailto:[EMAIL PROTECTED] Sent: Sunday, August 10, 2003 10:17 PM To: Struts Users Mailing List Subject: Re: IllegalAccessError Are you using all the jars that came with the Struts 1.1 release/nightly and then compiled all your source code against that ? This includes 3rd part tools that might make use of BeanUtils ? -Rob Ray Madigan wrote: Hello: I have been using struts in my application on Tomcat 4.2.24. I have had a an Exceptions that is very puzzling to me. The Exception is: java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor From the Java Platform API: Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. Does anyone know how to go about debuging this kind of Error? What in Struts could cause this type of error? My application doesn't work anymore, and I have a near deadline. Any help would be appreciated. Full Exception Report: 2003-08-08 17:52:31 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio n FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilte r Chain.java:98) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChai n .java:176) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC h ain.java:172) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j a va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve . java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo k eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:536) - Root Cause - java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor at org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMeth o ds(MappedPropertyDescriptor.java:383
IllegalAccessError?
I am in the process of porting my application to Tomcat 4.1.24 and am getting the strangest Error Message. Has anyone seen anything like this? I haven't changes anything in my app, or the struts config. Nothing in the stack trace has any pointer to where in my app it is failing? Help would be very much appreciated. Thanks in Advance. java.lang.IllegalAccessError: try to access class org.apache.commons.beanutils.MappedPropertyDescriptor$1 from class org.apache.commons.beanutils.MappedPropertyDescriptor at org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMetho ds(MappedPropertyDescriptor.java:383) at org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(Map pedPropertyDescriptor.java:453) at org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPrope rtyDescriptor.java:527) at org.apache.commons.beanutils.MappedPropertyDescriptor.init(MappedPropertyD escriptor.java:149) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] - dos file
I just got back from a week business trip and used wordpad to edit all of my struts code. Now all of my files say dos when I look at them in vi. Does anyone know of a command to convert them back. I assume it is because of the line terminator being different on the Redmond OS. I usually use Linux. Thanks In Advance RayM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Action Form: HashMap
I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like this. Has anyone done it before, or is there a better way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action Form: HashMap
OK, I made the following changes, and it didn't do what I expected. HELP! I added to the ActionForm: /** * The form HashMap */ private HashMap map = new HashMap ( ); public Object getStringMapped ( String key ) { return map.get ( key ); } public void setStringMapped ( String key, String value ) { map.put ( key, value ); } I modified the jsp as: html:form action='Foo.do' c:forEach var='element' items='${elements}' html-el:text property='stringMapped ( ${element.element} )' value='${element.value}'/ /c:forEach ... /thml:form When I look at the form in my DispatchAction map is always empty. Any help would be appreciated! -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Action Form: HashMap Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003 11:00:12 -0700 I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like this. Has anyone done it before, or is there a better way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action Form: HashMap
I tried this and it also didn't work. The get and set methods do not call the HashMap directly, cause a HashMap uses get and put. The geters and setters that I supply are the interface to the HashMap, and in this case could be a simple Properties class, if the result is a set of strings? Is this correct, or am i confused? I appreciate your help! -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 7:04 AM To: Struts Users Mailing List Subject: Re: Action Form: HashMap if you are using map backed actionForm, make sure getXXX() setXXX() where XXX matches the name of the map. In you case function names should be getMap() setMap() - Original Message - From: Ray Madigan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 9:37 AM Subject: RE: Action Form: HashMap OK, I made the following changes, and it didn't do what I expected. HELP! I added to the ActionForm: /** * The form HashMap */ private HashMap map = new HashMap ( ); public Object getStringMapped ( String key ) { return map.get ( key ); } public void setStringMapped ( String key, String value ) { map.put ( key, value ); } I modified the jsp as: html:form action='Foo.do' c:forEach var='element' items='${elements}' html-el:text property='stringMapped ( ${element.element} )' value='${element.value}'/ /c:forEach ... /thml:form When I look at the form in my DispatchAction map is always empty. Any help would be appreciated! -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Action Form: HashMap Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003 11:00:12 -0700 I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like this. Has anyone done it before, or is there a better way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: How to repopulate Form which has html elementswithsamename
Why doesn't the javascript repopulate the table? -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 7:31 AM To: [EMAIL PROTECTED] Subject: RE: How to repopulate Form which has html elementswithsamename Shane Sorry for all the confusion and please bear with me.. How do I get Struts to repopulate multiple elements with all with the same property? this is my exact problem.. Let me give u my .jsp page example (Initiall the table will have one row) TABLE id=mytable TR TD html:select property=sex html:option value=MALEMale/html:option html:option value=FEMALEFemale/html:option /html:select /TD tdhtml:text property=firstName //td /tr /TABLE I have a Javascript which adds rows to the table on click of a button. So if user has enetered five rows of data then How do I get Struts to repopulate the table? Hope i am clear. Thanks [EMAIL PROTECTED] 06/06/03 10:08AM Then the original question from the start and asked 3 times in an hour because it wasn't answered should have been a one liner: How do I get Struts to repopulate multiple elements with all with the same property? Or something like that. From your question you say you have a (single) table with a (single) html:text and a (single) html:select. Now you show the code and it is a more clear that you don't have what you mentioned. You should have posted a code example in the first place. It would save time. Now, what doesn't make sense is the same key for the bean:message. This is because I have an interesting solution I am thinking about but if I knew the real way you intend to use the tags believe I could help better. I can't picture the need for this on a form: Name [ ] Name [ ] Name [ ] Then if you say, it is really key=du.theName1 and the next one is du.theName2 then that wouldn't be truly dynamic. -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:26 AM To: [EMAIL PROTECTED] Subject: RE: How to repopulate Form which has html elementswithsamename Thanks for the sample and I have that working. But my issues is slightly different where there are Multiple HTML elements with the same name Eg: bean:message key=du.theName /html:text property=name / bean:message key=du.theName /html:text property=name / bean:message key=du.theName /html:text property=name / bean:message key=du.theName /html:text property=name / Then in this case how do u repopulate the page. Thanks [EMAIL PROTECTED] 06/05/03 05:13PM Here, no more asking about it. The code is very close but not tested. So if it isn't 100% right do some leg work for gosh sakes. form.jsp: %@ taglib uri=/WEB-INF/tld/struts-html.tld prefix=html % !-- I wonder if you are not putting the above line in your JSP??? -- html:form action=/test.do bean:message key=du.theName /html:text property=name / bean:message key=du.whatever /html:text property=whatever / /html:form ActionForm class: package my.package; class MyForm extends org.apache.struts.action.ActionForm { private String name; private String whatever; public void setName(String name){ this.name=name; } public String getName(){ return this.name; } public void setWhatever(String whatever){ this.whatever=whatever; } public String getWhatever(){ return this.whatever; } public String whatThe(){ return Look at documentation closer!!!; } //Define the validate method or use the struts validator. Since you //a newbie which likes to repost and repost you should not use //validator at this point in time, please } Action class: package my.package; class MyAction extends org.apache.struts.action.Action { //do stuff in the execute method } struts-config: form-bean name=aForm type=my.package.MyForm /form-bean actionpath=/showform type=my.package.MyAction name=aForm input=form.jsp validate=true scope=request forward name=display path=form.jsp/ forward name=blah path=crap.jsp/ /action -Original Message- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 4:29 PM To: [EMAIL PROTECTED] Subject: Re: How to repopulate Form which has html elements withsamename Do u have any working sample so that I can build from there [EMAIL PROTECTED] 06/05/03 01:54PM Repopulating Fields. I keep hearing that this is a freebie in struts but i have note seen it work on my app yet. i just stuff what i want to repopulate with in the session (for now). It would be nice if someone could post what setup write IS. so we can check if we have something set up WRONG. After all, WSAD 5 came with struts preloaded so how can it be setup wrong? Sashi Ravipati [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Let me rephrase my question. I have a table which looks like this.. example table
RE: Action Form: HashMap
Thanks for your response. It still doesn't work. I looked at the page you refered me to and the HashMap is names values and the getter/setter's are named getValue, and setValue. Is the s at the end of the map name important. I changed my form/jsp to work with an element of a known name. in the form private String foo = null; public String getFoo ( ) { return foo; } public void setFoo ( String foo ) { this.foo = foo; } and the input tag becomes html-el:text property='${element.element}' value='${element.value}'/ And it works like a champ. Is there anything else I have to do to make the HashMap work? Like use a different Base Form class? This seems easy enough? I'm losing my mind! -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 8:13 AM To: Struts Users Mailing List Subject: Re: Action Form: HashMap In your jsp page, you have to specify your input as html:text property=xxx(key)/ where xxx maps to the map name. see http://jakarta.apache.org/struts/userGuide/building_controller.html#map_acti on_form_classes - Original Message - From: Ray Madigan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:23 AM Subject: RE: Action Form: HashMap I tried this and it also didn't work. The get and set methods do not call the HashMap directly, cause a HashMap uses get and put. The geters and setters that I supply are the interface to the HashMap, and in this case could be a simple Properties class, if the result is a set of strings? Is this correct, or am i confused? I appreciate your help! -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 7:04 AM To: Struts Users Mailing List Subject: Re: Action Form: HashMap if you are using map backed actionForm, make sure getXXX() setXXX() where XXX matches the name of the map. In you case function names should be getMap() setMap() - Original Message - From: Ray Madigan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 9:37 AM Subject: RE: Action Form: HashMap OK, I made the following changes, and it didn't do what I expected. HELP! I added to the ActionForm: /** * The form HashMap */ private HashMap map = new HashMap ( ); public Object getStringMapped ( String key ) { return map.get ( key ); } public void setStringMapped ( String key, String value ) { map.put ( key, value ); } I modified the jsp as: html:form action='Foo.do' c:forEach var='element' items='${elements}' html-el:text property='stringMapped ( ${element.element} )' value='${element.value}'/ /c:forEach ... /thml:form When I look at the form in my DispatchAction map is always empty. Any help would be appreciated! -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Action Form: HashMap Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003 11:00:12 -0700 I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like this. Has anyone done it before, or is there a better way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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
RE: Action Form: HashMap
I am using frames so i can't look at the source. I took out the spaces, and I looked at the DEBUG Log and there is a line from BeanUtils setProperty ( Form, stringMapped(bbb), [xxx] ) And it worked! Thanks for your help Ray Madigan -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:31 AM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap I mean the HTML view source after the page has been generated. I am working with the Mapped Properties methods and it works fine so hang on there, it will work at the end... :) -- Erez -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 7:28 PM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap Try looking at the source of the generate page. See that all looks correct. I am also not sure if leading spaces between the name of the property name 'stringMapped' and the () chars are legal... -- Erez -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 4:04 PM To: Struts Users Mailing List Subject: Re: Action Form: HashMap if you are using map backed actionForm, make sure getXXX() setXXX() where XXX matches the name of the map. In you case function names should be getMap() setMap() - Original Message - From: Ray Madigan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 9:37 AM Subject: RE: Action Form: HashMap OK, I made the following changes, and it didn't do what I expected. HELP! I added to the ActionForm: /** * The form HashMap */ private HashMap map = new HashMap ( ); public Object getStringMapped ( String key ) { return map.get ( key ); } public void setStringMapped ( String key, String value ) { map.put ( key, value ); } I modified the jsp as: html:form action='Foo.do' c:forEach var='element' items='${elements}' html-el:text property='stringMapped ( ${element.element} )' value='${element.value}'/ /c:forEach ... /thml:form When I look at the form in my DispatchAction map is always empty. Any help would be appreciated! -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Action Form: HashMap Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003 11:00:12 -0700 I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like this. Has anyone done it before, or is there a better way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Action Form: HashMap
But I Love spaces to separate the content so I can see the situation easier. Guess I will have to learn to live with this one. :-( Thanks again -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:59 AM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap Well I am glad it works now... and all I can say is that SPACE problems are truly invisible sometimes :) -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 6:49 PM To: Struts Users Mailing List Subject: RE: Action Form: HashMap I am using frames so i can't look at the source. I took out the spaces, and I looked at the DEBUG Log and there is a line from BeanUtils setProperty ( Form, stringMapped(bbb), [xxx] ) And it worked! Thanks for your help Ray Madigan -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:31 AM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap I mean the HTML view source after the page has been generated. I am working with the Mapped Properties methods and it works fine so hang on there, it will work at the end... :) -- Erez -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 7:28 PM To: 'Struts Users Mailing List' Subject: RE: Action Form: HashMap Try looking at the source of the generate page. See that all looks correct. I am also not sure if leading spaces between the name of the property name 'stringMapped' and the () chars are legal... -- Erez -Original Message- From: Zhu He [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 4:04 PM To: Struts Users Mailing List Subject: Re: Action Form: HashMap if you are using map backed actionForm, make sure getXXX() setXXX() where XXX matches the name of the map. In you case function names should be getMap() setMap() - Original Message - From: Ray Madigan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, June 06, 2003 9:37 AM Subject: RE: Action Form: HashMap OK, I made the following changes, and it didn't do what I expected. HELP! I added to the ActionForm: /** * The form HashMap */ private HashMap map = new HashMap ( ); public Object getStringMapped ( String key ) { return map.get ( key ); } public void setStringMapped ( String key, String value ) { map.put ( key, value ); } I modified the jsp as: html:form action='Foo.do' c:forEach var='element' items='${elements}' html-el:text property='stringMapped ( ${element.element} )' value='${element.value}'/ /c:forEach ... /thml:form When I look at the form in my DispatchAction map is always empty. Any help would be appreciated! -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: Re: Action Form: HashMap Read the mapped properties section here: http://jakarta.apache.org/struts/faqs/indexedprops.html David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Action Form: HashMap Date: Thu, 5 Jun 2003 11:00:12 -0700 I have a form that has elements that I do not know the names of ahead of time. I want to have struts scrape the form into a map so the key is the name of the element and the value is the value of the element when it was submitted. I looked for an action form that acted like this. Has anyone done it before, or is there a better way? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED
html:link - help
This may be more html related - if so forgive me. I am working on a project where i have a set of jsp pages that i want want to generate a href link to. I have tried a bunch of ways, and nothing but brute force seems to work. The pages require at least five parameters to be passed to the page, retrieved from either a form bean or from the environment based upon the context of the use of the jsp. What i want to know: Is there a way other then the following to pass the parameters. It seems to me this is not very maintainable? html-el:link page=/XXX.do?aaa=vvvbbb=wwwccc=xxxddd=yyyeee=zzz struts /html-el:link I tried calling a javascript function for omclick, or onmousedown setting hidden parameters, I think the event handlers are called after the request is sent to the link???, but the parameters are not set in the link page. I have tried using c:url with the param tags, but cannot figure out how to get a string to represent the url, the url just appears in the page, really ugly? If someone know something, i would appreciate some help. Thanks in advance Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Menu
Can struts menu be made to operate as a single dropdown menu column as, for example, a column in a table, where it is only as wide as the the column that the menu resides in as opposed to the width of the frame it sits in. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Webapp Archives
I really wished sun would have called web application archives something different the war's. By 10:30AM I am already tired of: make war - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:frame
can anyone tell me for certain if this is a bug or a problem of mine I use: html:frame src=/Main/Content.do marginheight=0 marginwidth=0 frameborder=0/ and the code that gets rendered for the browser is: html:frame src=/Main/Content.do frameborder=0/ and the code in the tag:\ is: if (marginheight 0) { results.append( marginheight=\); results.append(marginheight); results.append(\); } if (marginwidth 0) { results.append( marginwidth=\); results.append(marginwidth); results.append(\); } Not allowing me to have a zero width margin for my frame. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:frame
Sorry - i got fat dumb and happy cutting from different docs It is rendered as frame src=/Main/content.do frameborder=0 -Original Message- From: Todd Pierce [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 4:49 PM To: 'Struts Users Mailing List' Subject: RE: html:frame If your tag is rendering as html:frame src=/Main/Content.do frameborder=0/ it seems likely that you don't have the taglib definition in your jsp. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 12 March 2003 11:35 AM To: Struts Users Mailing List Subject: html:frame can anyone tell me for certain if this is a bug or a problem of mine I use: html:frame src=/Main/Content.do marginheight=0 marginwidth=0 frameborder=0/ and the code that gets rendered for the browser is: html:frame src=/Main/Content.do frameborder=0/ and the code in the tag:\ is: if (marginheight 0) { results.append( marginheight=\); results.append(marginheight); results.append(\); } if (marginwidth 0) { results.append( marginwidth=\); results.append(marginwidth); results.append(\); } Not allowing me to have a zero width margin for my frame. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data)
I was in grad school when i got to use my first Z80 computer :-( Ouch -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 5:45 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) You know it was! The ZX81 was the first machine I owned. The first machinesI used were a ZX80 and an Acorn Atom at our school computer club. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:53 PM To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) Wossit a ZX81 perchance? -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 March 2003 05:34 To: Struts Users Mailing List Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) My first two computers didn't even have floppy drives ... 300 baud tape and 1024 bytes of memory! -Original Message- From: James Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:28 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Don't beat on James! (was RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data) From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Gladly only I had you figured as an old guy! Simon Programmed in RPG/400 once and now regret it Chappell Well, I'm old to the computer industry, but only a year with Struts... James Has punched cards for OS/VS1 on an IBM/360 Turner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
You win 70 to 71 - ouch again -Original Message- From: Kandi Potter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:34 AM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing My guess is early 70sbecause my first experience was also in high school using an old IBM System ?? with 64k memory.It took up a complete room.You saved your program by not dropping the punch cards. If your program didn't have any compile errors, it would be 20 minutes executing until the output came out on the printer ! -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:38 PM To: Struts Users Mailing List Subject: RE: [OT] Ancient computing Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OnLoad
I generate the arguments to the scripts on the server. when the jsp is being executed and passed to the client. What i don't know how to do is to figure out when to make the call. The img tag doesn't call the onload when it is loaded. I think i am just going to inline the script call. I was hoping for a little more formality - since regular html will call onload. -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 2:46 AM To: Struts Users Mailing List Subject: Re: OnLoad JavaScript is on the client. Your request-scoped variables are on the server. I don't see how you'd manage this unless you somehow wrote the variables values into your JavaScript somehow. Essentially, you'd have to generate your script on-the-fly. Ray Madigan wrote: I am working in a jsp and I have found the item im looking for. I write out an img that represents the current selected item. Now I want to inform another frame that something occured. There is no onload javascript handler for the img tag like there is in it's html equilivant? The arguments for the javascript need to be able to look at request scope variables? Anyone know how to accomplish this? Thanks RayM -- Eddie Bush - 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]
ExceptionHandler
I moved my ExceptionHandler from a global-exception to an exception in the action section. I no longer get the exception detail in the Globals.EXCEPTION_KEY location. Am I doing something wrong and it should be there, or has it moved, or do i need to define a Handler and override where the exception is put? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to reuse mappings and jsp pages
I do something very similar to this. But Im not sure exactly what you are trying to do. If your base class is abstract and defines a general interface that the extending classes implement, like public Collection list ( ); and the classes that extend your base class implement this interface, all the action class has to do is call list on the object it holds and doesn't need to know if it is cats or dogs? Im not sure if this helps. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:46 AM To: 'Struts Users Mailing List' Subject: RE: How to reuse mappings and jsp pages I'm not sure I understood your answer. To get closer to the problem: in the action mapping for the path, say, listAnag(.do), I have to specify the name attribute, which determines the class of objects I have to retrieve and then list in the result page. Suppose I have a BaseAnagForm class (which extends ActionForm) and then CatAnag and DogAnag, both extending BaseAnag. What i'd like to do is determine wheter to list Cats or Dogs, using some other parameter, because I don't want to determine this at deploy time. A solution of course would be to define several mappings in struts-config, like: action-mappings actionpath=/listCatsAnag type=myPackage.ListAnagAction name=cats scope=session input=--- validate=true forward name=success path=/showCatsAnag.jsp/ forward name=failure path=/failure.jsp/ /action actionpath=/listDogsAnag type=myPackage.ListAnagAction name=dogs scope=session input=--- validate=true forward name=success path=/showDogsAnag.jsp/ forward name=failure path=/failure.jsp/ /action Where dogs is a Bean of class DogsAnag and cats is a bean of class CatsAnag. What I would like to do is configure a UNIQUE action element, because I have lots of those objects, and the things I have to do on them (list, save, retrieve) are substantially the same... Thanks Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: martedì 4 marzo 2003 17.03 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to reuse mappings and jsp pages Not to mention the validator and everything uses BeanUtils and PropertyUtils from commons... What remains to be seen is if these will introspect the base (abstract) class or the proper (bean) class, but either way i fear they will miss out on the underlying fields. i havent personnally tested this, but perhaps the introspection is smart enough to get the properties from extended classes. You've also touched on some things I've experienced, i.e. tight configuration between tiers in the Struts-MVC implementation. I've been looking for a more loose way too. Regards, Mark *** REPLY SEPARATOR *** On 03/04/2003 at 5:00 PM Renato Romano wrote: Hi all. I'm trying to model a set of Anagraphics objects; each object extends a base abstract class, and only adds getter and setter method specific to it; all these object behave the same way, in the sense that all I have to do on them is reading, listing, updating, inserting. I can already persist those object in and independent way, so Action Objects are written assuming to use the base class, and don't have to know what the exact runtime class is; what I would like to do now is: 1) write action-mappings in struts-config in a similar independent way; this seems difficult to me because in the mapping I have to specify the name of the ActionForm bean to use, and therefore it's class! I tried do subclass ActionServlet, and determine the class of the Bean to use using a runtime request parameter, if present, instead of using information from the mapping; this works, but not all work is done by ActionServlet !! For example the html:form tag uses its action attribute to look up the bean name (and type) to use, so I get stuck again, because it tries to instantiate an abstract class; even if this class was not abstract i get a wrong object !!. Should I extend this tag ? And what else ? Is there a better way ? 2) write jsp pages in a similar independent way. This seems more difficult and maybe not so useful, also considering that rendering appropriate input forms, or listing tables using generic jsp pages would not lead to frendly interfaces, I think!! Suggestions are welcome. Renato Renato Romano Sistemi e Telematica S.p.A. Calata Grazie - Vial Al Molo Giano 16127 - GENOVA e-mail: [EMAIL PROTECTED] Tel.: 010 2712603 _ - To unsubscribe,
RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data
yes! if you are usine javascript you can do something like the following. in the parent create a hidden field html:hidden name=foo/ when the user submits the form have the onclick javacsript function run that sets the document.forms[0].foo.value = xxx; where xxx is the path to the value in the child window. -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:11 AM To: 'Struts Users Mailing List' Subject: RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data I have a web page (the parent) that opens a child window using javascript. The parent window sets a field on the child window. The child window needs to use that data, as it is opening, to perform a DB query and display information on itself. The problem is that, even though the parent successfully sets the data on the child, I have no access to it in my ActionForm or in the request object. Is there a way to make that happen? Your parent JSP has a form with one field. When you submit this form, the child *action* gets it, makes the connection, formats results and returns the forward that will display them. The details (the parent form is hidden and completely managed via Javascript, the child JSP appears in a new window) is pure Javascript tricks. This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data
I don't think this is just a javascript question - more like how does one use javascript and struts together to create a dynamic application. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:03 AM To: 'Struts Users Mailing List' Subject: RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data Please label JavaScript topics as [OT]. -- James Mitchell Web Developer/Struts Evangelist http://jakarta.apache.org/struts/ People demand freedom of speech to make up for the freedom of thought which they avoid. - Soren Aabye Kierkegaard (1813-1855) -Original Message- From: Art Vandalay [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 11:59 AM To: Struts Mailing List Subject: ActionForm Does Not Contain Dynamically Set Data I have a web page (the parent) that opens a child window using javascript. The parent window sets a field on the child window. The child window needs to use that data, as it is opening, to perform a DB query and display information on itself. The problem is that, even though the parent successfully sets the data on the child, I have no access to it in my ActionForm or in the request object. Is there a way to make that happen? __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data
Does the child window create the correct html:form action=xxx -Original Message- From: Art Vandalay [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:23 AM To: Struts Users Mailing List Subject: RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data Ray, I am doing that part. The problem is that I want that value to be available to the child's Action class ** as the child window is opening **. I am expecting it to be on the form, but the value in the form is null even though the value is successfully set on the child. How can I get Struts to set the value of this field on the form? There has to be a way because I've noticed in Struts that if you have a field defined on your JSP with no corresponding get/set methods on the Form, an exception is thrown when the window is opening. So Struts has to be doing some sort of validation between the JSP's form and the form class at window open time, but it doesn't seem to be setting the data. --- Ray Madigan [EMAIL PROTECTED] wrote: yes! if you are usine javascript you can do something like the following. in the parent create a hidden field html:hidden name=foo/ when the user submits the form have the onclick javacsript function run that sets the document.forms[0].foo.value = xxx; where xxx is the path to the value in the child window. -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:11 AM To: 'Struts Users Mailing List' Subject: RE: [OT] JavaScript: ActionForm Does Not Contain Dynamically Set Data I have a web page (the parent) that opens a child window using javascript. The parent window sets a field on the child window. The child window needs to use that data, as it is opening, to perform a DB query and display information on itself. The problem is that, even though the parent successfully sets the data on the child, I have no access to it in my ActionForm or in the request object. Is there a way to make that happen? Your parent JSP has a form with one field. When you submit this form, the child *action* gets it, makes the connection, formats results and returns the forward that will display them. The details (the parent form is hidden and completely managed via Javascript, the child JSP appears in a new window) is pure Javascript tricks. This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ExceptionHandler
How does one get a simple question answered? I am stuck, the source is not helping, I have searched the list, and this list won't tell me even if im on track? -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 8:55 AM To: Struts Users Mailing List Subject: ExceptionHandler I moved my ExceptionHandler from a global-exception to an exception in the action section. I no longer get the exception detail in the Globals.EXCEPTION_KEY location. Am I doing something wrong and it should be there, or has it moved, or do i need to define a Handler and override where the exception is put? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: ExceptionHandler
Wendy, thanks for your concern. I appreciate your willingness to help. The question I have is: Is the location that a jsp finds the exception the same between a global exception and an exception that is associated with an action. If the location is the same - something else is wrong and I will dig it out, hopefully. If it is different, it will make getting the handler to work easier. The jsp page worked when it was forwarded from a global-exception. Unfortunatly - I have been using struts for three weeks and have plowed my way through most of my issues, with help from this list. It seems like the one area where there is a lack of support material is in the area of exception handling. I will forgo the whine about why my project is so important - :-) Again, thanks Ray Madigan -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 2:52 PM To: 'Struts Users Mailing List' Subject: RE: ExceptionHandler I'm sorry you're stuck, but speaking only for myself, your question was too vague for me to even try to solve. If you show the complete before and after versions of the tags you're talking about, and maybe a bit of Java/JSP code that demonstrates the problem, I might paste it into my own project and modify it a bit to see if I can cause the same behavior you're seeing. I learn quite a lot from example code that I read here. I don't have any idea what's wrong, but if you provide more information, you'll make it easier for those who are inclined to try to help. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Ancient computing
Well - lets see: Does older win this contest :-) My first computing experience was in high school. We had a room in the science lab with an old IBM computer - I think at one time it was the state of the art mainframe. But you would program with toggle switches, and you could save your program to rolls of punch paper. If the paper role tore or got bent you were out of luck. Anyone wanna guess how long ago that was. LOL -Original Message- From: Clement, Stephen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Ancient computing I wrote the first design patterns using sticks and stones. Facade was easy. Iterator was hard and took up a lot of rocks. :) -Original Message- From: awc [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 6:02 PM To: Struts Users Mailing List Subject: Re: [OT] Ancient computing TI-994A - which could generate tow tones same time. very cool machine. .anil James Childers wrote: My first experience with programming was on a TI-994A. Had 4K RAM, I think, and no storage. Yes, you heard me right: no storage. Not a floppy. I would write a program and as soon as I turned the computer off it was gone forever. - 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: Using a form property as an index into another property
Should the tag be: html-el:text property=testData[${testForm.num}].data maxlength=16 size=16/ -Original Message- From: Karl [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 9:58 PM To: Struts Users Mailing List Subject: Using a form property as an index into another property Is it possible to use one form property as an index into another form property? I'm trying to do the following: html:form action=do_test.do name=testForm type=com.somewhere.TestForm html:text property=testData[num].data maxlength=16 size=16/ html:submit value=Set/ /html:form where TestForm has the following: private Vector myCollection; { myCollection = new Vector(); myCollection.add(new TestData(1)); myCollection.add(new TestData(two)); myCollection.add(new TestData(III)); } public Collection getTestData() { return myCollection; } public TestData getTestData(int index) { return (TestData)myCollection.get(index); } private int num = 0; public int getNum() { return num; } public void setNum(String num) { this.num = Integer.parseInt(num); } public void setNum(int num) { this.num = num; } and TestData is defined as: public final class TestData { private String myData; public TestData(String value) { myData = value; } public String getData() { return myData; } } If I use a hardcoded index value, it works as expected: html:text property=testData[0].data maxlength=16 size=16/ But if I try to use a form property as an index: html:text property=testData[num].data maxlength=16 size=16/ It fails: org.apache.jasper.JasperException: Invalid indexed property 'testData[num]' - 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]
ExceptionHandling
My application generates detailed Exceptions in the backend and I am attempting to handle them in struts. So far I hava added a global-exception section in the struts-config and filled in the path and the key. My page shows up and all seems great. I am having trouble determining how to get my exception from the request scope variable. I have tried many things finnaly trying to find the explicit string the exception was bound to. Reading throught the source I found that the exception would be places in org.apache.struts.action.EXCEPTION When I attempt to use c:out as follows c:out value='${requestScope ['org.apache.struts.action.EXCEPTION'].xxx}'/ I get the error message org.apache.jasper.compiler.ParseException: /com/mbresearch/main/view/xrmexception.jsp(22,72) Attribute org.apache.struts.action.EXCEPTION has no value What am I doing wrong Thanks RayM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OnLoad
I am working in a jsp and I have found the item im looking for. I write out an img that represents the current selected item. Now I want to inform another frame that something occured. There is no onload javascript handler for the img tag like there is in it's html equilivant? The arguments for the javascript need to be able to look at request scope variables? Anyone know how to accomplish this? Thanks RayM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question using transactional tokens
I had a problem where if i declared a hidden field like: html:hidden name=foo ... and in java script i write a function function tryit ( foo ) { document.forms[0].foo.value = foo; the value of foo would be an object that represents the hidden field foo, not the value passed in in the argument I fixed it by rewriting the function function tryit ( bar ) { document.forms[0].foo.value = bar; im not sure - but this could be a problem for you. -Original Message- From: Jörg Maurer [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 8:21 AM To: Struts Users Mailing List (E-mail) Subject: Question using transactional tokens Dear struts people ! What am i doing wrong - must be some sort of double submit, but why ? Let me sketch my problem to you - using for the first time transactional tokens, i have the following setup : 1. in my jsp : html:form action=/parameter . html:link page='' onclick=submitSelect('save') transaction='true' styleClass=button bean:message key=label.buttons.WF.submit/ /html:link ... /html:form 2. where submitSelect is a javascript function: function submitSelect(method) { document.forms[0].method.value = method; document.forms[0].submit(); } 3. and in my action class subclassing dispatch action there is method save(). Following strange behaviour (to me) occurs : 1.) having beakpoint inside save(...) method in action class shows it hit the right method and is working. 2.) but after return mapping.findForward(WF_PARAMETER_CHOOSE); from my action, struts complains with status 404 : message Request[/parameter] does not contain handler parameter named method description The request sent by the client was syntactically incorrect (Request[/parameter] does not contain handler parameter named method). 3.)it worked before deciding to use transactional tokens with : html:link href=javascript:submitSelect('save') styleClass=button bean:message key=label.buttons.WF.save/ /html:link So your help is appreciated, thanks Jörg - 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-el NOT working with Struts 1.1 RC1 Release
Craig, I guess I made other assumptions about the process. I thought that there were people on the list that volunteered to test just like you volunteer to write code. I would have been more apt to run my project on the nightly builds had I knew you were counting on us. I appreciate you clearing that up for me. I am relatively new to struts - have been here about three weeks. Thanks and I do appreciate all you do and am willing to contribute where I can. Ray Madigan -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Friday, February 28, 2003 7:59 PM To: Struts Users Mailing List Subject: RE: Struts-el NOT working with Struts 1.1 RC1 Release On Fri, 28 Feb 2003, Hohlen, John wrote: Date: Fri, 28 Feb 2003 19:54:45 -0600 From: Hohlen, John [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Struts-el NOT working with Struts 1.1 RC1 Release David Karr said he fixed this problem in last night's Struts-EL build. This means in order to pick up the fix, you have to migrate from the RC1 version of Struts to a nightly build version (due to other changes made to the regular Struts tags since the RC1 release -- otherwise you'll have incompatability issues -- I think). Many projects are reluctant to use nightly builds (for obvious reasons). Therefore, this hurts the overall likelihood of other projects incorporating Struts-EL. I would think that the Struts-EL team would want to provide a version of their project that's compatible with RC1. This will allow for wider user base which would be good for the overall project. Doesn't this make sense or am I missing something? The other side of that coin is also important -- if nobody tests the nightly builds, then we developers never find out about the bugs until after a release build is published, which harms the reputation for quality that we would all prefer. I get somewhat depressed about the for obvious reasons reason that people give for not at least *trying* your app against the nightly builds. After all, the day that Struts 1.1 final is released, guess what -- it will have exactly the same classes as that night's nightly build :-). There is nothing magical about the label final release that makes it any better (or worse) other than marginally more testing. Going into production is a different story -- but the harsh reality is the only reason RC1 was called RC1 instead of beta 4 was to get at least a *few* more people to test it. Fortunately for the quality of the final release, that goal was achieved. Unfortunately, many of the bugs could have been found and fixed quite a while ago, with more testing. Thanks, JOHN Craig - 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: Support for automatic frames
Well, you have to know somehow, or you could never get the application running in the first place. Seems like you need a method to know which frame to load what action into. How many levels of frames are you planning to use? Is there a heirarchy to the frames relative to the actions that will be performed on them. Can a subframe in one frame invoke an action in s sibling subframe? -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 11:18 PM To: 'Struts Users Mailing List' Subject: RE: Support for automatic frames Ray, But, imagine that with several action you must reload the top frameset, and in the subframes there are framesets again. How do you know which frame to load of it can be different for every action? As you say we have no problems when our action is redirected to a TARGET frame, but when the frameset itself is different under several action. (And in the framesets under the top frameset we have not the original request!) Thanks Jose R. -Mensaje original- De: Ray Madigan [mailto:[EMAIL PROTECTED] Enviado el: 24 de febrero de 03 19:10 Para: Struts Users Mailing List; [EMAIL PROTECTED] Asunto: RE: Support for automatic frames Im not sure i understand what you are trying to accomplish. I have a struts application that uses frames and i can populate multiple frames from one frame when the user clicks or even mouseover an area of the screen. The action to cause a frame event trigger to fire carries arguments so the action can be specific to the location on the frame and what frame generated the action. Is this what you mean? Thanks RayM -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 3:02 AM To: [EMAIL PROTECTED] Subject: Support for automatic frames Hi all, This is a a bit long question,... :-\ We are going to start a new project with Struts, and we HAVE TO use frames. So we have different approaches. Tha navigation is quite complex: same action can go to different frames, and different actions can go to the same frame, depending the place (the screen) we choose the action or the action itself. The main one is the next: 1) We think about one special action called frames.do which knows all the stuff with the frames composition. It would need two parameters: the position where it holds the frame, and the action is being executed. This action is setted in the original action in the session object. We are thinking to configure this action from an XML file, which would have the relacion between the action, the frame holder and the view returned (which can be another frameset calling frames.do for each frame). Would it be possible to validate this file with struts-config.xml, with the indicated forwards in the frames.do action? For example: This is the top frame, which can be loaded by several actions, so the sub-frames can be different on each call. frameset rows=68,* border=0 framespacing=0 frameborder=NO frame src=/prototipo01/frames.do?position=frameUpaction=session:attribute name=next/ name=menuPrincipal/ frame src=/prototipo01/frames.do?position=frameBottomaction=session:attribute name=next/ name=bottom/ /frameset The session attibute next would have been setted by the action with the name of the action. Plase, what do you think? Are we making a mess? Regards Jose Ramon Diaz, E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Editorial Aranzadi: www.aranzadi.es http://www.aranzadi.es/ - 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: need to display a tree struture in JSP
Have you looked at the Struts Menu system that can be found in the Resources section of the struts website. For the most part it is static, reads the configuration from an xml document. It probably wouldn't take much to make it dynamic. Just a thought - lots of work has gone into it, and it already is built on struts. -Original Message- From: Pani Ramasami [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:53 PM To: 'Struts Users Mailing List' Subject: need to display a tree struture in JSP Hi: I have a object which contains all the necessary data. Now, I need to display the data in a Tree structure in my JSP. Iam using Stuts 1.1b3. (may be irrelavant) If any of you have done this succesfully, kindly guide me on how to proceed. Thanks, Pani. _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [struts-menu] display trouble
You need the menu-config.xml file in your WEB-INF directory -Original Message- From: alexj [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 7:32 AM To: Struts Users Mailing List Subject: [struts-menu] display trouble Hi, After testing the example app who work fine, I've try to include struts-menu on my project. After reading the readme I follow that : - Copy the file lib/struts-menu.tld from the struts-menu distribution into the WEB-INF directory of your web application. - Copy the file lib/struts-menu.jar from the struts-menu distribution into the WEB-INF/lib directory of your web application. - Modify the application WEB-INF/web.xml file to include a tag library decleration for the struts-menu taglibrary. For example: taglib taglib-uri/WEB-INF/struts-menu.tld/taglib-uri taglib-location/WEB-INF/struts-menu.tld/taglib-location /taglib - In each JSP page that will use the Struts custom tags, add the corresponding taglib directive for struts-menu.tld. For example: %@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu % I create a simple jsp test page based on the coolmenu 3 %@ page contentType=text/html; charset=UTF-8 % %@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu% html head titleCoolMenus3 Example/title link rel=stylesheet type=text/css media=screen href=styles/global.css / /head body script language=JavaScript1.2 src=./scripts/coolmenus3.js /script script src=./scripts/coolmenu-config.js /script menu:useMenuDisplayer name=CoolMenu bundle=org.apache.struts.action.MESSAGE menu:displayMenu name=ToDoListMenuFile/ menu:displayMenu name=ToDoListMenuEdit/ menu:displayMenu name=CaseDetailMenuCase/ /menu:useMenuDisplayer /body /html And when I test I got the following error : org.apache.jasper.JasperException: The menu repository could not be found Any idea ?? Thanks in advance. -- Alexandre Jaquet - - 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]
Searching the Archive
I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav a:236) I was trying to locate some help in html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Searching the Archive
I thought html:select worked as follows: property is the name of the request parameter where the answer is placed. name is the name of a bean that is consulted to set the selection value is the property of the bean identified by name to get the comparison if I use html:select property=foo html:options collection=bar property=name/ /html:select will create a select with the values from the bean in attribute bar with value getName ( ) But select comes up with no selection? I just want the first item. I don't want to have to set an attribute with the first element of the collection in my action class. I will, but - i don't wanna! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:36 AM To: Struts Users Mailing List Subject: RE: Searching the Archive Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set the property attribute of the html:select equal the value of the first option. Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first item be shown. Note that in the case of a html:select with multiple selections, this *may not* result in any item being selected; in this case your only choice to set the property attribute of the html:select. Sorry if I completely misunderstood your question. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:22 PM To: Struts Users Mailing List Subject: Searching the Archive I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav a:236) I was trying to locate some help in html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Searching the Archive
In the doc's on the struts site - I don't see a parameter labelProperty. If I use the syntax that I wrote - It seems to work fine. Maybe if the labelProperty parameter is missing, it uses the property as the label. http://jakarta.apache.org/struts/userGuide/struts-html.html#select -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:53 PM To: Struts Users Mailing List Subject: RE: Searching the Archive Using your example, html:select property=foo html:options collection=bar property=name/ /html:select The short answer is that the value that will be shown selected is the value from the collection that matches the value returned by getFoo() on the form-bean. So if foo is 'apple' and the collection contains 'apple' then that item will be shown as selected. What I was saying was if want to always have the first item in the list shown as selected you *could* try to leave the value of foo blank. The sure-fire way is to set the value of foo to be the value of the first item in the collection. I should also point out that the usage you have shown above doesn't seem to be correct. I have always used it as follows html:select property=foo html:options collection=bar property=name labelProperty=label/ /html:select If you refer to the docs for html:options it reads (for the collection attribute): Name of the JSP bean (in some scope) which is itself a Collection of other beans, each of which has properties named by the property and labelProperty attributes that are used to retrieve the value and label for each option, respectively. (RT EXPR) Hope that gets you going in the right direction. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:49 PM To: Struts Users Mailing List Subject: RE: Searching the Archive I thought html:select worked as follows: property is the name of the request parameter where the answer is placed. name is the name of a bean that is consulted to set the selection value is the property of the bean identified by name to get the comparison if I use html:select property=foo html:options collection=bar property=name/ /html:select will create a select with the values from the bean in attribute bar with value getName ( ) But select comes up with no selection? I just want the first item. I don't want to have to set an attribute with the first element of the collection in my action class. I will, but - i don't wanna! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:36 AM To: Struts Users Mailing List Subject: RE: Searching the Archive Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set the property attribute of the html:select equal the value of the first option. Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first item be shown. Note that in the case of a html:select with multiple selections, this *may not* result in any item being selected; in this case your only choice to set the property attribute of the html:select. Sorry if I completely misunderstood your question. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:22 PM To: Struts Users Mailing List Subject: Searching the Archive I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav a:236) I was trying to locate some help in html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Searching the Archive
Sri, I finally just bit the bullet and addad the attribute for the first element in the list and installed the bean there. Then in the jsp I used html-el and set value=${controller.name} where controller is the request scope attribute that holds the first element of the collection. Sorry I am so stubborn, The work to do this took about two minutes shorter then sending this email. Once again, thanks for your help. Ray Madigan -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:26 PM To: Struts Users Mailing List Subject: RE: Searching the Archive In the doc's on the struts site - I don't see a parameter labelProperty. If I use the syntax that I wrote - It seems to work fine. Maybe if the labelProperty parameter is missing, it uses the property as the label. http://jakarta.apache.org/struts/userGuide/struts-html.html#select -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:53 PM To: Struts Users Mailing List Subject: RE: Searching the Archive Using your example, html:select property=foo html:options collection=bar property=name/ /html:select The short answer is that the value that will be shown selected is the value from the collection that matches the value returned by getFoo() on the form-bean. So if foo is 'apple' and the collection contains 'apple' then that item will be shown as selected. What I was saying was if want to always have the first item in the list shown as selected you *could* try to leave the value of foo blank. The sure-fire way is to set the value of foo to be the value of the first item in the collection. I should also point out that the usage you have shown above doesn't seem to be correct. I have always used it as follows html:select property=foo html:options collection=bar property=name labelProperty=label/ /html:select If you refer to the docs for html:options it reads (for the collection attribute): Name of the JSP bean (in some scope) which is itself a Collection of other beans, each of which has properties named by the property and labelProperty attributes that are used to retrieve the value and label for each option, respectively. (RT EXPR) Hope that gets you going in the right direction. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:49 PM To: Struts Users Mailing List Subject: RE: Searching the Archive I thought html:select worked as follows: property is the name of the request parameter where the answer is placed. name is the name of a bean that is consulted to set the selection value is the property of the bean identified by name to get the comparison if I use html:select property=foo html:options collection=bar property=name/ /html:select will create a select with the values from the bean in attribute bar with value getName ( ) But select comes up with no selection? I just want the first item. I don't want to have to set an attribute with the first element of the collection in my action class. I will, but - i don't wanna! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:36 AM To: Struts Users Mailing List Subject: RE: Searching the Archive Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set the property attribute of the html:select equal the value of the first option. Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first item be shown. Note that in the case of a html:select with multiple selections, this *may not* result in any item being selected; in this case your only choice to set the property attribute of the html:select. Sorry if I completely misunderstood your question. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:22 PM To: Struts Users Mailing List Subject: Searching the Archive I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav a:236) I was trying to locate some help in html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: html-el:link and logic-el:iterate and tiles --- Just a simple question.
I would check to see if items.footer an attribute in some scope and it has a collection bound to it. Also, the id=item: item is an instance of the current iteration not a string. In the link paramName=item should be item.someMethod ( ) that returns a string. and i suspect that paramProperty=value might be something like paramProperty=item.value which calls the getValue ( ) method on instance. I hope this helps Ray Madigan -Original Message- From: Jeff Born [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 7:49 PM To: 'Struts Users Mailing List' Subject: html-el:link and logic-el:iterate and tiles --- Just a simple question. I would like the html-el:link to produce A href=%=request.getContextPath()%jsp:getProperty name=item property=link/jsp:getProperty name=item property=value/A I would like in to work with the iterate tag. But so far I am not getting it to work. logic-el:iterate id=item name=items.footer type=org.apache.struts.tiles.beans.MenuItem td html-el:link paramName=item paramProperty=value/ /td /logic-el:iterate Any insight would be greatly appreciated, Jeff Born - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Searching the Archive
If I leave the property blank - how do I get the value of the selection when the user submits the form? -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 12:53 PM To: Struts Users Mailing List Subject: RE: Searching the Archive Using your example, html:select property=foo html:options collection=bar property=name/ /html:select The short answer is that the value that will be shown selected is the value from the collection that matches the value returned by getFoo() on the form-bean. So if foo is 'apple' and the collection contains 'apple' then that item will be shown as selected. What I was saying was if want to always have the first item in the list shown as selected you *could* try to leave the value of foo blank. The sure-fire way is to set the value of foo to be the value of the first item in the collection. I should also point out that the usage you have shown above doesn't seem to be correct. I have always used it as follows html:select property=foo html:options collection=bar property=name labelProperty=label/ /html:select If you refer to the docs for html:options it reads (for the collection attribute): Name of the JSP bean (in some scope) which is itself a Collection of other beans, each of which has properties named by the property and labelProperty attributes that are used to retrieve the value and label for each option, respectively. (RT EXPR) Hope that gets you going in the right direction. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:49 PM To: Struts Users Mailing List Subject: RE: Searching the Archive I thought html:select worked as follows: property is the name of the request parameter where the answer is placed. name is the name of a bean that is consulted to set the selection value is the property of the bean identified by name to get the comparison if I use html:select property=foo html:options collection=bar property=name/ /html:select will create a select with the values from the bean in attribute bar with value getName ( ) But select comes up with no selection? I just want the first item. I don't want to have to set an attribute with the first element of the collection in my action class. I will, but - i don't wanna! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 11:36 AM To: Struts Users Mailing List Subject: RE: Searching the Archive Are you asking how to make the default selection of an html:select the first option? As you have pointed out you can set the property attribute of the html:select equal the value of the first option. Alternatively, *I think* if you leave the property blank, HTML rules indicate that the first item be shown. Note that in the case of a html:select with multiple selections, this *may not* result in any item being selected; in this case your only choice to set the property attribute of the html:select. Sorry if I completely misunderstood your question. Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 2:22 PM To: Struts Users Mailing List Subject: Searching the Archive I was searching the Struts Archive and got the following error: javax.servlet.ServletException: Error initializing Velocity: java.lang.ArrayIndexOutOfBoundsException at org.apache.velocity.servlet.VelocityServlet.initVelocity(VelocityServlet.jav a:236) I was trying to locate some help in html:select. I only want to select the first element - It seems like I need an object with a property that will be used to match the property used in the options tag. This seems like a bunch of work to simply select the first element of the options list. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bean:write issues... or a better solution
If queuesName is a session or request level attribute then the options tag should be html:options collection=queuesName property=objid/ given that the collection elements implement the getter getObjid ( ). Hope this helps! -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 8:37 AM To: Struts Users Mailing List Subject: bean:write issues... or a better solution Hi folks, I am using a container class (a collection referenced by queuesName) to hold data for populating a select list, and I can't access the internal strings with the getter and setter methods i have written. I have included code and can elaborate if needed. Can anyone tell me what I am overlooking... or should i try it with an Iterator tag instead? TIA, Jason [jsp] html:select name=spgQueuesForm property=queueSelected size=1 styleClass=fBdr-main html:options property=queuesName value=bean:write name=spgQueuesForm property=objid/ /html:select [/jsp] [stack trace] Mon Feb 24 11:29:00 EST 2003:E WebAppServletContext-spg Root cause of ServletException javax.servlet.jsp.JspException: No getter method for property objid of bean spgQueuesForm [/stack trace] - 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: Support for automatic frames
Im not sure i understand what you are trying to accomplish. I have a struts application that uses frames and i can populate multiple frames from one frame when the user clicks or even mouseover an area of the screen. The action to cause a frame event trigger to fire carries arguments so the action can be specific to the location on the frame and what frame generated the action. Is this what you mean? Thanks RayM -Original Message- From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 3:02 AM To: [EMAIL PROTECTED] Subject: Support for automatic frames Hi all, This is a a bit long question,... :-\ We are going to start a new project with Struts, and we HAVE TO use frames. So we have different approaches. Tha navigation is quite complex: same action can go to different frames, and different actions can go to the same frame, depending the place (the screen) we choose the action or the action itself. The main one is the next: 1) We think about one special action called frames.do which knows all the stuff with the frames composition. It would need two parameters: the position where it holds the frame, and the action is being executed. This action is setted in the original action in the session object. We are thinking to configure this action from an XML file, which would have the relacion between the action, the frame holder and the view returned (which can be another frameset calling frames.do for each frame). Would it be possible to validate this file with struts-config.xml, with the indicated forwards in the frames.do action? For example: This is the top frame, which can be loaded by several actions, so the sub-frames can be different on each call. frameset rows=68,* border=0 framespacing=0 frameborder=NO frame src=/prototipo01/frames.do?position=frameUpaction=session:attribute name=next/ name=menuPrincipal/ frame src=/prototipo01/frames.do?position=frameBottomaction=session:attribute name=next/ name=bottom/ /frameset The session attibute next would have been setted by the action with the name of the action. Plase, what do you think? Are we making a mess? Regards Jose Ramon Diaz, E-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Editorial Aranzadi: www.aranzadi.es http://www.aranzadi.es/ - 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: html-el:image Im stuck, final stage of prototype development - please
I really need some help here. Is it that the tag is to long, too complicated, any help in figuring this out would help. I started with this tag that works: input type=button value=c:out value='${foo.name}'/ onclick= switcher ( 'html-el:rewrite page=/${foo.name}/.do?action=main', 'html-el:rewrite page=/navigate.do/?component=c:out value='${foo.name}' )/ This tag works: It is nested in an html:form action=/foo ... /html:form html-el:image page=/Images/${foo.name}Up.jpg value=c:out value='${foo.name}'/ / But when I add the onclick javascript the jasper compiler pukes. The tag looks like html-el:image page=/Images/${foo.name}Up.jpg value=c:out value='${foo.name}'/ onclick= switcher ( 'html-el:rewrite page=/${foo.name}/.do?action=main', 'html-el:rewrite page=/navigate.do/?component=c:out value='${foo.name}' )/ The jasper output is: org.apache.jasper.compiler.ParseException: /com/mbresearch/main/view/navigate.jsp(93,59) Attribute has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563) at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:681) ... at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 33) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:436) If I knew what Attribute had no value I could do something. Is there a debug level that has struts output the tag to standard output so I can see what is going on? Im stuck, thanks for your help Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] What's your IQ?
I'll go for the Microsoft bashing - it is only 8:16 - a little too early for a beer. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Behalf Of James Mitchell Sent: Sunday, February 23, 2003 8:13 AM To: 'Struts Users Mailing List' Subject: RE: [OT] What's your IQ? Alexandre, I'm also a Veteran of the United States Army. I don't think anyone here appreciates these kinds of comments on a list that has ABSOLUTELY NOTHING to do with Politics. So, let's all get back to more serious topics, like bashing Microsoft or chatting about Beer :) -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ Beer is the reason we get up each afternoon. -- Ray McNeill -Original Message- From: Michael C. Lee Jr. [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 1:15 AM To: Struts Users Mailing List Subject: Re: [OT] What's your IQ? What are you doing on a struts email list? There are a lot of evil American contributors to struts. Go launder some terrorist money and leave the anti-American/Capitalist politics off the list. I'm guessing your on this list because you work at an evil company that wants to use struts and make profits. Hypocrite. Michael Lee Software Architect Former: 12B Combat Engineer, United States Army - Original Message - From: alexj [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 5:34 PM Subject: Re: [OT] What's your IQ? What can I said, American people think they know all the truth about how to manage the world. (it's not only my opinion) The world is really not an industry like IBM, I think some american guys have to think about that. If a coutry didn't believe in the pseudo american dream, you really nedd to attak them ? In my (little one) country we didn't only care about how to make benefits but we care how to people from this country can take profit about that. I'm a young man (22 years old) from Switzerland but US people need to care about how people whi lived in this countries. Fuck Wars !!! Fuck guys who only care about theire own profits !! -- Alexandre Jaquet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 - 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: html-el:image Im stuck, final stage of prototype development - please
I am starting to get an inferiority complex - lol. I have tried a million and a half things. And it seems to boil down to having the html:rewrite in the argument to the javascript that is in the onclick handler. If I hard code the references it works like a champ. html-el:image page=/Images/${foo.name}Up.jpg onclick= switcher ( '/xrm/${foo.name}.do?action=main', '/xrm/navigate.do?component=${foo.name}' )/ I will use this - except it has the problem of the name of the application changing, having it hard coded in the app is dangerious. Help here would be appreciated. Thanks Ray Madigan -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 8:15 AM To: Struts Users Mailing List Subject: Re: html-el:image Im stuck, final stage of prototype development - please I really need some help here. Is it that the tag is to long, too complicated, any help in figuring this out would help. I started with this tag that works: input type=button value=c:out value='${foo.name}'/ onclick= switcher ( 'html-el:rewrite page=/${foo.name}/.do?action=main', 'html-el:rewrite page=/navigate.do/?component=c:out value='${foo.name}' )/ This tag works: It is nested in an html:form action=/foo ... /html:form html-el:image page=/Images/${foo.name}Up.jpg value=c:out value='${foo.name}'/ / But when I add the onclick javascript the jasper compiler pukes. The tag looks like html-el:image page=/Images/${foo.name}Up.jpg value=c:out value='${foo.name}'/ onclick= switcher ( 'html-el:rewrite page=/${foo.name}/.do?action=main', 'html-el:rewrite page=/navigate.do/?component=c:out value='${foo.name}' )/ The jasper output is: org.apache.jasper.compiler.ParseException: /com/mbresearch/main/view/navigate.jsp(93,59) Attribute has no value at org.apache.jasper.compiler.JspReader.parseAttributeValue(JspReader.java:563) at org.apache.jasper.compiler.JspReader.parseTagAttributes(JspReader.java:681) ... at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 33) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:436) If I knew what Attribute had no value I could do something. Is there a debug level that has struts output the tag to standard output so I can see what is going on? Im stuck, thanks for your help Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Quarantine message
I got a message quarantine notice today from this list. All I did was respond to a message that had the four letter word that starts with F and isn't four in it. The message I responded to should have been quarantined and this would have not happened. So I guess - whats the point? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Quarantine message
Yep - upon further examination - I see. Thanks -Original Message- From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 12:29 PM To: Struts Users Mailing List Subject: Re: Quarantine message actually this list didn't quarantine anything, just that some servers out there did - servers for other people on this list-, and therefore you got a message from that server saying that you should be ashamed of yourself. On Sunday, Feb 23, 2003, at 15:16 US/Eastern, Ray Madigan wrote: I got a message quarantine notice today from this list. All I did was respond to a message that had the four letter word that starts with F and isn't four in it. The message I responded to should have been quarantined and this would have not happened. So I guess - whats the point? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image and Img Tag issue
I am using Image and Img tags to display images for my application. Is it correct that html:img registers an image in document.images[] and html:image doesn't. If you want to implement a button with mouseover event switching the image - this makes it difficult. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] What's your IQ?
Not any more! But Microsoft bashing is so much fun! -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 3:23 PM To: Struts Users Mailing List Subject: RE: [OT] What's your IQ? Too early for *beer*? Is that possible? -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:17 AM To: Struts Users Mailing List Subject: RE: [OT] What's your IQ? I'll go for the Microsoft bashing - it is only 8:16 - a little too early for a beer. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Behalf Of James Mitchell Sent: Sunday, February 23, 2003 8:13 AM To: 'Struts Users Mailing List' Subject: RE: [OT] What's your IQ? Alexandre, I'm also a Veteran of the United States Army. I don't think anyone here appreciates these kinds of comments on a list that has ABSOLUTELY NOTHING to do with Politics. So, let's all get back to more serious topics, like bashing Microsoft or chatting about Beer :) -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ Beer is the reason we get up each afternoon. -- Ray McNeill -Original Message- From: Michael C. Lee Jr. [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 1:15 AM To: Struts Users Mailing List Subject: Re: [OT] What's your IQ? What are you doing on a struts email list? There are a lot of evil American contributors to struts. Go launder some terrorist money and leave the anti-American/Capitalist politics off the list. I'm guessing your on this list because you work at an evil company that wants to use struts and make profits. Hypocrite. Michael Lee Software Architect Former: 12B Combat Engineer, United States Army - Original Message - From: alexj [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, February 22, 2003 5:34 PM Subject: Re: [OT] What's your IQ? What can I said, American people think they know all the truth about how to manage the world. (it's not only my opinion) The world is really not an industry like IBM, I think some american guys have to think about that. If a coutry didn't believe in the pseudo american dream, you really nedd to attak them ? In my (little one) country we didn't only care about how to make benefits but we care how to people from this country can take profit about that. I'm a young man (22 years old) from Switzerland but US people need to care about how people whi lived in this countries. Fuck Wars !!! Fuck guys who only care about theire own profits !! -- Alexandre Jaquet - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html select problem, help me please
How did you get the collection in your jsp page. Did you create it there, or did you bring it in from your ActionForm. If you would create a get/set on your FormBean and place it in the FormBean in your Action object, then you can get it from the form bean with the collection attribute in select. If you want I can outline the code to do this. Thanks Ray Madigan -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 8:04 PM To: Struts Users Mailing List Subject: Re: html select problem, help me please It gives me no choice Ray, I'll have to do it in the dirty way. Well first timer, so thats it. html:select property=chemical.classification % Iterator i = code1data.iterator(); Hashtable data = new Hashtable(); while (i.hasNext()) { data = (Hashtable) i.next(); String cd = (String) data.get(cd); String descrip =(String) data.get(descrip); out.println(option value=\ + cd + \ + descrip ); } out.println(/option); % /html:select Thank you for your time Ray. --buics Ray Madigan wrote: This has confused me too - I think that html:options use of collection is different from logic:iterate use of collection in the html:options case it is a string that names the attribute that holds the collection. in the logic:iterate case collection is the real class that you want to iterate. If you want to use html:options you should put the collection into a session or request attribute. -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 7:08 PM To: Struts Users Mailing List Subject: html select problem, help me please I have a collection named code1data, in logic:iterate it works fine, but when I apply this to html:select it goes wrong. Anybody could help me in html:select tag. here's my script .. TABLEtbody logic:iterate id=mydata collection=%=code1data % tr td nbsp;/td td nbsp;bean:write name=mydata property=cd/ /td td nbsp;bean:write name=mydata property=descrip/ /td /tr /logic:iterate /tbody /TABLE html:select property=classification size=1 html:options collection=%=code1data % property=cd labelProperty=descrip/ /html:select -- It's good to be slow and steady; but it's better to be fast and reliable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- It's good to be slow and steady; but it's better to be fast and reliable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html select problem, help me please
This is what i told youthe other day. The collection in the Option tag has to be the name of an attribute in the request or session. In the Action object make a call like: session.setAttribute ( code1data, code1data ); where code1data is the collection. Then the collection will work correctly in your options tag. -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 4:42 PM To: Struts Users Mailing List Subject: Re: html select problem, help me please This is the error message C:\tomcat\jakarta-tomcat-4.1.18\work\Standalone\localhost\ntep\chemical\chma in_jsp.java:422: setCollection(java.lang.String) in org.apache.struts.taglib.html.OptionsTag cannot be applied to (java.util.Collection) _jspx_th_html_options_0.setCollection(code1data ); Sri Sankaran wrote: What is the error? -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 10:08 PM To: Struts Users Mailing List Subject: html select problem, help me please I have a collection named code1data, in logic:iterate it works fine, but when I apply this to html:select it goes wrong. Anybody could help me in html:select tag. here's my script .. TABLEtbody logic:iterate id=mydata collection=%=code1data % tr td nbsp;/td td nbsp;bean:write name=mydata property=cd/ /td td nbsp;bean:write name=mydata property=descrip/ /td /tr /logic:iterate /tbody /TABLE html:select property=classification size=1 html:options collection=%=code1data % property=cd labelProperty=descrip/ /html:select -- It's good to be slow and steady; but it's better to be fast and reliable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- It's good to be slow and steady; but it's better to be fast and reliable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is the best method to set default values of a form?
If you look at the example that ships with struts you will see how the registration form is filled in with the data from the User record. The data isn't from a database, but an inmemory XML datastore. -Original Message- From: Jeff Kyser [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 6:36 AM To: Struts Users Mailing List Subject: Re: What is the best method to set default values of a form? For Dyna forms, you can use the initial='your default value', and on a regular form, for things like radio buttons, the default value is based on the underlying form bean's value. http://husted.com/struts/tips/016.html but not sure about html:text fields in regular ActionForms... -jeff On Saturday, February 22, 2003, at 04:38 AM, Zsolt Koppany wrote: Hi, I understand that the reset method should not be used to set the default values of the fields of a form. What is the preferred way? -- 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]
html:image HELP
I guess i still don't understand. I think this is my last hurdle to get my prototype working, ever hear that one before :-). I am trying to use images - like the following: c:forEach var='component' items='${components}' html-el:image page=/images/${component.name}Up.jpg value=$component.name} onclick=.../ /c:forEach When the user clicks on the button the onclick fires some javascript to get some work done. I get the error message: Attribute has no value? If I knew what attribute i could track it down? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: One ActionForm for multiple JSPs
I have attempted this and somehow it doen't work for me. I have one ActionForm for a series of 10 jsp's in my prototype. The scope of the form is session. On every forward reset is called on the form. which clears out the content. To make this work, do I need to condition reset to only clear in a special case? -Original Message- From: Affan Qureshi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:31 AM To: Struts Users Mailing List Subject: Re: One ActionForm for multiple JSPs BlankI don't know of an example but its pretty easy to do. Just define one ActionForm bean and create all the properties in the wizard in it. Make it sessions scoped. And assign/retrieve the properties as you would do with a normal form-bean. In struts-config.xml refer to the same actionForm bean in all the actions that are part of the wizard. Regards, Affan - Original Message - From: Chetan Sahasrabudhe To: Struts Users Mailing List Sent: Wednesday, February 19, 2003 12:09 PM Subject: One ActionForm for multiple JSPs Hi, when going through struts documentation, I came across a statement saying extract from struts documentation chapter 2 Building Model Components. Section 2.3 ActionForm Bean. You should note that a form, in the sense discussed here, does not necessarily correspond to a single JSP page in the user interface. It is common to many applications to have a form (From the user's presepective) that extends over multiple pages. Think, for example, of the wizard style user interface that is commonly used when installing new applications. Struts encorages you to define a single ActionForm bean that contains properties for all the fields, no matter which page the field is actuallly displayed on. My current requirments are exactly as mentioned in above para. I have to develop a wizard kind of GUI for setting up some data in our application. Can anybody point me to the example for the same, or point me to the document where I can use single ActionForm bean for mulitple JSPs. Regards Chetan ___ | | The trouble with being punctual | is that nobody's there to appreciate it. | | |___ - 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: Why reset is called when a form is submitted?
I guess some people are here for fun, while others are trying to figure this thing out. I went to the archives and found that the page is not available. This is the page I went to. http://jakarta.apache.org/struts/resources/FAQ/index.htm If this isn't the correct page let me know. Getting flamed in a forum where people are attempting to learn a framework like struts seems odd to me. I would think you want people to come back. I agree, if the person asking the question can't grasp the answer, they should be refered to a book. If a set of questions keep coming up, that are in the FAQ - send them an auto-reply to RTFM. But is a person is trying to learn this framework, you should be gentle to them. When was the last time you tried to drink from a fire hose :-). Thanks -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 9:14 AM To: 'Struts Users Mailing List' Subject: RE: Why reset is called when a form is submitted? It's just so much more fun when people get flamed though. I'm just waiting for the regular bunch to start. /me makes some popcorn to get ready for the show -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 11:45 AM To: 'Struts Users Mailing List' Subject: RE: Why reset is called when a form is submitted? You should search the archives before you get flamed. This very topic has been beaten to death over the last 6 months.to include a very (VERY) indepth explanation by Craig (you know, the guy who started this whole thing). -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org/ The man who does not read good books has no advantage over the man who cannot read them. - Mark Twain (1835-1910) -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 10:06 AM To: struts mail list Subject: Why reset is called when a form is submitted? Hi, I see in my code that the reset method is called when the form is submitted. I use this method to prepare the default values when the form is activated (for example I read data from the database) and I cannot understand why it is necessary to call this method also when the form is submitted. I use struts-1.b3. -- 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]
Form Reset
I have a set of 10 or more jsp pages for every ActionForm in my application. Within these pages I want to reset the form for different forms. On a jsp page I tell the form what page I want to go to with html:submit property=action values=insert .. In the reset method action parameter is set to insert and the form action is set to the old value. So I know: where I came from [ from.action ] and where I am going [request.getParameter ( action ) ] and can reset appropriatly. In the Action class All i need to check is the form for the state I am working in. Is this the intention - or is there a fromal state machine mechanism built into the framework. It seems like a formal finite state - state machine would make it easier for the developer to make sure it is all setup correctly. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where are my ActionForm's changes?
Should the form really be html:form and input be some other html -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 10:41 AM To: Struts Users Mailing List Subject: RE: Where are my ActionForm's changes? Sorry; nothing jumps out from what you have sent. Sri -Original Message- From: Marwan [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 12:08 PM To: [EMAIL PROTECTED] Subject: Re: Where are my ActionForm's changes? Hi Sri, Below is the generated HTML source. It indicates the correct form name updateOrderForm. The debug statements are all over the place and they do not indicate any updated value from my form. That's the weired thing. Nothing is changed inside the form and nothing is changed in the Action either. form name=updateOrderForm method=post action=/supplyWeb/updateOrder.do input type=hidden name=action value=updateOrder Thanks, Marwan --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] wrote: Are the debug statements in the action showing the updated values? Can you check the source of the generated HTML and ensure that the name of the form matches the value of the 'name' attribute of your action mapping? Sri -Original Message- From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...] Sent: Friday, February 21, 2003 11:22 AM To: [EMAIL PROTECTED] Subject: Re: Where are my ActionForm's changes? I removed name and type attributes from my html:form tag. I also changed the name of the form in action-mappings but still the same problem. Is there a bug in Struts that the nested tags don't work with objects? Thanks, Marwan --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] wrote: Get rid of the 'name' and 'type' attributes from the html:form. The reasons? * they are deprecated. See http://jakarta.apache.org/struts/userGuide/struts-html.html#form * they are not necessary * in your case the action mapping is referring to the form-bean by the name 'myForm' and the html:form's 'name' attribute is indicating that a form named 'updateOrderForm' be used. These will result in two instances of the same class. Not what you want Hope that helps Sri -Original Message- From: MarwanSalam [EMAIL PROTECTED] [mailto:marwansalam@y...] Sent: Thursday, February 20, 2003 3:58 PM To: [EMAIL PROTECTED] Subject: Re: Where are my ActionForm's changes? Hi Sri, You got it right. This is the code from my Action class that checks for the changes and forwards the request to the same page again(I tried to forward to a view-only page(showorderdetails.jsp) for testing purposes and the changes still were not reflected). UpdateOrdersAction.java - UpdateOrderForm updateOrderForm = (UpdateOrderForm) form; if (updateOrder.equalsIgnoreCase(action)) { List parametersList = updateOrderForm.getParameterList(); int size = parametersList.size(); for (int i = 0; i size; i++) { OrderDetailModel model = ((UpdateOrderForm) form).getOrderDetail (i); logger.debug(Form model is: + model); } Iterator iter = parametersList.iterator(); if (logger.isDebugEnabled()) { while (iter.hasNext()) { OrderDetailModel orderDetail = (OrderDetailModel)iter.next(); logger.debug(orderDetail.toString()); } } logger.debug( Forwarding to 'edit' page); NDC.pop(); return (mapping.findForward(edit)); // this will take you back to the same page } Here is an excerpt from updateorder.jsp: - html:form action=updateOrder name=updateOrderForm type=mypackage.UpdateOrderForm scope=session html:hidden property=action value=updateOrder / logic:iterate id=parameter name=updateOrderForm property=parameterList tr tdbean:write name=parameter property=orderLineNumber //td tdbean:write name=parameter property=itemName //td tdbean:write name=parameter property=quantityOrdered //td tdhtml:text name=parameter property=quantityCancelled indexed=true size=3 maxlength=3//td tdhtml:text name=parameter property=status indexed=true size=3 maxlength=3//td /tr /logic:iterate html:submit/ /html:form I appreciate your help. Marwan --- In [EMAIL PROTECTED], Sri Sankaran [EMAIL PROTECTED] wrote: What I have gleaned so far, is * the user is viewing JSP-1 * the user updates the data and submits (invoking the action mapping you have shown (path=/updateOrder) Questions: * Are you detecting the updated data value(s) in your action? * Where is the user being directed? If showorderdetails.jsp or updateorder.jsp what is mapping for those pages? * Where are you noticing problems? Remember that if you go to new page and it uses a form-bean of the same class but referred to by a
logic:iterate
I have a piece of code that works as follows: c:forEach var='controller' items='${controllers}' tr td align=left c:out value='${controller.name}'/ /td td align=left c:out value='${controller.origin}'/ /td td align=left c:out value='${controller.state}'/ /td /tr /c:forEach Is this the appropriate translation into struts logic:iterate? or do I need to use the logic-el tags. The string controllers is a session level attribute. logic:iterate id=controller collection=controllers tr td align=left bean:write name=controller property=name/ /td td align=left bean:write name=controller property=origin/ /td td align=left bean:write name=controller property=state/ /td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: logic:iterate
I want to use the rowtag for the time being before I move the rowtag to work with c:foreach. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 7:00 PM To: [EMAIL PROTECTED] Subject: Re: logic:iterate That looks right to me. I'm curious why you would want to translate standard tags to Struts tags? David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: logic:iterate Date: Fri, 21 Feb 2003 17:23:08 -0800 I have a piece of code that works as follows: c:forEach var='controller' items='${controllers}' tr td align=left c:out value='${controller.name}'/ /td td align=left c:out value='${controller.origin}'/ /td td align=left c:out value='${controller.state}'/ /td /tr /c:forEach Is this the appropriate translation into struts logic:iterate? or do I need to use the logic-el tags. The string controllers is a session level attribute. logic:iterate id=controller collection=controllers tr td align=left bean:write name=controller property=name/ /td td align=left bean:write name=controller property=origin/ /td td align=left bean:write name=controller property=state/ /td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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: logic:iterate
I tried this several times with different permutations - no matter what I try I get the error: Can't find bean controller in any scope. What I don't understand is that this is the name of the bean that should be generated from within the iterate tag? It seems to find collection=controllers just fine. here is a part of the stack trace that is relevant javax.servlet.jsp.JspException: Cannot find bean controller in any scope at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:839) at org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:286) at org.apache.jsp.mainBody$jsp._jspService(mainBody$jsp.java:314) -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 9:47 PM To: Struts Users Mailing List Subject: RE: logic:iterate I want to use the rowtag for the time being before I move the rowtag to work with c:foreach. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 7:00 PM To: [EMAIL PROTECTED] Subject: Re: logic:iterate That looks right to me. I'm curious why you would want to translate standard tags to Struts tags? David From: Ray Madigan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: logic:iterate Date: Fri, 21 Feb 2003 17:23:08 -0800 I have a piece of code that works as follows: c:forEach var='controller' items='${controllers}' tr td align=left c:out value='${controller.name}'/ /td td align=left c:out value='${controller.origin}'/ /td td align=left c:out value='${controller.state}'/ /td /tr /c:forEach Is this the appropriate translation into struts logic:iterate? or do I need to use the logic-el tags. The string controllers is a session level attribute. logic:iterate id=controller collection=controllers tr td align=left bean:write name=controller property=name/ /td td align=left bean:write name=controller property=origin/ /td td align=left bean:write name=controller property=state/ /td /tr /logic:iterate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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: html select problem, help me please
This has confused me too - I think that html:options use of collection is different from logic:iterate use of collection in the html:options case it is a string that names the attribute that holds the collection. in the logic:iterate case collection is the real class that you want to iterate. If you want to use html:options you should put the collection into a session or request attribute. -Original Message- From: Buics [mailto:[EMAIL PROTECTED] Sent: Friday, February 21, 2003 7:08 PM To: Struts Users Mailing List Subject: html select problem, help me please I have a collection named code1data, in logic:iterate it works fine, but when I apply this to html:select it goes wrong. Anybody could help me in html:select tag. here's my script .. TABLEtbody logic:iterate id=mydata collection=%=code1data % tr td nbsp;/td td nbsp;bean:write name=mydata property=cd/ /td td nbsp;bean:write name=mydata property=descrip/ /td /tr /logic:iterate /tbody /TABLE html:select property=classification size=1 html:options collection=%=code1data % property=cd labelProperty=descrip/ /html:select -- It's good to be slow and steady; but it's better to be fast and reliable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:hidden
In the documentation for html:hidden the property attribute is the name of the bean property that loads the value of the hidden field on the form. What i would like to know is how do u go the other way. I want the hidden field to collect data through javascript, and then be available through the bean in the action. How do i set up the html:hidden to work in this mode? Thanks in advance Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multiple Forms on One Page
Hi, Im fairly new to Struts, but i can't see what the restriction is. Can't you define two forms on a single page, each with the appropriate action? Ray Madigan -Original Message- From: C F [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 7:41 AM To: [EMAIL PROTECTED] Subject: Multiple Forms on One Page Hello everyone, I want to be able to have multiple forms on a single web page. These forms are totally unrelated in that I want them to materialize into different beans depending on which form was submitted. I don't see that it is possible to configure this scenario in the the struts-config. Should I be looking into DispatchAction? Any other ideas? Thanks! P.S. Just assume I'm using the latest build of struts. - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: [OT] What's your IQ?
I wonder what score you get if you guess them all? -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:21 AM To: Struts Users Mailing List Subject: Re: Re: [OT] What's your IQ? i got a 138... but to be honest i guessed at 2 of the what object can you not make from the cut out piece puzzles. i'm gifted :) ---Original Message--- From: Jeff Kyser [EMAIL PROTECTED] Sent: 02/20/03 12:04 PM To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] What's your IQ? More likely, you're myslexic. :) On Thursday, February 20, 2003, at 10:49 AM, Curley, John wrote: I got a 92. Will that qualify me for Mensa? -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:40 AM To: 'Struts Users Mailing List' Subject: RE: [OT] What's your IQ? I posted a negative number before my morning coffee. I did much better afterwards. Good enough to join the elite nerds. Ahh the power of coffee. :) -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:17 AM To: Struts Users Mailing List Subject: RE: [OT] What's your IQ? I posted a 129 Brandon Goodin Phase Web and Multimedia PO Box 85 Whitefish MT 59937 P (406) 862-2245 F (406) 862-0354 [EMAIL PROTECTED] http://www.phase.ws -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:10 AM To: Struts Users Mailing List Subject: Re: [OT] What's your IQ? There's gotta be something wrong with that Ultimate IQ test they have there cause I just posted a 140, and I'm considered a dumb ass by the banjo player from Deliverance! - Original Message - From: Jacob Hookom [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, February 20, 2003 4:56 PM Subject: RE: [OT] What's your IQ? 129 - I'm joining the High IQ Society! | -Original Message- | From: alexj [mailto:[EMAIL PROTECTED]] | Sent: Thursday, February 20, 2003 8:53 AM | To: Struts Users Mailing List | Subject: Re: [OT] What's your IQ? | | -12 | - Original Message - | From: Brandon Goodin [EMAIL PROTECTED] | To: Struts User List [EMAIL PROTECTED] | Sent: Thursday, February 20, 2003 3:52 PM | Subject: [OT] What's your IQ? | | | Does our list consist of the best and brightest? ;-) Take the test to | learn | what your IQ is and join the most elite nerds on the planet. :-)) Also, | I | dare you to post your results. :-D | | http://www.highiqsociety.org | | DISCLAIMER: The results of the afformentioned test do not constitute a | legal | declaration of genius. Just the personal gratification that you can | still | make a passing grade on a pointless test. | | | | | | Brandon Goodin | Phase Web and Multimedia | PO Box 85 | Whitefish MT 59937 | P (406) 862-2245 | F (406) 862-0354 | [EMAIL PROTECTED] | http://www.phase.ws | | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | | | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JavaScript
I am using in my application, if you can't tell this from my previous posts ;-), does anyone else. I also want to be able to load a frame with a page with javascript like: top.Frame.location.href = '/action.do?action=main'; when i do this i get an error = MAPPING configuration error for request URI Any suggestions? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaScript
Adding the context path is the answer. Thanks! -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:43 AM To: 'Struts Users Mailing List' Subject: RE: JavaScript try including your contextPath in the value for the href, unless of course, you have your app installed as the root app. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:35 AM To: Struts Users Mailing List Subject: JavaScript I am using in my application, if you can't tell this from my previous posts ;-), does anyone else. I also want to be able to load a frame with a page with javascript like: top.Frame.location.href = '/action.do?action=main'; when i do this i get an error = MAPPING configuration error for request URI Any suggestions? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:hidden
I think you might have. I have a html:form action=/Work/ inside the form is a set of html:hidden property=pname/ attached to a button I have html:submit property=action value=docreate onclick=dateform ( )/ in the script section script language=JavaScript function dateform ( ) { top.WorkForm.document.elements[0].value = 'foo'; } /script And when I am in the WorkAction i want to be able to be able to call the getPname ( ) method on the WorkForm and get the value foo. -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:30 AM To: Struts Users Mailing List Subject: RE: html:hidden The hidden field is just a input type=hidden... So, do what you'd normally do with one of those. A field doesn't voluntarily collect data; JavaScript is the agent that can be used to populate the field. It's still a form-bean field and so is accessible on the server. Did I completely miss your question? Sri -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:07 AM To: Struts Users Mailing List Subject: html:hidden In the documentation for html:hidden the property attribute is the name of the bean property that loads the value of the hidden field on the form. What i would like to know is how do u go the other way. I want the hidden field to collect data through javascript, and then be available through the bean in the action. How do i set up the html:hidden to work in this mode? Thanks in advance Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JavaScript
Thanks for the reply. What does html:rewrite do that inserting the context path myself doesn't do? In my application the action.do is calculated from an ADO that I am getting from my EJB application server. Every object comes back with a type field and the handler is an action with the name of the EJB component reference. if I use something like: top.Frame.location.href = '/MyApp/c:out value='${component.type}'/.do?action=main'; it seems to work fine. top.Frame.location.href = 'html:rewrite page='/COMPONENT.do'/?action=main'; also works fine, BUT top.Frame.location.href = 'html:rewrite page='c:out value='${component.type}'/.do'/?action=main'; I can't figure out how to get the quites to match up correctly. Clearly Im not thinking about this right. -Original Message- From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:13 AM To: 'Struts Users Mailing List' Subject: RE: JavaScript You should probably use something like top.Frame.location.href = 'html:rewrite page=/action.do/?action=main'; -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:49 AM To: Struts Users Mailing List Subject: RE: JavaScript Adding the context path is the answer. Thanks! -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:43 AM To: 'Struts Users Mailing List' Subject: RE: JavaScript try including your contextPath in the value for the href, unless of course, you have your app installed as the root app. -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:35 AM To: Struts Users Mailing List Subject: JavaScript I am using in my application, if you can't tell this from my previous posts ;-), does anyone else. I also want to be able to load a frame with a page with javascript like: top.Frame.location.href = '/action.do?action=main'; when i do this i get an error = MAPPING configuration error for request URI Any suggestions? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] dick size
I guess they have a low self image? -Original Message- From: Miller, Jason [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 11:38 AM To: 'Struts Users Mailing List' Subject: RE: [OT] dick size someone scored under a 100, huh? -Original Message- From: alexj [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 2:35 PM To: Struts Users Mailing List Subject: [OT] dick size After your IQ test why not try the dick size test ? Tell us your dick size you will maybe win a decicated email who claim you are the most stupid guy ever seen. Good luck. -- Alexandre Jaquet - - 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-el
I am currently using the jstl c and fmt tags along with struts html tags. If I want to use the struts html-el tags, do I have to use all of the tld and jar's from the contrib/struts-el directory. I notices that c.tld fmt.tld etc. exist in that directory. Are the JSTL parts coppied here for convience, to keep the versioning the same, or have they been modified to work to implement struts-el functionality. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:form
Greetings: I am still trying to figure things out to port my application. In the past I have used the form name as a locator for JavaScript. html:form doesn't have a name attribute, so how do I refer to a form that is in another frame then the one I am in now? Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Modules in struts
Greetings: I have a large jsp application that i am converting to Struts/JSTL, using the form/action mapping capability of struts. I also have an architecture where the control mechanism doesn't really know what sub components it is looking at, instead it looks them up in a database at runtime. In the database is the name of the application context that the module has the action handlers and the jsp pages for that component. So I can switch between applications at will, using resources from the appropriate application. I was reading the struts user guide on modules, as i need to duplicate this functionality. My question is: is a module a separate application context like a deployed war in tomcat, or is a module a part of an application that is put together in a single war. Clarification on this would be appreciated. Thanks Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question
Thanks for the advice - i didn't know this stuff existed. I was just pondering how to implement logic like if ! A || ( A B ) And had trouble seeing how to write some reasonable code Thanks -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:50 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question This is illegal (you can't embed tags as attributes): logic:equal name=component property=name scope=page value=bean:write name=navigateForm property=component/ If you must use logic such as this, do yourself a favor and switch to JSTL :-) c:forEach var=component items=${components} c:if test=${component.name == navigateForm.component} tr td colspan=2 align=left c:out value=${component.name} //td /tr /c:if /c:forEach http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html I can't say enough about JSTL. With Struts and JSTL, the only Struts tags you should ever use are the html:form tags and possibly bean:message. -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 1:23 AM | To: Struts Users Mailing List | Subject: RE: Newbie Question | | Here is my new code: | | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | request.setAttribute ( components, components ); | | the jsp: | logic:iterate id=component name=components scope=request | logic:equal name=component property=name scope=page |value=bean:write name=navigateForm | property=component/ | tr | td COLSPAN=2align=left | bean:write name=component property=name filter=false/ | /td | /tr | /logic:equal | /logic:iterate | | I get the ServletException: | Cannot find bean container in any scope | | If I remove the trtdbean:write: ...//td/tr | It is fine -doesn't fault - doesn't write anything | | If I remove the logic:equal .../logic:equal | It will iterate the list only once. | I have print statements in the Action | | Im stumped? Any Ideas | | I will try Struts 1.0.2 - Except the examples seem to work :-) | | Thanks for your help | Ray Madigan | | -Original Message- | From: Jacob Hookom [mailto:[EMAIL PROTECTED]] | Sent: Monday, February 10, 2003 10:24 PM | To: 'Struts Users Mailing List' | Subject: RE: Newbie Question | | | ArrayList components = (ArrayList) service | | .gatherAccessory(Bean.getContainer()); | | session.setAttribute(someKey, components); | | -or- | request.setAttribute(someKey, components); | | | !-- jsp -- | | logic:iterate id=item name=someKey scope=session //or request | scope | bean:write name=item property=name /br / | /logic:iterate | | -Jacob | | | -Original Message- | | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | | Sent: Tuesday, February 11, 2003 12:06 AM | | To: Struts Users Mailing List | | Subject: Newbie Question | | | | Greetings: | | | | I am new to struts, and i have a question that has been giving me fits | all | | day. | | | | I have a large application I am attempting to rewrite in struts, with | | several hundred jsp's and servlets. It currently runs on Tomcat. I am | | using, don't all of you laugh at once, 1.1-b3. | | | | I haveured out some of how struts works from reading the samples and | | groping | | throught the code, but i can't seem to figure out how to make | | logic:iterate | | work. Here are a couple oc code fragments, if someone could point out | | where | | i'm a bonehead, i would appreciate it. | | | | In the Action class: | | ArrayList components = ( ArrayList ) service.gatherAccessory | | Bean.getContainer ( ) ); | | // Error checking and logging etc | | if ( components != null components.size ( ) 0 ) { | | System.out.println ( Nav: Comp: + components.size ( ) ); | | //txSupport component = new txSupport ( ); | | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | | ( 1 ) ); | | //session.setAttribute ( Constants.COMPONENTS_KEY, | | components.toArray ( as ) ); | | session.setAttribute ( component, components.get ( 0 ) ); | | navForm.setComponents ( components ); | | } | | | | I have tried several alternatives as to how to set the id attribute: | | - an empty instance of the Bean that is contained in the collection | | - the first element in the array | | I have tried to set the name property of the iterate to an array | | all with different errors. The one that worked the best was when | | I pointed the id property of iterate to the first element of the | | Collection. Here i simply got the iterator to iterate the first | | element. In the Action class I have iterated the Collection and | | there are three elements in the list. | | | | In the jsp: | | | | logic:iterate id=component name=navigateForm | property=components | | | | | | tr | | td COLSPAN=2align=left | | bean:write
Newbie Question
Greetings: I am new to struts, and i have a question that has been giving me fits all day. I have a large application I am attempting to rewrite in struts, with several hundred jsp's and servlets. It currently runs on Tomcat. I am using, don't all of you laugh at once, 1.1-b3. I haveured out some of how struts works from reading the samples and groping throught the code, but i can't seem to figure out how to make logic:iterate work. Here are a couple oc code fragments, if someone could point out where i'm a bonehead, i would appreciate it. In the Action class: ArrayList components = ( ArrayList ) service.gatherAccessory Bean.getContainer ( ) ); // Error checking and logging etc if ( components != null components.size ( ) 0 ) { System.out.println ( Nav: Comp: + components.size ( ) ); //txSupport component = new txSupport ( ); //session.setAttribute ( Constants.COMPONENT_KEY, components.get ( 1 ) ); //session.setAttribute ( Constants.COMPONENTS_KEY, components.toArray ( as ) ); session.setAttribute ( component, components.get ( 0 ) ); navForm.setComponents ( components ); } I have tried several alternatives as to how to set the id attribute: - an empty instance of the Bean that is contained in the collection - the first element in the array I have tried to set the name property of the iterate to an array all with different errors. The one that worked the best was when I pointed the id property of iterate to the first element of the Collection. Here i simply got the iterator to iterate the first element. In the Action class I have iterated the Collection and there are three elements in the list. In the jsp: logic:iterate id=component name=navigateForm property=components tr td COLSPAN=2align=left bean:write name=component property=support filter=true/ /td /tr /logic:iterate The navigateForm has a pair of methods get/setComponents that return the Collection. If I put a logic:equal and test a member of the iteration it works in all cases. I am very perplexed by this situation and any light shed on the problem would be appreciated. Thanks in advance Ray Madigan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question
Here is my new code: ArrayList components = ( ArrayList ) service.gatherAccessory Bean.getContainer ( ) ); request.setAttribute ( components, components ); the jsp: logic:iterate id=component name=components scope=request logic:equal name=component property=name scope=page value=bean:write name=navigateForm property=component/ tr td COLSPAN=2align=left bean:write name=component property=name filter=false/ /td /tr /logic:equal /logic:iterate I get the ServletException: Cannot find bean container in any scope If I remove the trtdbean:write: ...//td/tr It is fine -doesn't fault - doesn't write anything If I remove the logic:equal .../logic:equal It will iterate the list only once. I have print statements in the Action Im stumped? Any Ideas I will try Struts 1.0.2 - Except the examples seem to work :-) Thanks for your help Ray Madigan -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:24 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question ArrayList components = (ArrayList) service .gatherAccessory(Bean.getContainer()); session.setAttribute(someKey, components); -or- request.setAttribute(someKey, components); !-- jsp -- logic:iterate id=item name=someKey scope=session //or request scope bean:write name=item property=name /br / /logic:iterate -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List | Subject: Newbie Question | | Greetings: | | I am new to struts, and i have a question that has been giving me fits all | day. | | I have a large application I am attempting to rewrite in struts, with | several hundred jsp's and servlets. It currently runs on Tomcat. I am | using, don't all of you laugh at once, 1.1-b3. | | I haveured out some of how struts works from reading the samples and | groping | throught the code, but i can't seem to figure out how to make | logic:iterate | work. Here are a couple oc code fragments, if someone could point out | where | i'm a bonehead, i would appreciate it. | | In the Action class: | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | // Error checking and logging etc | if ( components != null components.size ( ) 0 ) { | System.out.println ( Nav: Comp: + components.size ( ) ); | //txSupport component = new txSupport ( ); | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | ( 1 ) ); | //session.setAttribute ( Constants.COMPONENTS_KEY, | components.toArray ( as ) ); | session.setAttribute ( component, components.get ( 0 ) ); | navForm.setComponents ( components ); | } | | I have tried several alternatives as to how to set the id attribute: | - an empty instance of the Bean that is contained in the collection | - the first element in the array | I have tried to set the name property of the iterate to an array | all with different errors. The one that worked the best was when | I pointed the id property of iterate to the first element of the | Collection. Here i simply got the iterator to iterate the first | element. In the Action class I have iterated the Collection and | there are three elements in the list. | | In the jsp: | | logic:iterate id=component name=navigateForm property=components | | | tr | td COLSPAN=2align=left | bean:write name=component property=support filter=true/ | /td | /tr | | /logic:iterate | | The navigateForm has a pair of methods get/setComponents that return the | Collection. If I put a logic:equal and test a member of the iteration it | works in all cases. | | I am very perplexed by this situation and any light shed on the problem | would be appreciated. | | Thanks in advance | Ray Madigan | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Newbie Question
Sorry - the ServletException was: Cannot find bean component in any scope I was doing another experiment attempting to iterate containers and got the messages mixed. Thanks -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 11:23 PM To: Struts Users Mailing List Subject: RE: Newbie Question Here is my new code: ArrayList components = ( ArrayList ) service.gatherAccessory Bean.getContainer ( ) ); request.setAttribute ( components, components ); the jsp: logic:iterate id=component name=components scope=request logic:equal name=component property=name scope=page value=bean:write name=navigateForm property=component/ tr td COLSPAN=2align=left bean:write name=component property=name filter=false/ /td /tr /logic:equal /logic:iterate I get the ServletException: Cannot find bean container in any scope If I remove the trtdbean:write: ...//td/tr It is fine -doesn't fault - doesn't write anything If I remove the logic:equal .../logic:equal It will iterate the list only once. I have print statements in the Action Im stumped? Any Ideas I will try Struts 1.0.2 - Except the examples seem to work :-) Thanks for your help Ray Madigan -Original Message- From: Jacob Hookom [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:24 PM To: 'Struts Users Mailing List' Subject: RE: Newbie Question ArrayList components = (ArrayList) service .gatherAccessory(Bean.getContainer()); session.setAttribute(someKey, components); -or- request.setAttribute(someKey, components); !-- jsp -- logic:iterate id=item name=someKey scope=session //or request scope bean:write name=item property=name /br / /logic:iterate -Jacob | -Original Message- | From: Ray Madigan [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, February 11, 2003 12:06 AM | To: Struts Users Mailing List | Subject: Newbie Question | | Greetings: | | I am new to struts, and i have a question that has been giving me fits all | day. | | I have a large application I am attempting to rewrite in struts, with | several hundred jsp's and servlets. It currently runs on Tomcat. I am | using, don't all of you laugh at once, 1.1-b3. | | I haveured out some of how struts works from reading the samples and | groping | throught the code, but i can't seem to figure out how to make | logic:iterate | work. Here are a couple oc code fragments, if someone could point out | where | i'm a bonehead, i would appreciate it. | | In the Action class: | ArrayList components = ( ArrayList ) service.gatherAccessory | Bean.getContainer ( ) ); | // Error checking and logging etc | if ( components != null components.size ( ) 0 ) { | System.out.println ( Nav: Comp: + components.size ( ) ); | //txSupport component = new txSupport ( ); | //session.setAttribute ( Constants.COMPONENT_KEY, components.get | ( 1 ) ); | //session.setAttribute ( Constants.COMPONENTS_KEY, | components.toArray ( as ) ); | session.setAttribute ( component, components.get ( 0 ) ); | navForm.setComponents ( components ); | } | | I have tried several alternatives as to how to set the id attribute: | - an empty instance of the Bean that is contained in the collection | - the first element in the array | I have tried to set the name property of the iterate to an array | all with different errors. The one that worked the best was when | I pointed the id property of iterate to the first element of the | Collection. Here i simply got the iterator to iterate the first | element. In the Action class I have iterated the Collection and | there are three elements in the list. | | In the jsp: | | logic:iterate id=component name=navigateForm property=components | | | tr | td COLSPAN=2align=left | bean:write name=component property=support filter=true/ | /td | /tr | | /logic:iterate | | The navigateForm has a pair of methods get/setComponents that return the | Collection. If I put a logic:equal and test a member of the iteration it | works in all cases. | | I am very perplexed by this situation and any light shed on the problem | would be appreciated. | | Thanks in advance | Ray Madigan | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Access SessionBean
Hello: I am not using JBos, but JOnAS instead. When ever i get this message it usually means that the classes that you are passing back and forth between the client and the stub are out of sync. Try to refresh the client side jar files on the tomcat machine. Hope it helps -Original Message- From: Stephen Ting [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:48 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Access SessionBean Whenever i try to access a session beans deploy on JBoss from the struts application deploy on Tomcat in seperate machine the following errors occured. If i deploy the struts based application in Tomcat bundle in JBoss there are no problems. Could anyone please help? Regards, Stephen 2003-02-11 14:22:59 StandardWrapper[/web-einout:default]: Loading container servlet default 2003-02-11 14:23:04 action: null java.lang.RuntimeException: RemoteException occurred in server thread; nested exception is: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: 4.1/webapps/web-einout/WEB-INF/classes/ at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.initBean(Unknow n Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.invokeBean(Unkn own Source) at my.com.shinyang.einout.ejb.bd.MaintenanceDelegateEJBImpl.getAllCategory( Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.initDBInformation(Unknown Source) at my.com.shinyang.einout.web.EinoutPlugin.init(Unknown Source) at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.j ava:1105) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:934) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:821) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j ava:3420) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3608 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja va:821) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeploy er.java:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:36 8) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu pport.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2 73) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java :245) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java: 307) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]