Hi CAn anyone of you tell me the reason for the following error.
javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:84) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) On 7 Jun 2004 07:40:36 -0000, [EMAIL PROTECTED] wrote: > > ------------------------ Yahoo! Groups Sponsor > --------------------~--> > Make a clean sweep of pop-up ads. Yahoo! Companion > Toolbar. > Now with Pop-Up Blocker. Get it for free! > http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/5cFolB/TM > --------------------------------------------------------------------~-> > > There are 14 messages in this issue. > > Topics in this digest: > > 1. Re: Struts dyanmic master detail form > From: nikhil walvekar > <[EMAIL PROTECTED]> > 2. Front Controller? > From: "Chaikin, Yaakov Y (US SSA)" > <[EMAIL PROTECTED]> > 3. Re: Taglib: how do you call a method like > java.util.List.size() from the property of a tag? > From: Joe Germuska <[EMAIL PROTECTED]> > 4. Re: Taglib: how do you call a method like > java.util.List.size() from the property of a tag? > From: Riyad Kalla <[EMAIL PROTECTED]> > 5. Re: [Raw newbie] Struts/JSTL - A cople of > urgent question (Message resources) > From: Riyad Kalla <[EMAIL PROTECTED]> > 6. Re: Front Controller? > From: Riyad Kalla <[EMAIL PROTECTED]> > 7. Re: [Raw newbie] Struts/JSTL - A cople of > urgent question (Message resources) > From: Joe Germuska <[EMAIL PROTECTED]> > 8. RE: [OT] EJB/Struts Design Question > From: "Robert Taylor" <[EMAIL PROTECTED]> > 9. html:link to anchor in same fil (gettin action > name in .jsp) > From: [EMAIL PROTECTED] > 10. file upload problem(illegal argument) > From: swarna <[EMAIL PROTECTED]> > 11. Re: file upload problem(illegal argument) > From: "atta-ur rehman" <[EMAIL PROTECTED]> > 12. Re: the difference between struts with JSTL > tags and struts-el tags > From: <[EMAIL PROTECTED]> > 13. RE: Reload Ressources on the fly > From: "Sanoj, Antony (IE10)" > <[EMAIL PROTECTED]> > 14. RE: Multiple Databases. > From: Thiharie Rajesh > <[EMAIL PROTECTED]> > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 1 > Date: Sun, 6 Jun 2004 11:06:03 +0100 (BST) > From: nikhil walvekar <[EMAIL PROTECTED]> > Subject: Re: Struts dyanmic master detail form > > Hi Shoaib, > We have done such thing, > for client side u need to have addNew row javascript. > > mapping those fields to form > what you can do is you can have arrays declared in form > bean, > in your jsp > when you write > <logic:iterate id="someId" name="formBean" > property="yourArray" type="classOfObjectInArray"> > > <html:text name="someId" property="objectProperty"/> > instead of this now here you specifiy indexed="true" > <html:text indexed="true" name="someId" > property="objectProperty"/> > > > > </logic:iterate> > > it will generate html code like (suppose you have got > two objects in array) > > <input type="text" name="someId[0].objectProperty"> > <input type="text" name="someId[1].objectProperty"> > > Now when you submit this form these fields are mapped > to respective objects in array. > > This will solve your problem, now main code that you > have to write is javascript for adding row. > > Now is this javascript you should increment index for > field like this, if you add one row to above list (from > javascript) it should look like > <input type="text" name="someId[0].objectProperty"> > <input type="text" name="someId[1].objectProperty"> > <input type="text" name="someId[2].objectProperty"> > > That javascript should be able to increment this id. > Instead of arrays you can also use arrayList but there > are some other things that you have to do , you can try > this. > > If you need some more help you can contact me. > > [EMAIL PROTECTED] wrote: > > Dear All, > we are trying to create a master detail form, where in > rows can be added > dynamically on the client side can any body please tell > me how to do it. > We cant use arrays of objects of line items beacus its > size has to be > fixed.If we use Map we are not able to do the > validations.Please guide . > > Regards > Shoaib > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > Yahoo! India Matrimony: Find your partner online. > > [This message contained attachments] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 2 > Date: Sun, 6 Jun 2004 09:07:02 -0400 > From: "Chaikin, Yaakov Y (US SSA)" > <[EMAIL PROTECTED]> > Subject: Front Controller? > > Hi, > > Struts project is for MVC. Is there a project out there > that implements > Front Controller pattern? > > Thank you. > > Yaakov Chaikin > Software Engineer > BAE SYSTEMS > 301-838-6899 (ph) > 301-838-6802 (fax) > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 3 > Date: Sun, 6 Jun 2004 09:08:00 -0500 > From: Joe Germuska <[EMAIL PROTECTED]> > Subject: Re: Taglib: how do you call a method like > java.util.List.size() from the property of a tag? > > At 5:15 PM -0700 6/5/04, Riyad Kalla wrote: > >I'm trying to do something like: > ><logic:greaterThan name="userList" property="size" > value="20"> > > <!-- Display paging controls --> > ></logic:greaterThan> > > > >but I'm obviously getting an exception on size because > it doesn't > >follow JB naming conventions. How do I call this > method? Do I NEED > >to use EL for this? > > One of the unfortunate shortcomings of the Collections > APIs is the > lack of a bean-convention-named method to access the > length of the > list. > > If you put userList into the request before forwarding > to the JSP, > you could also set another request attribute with the > size value; or > you could put the list in a simple wrapper: > > public class MyListWrapper { > > private List list; > public MyListWrapper(List list) { this.list = list; } > public int getSize() { return this.list.size(); } > public List getList() { return this.list; } > } > > If you are using JSTL 1.1, you could use the "length" > function. > http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/length.fn.html > > Of course, you could use scriptlets too. > > Joe > > -- > Joe Germuska > [EMAIL PROTECTED] > http://blog.germuska.com > "In fact, when I die, if I don't hear 'A Love Supreme,' > I'll turn > back; I'll know I'm in the wrong place." > - Carlos Santana > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 4 > Date: Sun, 06 Jun 2004 07:49:41 -0700 > From: Riyad Kalla <[EMAIL PROTECTED]> > Subject: Re: Taglib: how do you call a method like > java.util.List.size() from the property of a tag? > > Hey Joe that length function looks like just what I > wanted....I didn't > want to do scriplets because of the possibility of a > NPE if the session > timed out and the list wasn't in the session, I want > something that > gracefully handles the missing item and I thought a > custom taglib might > be overkill. > > Thanks for your suggestions! > > Joe Germuska wrote: > > > At 5:15 PM -0700 6/5/04, Riyad Kalla wrote: > > > >> I'm trying to do something like: > >> <logic:greaterThan name="userList" property="size" > value="20"> > >> <!-- Display paging controls --> > >> </logic:greaterThan> > >> > >> but I'm obviously getting an exception on size > because it doesn't > >> follow JB naming conventions. How do I call this > method? Do I NEED to > >> use EL for this? > > > > > > One of the unfortunate shortcomings of the > Collections APIs is the > > lack of a bean-convention-named method to access the > length of the list. > > > > If you put userList into the request before > forwarding to the JSP, you > > could also set another request attribute with the > size value; or you > > could put the list in a simple wrapper: > > > > public class MyListWrapper { > > > > private List list; > > public MyListWrapper(List list) { this.list = list; > } > > public int getSize() { return this.list.size(); } > > public List getList() { return this.list; } > > } > > > > If you are using JSTL 1.1, you could use the "length" > function. > > > http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/length.fn.html > > > > Of course, you could use scriptlets too. > > > > Joe > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 5 > Date: Sun, 06 Jun 2004 07:55:00 -0700 > From: Riyad Kalla <[EMAIL PROTECTED]> > Subject: Re: [Raw newbie] Struts/JSTL - A cople of > urgent question (Message resources) > > This doesn't necessarily sound like a Struts question, > so I'll answer it > in the general terms: > > 1) Create your ResourceBundle for that properties file > containing all > your measurement information, then from that get the > enumeration from > "getKeys" then cycle over the keys getting the values, > doing your logic > on each value (if contains DISTANCE then blah). > > 2) You can call get normally here but when you get back > your result, > call a string.split(",") on it to get back a 2-element > array, one with > "en_US" in it and the other with "USA" in it, then you > do your logic to > make one the display variable and one the logical > variable in the > system. NOTE: String.split is insanely fast, actually > all of the regexp > package is insanely fast, I tried benchmarking it once > to see if I > should implement a much simplier routine for my parser, > and the regexp > package blew me away, it was almost rediculous how fast > it was. > > Johan Wasserman - BCX - Infrastructure Services wrote: > > >As a RAW newbie: > >How do I buid an ArayList of properties for a menu? > >for example; > >I have a resource file containing: > >DISTANCE_MILE=Mile > >DISTANCE_KILO=Kilometre > >DISTANCE_FEET=Feet > >DISTANCE_METRE=Metre > >AREA_SQ_FOOT=Sqare Foot > >AREA_SQ_METRE=Square Metre > >VOLUME_QUBIC_INCH=q' > >VOLUME_QUBIC_METRE=m2 > > > >now, I need to (from a class), get the resource bundle > and build an > >araylist of (key, value) for DISTANCE* so that only > the distance > >parameters show up in my list. > > > >To do this even more trickier.... if I have something > like: > >LANG_EN_US=en_US, USA > >LANG_EN_UK=en_UK, England > >...etc > > > >how do I have the en_US (constant) as the value and > USA (variable, > >depending on language) as the display? > > > >get my drift? > > > >Thank you for a wonderrful forum (MSDN, go suck eggs!) > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 6 > Date: Sun, 06 Jun 2004 07:56:37 -0700 > From: Riyad Kalla <[EMAIL PROTECTED]> > Subject: Re: Front Controller? > > Model 2 / MVC / Front Controller are all the same > thing. In Struts the > "Front Controller" is the "ActionServlet", it > receives/handles/dispatches every single request that > comes into your > web app. You write actions that are like units of > functionality, then > specify in a mapping file the relationship between URLs > and the Action, > then depending on where the user is going, the > ActionServlet will call > the appropriate Action at the appropriate time to > handle the user's request. > > Chaikin, Yaakov Y (US SSA) wrote: > > >Hi, > > > >Struts project is for MVC. Is there a project out > there that implements > >Front Controller pattern? > > > >Thank you. > > > >Yaakov Chaikin > >Software Engineer > >BAE SYSTEMS > >301-838-6899 (ph) > >301-838-6802 (fax) > > > > > > > >--------------------------------------------------------------------- > >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] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 7 > Date: Sun, 6 Jun 2004 10:49:35 -0500 > From: Joe Germuska <[EMAIL PROTECTED]> > Subject: Re: [Raw newbie] Struts/JSTL - A cople of > urgent question (Message resources) > > It may not be a Struts question, but if you're using a > post-1.1 > Struts build, you may find the DigestingPlugIn an easy > way to put > together lists for use in menus. > > The DigestingPlugIn simply uses Digester to process an > XML file and > put something in the application context; the simplest > possible use > case is to use one plugin for each menu you need and > put lists of > LabelValueBeans into application context. (You can get > fancier if > you want.) > > Then you'd have a separate plugin for each domain of > measurement > (distance, area, volume, etc) or locale. > > You could probably actually use the DigestingPlugIn > without post > Struts-1.1, except that you'd need your own > LabelValueBean class (the > one in Struts lacked a no-arg constructor at the time > of the 1.1 > release.) If you just want it in a package, you could > grab the > version from http://demo.jgsullivan.com/struts/ which > is the same in > spirit. > > Hm. Now that I read a little more, I wonder if you're > also looking > for a localization solution? In any case, using the > DigestingPlugIn, > you could make a slightly smarter bean which was > localized. It would > take more code, but nothing too hard to put together. > > Joe > > > At 7:55 AM -0700 6/6/04, Riyad Kalla wrote: > >This doesn't necessarily sound like a Struts question, > so I'll > >answer it in the general terms: > > > >1) Create your ResourceBundle for that properties file > containing > >all your measurement information, then from that get > the enumeration > >from "getKeys" then cycle over the keys getting the > values, doing > >your logic on each value (if contains DISTANCE then > blah). > > > >2) You can call get normally here but when you get > back your result, > >call a string.split(",") on it to get back a 2-element > array, one > >with "en_US" in it and the other with "USA" in it, > then you do your > >logic to make one the display variable and one the > logical variable > >in the system. NOTE: String.split is insanely fast, > actually all of > >the regexp package is insanely fast, I tried > benchmarking it once to > >see if I should implement a much simplier routine for > my parser, and > >the regexp package blew me away, it was almost > rediculous how fast > >it was. > > > >Johan Wasserman - BCX - Infrastructure Services wrote: > > > >>As a RAW newbie: > >>How do I buid an ArayList of properties for a menu? > >>for example; > >>I have a resource file containing: > >>DISTANCE_MILE=Mile > >>DISTANCE_KILO=Kilometre > >>DISTANCE_FEET=Feet > >>DISTANCE_METRE=Metre > >>AREA_SQ_FOOT=Sqare Foot > >>AREA_SQ_METRE=Square Metre > >>VOLUME_QUBIC_INCH=q' > >>VOLUME_QUBIC_METRE=m2 > >> > >>now, I need to (from a class), get the resource > bundle and build an > >>araylist of (key, value) for DISTANCE* so that only > the distance > >>parameters show up in my list. > >> > >>To do this even more trickier.... if I have something > like: > >>LANG_EN_US=en_US, USA > >>LANG_EN_UK=en_UK, England > >>...etc > >> > >>how do I have the en_US (constant) as the value and > USA (variable, > >>depending on language) as the display? > >> > >>get my drift? > >> > >>Thank you for a wonderrful forum (MSDN, go suck eggs!) > >> > >> > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > -- > Joe Germuska > [EMAIL PROTECTED] > http://blog.germuska.com > "In fact, when I die, if I don't hear 'A Love Supreme,' > I'll turn > back; I'll know I'm in the wrong place." > - Carlos Santana > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 8 > Date: Sun, 6 Jun 2004 16:43:06 -0400 > From: "Robert Taylor" <[EMAIL PROTECTED]> > Subject: RE: [OT] EJB/Struts Design Question > > Navjot, > > This sounds like a good design and follows suggested > best practices. > > From a pure architectural perspective, I think your > existing solution is best. > However if you are concerned with performance, then you > may want to look into > the FastLaneReader pattern. > > http://java.sun.com/blueprints/patterns/FastLaneReader.html > > My .02. > > robert > > > -----Original Message----- > > From: Navjot Singh [mailto:[EMAIL PROTECTED] > > Sent: Saturday, June 05, 2004 11:48 AM > > To: Struts Users Mailing List > > Subject: [OT] EJB/Struts Design Question > > > > > > Hi, > > > > I have a typical case of Category and Product entity > bean established in 1:N > > relationship. > > > > In the client tier, I wish to display the list of > products along with their > > category names. > > > > 1. Struts Action make a call to ProductDelegate. > > 2. ProductDelgate to ProductManager (SessionBean). > > 3. ProductManager to ProductHome (to get entity refs > of Product Entities) > > > > __My kind of solution__ > > > > 1. I retreive collection of Product at > ProductManager. All the product > > instances will have category as CMR. > > 2. In session bean, i will iterate over the > collection of products. > > 3. For each product, i create a new ProductCategoryVO > which will contain > > values from product and category entities. > > 4. Then return the collection of ProductCategoryVO to > my action class. > > 5. Action class wll further pass on to JSP. > > > > To me, it sounds like heavy work. What's the best way > to handle this? > > Any help/pointers are appreciated. > > > > --------------- > > regards > > Navjot Singh > > Net4India Ltd. > > > > If there's only one answer, then this must not be a > very interesting topic. > > > > > > > --------------------------------------------------------------------- > > 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] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 9 > Date: Sun, 6 Jun 2004 23:07:00 +0200 (CEST) > From: [EMAIL PROTECTED] > Subject: html:link to anchor in same fil (gettin action > name in .jsp) > > Hi. > > I had a html pages, where there were links to anchors > in the same file. > Like this: > > <a id="anchor1" /> > ... > Back to <a href="anchor1">anchor 1</a> > > Now I've changed the page to a .jsp page, moved it to > WEB-INF and I'm using > a Struts action to call it. Consequently I have had to > change the link, and > the best I have come up with so far is something like > this: > > Back to <html:link action="action_name" > anchor="anchor1">anchor 1</html:link> > > That kind of works - as long as the name of the action > dosn't change. Using > the same jsp page in more than one action is not > possible with this > sulution. > > Can anyone come up with a better sulution, where I > don't have to write the > name of the action in the .jsp page? > > Best regards > Claus Nielsen > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 10 > Date: Sun, 6 Jun 2004 14:23:32 -0700 (PDT) > From: swarna <[EMAIL PROTECTED]> > Subject: file upload problem(illegal argument) > > Hi, > I am trying to do file upload using struts1.1. I > am getting > illegal argument type exception(stack trace attached > below). I am struggling > to fix this since three days. I would really appreciate > any kind of > help. > > I am using web logic 8.1, eclipse and java for my > development. > I created a form with property type FormFile. > jsp with input field <html:file property="theFile"/> > > and a submit button<html:submit/>. In action class I am > just getting > the file with form.getTheFile() method. but the problem > is that when I > hit submit button I am getting the following exception: > <Error> <HTTP> <BEA-101017> <[ServletContext(id=314 > 99063,name=cms-int-20040605,context-path=/cms-int-20040605)] Root cause > of Servl > etException. > java.lang.IllegalArgumentException: argument type > mismatch > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > sorImpl.java:25) > at > java.lang.reflect.Method.invoke(Method.java:324) > at > org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property > Utils.java:1789) > at > org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property > Utils.java:1684) > at > org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils. > java:1713) > at > org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101 > 9) > at > org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) > at > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) > at > org.apache.struts.action.RequestProcessor.processPopulate(RequestProc > essor.java:821) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > va:254) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 > 2) > at > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run > (ServletStubImpl.java:971) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm > pl.java:402) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm > pl.java:305) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio > n.run(WebAppServletContext.java:6350) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate > dSubject.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java: > 118) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe > rvletContext.java:3635) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm > pl.java:2585) > at > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > > > > Any help would be greately appreciated. > > thanks > > > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > > [This message contained attachments] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 11 > Date: Sun, 6 Jun 2004 15:02:56 -0700 > From: "atta-ur rehman" <[EMAIL PROTECTED]> > Subject: Re: file upload problem(illegal argument) > > Hello there, > > Does your <html:form> tag has attribute > > enctype="multipart/form-data" > > set? > > HTH, > > ATTA > > ----- Original Message ----- > From: "swarna" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Sunday, June 06, 2004 2:23 PM > Subject: file upload problem(illegal argument) > > > > Hi, > > I am trying to do file upload using struts1.1. > I am getting > > illegal argument type exception(stack trace attached > below). I am > struggling > > to fix this since three days. I would really > appreciate any kind of > > help. > > > > I am using web logic 8.1, eclipse and java for my > development. > > I created a form with property type FormFile. > > jsp with input field <html:file property="theFile"/> > > > > and a submit button<html:submit/>. In action class I > am just getting > > the file with form.getTheFile() method. but the > problem is that when I > > hit submit button I am getting the following > exception: > > <Error> <HTTP> <BEA-101017> <[ServletContext(id=314 > > > 99063,name=cms-int-20040605,context-path=/cms-int-20040605)] Root cause > > of Servl > > etException. > > java.lang.IllegalArgumentException: argument type > mismatch > > at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. > > java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > > sorImpl.java:25) > > at > java.lang.reflect.Method.invoke(Method.java:324) > > at > > > org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(Property > > Utils.java:1789) > > at > > > org.apache.commons.beanutils.PropertyUtils.setNestedProperty(Property > > Utils.java:1684) > > at > > > org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils. > > java:1713) > > at > > > org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:101 > > 9) > > at > > > org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808) > > at > > > org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252) > > at > > > org.apache.struts.action.RequestProcessor.processPopulate(RequestProc > > essor.java:821) > > at > > > org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja > > va:254) > > at > > > org.apache.struts.action.ActionServlet.process(ActionServlet.java:148 > > 2) > > at > > > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > > at > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > > > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run > > (ServletStubImpl.java:971) > > at > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm > > pl.java:402) > > at > > > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm > > pl.java:305) > > at > > > weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio > > n.run(WebAppServletContext.java:6350) > > at > > > weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate > > dSubject.java:317) > > at > > > weblogic.security.service.SecurityManager.runAs(SecurityManager.java: > > 118) > > at > > > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe > > rvletContext.java:3635) > > at > > > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm > > pl.java:2585) > > at > > > weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > > at > weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > > > > > > > Any help would be greately appreciated. > > > > thanks > > > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 12 > Date: Sun, 6 Jun 2004 20:45:36 -0400 > From: <[EMAIL PROTECTED]> > Subject: Re: the difference between struts with JSTL > tags and struts-el tags > > Kay, > Thanks for your reply. > >Do you have a valid "taglib" directive in your JSP? > Yes. > > Do you have both the struts.jar and strutsel.jar in > your WEB-INF/lib, > Yes. both struts.jar and struts-el.jar > >and there are no other instances of those jars in your > classpath? > my classpath: > .;c:\j2sdk1.4.2_01\bin;c:\j2sdk1.4.2_01\lib;d:\batik\batik-1.5\lib;d:\batik\ > xml-batik;d:\junit3.8.1\junit.jar > >What container are you using? > Jrun 4.0 updater 3 > > After I switched back to use struts with JSTL tags, > the problem went away. > I am thinking if there is no difference between struts > with jstl tag and > struts-el tags, I do not have to switch. What is the > advantage of using > struts-el tags over jstl tags? > Thank you. > > Kathy > > --------------------------------------------------------------------- > 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] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 13 > Date: Sun, 6 Jun 2004 22:10:46 -0700 > From: "Sanoj, Antony (IE10)" > <[EMAIL PROTECTED]> > Subject: RE: Reload Ressources on the fly > > > if you use tomcat, use tomcat's manager application to > reload your webapp. > > > -----Original Message----- > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 04, 2004 7:46 PM > > To: [EMAIL PROTECTED] > > Subject: Reload Ressources on the fly > > > > > > Hi, > > i am quite a newbie to struts and now i want to know, > if > > there is a chance to reload the messageressources > after a > > change without restarting the server. > > Greetz > > Olli > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > 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] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > Message: 14 > Date: Mon, 7 Jun 2004 06:18:12 +0100 > From: Thiharie Rajesh <[EMAIL PROTECTED]> > Subject: RE: Multiple Databases. > > It is best to use the application server connection > pool. > Do not use the Jakarta Struts connection pool. > > Rajesh > > > > > -----Original Message----- > If you are using tomcat, then I believe you can use > dbcp. (I think that's > what Riyad Kalla was talking about too..) We use dbcp > but only for > connecting to one pool (and this turned out to be quite > simple: just > configure the server.xml), but I think I read that you > can create multiple > pools, which seems to be what you need. (My guess is > you add more <Resource > elements in your particular context in the server.xml > and give all the db > info in the corresponding ResourceParams.. Like I said, > i haven't doene this > with multiple databases, but seems like the machinery > is there.. > > This article contains a link with an example and a "How > to tell tomcat to > use dbcp" piece: > http://www.midrangeserver.com/mpo/mpo081502-story04.html > And here's a detailed how-to: > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-how > to.html > > > > -----Original Message----- > > well that not the problem but my problem is that i > want to > > connect to > > different databases in my application and i m using > > datasource object and > > in my xml file i have given the details of my database > > url,username,password etc etc. but now i want to > connect to another > > database and if in struts-config.xml i give > information abt > > other database > > .but when in my controller when i will give call to > my > > datasource object to > > which database the connection will be made and how > can i handle > > it..like if i want to make connection to Database A > and after > > sometime in > > the same file if i want to make connection to > DatabaseB how > > will it work and > > what all changes i will have to make.and where. > Pleaseif > > anybody can provide > > an example it will be very helpfull. > > ___________________________________________________________________________ > > > This email and any attached to it are confidential and > intended only for the > individual or entity to which it is addressed. If you > are not the intended > recipient, please let us know by telephoning or > emailing the sender. You > should also delete the email and any attachment from > your systems and should > not copy the email or any attachment or disclose their > content to any other > person or entity. The views expressed here are not > necessarily those of > Churchill Insurance Group plc or its affiliates or > subsidiaries. Thank you. > > Churchill Insurance Group plc. Company Registration > Number - 2280426. > England. > > Registered Office: Churchill Court, Westmoreland Road, > Bromley, Kent BR1 > 1DP. > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > ________________________________________________________________________ > ________________________________________________________________________ > > > > ------------------------------------------------------------------------ > Yahoo! Groups Links > > <*> To visit your group on the web, go to: > http://groups.yahoo.com/group/struts/ > > <*> To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > > <*> Your use of Yahoo! Groups is subject to: > http://docs.yahoo.com/info/terms/ > > ------------------------------------------------------------------------ > _________________________________________________ FindLaw - Free Case Law, Jobs, Library, Community http://www.FindLaw.com Get your FREE @JUSTICE.COM email! http://mail.Justice.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]