hidden property null
hi! i have a value in request scope that i would like to pass on to an action, called when you submit a form on the page, i accessed the value on the page as <% String tableName = request.getParameter("tableName"); %> and correctly retrieved the value. in my form then i initialized a hidden property to this value, as now when the form is submitted, in my action class when i retrieve the tableName property from the associated bean, i get the null value. i put a print statement in the setTableName method for form bean, and it seems that just before the form is submitted, tableName is set to null. can someone tell me why this is happening, and how do i workaround it. thanks Ajay _ Get less junk mail with ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tiles, conditional choice of
I've been trying to find the best way to handle a situation where you have various formats for a tile and the tile appearance is chosen at run-time. And I have content1.jsp, content2.jsp and content3.jsp which can be loaded into the page Should I: 1. Have a single tile with choose statements to determine the format. 2. Have a single master tile which chooses between various tiles and loads the selected one? (If possible?) 3. Have a ClassController or TilesAction class which changes the tile object and loads the chosen tile into the tile object before displaying it. (If so how is this done? Any examples available?) I found a couple similar references in the archives but no definitive answer. Thanks, Brady PS: It would be cool if you could create an action for a tile and then do an actionForward which returns the chosen tile into the correct spot on the calling page but I don't believe this is possible. At least I've never seen anything that indicated it could be done. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with multibox check state
Hi, Thanks for the info, I can understand this type of program would suit a static multibox, I need some coding for a dynamic array of multiboxes with the same property value, how do I set the values in the action class? Thanks in advance Regards H.Rajesh -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 5:00 PM To: Struts Users Mailing List Subject: Re: Problem with multibox check state The checkboxes are selected depending on whether the value and the property value match.. if myprop is set to foo it will be ticked.. On 24 Dec 2003, at 11:11, Rajesh, Harikrishnan (H.) wrote: > Hi, > > I have a jsp input form with dynamically generated multibox, I need to > fill these boxes with checked and unchecked state once the user > selects a previously saved record. I need to know how to resolve this > problem. > > I have done the same with a single multibox, using the set('property > name', value) in the action component. But for dynamically generated > multibox what need to be done. > > I have set the component name in the 'form bean' tag as > 'java.lang.string'. > > This is a very urgent requirement and might be a simple problem for > you gurus. > > Thanks for any help on this issue. > > Regards > H.Rajesh > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: checkbox value from getter in collection of value object
Hello Shahfazal, As i understand from the 'applicantId' getter, you want to use these checkboxes as a selecting indicator. If so, create a String[] getter/setter in your ActionForm, let say: setSelectedApplicants(String[] ids) String[] getSelectedApplicants() now in your jsp you can write: this should produce HTML like now when you submit page, and inspect ActionForm.getSelectedApplicants() string array, you should get the IDs of selected checkboxes. Hope this helps! ATTA On Dec 26, 2003, at 1:07 PM, shahfazal wrote: Hi all i already posted twice about this but i guess my email program had trouble formatting my mail or somethign but anyway long thing short i have a collection of ApplicationVO value objects, i need to display them in rows on a jsp. so i iterate thru the collection of the value objects, and at the beginning of the row i need a check box with a value of one of the properties of the value object how do i go about it? i know the multibox can do this but i'm having trouble binding the property to the value of this multibox .. can anyone help me? my code : ???
Re: [OT] Who owns Eclipse
Eclipse is an Open Source Project, bottom line. WSAD is built on the Eclipse framework ... you see, Eclipse isn't just an IDE, that's just one particular incarnation of Eclipse plugins. Eclipse is simply an extensible plugin framework that can be used for any type of application, by anyone out there ... WSAD is such an application. The fact that it resembles many of the IDE functions that Eclipse has, is purely coincidental, at this point :) Ramadoss Chinnakuzhandai wrote: meaning eclipse own by===>OTI===>own by IBM==> Eclipse own by IBM? -Original Message- From: Ingo Adler [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 3:49 PM To: Struts Users Mailing List Subject: Re: [OT] Who owns Eclipse Eclipse developement is driven by OTI (www.oti.com), an IBM company. They developed Visual Age before. IBM (and maybe some of the OTI employees) builds WebSphere Studio Application Developer on top of it and sells it. Ingo Ramadoss Chinnakuzhandai wrote: Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - 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] -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
checkbox value from getter in collection of value object
Hi all i already posted twice about this but i guess my email program had trouble formatting my mail or somethign but anyway long thing short i have a collection of ApplicationVO value objects, i need to display them in rows on a jsp. so i iterate thru the collection of the value objects, and at the beginning of the row i need a check box with a value of one of the properties of the value object how do i go about it? i know the multibox can do this but i'm having trouble binding the property to the value of this multibox .. can anyone help me? my code : ???
RE: [OT] Who owns Eclipse
meaning eclipse own by===>OTI===>own by IBM==> Eclipse own by IBM? -Original Message- From: Ingo Adler [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 3:49 PM To: Struts Users Mailing List Subject: Re: [OT] Who owns Eclipse Eclipse developement is driven by OTI (www.oti.com), an IBM company. They developed Visual Age before. IBM (and maybe some of the OTI employees) builds WebSphere Studio Application Developer on top of it and sells it. Ingo Ramadoss Chinnakuzhandai wrote: >Hi, > Is Eclipse owned by IBM or bought by IBM? > >Any idea? > >-Ram > > - 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] Who owns Eclipse
Eclipse developement is driven by OTI (www.oti.com), an IBM company. They developed Visual Age before. IBM (and maybe some of the OTI employees) builds WebSphere Studio Application Developer on top of it and sells it. Ingo Ramadoss Chinnakuzhandai wrote: Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What is wrong with this upload filename (UTF-8) decoding?
I have not used the file upload yet, but I believe you need to set the encoding for the headers formFile.setHeaderEncoding("UTF-8") setHeaderEncoding does this: "Specifies the character encoding to be used when reading the headers of individual parts. When not specified, or |null|, the platform default encoding is used." If this was running on a English operating system it is probably defaulting to the Latin-1 encoding. From this Java Doc: http://jakarta.apache.org/commons/fileupload/apidocs/org/apache/commons/fileupload/FileUploadBase.html#setHeaderEncoding(java.lang.String) Please post back to the forum if this works. I would be interested in the result. Zsolt Koppany wrote: Hi, my application has to support UTF-8 including when files are uploaded with UTF-8 characters in the filename (for example: ??.txt). I use a servlet filter that always call request.setCharacterEncoding("UTF-8") and my jsp pages contain response.setContentType("text/html; charset=UTF-8"); Everything works fine except that I have problems with decoding of the name of uploaded filenames. I use the code below to get the name of the uploaded filename: String nm = formFile.getFileName(); String filename = new String(nm.getBytes(), "UTF-8"); The code above converts only the first couple of characters correctly (result: ??.txt). Any ideas how to fix the problem? I use TC-4.1.29, Struts-1.1, jdk1.4.2_02 Windows-XP. Zsolt - 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]
RE: [OT] Who owns Eclipse
Cooper Tnx for your information :) -Ramadoss -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper Sent: Friday, December 26, 2003 3:22 PM To: [EMAIL PROTECTED] Subject: Re: [OT] Who owns Eclipse Neither. IBM originally created Eclipse, but then donated it to the open source community. See: http://www.ibm.com/news/us/2001/11/05.html My understanding is that Eclipse grew out of IBM's VisualAge for Java project. -- Martin Cooper "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - 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] Who owns Eclipse
Neither. IBM originally created Eclipse, but then donated it to the open source community. See: http://www.ibm.com/news/us/2001/11/05.html My understanding is that Eclipse grew out of IBM's VisualAge for Java project. -- Martin Cooper "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Who owns Eclipse
Hi, Is Eclipse owned by IBM or bought by IBM? Any idea? -Ram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File Upload
What is it that you are trying to do? Is there a reason you can't just use a FormFile object in your form bean? That would make your life a whole lot easier - you wouldn't have to know or care about the request wrapper, and you wouldn't have to iterate over the uploaded fields. Also, I'm not sure where you're getting what you're trying to use in the code you posted. Are you trying to write a Struts app or a WebWork app? ServletActionContext is a WebWork class, not a Struts class, and getFileNames() and getFilesystemName() are WebWork methods as well, and not available on the Struts MultipartRequestWrapper class. Something is very wrong... -- Martin Cooper "Jacob Ginu" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > This is the sample code I am using in the action.java file.I have the necessary struts file.But it says Unable to find ServletActionContext in MultipartRequestWrapper when compiled. > > MultipartRequestWrapper multiWrapper = > (MultipartRequestWrapper) > ServletActionContext.getRequest(); > > Enumeration e = multiWrapper.getFileNames(); > while(e.hasMoreElements()) { >// get the value of thisinput tag >StringinputValue = (String) e.nextElement(); > // get the content type >StringcontentType = multiWrapper.getContentType(inputValue); > // get the name of the file from the input tag >StringfileName = multiWrapper.getFilesystemName(inputValue); > // Get a File object forthe uploaded File >File file = multiWrapper.getFile(inputValue); > // If it's nullthe upload failed >if(file == null) { > addActionError("Error uploading: "+ > multiWrapper.getFilesystemName(inputValue)); >} > > > David Friedman <[EMAIL PROTECTED]> wrote: > Why won't you use the struts-upload.war from the Struts distributions? > > Regards, > David > > -Original Message- > From: Jacob Ginu [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 23, 2003 9:48 PM > To: [EMAIL PROTECTED] > Subject: reg:File Upload > > Hi, > > Can anyone send me a sample file Upload program. > > Regards, > Ginu > > - > Do you Yahoo!? > Yahoo! Photos - Get your photo on the big screen in Times Square > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > Do you Yahoo!? > Yahoo! Photos - Get your photo on the big screen in Times Square - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .NET: We are just like Struts... only better.
It seems that Microsoft has a growing concern for open source solutions. Recently, a Microsoft survey targeted Linux users to find out: *why Linux users have opted not to use Microsoft, *and what Microsoft could do to improve their operating system(s). See: http://slashdot.org/article.pl?sid=03/12/21/1655257&mode=thread&tid=106&tid=109&tid=185&tid=187 for Slashdot readers' (intereting) opinions on the matter. After reading through the .NET vs Struts article, the things that bothered me were: *in sections the authors were comparing apples to oranges (they had selected the wrong java components to make their comparisons--for example try reading the JDBC section), *in other sections it seemed as though the .NET and Struts had very similar approaches except the two development frameworks used different vocabularies to describe their components (but, the language of the article made it seems as though the Struts approach was the less desirable of the two), *they made light of the issue of portability (by extension the ability to choose the operating system, application server software, database(s) on which your application should run), * and then insulted my intelligence and experience as a developer by threatening readers with the fact that java developers must make a _choice_ in some areas (having a choice is often an advantage, not a disadvantage). It would seem that one of the previous respondents was correct in saying that it is a nod in the direction of Struts that Microsoft recognizes it as a competitor. At this point, the article is probably out there to make those that have already put their resources into .NET feel more comfortable about their decision. The article seems benign enough, and doesn't offer a strong enough business or technical case to sway a system architect to recommend investing in the .NET framework. However, as the open source software movement gains more and more momentum and validity in industry, I'm wondering how soon it will be before we start seeing more direct Microsoft-ian attacks (jargon, legal, etc.) on groups and members of the open source community. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .NET: We are just like Struts... only better.
It is a complement that Microsoft is worried about the feature set of struts. However, a lot of the stuff that comes in ASP.NET sounds good compared to the java equivalents. Edgar > -Original Message- > From: Vic Cekvenich [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 25, 2003 6:16 AM > To: [EMAIL PROTECTED] > Subject: .NET: We are just like Struts... only better. > > > Just like everyone else. > http://msdn.microsoft.com/asp.net/default.aspx?pull=/library/e > n-us/dnaspp/html/aspnet-aspnet-j2ee-struts.asp > > This was fun to read, it puts a smile on my face. Somone has > a chip on > their sholder. > > > * > Main point made in there: Do not use JDBC, you make us look > bad, use > an auto caching DAO (data caching in data layer, get it). > Clients I see > in real life do, but some people on this list dont use a DAO > and do > caching in layers other than Model. > * > > > "Struts framework is ... many of its key components have been > absorbed > into the main J2EE framework." - not one! CommonsBeans? > CommonsCollections? CommonsValidator? Tiles? Action? > FormBean? It's a community of users, not a vendor thing. I do > not think they get it. They think Sun does Struts? Look > MS."There is no vendor". It' called open source. If Sun shuts > down... it will have no impact on the market (for example > jRockit JVM, > one of 6 VM's I know - > http://www.j2eegeek.com/blog/archives/2003_09_01_j2eegeek_arch ive.html#106336646351242237 ) Save session state to db... I hope no one here does that (but I do think that if .Net suggests for them to do it, GREAT) Version is a strength of .Net? Have you ever had .DLL hell? OK, I do not think the author knows that J2EE comes with built in JAAS and... it's declerative role based security. Struts and other tags uses Servlets (since 2.2, go read JavaDoc) Role based API. Again, I do not think the Author is familiar with localization in Java... for example JSTL's localization. Again... on testing, I happen to use OpenSta that runs circles. I think he is implying that I can't test in J2EE. The benefit of MVC layers is that you can test each layer. PageController is an MVC? Looks a lot like MV... with a small c. This is commic: "How to migrate Struts to ASP". ?? That is what I want to do, get propiratory with a Vendor, who want's choice? You know, clients no longer say should I use .Net or Struts, topic just does not come up for large projects. Oh, does it run on the largest comercial platform, Linux? I do my development on Linux, w/Eclipse and Tomcat and pgSQL. but, every 3 months, I reformat my windows machinee and re-install XP. I do not do this with Linux(Fedora)... and I guess my new OSX is BSD, but I have had it less than 3 months. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: retrieving values from application.properties file
Yeah,I think this was it. I will try it Thanks >-Original Message- >From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 24, 2003 8:13 PM >To: 'Struts Users Mailing List' >Subject: RE: retrieving values from application.properties file > > > >This might be the wrapper you are looking for > > protected MessageResources getMessageResources(){ > return >MessageResources.getMessageResources("ApplicationResources"); > } > > //getMessageResources().getMessage( "key" ); > >The API has lot of other methods. > > >Mohan >-Original Message- >From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 23, 2003 4:03 PM >To: Struts Users Mailing List >Subject: RE: retrieving values from application.properties file > > >Ok, Thanks. I thought that I could use some struts wrapper >class which will >provide some fn which takes the key as input. I didnt wanted >to load the >bundle etc as its already done by struts. >Any way thanks. > > >>-Original Message- >>From: Shishir K. Singh [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, December 23, 2003 1:01 PM >>To: Struts Users Mailing List >>Subject: RE: retrieving values from application.properties file >> >> >>Use >> >>ResourceBundle resource = >>ResourceBundle.getBundle("resources.application"); >> >>Else : >>If you are in Action/Lookup Dispatch Action class >> >>MessageResources resource = getResources(request); >> >> >> >> >> >>-Original Message- >>From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] >>Sent: Tuesday, December 23, 2003 2:24 AM >>To: Struts Users Mailing List >>Subject: RE: retrieving values from application.properties file >> >>hi, >>One more thing to add is that I dont have access to >request,pagecontext >>etc. >>I am writing a Servicelocator class and I want to access some >values in >>that file. Is it possible. >>Otherwise I have to use my own resource bundle. >> >> >> >> >> >>>-Original Message- >>>From: [EMAIL PROTECTED] >>>[mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, December 23, 2003 12:48 PM >>>To: [EMAIL PROTECTED] >>>Subject: RE: retrieving values from application.properties file >>> >>> >>>Hi Ashwani >>> >>>In a jsp page use follwing code: >>> >>> >>>org.apache.struts.util.PropertyMessageResources res = >>> >>>(org.apache.struts.util.PropertyMessageResources)application.ge >>>tAttribut >>>e(org.apache.struts.Globals.MESSAGES_KEY); >>> out.println(res.getMessage("KEYNAME")); >>> >>> >>>Dhiraj >>> >>>-Original Message- >>>From: Kalra, Ashwani [mailto:[EMAIL PROTECTED] >>>Sent: Tuesday, December 23, 2003 12:27 PM >>>To: Struts (E-mail) >>>Subject: retrieving values from application.properties file >>> >>>hi, >>>I want to directly access the keys and its values in >>>applcation.properties ( default resource bundle file in struts). Can >>>any body tell me which is the class in struts(utility class) which >>>helps me retrieve the values based on the keys from this file. >>> >>>/Ashwani >>> >>> >>>This message contains information that may be privileged or >>>confidential and is the property of the Cap Gemini Ernst & >>Young Group. >> >>>It is intended only for the person to whom it is addressed. >>If you are >>>not the intended recipient, you are not authorised to read, print, >>>retain, copy, disseminate, distribute, or use this message or >>any part >>>thereof. If you receive this message in error, please notify >>the sender >> >>>immediately and delete all copies of this message. >>> >>>- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>>DISCLAIMER: >>>This message contains privileged and confidential information and is >>>intended only for the individual named.If you are not the intended >>>recipient you should not disseminate,distribute,store,print, copy or >>>deliver this message.Please notify the sender immediately by >>e-mail if >>>you have received this e-mail by mistake and delete this e-mail from >>>your system.E-mail transmission cannot be guaranteed to be secure or >>>error-free as information could be >>>intercepted,corrupted,lost,destroyed,arrive late or incomplete or >>>contain viruses.The sender therefore does not accept >>liability for any >>>errors or omissions in the contents of this message which arise as a >>>result of e-mail transmission. If verification is required please >>>request a hard-copy version. >>> >>>- >>>To unsubscribe, e-mail: [EMAIL PROTECTED] >>>For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >>This message contains information that may be privileged or >>confidential >>and is the property of the Cap Gemini Ernst & Young Group. It is >>intended only for the person to whom it is addressed. If you >>
Re: What is wrong with this upload filename (UTF-8) decoding?
I think it depends on the operating system on your machine where the app server is running... Try to solve the problem with your OS. F. - Original Message - From: "Zsolt Koppany" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 26, 2003 12:51 PM Subject: RE: What is wrong with this upload filename (UTF-8) decoding? > After posting now I see that the posted email contains "?" characters > instead of the original chinese characters I used in my example. > > Zsolt > > > -Original Message- > > From: Zsolt Koppany [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 26, 2003 11:45 AM > > To: Struts Users Mailing List > > Subject: What is wrong with this upload filename (UTF-8) decoding? > > > > > > Hi, > > > > my application has to support UTF-8 including when files are uploaded with > > UTF-8 characters in the filename (for example: ??.txt). > > > > I use a servlet filter that always call > > request.setCharacterEncoding("UTF-8") and my jsp pages contain > > response.setContentType("text/html; charset=UTF-8"); > > > > Everything works fine except that I have problems with decoding > > of the name > > of uploaded filenames. > > > > I use the code below to get the name of the uploaded filename: > > > > String nm = formFile.getFileName(); > > String filename = new String(nm.getBytes(), "UTF-8"); > > > > The code above converts only the first couple of characters correctly > > (result: ??.txt). > > > > Any ideas how to fix the problem? > > > > I use TC-4.1.29, Struts-1.1, jdk1.4.2_02 Windows-XP. > > > > 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]
Re: Performance Issue
And what DAO are you using? The slowest and most buggy part of J2EE is Data Access. I use OpenSta for testing! Once you have a DAO, do showplan on your SQL. But my guess is as soon as you pick a DAO you'll be fine. .V ps: (did I ever happen to say on this list that iBatis DAO has built in auto-cache, auto-flush, and has a great Tutorial by Rick Reuman and a great example PetStore 3? iBatis is *VERY* easy, you should be able to write 30 querries quick like. See when you use Struts, you should use DAO, else use Servlets w/JDBC if you do not use a framework. Note to self: write a Wiki FAQ) Raman wrote: Our site is facing a performace issue we need to track what are the bottle necks in this. We are Using 1. Tomcat 4.1 2. Post Gre Sql 7.1 3. Struts 1.1 4. Red hat Linux Our pages required quite good number of results from database. you can say we fire around 20-30 queries to create dynamic left Nav, Right nav , Center content etc. we are using Custom Tags for this. What we have done so far: 1. Checked all the Data Access files for connection/recorset close. We need to know some tools or some way from where we can get to the bottle neck of the performance. Thanks Raman Garg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: What is wrong with this upload filename (UTF-8) decoding?
After posting now I see that the posted email contains "?" characters instead of the original chinese characters I used in my example. Zsolt > -Original Message- > From: Zsolt Koppany [mailto:[EMAIL PROTECTED] > Sent: Friday, December 26, 2003 11:45 AM > To: Struts Users Mailing List > Subject: What is wrong with this upload filename (UTF-8) decoding? > > > Hi, > > my application has to support UTF-8 including when files are uploaded with > UTF-8 characters in the filename (for example: ??.txt). > > I use a servlet filter that always call > request.setCharacterEncoding("UTF-8") and my jsp pages contain > response.setContentType("text/html; charset=UTF-8"); > > Everything works fine except that I have problems with decoding > of the name > of uploaded filenames. > > I use the code below to get the name of the uploaded filename: > > String nm = formFile.getFileName(); > String filename = new String(nm.getBytes(), "UTF-8"); > > The code above converts only the first couple of characters correctly > (result: ??.txt). > > Any ideas how to fix the problem? > > I use TC-4.1.29, Struts-1.1, jdk1.4.2_02 Windows-XP. > > 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]
Initializing application data source org.apache.struts.action.DATA_SOURCE
Hello, I am new to Struts, and am trying to deploy to Tomcat an application that uses mySQL as database. However I am encountering the following errors: 2003-12-24 14:28:33 StandardWrapper[/necdcstruts1:action]: Marking servlet action as unavailable 2003-12-24 14:28:33 StandardContext[/necdcstruts1]: Servlet /necdcstruts1 threw load() exception javax.servlet.UnavailableException: Initializing application data source org.apache.struts.action.DATA_SOURCE at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.j ava:1091) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472) at javax.servlet.GenericServlet.init(GenericServlet.java:256) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93 5) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3422) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3623) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:307) at org.apache.catalina.core.StandardHost.install(StandardHost.java:788) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559 ) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:754) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) In addition to the standard jars I have put the following .jar's in WEB-INF/lib : commons-pool-1.1.jar commons-dbcp-1.1.jar mysql-connector-java-3.0.9-stable-bin.jar but it doesn't seem to solve the problem. Please advise what else I can try to identify and resolve the problem. Thanks in advance, Ricky Purnomo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What is wrong with this upload filename (UTF-8) decoding?
Hi, my application has to support UTF-8 including when files are uploaded with UTF-8 characters in the filename (for example: ??.txt). I use a servlet filter that always call request.setCharacterEncoding("UTF-8") and my jsp pages contain response.setContentType("text/html; charset=UTF-8"); Everything works fine except that I have problems with decoding of the name of uploaded filenames. I use the code below to get the name of the uploaded filename: String nm = formFile.getFileName(); String filename = new String(nm.getBytes(), "UTF-8"); The code above converts only the first couple of characters correctly (result: ??.txt). Any ideas how to fix the problem? I use TC-4.1.29, Struts-1.1, jdk1.4.2_02 Windows-XP. Zsolt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Performance Issue
Our site is facing a performace issue we need to track what are the bottle necks in this. We are Using 1. Tomcat 4.1 2. Post Gre Sql 7.1 3. Struts 1.1 4. Red hat Linux Our pages required quite good number of results from database. you can say we fire around 20-30 queries to create dynamic left Nav, Right nav , Center content etc. we are using Custom Tags for this. What we have done so far: 1. Checked all the Data Access files for connection/recorset close. We need to know some tools or some way from where we can get to the bottle neck of the performance. Thanks Raman Garg
html:checkbox or multibox?? how to value as getter from collection
Hi all i already posted twice about this but i guess my email program had trouble formatting my mail or somethign but anyway long thing short i have a collection of ApplicationVO value objects, i need to display them in rows on a jsp. so i iterate thru the collection of the value objects, and at the beginning of the row i need a check box with a value of one of the properties of the value object how do i go about it? i know the multibox can do this but i'm having trouble binding the property to the value of this multibox .. can anyone help me? my code : ???