Sending or Receiving Fax through My Application.............
Hi Guys, Please, I'd like to know if there is any API to send or perhaps receive fax using JAVA technology. I've heard anything about JavaPhone and JTAPI, but not so clear. I need to develop an application to send fax trough a database table. If someone knows something about how can I do this, and where to download the API, plese help me. with advanced thanks Srinivas - Do you Yahoo!? vote.yahoo.com - Register online to vote today!
Proxy Problem to run the Application....................
Hi Guys, I am using the Struts Frame Work and Servlets in my Application. And It's working fine... But the Problem is It's working only the Static IP Address Systems ...but through Proxy my application is not working . In my application one of the main future is "Download the File to a Specified Location"... It's working on the Static IP Addres System but through Proxy it's not working ... I don't know How to solve the Proble.. Here is the code i have wrote f = new File(fPath); FileManagerHelper fHelper=new FileManagerHelper(); String mimeType=fHelper.getMimeType(f.getName()); httpServletResponse.setContentLength( (int) f.length()); httpServletResponse.setContentType(mimeType); System.out.println("Step..2"); System.out.println("File Name from MtDownloadAction :"+f.getName()); httpServletResponse.setHeader("Content-Disposition","attachment;filename=" +f.getName()); os = httpServletResponse.getOutputStream(); stream = new FileInputStream(f); bis = new BufferedInputStream(stream); is = new BufferedInputStream(bis); int count; byte buf[] = new byte[4096]; while ((count = is.read(buf)) > -1) os.write(buf, 0, count); Please help Me How to Solve Proxy Problem.. I am waiting for ur Valuable Suggestions.. Thanks Srinivas - Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!
Proxy Problem to run the application......................
Hi Guys, I am using the Struts Frame Work and Servlets in my Application. And It's working fine... But the Problem is It's working only the Static IP Address Systems ...but Some of the systems connected through Proxy ,those on systems my application is not working properly . In my application one of the main future is "Download the File to a Specified Location"... It's working on the Static IP Addres System but the probles comes here is those systems connected through Proxy it's not working ... I don't know How to solve the Problem.. Here is the code i have wrote f = new File(fPath); FileManagerHelper fHelper=new FileManagerHelper(); String mimeType=fHelper.getMimeType(f.getName()); httpServletResponse.setContentLength( (int) f.length()); httpServletResponse.setContentType(mimeType); System.out.println("Step..2"); System.out.println("File Name from MtDownloadAction :"+f.getName()); httpServletResponse.setHeader("Content-Disposition","attachment;filename=" +f.getName()); os = httpServletResponse.getOutputStream(); stream = new FileInputStream(f); bis = new BufferedInputStream(stream); is = new BufferedInputStream(bis); int count; byte buf[] = new byte[4096]; while ((count = is.read(buf)) > -1) os.write(buf, 0, count); Please help Me How to Solve Proxy Problem.. I am waiting for ur Valuable Suggestions.. Thanks Srinivas - Do you Yahoo!? Yahoo! Mail is new and improved - Check it out!
Every time Refreshing the Screens
Hi Guys, I am using the Struts frame work in my application and now working perfectly. There is now problem in my application. But the problem is if we can access the application from the Static IP Address it's working perfectly, but the problem is, if we can access the application through the Proxy it's displaying the previous screen after refreshing the screen it's display the original values on the screen. That's why we refresh the screens(jsp's) every time before the displaying the data... Is there any solution to avoid the refresh work every time.. Please give me the solutions to solve the problem.. Thanks a lot. Srinivas - Do you Yahoo!? Meet the all-new My Yahoo! Try it today!
Any Problem faced after upgrading from Struts1.1 to Struts1.2.
Hi Guys , We have developed our application on Struts1.1, now we have to upgrade it to Struts1.2. But before that I have some questions in ming. 1) Will I face any problem after upgrading. 2) what is the difference between Struts1.1 and Struts1.2. I went through Releasenotes which says it has added some new features aswell bugfixes. But I would like to know in detail about the feautres. 3) Do I need to change any of my configuration after upgrading to Struts1.2. Please let me know as I need to evaluate for upgrading Strut1.1 to Struts1.2. Thanks in advance and thanks a lot, Srinivas __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Currency formate
Hi, When i provide a large double value in the text feild i am getting the value in exponential formate Ex: if i provide value : 121222 in the text field. and if the page render again due to the validation errors i am getting the value 1.2123E25. If any one have any idea about this please tell me now. Regards, Srinivasa Raju CH. Get your world in your inbox! Mail, widgets, documents, spreadsheets, organizer and much more with your Sifymail WIYI id! Log on to http://www.sify.com ** DISCLAIMER ** Information contained and transmitted by this E-MAIL is proprietary to Sify Limited and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If this is a forwarded message, the content of this E-MAIL may not have been sent with the authority of the Company. If you are not the intended recipient, an agent of the intended recipient or a person responsible for delivering the information to the named recipient, you are notified that any use, distribution, transmission, printing, copying or dissemination of this information in any way or in any manner is strictly prohibited. If you have received this communication in error, please delete this mail & notify us immediately at ad...@sifycorp.com - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: getRequestUrl returns different url in tomcat 5.0 and tomcat 5.5
Hi, I am developing a web application in struts1.1, jsp1.2 , servlets2.2. This application I need to deploy in iPlanet web server. Can any one suggest which version of iPlanet is suitable to develop this application.. I have iPlanet web server 6.1 Sp1. But when I deploy a sample application in this it won't recognizes the web application... Any suggestions how to deploy and run this application if this is suitable.. Please help in this regard. Thank you Srinivas Vakkalanka - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, February 15, 2006 6:38 PM Subject: getRequestUrl returns different url in tomcat 5.0 and tomcat 5.5 Hi people, I deployed my struts/tiles app in a tomcat 5.0 and it is working fine, but when I deployed it on a tomcat 5.5.9 it is having a bad comportament. I concluded that the error is in the method request.getRequestUrl() that returns the "abc.do" in tomcat 5.0 and returns "/WEB-INF/pages/mypage.jsp" in tomcat 5.5.9. Does anyone have some solution for my problem? I saw in Tomcat forumns that this problem is because, according the servlet specs. tomcat 5.5 is right and tomcat 5.0 is wrong, but they say there that this could make some struts-tiles apps (or other frameworks also) to work incorrectly. Thank´s, Roberto C. Lima Jr. SoftSite Mobile - 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 appliaction in iPlanet server
- Original Message - From: "Srinivas" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, February 15, 2006 7:19 PM Subject: Re: getRequestUrl returns different url in tomcat 5.0 and tomcat 5.5 Hi, I am developing a web application in struts1.1, jsp1.2 , servlets2.2. This application I need to deploy in iPlanet web server. Can any one suggest which version of iPlanet is suitable to develop this application.. I have iPlanet web server 6.1 Sp1. But when I deploy a sample application in this it won't recognizes the web application... Any suggestions how to deploy and run this application if this is suitable.. Please help in this regard. Thank you Srinivas Vakkalanka - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, February 15, 2006 6:38 PM Subject: getRequestUrl returns different url in tomcat 5.0 and tomcat 5.5 Hi people, I deployed my struts/tiles app in a tomcat 5.0 and it is working fine, but when I deployed it on a tomcat 5.5.9 it is having a bad comportament. I concluded that the error is in the method request.getRequestUrl() that returns the "abc.do" in tomcat 5.0 and returns "/WEB-INF/pages/mypage.jsp" in tomcat 5.5.9. Does anyone have some solution for my problem? I saw in Tomcat forumns that this problem is because, according the servlet specs. tomcat 5.5 is right and tomcat 5.0 is wrong, but they say there that this could make some struts-tiles apps (or other frameworks also) to work incorrectly. Thank´s, Roberto C. Lima Jr. SoftSite Mobile - 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]
Struts application deployment in iPlanet server
Hi All, I am developing a web application in struts1.1, jsp1.2 , servlets2.2. This application I need to deploy in iPlanet web server. Can any one suggest which version of iPlanet is suitable to develop this application.. I have iPlanet web server 6.1 Sp1. But when I deploy a sample application in this it won't recognizes the web application... Any suggestions how to deploy and run this application if this is suitable.. Please help in this regard. Thank you Srinivas Vakkalanka - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Application deployment in iPlanet Server
Hi All, I am developing a web application in struts. This application I need to deploy in iPlanet web server. I don;t know it is suitable to run this application or not... can any one suggest which version of iPlanet server is accepting struts application and how to deploy.. Thank you Srinivas Vakkalanka
Error while adding one field in thesample application
yTag". 306. } while(_tag7.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 308. if(_tagStartVal7 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 312. } catch(Throwable __throwable) { if(_tagStartVal7 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 327. if(_tagStartVal11 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 332. } while(_tag11.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 334. if(_tagStartVal11 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 338. } catch(Throwable __throwable) { if(_tagStartVal11 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 352. if(_tagStartVal12 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 357. } while(_tag12.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 359. if(_tagStartVal12 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 363. } catch(Throwable __throwable) { if(_tagStartVal12 == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_BUFFERED) { <-> *** Error: No field named "EVAL_BODY_BUFFERED" was found in type "javax/servlet/jsp/tagext/BodyTag". 370. } while(_tag1.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <-> *** Error: No method named "doAfterBody" was found in type "org/apache/struts/taglib/html/FormTag". 370. } while(_tag1.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 400. } while(_tag14.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No method named "doAfterBody" was found in type "org/apache/struts/taglib/logic/EqualTag". 400. } while(_tag14.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 419. } while(_tag15.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No method named "doAfterBody" was found in type "org/apache/struts/taglib/logic/EqualTag". 419. } while(_tag15.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 435. } while(_tag16.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No method named "doAfterBody" was found in type "org/apache/struts/taglib/bean/WriteTag". 435. } while(_tag16.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 451. } while(_tag17.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No method named "doAfterBody" was found in type "org/apache/struts/taglib/bean/WriteTag". 451. } while(_tag17.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". 458. } while(_tag13.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No method named "doAfterBody" was found in type "org/apache/struts/taglib/logic/PresentTag". 458. } while(_tag13.doAfterBody() == javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN); <--> *** Error: No field named "EVAL_BODY_AGAIN" was found in type "javax/servlet/jsp/tagext/BodyTag". Please help me Thank You Srinivas Vakkalanka
Error Messages Using tiles-defs.xml from Properties Files
Hi to all, How to Display Error Messages from ApplicationResource Bundle Using Tiles by tiles-defs.xml. I am able to display messages without using Tiles. Thanks Srinivas - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
How to Install Apache Web Server On Windows
Hi all, How to Install Apache Web Server and How to start it. Anybody Know kindly send to me Thanks Srinivas - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
Re: struts java script problem
Hi Sridhar, This is the code to populate the data from the database, specialityList is the collection, it defines the javascript array and to populate the data ... bye Srinivas R Sridhar <[EMAIL PROTECTED]> wrote: Hi, How to populate the java script variables with the dynamic data taken from the database in struts. I would like to use these data to fill some other fields based on list or chice selections in the form.Can we use normal style of javascript with the struts validation framework. Please help me. Thanks, Sridhar - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
Re: struts java script problem
Hi Sridhar, This is the code to populate the data from the database, specialityList is the collection, it defines the javascript array and to populate the data ... bye Srinivas R Sridhar <[EMAIL PROTECTED]> wrote: Hi, How to populate the java script variables with the dynamic data taken from the database in struts. I would like to use these data to fill some other fields based on list or chice selections in the form.Can we use normal style of javascript with the struts validation framework. Please help me. Thanks, Sridhar - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
Re: How can i avoid the use of & in a drop down box ?
Hi John, It is possible but i am not sure it is working or not before inset into the database we will use Single quate( ' ' ) to store the data, after u can access '&' symble from the database.. bye Srinivas John Antonakos <[EMAIL PROTECTED]> wrote: We have some drop down boxes in our jsp's which take data straight from the DB. Some of those data contain the character &. (eg John & me). We use a javascript array to store these data for internal use in the page. The struts format those data. When we use these data in a drop down (html select) appears as (John & me) which obviously does not look good. Is there a way to avoid this from happening ? Can we say to the struts NOT to format the data coming from the java objects ? John Antonakos Software Engineer Information Systems Department MedNet International Ltd www.mni.gr Tel. (+30) 210 6232085 Fax (+30) 210 6232026 Email: [EMAIL PROTECTED] - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
How to Find Index Value
Hi Friends, I am using tag. Here is the code i am writing What my problem is, how to get the index of select list in the tag ... I am able to getting the select lists but i am not getting the index of select lists. Please Help me .. Thanks Srinivas - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
RE: How to Find Index Value
Hi , I am able to get the index but i am asking How to find the particular select box name from tag. For Example Iterate tag contains 6 select list boxes and now i am find out the particular select box from the iterate tag. How to find out select Box . Thanks for replay to me Srinivas terry Highfield <[EMAIL PROTECTED]> wrote: Hi Srinivas, The way I solve this is to use the following code in the Action - but true I have only used indexed with buttons, the principle should be the same though. for (int i=0; i speciality = request.getParameter("specialityid["+i+"]"); } Hope this helps, Terry >From: Srinivas Rao >Reply-To: "Struts Users Mailing List" >To: Struts Users Mailing List >Subject: How to Find Index Value >Date: Thu, 10 Jun 2004 01:47:37 -0700 (PDT) > >Hi Friends, > >I am using tag. Here is the code i am writing > >What my problem is, how to get the index of select list in the > tag ... > > > > >id="mtSpeciality" > > >id="specialityList" /> > > > > >property="specialityid" labelProperty="displayname"/> > > > > > >I am able to getting the select lists but i am not getting the index of >select lists. > > >Please Help me .. >Thanks > >Srinivas > > > >- >Do you Yahoo!? >Friends. Fun. Try the all-new Yahoo! Messenger _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
RE: How to Find Index Value
Hi Nick, I am able to get the indexId Using IndexId Attribute in iterate tag but i am asking How to find the particular select box name from Iteration tag. For Example Iterate tag contains 6 select list boxes and now i am find out the particular select box name from the iterate tag. How to find out select Box Name. Here is the code i am writing Here I am able to display the values from Iterate tag but i want to name of the select box in the Iterate tag. How to find out the name .. Please help me Thanks Srinivas Nicholas L Mohler <[EMAIL PROTECTED]> wrote: Not having any information about what you're trying to do, its hard to give you an answer. I think that your answer will start with using the indexId attribute on the the iterate tag. Where the answer goes from there depends on what you're doing. Nick |-+----> | | Srinivas Rao | | | | | o.com> | | | | | | 06/10/2004 05:37 | | | AM | | | Please respond to| | | "Struts Users | | | Mailing List" | | | | |-+> >--| | | | To: Struts Users Mailing List | | cc: | | Subject: RE: How to Find Index Value | >--| Hi , I am able to get the index but i am asking How to find the particular select box name from tag. For Example Iterate tag contains 6 select list boxes and now i am find out the particular select box from the iterate tag. How to find out select Box ..... Thanks for replay to me Srinivas terry Highfield wrote: Hi Srinivas, The way I solve this is to use the following code in the Action - but true I have only used indexed with buttons, the principle should be the same though. for (int i=0; i speciality = request.getParameter("specialityid["+i+"]"); } Hope this helps, Terry >From: Srinivas Rao >Reply-To: "Struts Users Mailing List" >To: Struts Users Mailing List >Subject: How to Find Index Value >Date: Thu, 10 Jun 2004 01:47:37 -0700 (PDT) > >Hi Friends, > >I am using tag. Here is the code i am writing > >What my problem is, how to get the index of select list in the > tag ... > > > > >id="mtSpeciality" > > >id="specialityList" /> > > > > >property="specialityid" labelProperty="displayname"/> > > > > > >I am able to getting the select lists but i am not getting the index of >select lists. > > >Please Help me .. >Thanks > >Srinivas > > > >- >Do you Yahoo!? >Friends. Fun. Try the all-new Yahoo! Messenger _ Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger
problem Please Help me.....
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ...Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i close the child window. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value=window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener && !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish.
problem Please Help me.....
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ...Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i close the child window. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value=window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener && !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone.
Re: problem Please Help me.....
Hi Ajay, Thanks replay to me and is it possible to get the popup window value to parent window? This is the information ur asking ... 1.) popup window come up properly and i am not getting any error. 2.) I have wrote the append() funtion in child window but i am not getting the initial value from the parent window . 3.) I am not getting any error from parent window or child window. Actualy my problem is, i am getting the list of files and i display the files one by one,and I enter the relavent comment to the each files. This is the problem.I traid but i am not getting the values from popup window. Is it possible enter comment to each files,what is the way to solve this problem. Here is the code >>>>> Parent window Child Window... function append() { alert(window.opener.document.forms["supervisorDeskActionForm"].getElementById("stockBox").value); document.getElementById("comment").value=window.opener.document.forms["supervisorDeskActionForm"].getElementById("stockBox").value; } function pickinf() { if (window.opener && !window.opener.closed) { window.opener.document.forms["supervisorDeskActionForm"].stockBox.value = document.getElementById("comment").value; } window.close(); } Plz tell me the way to solve this problem... Thanks Srinivas Ajay Patil <[EMAIL PROTECTED]> wrote: Dear Srinivas, You have mentioned that you are facing a small problem, but you havent given any information on where the problem is coming. 1. Does the child window (popup) come up properly ? 2. Does it contain the initial value correctly ? i.e does you append function in child window work correctly ? 3. Do you get any error message in browser ? If yes, what is it ? 4. Does the browser crash ? If yes, did you try to debug ? If you can give above information, maybe I can try to help you. Anyways, looking at your code, TRY CHANGING THE FOLLOWING IN ALL JAVASCRIPT FUNCTION ORIGINAL --> window.opener.document.supervisorDeskActionForm.getElementById ("stockBox").value MODIFIED --> window.opener.document.forms["supervisorDeskActionForm"].stockBox.value Let me know if this is helping you, Ajay Date: Sun, 27 Jun 2004 21:25:31 -0700 (PDT) From: Srinivas Rao Subject: problem Please Help me. To: [EMAIL PROTECTED] Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ...Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i close the child window. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } property="audioList"> styleId="stockBox" value=""/> onclick="showList()"/> Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value=window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - - Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages!
Re: Re: problem Please Help me.....
Hi Ajay , I changed the value but i am not getting any message from popup window to parent window Is it possible to get the message from popup window to parent window? Thanks to replay to me.. Thanks Srinivas Ajay Patil <[EMAIL PROTECTED]> wrote: Dear Srinivas, Try changing the following... ORIGINAL --> window.opener.document.forms["supervisorDeskActionForm"].getElementById ("stockBox").value MODIFIED --> window.opener.document.forms["supervisorDeskActionForm"].stockBox.value Please notice that I have removed getElementById before stockBox. Please make the above change in your append function. Let me know if this works. Ajay > Hi Ajay, > Thanks replay to me and sorry for late B'case i am trying to > another way, but not getting Please tell me the solution, is it > possible to get the popup window value to parent window? > > This is the information ur asking ... > 1.) popup window come up properly and i am not getting any error. > 2.) I have wrote the append() funtion in child window but i am not > getting the initial value from the parent window . > 3.) I am not getting any error from parent window or child window. > > > Actualy my problem is, i am getting the list of files and i > display the files one by one,and I enter the relavent comment to > the each files. This is the problem.I traid but i am not getting > the values from popup window. > > Is it possible enter comment to each files,what is the way to > solve this problem. > > Here is the code >>>>> > > Parent window > > > > > Child Window... > > function append() > { > alert(window.opener.document.forms ["supervisorDeskActionForm"].getElementById("stockBox").value); > document.getElementById("comment").value=window.opener.document.forms ["supervisorDeskActionForm"].getElementById("stockBox").value; > } > function pickinf() { > if (window.opener && !window.opener.closed) > { > > window.opener.document.forms ["supervisorDeskActionForm"].stockBox.value = document.getElementById ("comment").value; > } > window.close(); > } > > > > > > > > > > > Plz tell me the way to solve this problem... > > Thanks > Srinivas > Ajay Patil wrote: > Dear Srinivas, > > You have mentioned that you are facing a small problem, but you > havent given any information on where the problem is coming. > > 1. Does the child window (popup) come up properly ? > > 2. Does it contain the initial value correctly ? > i.e does you append function in child window work correctly ? > > 3. Do you get any error message in browser ? > If yes, what is it ? > > 4. Does the browser crash ? If yes, did you try to debug ? > > If you can give above information, maybe I can try to help you. > > Anyways, looking at your code, > TRY CHANGING THE FOLLOWING IN ALL JAVASCRIPT FUNCTION > > ORIGINAL --> > window.opener.document.supervisorDeskActionForm.getElementById > ("stockBox").value > > MODIFIED --> > window.opener.document.forms ["supervisorDeskActionForm"].stockBox.value > > Let me know if this is helping you, > Ajay > > > > > > > > Date: Sun, 27 Jun 2004 21:25:31 -0700 (PDT) > From: Srinivas Rao > Subject: problem Please Help me. > To: [EMAIL PROTECTED] > > Hi guys, > > I am facing samll problem , it's a simple one but i don't know > what is > the wrong i am doing ...Please help me.. > My problem is ... > I have parent window and child window (ie popup window)..If i > entered > the value into text field to popup window then the value come to > the > parent window if i close the child window. the code is here . > > This is Parent window code. > > > function showList() { > alert("Call Show List"); > sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", > "width=750,height=510"); > } > > > > > > > property="audioList"> > styleId="stockBox" value=""/> > onclick="showList()"/> > > > Chile window Code.. > > > function append() > { > alert(window.opener.document.supervisorDeskActionForm.getElementById ("stockBox").value); > document.getElementById ("comment").value=window.opener.document.supervisorDeskActionForm.getEle mentById("stockBox").value; > } > function pickinf() { > if (window.opener & !window.opener.closed) > { > window.opener.document.supervisorDeskActionForm.stockBox.value > = > document.getElementById("comment").value; > } > window.close(); > } > > > > > > > > > > > > This is the code > > Please tell me what is the wrong i am doing now... > > Thanks to replay to me. > > Thanks > Srinivas. > > > > - > > > - > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Re: problem Please Help me.....
Hi Ajay, Thanks to the intrest and replay to me.It's working when one or single file displaying but if more than one file it's not working .I don't know why it is not working ... I thing its not identify the relavent text field. Please help me Thanks Srinivas Ajay Patil <[EMAIL PROTECTED]> wrote: Dear Srinivas, I am a little confused by your emails. Is the name of form correct ? i.e supervisorDeskActionForm or should it be SupervisorDeskActionForm ? Check your struts-config.xml. What you are trying is possible. Your code also looks correct. Perhaps there is some minor bug, which you have to find and fix. My understanding is : a) When child window comes, you are not getting initial value from parent window. b) When OK is clicked on child window, the value gets set in parent window. Is Step (b) working ? If Step (b) is working, then Step (a) should also work. If you are stuck, then do View Source in your parent window and examine the HTML source of parent window, and check if there is a property called stockBox present. I really havent worked with the nested tags. Have you included the tld for the nested tags at the top of your HTML page ? Ajay > 1.) popup window come up properly and i am not getting any error. > 2.) I have wrote the append() funtion in child window but i am not > getting the initial value from the parent window . > 3.) I am not getting any error from parent window or child window. > > > Actualy my problem is, i am getting the list of files and i > display the files one by one,and I enter the relavent comment to > the each files. This is the problem.I traid but i am not getting > the values from popup window. > > Is it possible enter comment to each files,what is the way to > solve this problem. > > Here is the code >>>>> > > Parent window > > > > > Child Window... > > function append() > { > alert(window.opener.document.forms ["supervisorDeskActionForm"].getElementById("stockBox").value); > document.getElementById("comment").value=window.opener.document.forms ["supervisorDeskActionForm"].getElementById("stockBox").value; > } > function pickinf() { > if (window.opener && !window.opener.closed) > { > > window.opener.document.forms ["supervisorDeskActionForm"].stockBox.value = document.getElementById ("comment").value; > } > window.close(); > } > > > > > > > > > > > Plz tell me the way to solve this problem... > > Thanks > Srinivas > Ajay Patil wrote: > Dear Srinivas, > > You have mentioned that you are facing a small problem, but you > havent given any information on where the problem is coming. > > 1. Does the child window (popup) come up properly ? > > 2. Does it contain the initial value correctly ? > i.e does you append function in child window work correctly ? > > 3. Do you get any error message in browser ? > If yes, what is it ? > > 4. Does the browser crash ? If yes, did you try to debug ? > > If you can give above information, maybe I can try to help you. > > Anyways, looking at your code, > TRY CHANGING THE FOLLOWING IN ALL JAVASCRIPT FUNCTION > > ORIGINAL --> > window.opener.document.supervisorDeskActionForm.getElementById > ("stockBox").value > > MODIFIED --> > window.opener.document.forms ["supervisorDeskActionForm"].stockBox.value > > Let me know if this is helping you, > Ajay > > > > > > > > Date: Sun, 27 Jun 2004 21:25:31 -0700 (PDT) > From: Srinivas Rao > Subject: problem Please Help me. > To: [EMAIL PROTECTED] > > Hi guys, > > I am facing samll problem , it's a simple one but i don't know > what is > the wrong i am doing ...Please help me.. > My problem is ... > I have parent window and child window (ie popup window)..If i > entered > the value into text field to popup window then the value come to > the > parent window if i close the child window. the code is here . > > This is Parent window code. > > > function showList() { > alert("Call Show List"); > sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", > "width=750,height=510"); > } > > > > > > > property="audioList"> > styleId="stockBox" value=""/> > onclick="showList()"/> > > > Chile window Code.. > > > function append() > { > alert(window.opener.document.supervisorDeskActionForm.getElementById ("stockBox").value); > document.getElementById ("
Getting the values from Popup window to Parent window if Multiple text fields in parent window
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ... Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i closed the child window. Here it is working when single file but if it is multiple files,it's not working .I thing in child window cannot identify the relevant text field. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value= window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code .... Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages!
Getting the values from Popup window to Parent window if Multiple text fields in parent window
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ... Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i closed the child window. Here it is working when single file but if it is multiple files,it's not working .I thing in child window cannot identify the relevant text field. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value= window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Getting the values from Popup window to Parent window if Multiple text fields in parent window
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ... Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i closed the child window. Here it is working when single file but if it is multiple files,it's not working .I thing in child window cannot identify the relevant text field. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value= window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code .... Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Getting the values from Popup window to Parent window if Multiple text fields in parent window
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ... Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i closed the child window. Here it is working when single file but if it is multiple files,it's not working .I thing in child window cannot identify the relevant text field. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value= window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code .... Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!
Getting popup window value to parent window
Hi guys, I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing ... Please help me.. My problem is ... I have parent window and child window (ie popup window)..If i entered the value into text field to popup window then the value come to the parent window if i closed the child window. Here it is working if it is single file to display and popup single file but if it is multiple files to display ,it's not working .I thing in child window cannot identify the relevant text field. the code is here . This is Parent window code. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Chile window Code.. function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value= window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } This is the code .... Please tell me what is the wrong i am doing now... Thanks to replay to me. Thanks Srinivas. - Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard.
Re: Getting popup window value to parent window
Hi Sasidhar, Thanks for replay to me.. I am using Struts,jsp and javascript. My problem is I got the message from popup window to parent window if it is single file.But if it is multple files i am not getting the message . Here is my code . parent window code .. function showList() { alert("Call Show List"); sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510"); } Here Nested:iterate will contains number of files to display.and same nested:text display more times And here is the popup window code ... function append() { alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); document.getElementById("comment").value= window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; } function pickinf() { if (window.opener & !window.opener.closed) { window.opener.document.supervisorDeskActionForm.stockBox.value = document.getElementById("comment").value; } window.close(); } If nested:iterate contains single file, it's working is good but it contains multple files it's not working... Please help me Thanks Srinivas SASIDHAR BUDAMPATI <[EMAIL PROTECTED]> wrote: Hi srinivas, Here is code i think is the solution. I worked with it successfully. Try it. if (window.opener & !window.opener.closed) { window.opener.document.all.state.value = eval(document.ResultsBody.stateField.value); window.opener.focus(); self.close(); } I think this will do. all the best. --- Srinivas Rao wrote: > Hi guys, > > I am facing samll problem , it's a simple one but i > don't know what is the wrong i am doing ... > Please help me.. > My problem is ... > I have parent window and child window (ie popup > window)..If i entered > the value into text field to popup window then the > value come to the parent window if i closed the > child window. Here it is working if it is single > file to display and popup single file but if it is > multiple files to display ,it's not working .I thing > in child window cannot identify the relevant text > field. > the code is here . > This is Parent window code. > > function showList() { > alert("Call Show List"); > sList = > window.open("/MTProd/ps/Supervisorcomment.jsp", > "list", "width=750,height=510"); > } > > > Chile window Code.. > > function append() > { > alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value); > document.getElementById("comment").value= > window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value; > } > function pickinf() { > if (window.opener & !window.opener.closed) > { > window.opener.document.supervisorDeskActionForm.stockBox.value > > = document.getElementById("comment").value; > } > window.close(); > } > > This is the code > Please tell me what is the wrong i am doing now... > Thanks to replay to me. > Thanks > Srinivas. > > > > - > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
RE: Re: problem Please Help me.....
Hi Sunil, Thank you for your interest and My problem was solved.Some of the friends in the list have sent the solution to me... My problem is ... I am display the number of files ie.suppose 100 files ...100 files to poplate the popup windows.Here i am using the nested:text So the problem is the popup window was doesn't Recognizing the relevent text field to the parent window. The solution is, to pass the parameter from parent window to popup window and put the value to revelent text field. Once again thank you for your interest ... Thanks Srinivas. Sunil Sahu <[EMAIL PROTECTED]> wrote: Hi srinivas, What is the exact problem u r facing. -Original Message- From: Ajay Patil [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 3:14 PM To: Srinivas Rao; [EMAIL PROTECTED] Subject: Re: Re: problem Please Help me..... Dear Srinivas You are right. Your code in child window cannot identify the relevant text field. I havent tried the case when there are multiple text fields, each of which could be selected. I cant think of a way to get it working. Maybe some Javascript expert might know. Ajay > Hi Ajay, > Thanks to the intrest and replay to me.It's working when one or > single file displaying but if more than one file it's not working > .I don't know why it is not working ... > I thing its not identify the relavent text field..... > Please help me > > Thanks > Srinivas > - 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!? Vote for the stars of Yahoo!'s next ad campaign!
Session mixup
We are having a strange session mixup in our application. Environment Tomcat 5.0 Struts 1.2.7 Tiles Upon successful user login, we store user bean class with user info such as name, department, phone on session. This profile is used for keeping track of who is entering data in the application. Users started complaining about seeing some other person as the reporter while they were entering data. Upon further research, we are able to easily reproduce this error with 6 of us submitting a webpage in our application simultaneously. When we all submit our form together, we are seeing in the logs all kind of mixups. For example: User A session will see User B request object UserCB session will see User D request object Then after successful submit, next forwarded action will display User B name as reporter on User A, User C and User D browsers However, we have a tile template that has a "Welcome John Doe" greeting, which uses the session user bean that displays logged in user name correctly all the time. We are not sure if this is a bug in struts or have some implementation problem. We were having this problem when we were in Struts 1.1. We still have the problem even after upgrading to Struts 1.2.7. Seems like, our implementation or use of struts might be the root cause but not able to pinpoint. We don't have any static method calls or static objects we reference in action classes. Any ideas or suggestions what could be the problem? TIA, Srinivas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session mixup
Most of our action classes are extended from a BaseAction class which initializes protected variables such as session, user bean, ActionForm, request and response objects inside an init method which is called by decendents in the execute method. Sounds like instance variables inside an action class is not a good thing. Is that the root cause? If so, can you explain how that could cause a problem. >>> [EMAIL PROTECTED] 07/22/05 3:55 PM >>> Srinivas Gunturu wrote: >We don't have any static method calls or static objects we reference in action >classes. > > Do you have any _instance_ variables in any servlets, actions, filters, etc.? I will almost guarantee you that you are accessing a non-synchronized object or instance data. Dave - 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: Session mixup
That fixed our problem that has been nagging us for little over a week. If only, I had posted this earlier to the group :-) Thanks a bunch >>> [EMAIL PROTECTED] 07/22/05 4:17 PM >>> Srinivas Gunturu wrote: >Most of our action classes are extended from a BaseAction class which >initializes protected variables such as session, user bean, ActionForm, >request and response objects inside an init method which is called by >decendents in the execute method. > >Sounds like instance variables inside an action class is not a good thing. >Is that the root cause? If so, can you explain how that could cause a problem. > > To further elaborate: anything you do inside an Action's "execute" method (or whatever it's called) or methods called by it must either a) use variables provided as parameters, b) synchronize access to shared variables, or c) expect to see the symptoms you're seeing. So keeping, say, a session as an instance variable doesn't make any sense, because it will be different for each request: one Action class services ALL requests to that action. Now, you could do something like (highly pseudo-codey) public ActionForward execute(mapping, form, request, response) { session = request.getSession(); userBean = (UserBeanClass) session.getAttribute("userBeanKey"); moreInterestingExecute(mapping, form, request, response, session, userBean); } but if you do HttpSession _session; UserBeanClass _userBean; public ActionForward execute(mapping, form, request, response) { _session = request.getSession(); _userBean = (UserBeanClass) _session.getAttribute("userBeanKey"); moreInterestingButBrokenExecute(mapping, form, request, response); } public ActionForward moreInterestingButBrokenExecute(mapping, form, request, response) { brokenValue = _session.getAttribute("anyKey"); } you will see the behavior you're seeing: if the Action serves another request it will set the _session variable to the new request's session, which will almost always be the Wrong Thing To Do. Dave - 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]
Does Struts support Servlet 3
Hi, I am planning to use Tomcat 7 to utilize Servlet 3 especially for asynchronous features. Does anybody have experience with this? Thanks, Srinivas Gutta
RE: Does Struts support Servlet 3
Hi, I would like to add in the context of using Struts and Servlet 3. Thanks, Srinivas Gutta -Original Message- From: Srinivas Gutta [mailto:sriniv...@keyusa.com] Sent: Wednesday, May 02, 2012 6:43 PM To: user@struts.apache.org Subject: Does Struts support Servlet 3 Hi, I am planning to use Tomcat 7 to utilize Servlet 3 especially for asynchronous features. Does anybody have experience with this? Thanks, Srinivas Gutta - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: upgrade from struts 2.3.37 to 2.5.30
What java se and EE (java or jakart) version are you using? On Wed, Mar 22, 2023, 6:27 AM Rohan Patil7 wrote: > Hi, > > We are following the " > https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration"; > document to upgrade struts 2.3.37 to 2.5.30. > As of now, we are facing an error as below, but unable to figure out what > causing it. > > ERROR: > > Error 500: javax.servlet.ServletException: Filter [struts2]: > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter was > found, but is missing another required class. > > > Any lead will be helpful. > > > Thanks & Regards > Rohan Patil > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: upgrade from struts 2.3.37 to 2.5.30
Hi Rohan, I am assuming your target server websphere. Websphere will come servlet jars. I suspect there are some conflicting version of jars in classpath. Make sure no servlet or other jee jars are packaged into the war. What is the version of Websphere Application Server test enbironment? On Wed, Mar 22, 2023, 12:05 PM Rohan Patil7 wrote: > Currently, we are using IBM Rational Application developer and using > struts 2.3.37 but we need to migrate to 2.5.30, for that we have done the > following changes > > 1) updated the struts-dependent jar > 2) made changes in web.xml and struts.xml > 3) made changes in some packages as per the migration document. > > We are not able to debug due to some reason and generate logs also, so for > testing purposes, we create the installer and install it, and when we try > to access the application we get this error. > > When we searched for this error on google we got some info(attached below) > but were unable to understand where it may have gone wrong. > > Error: > > Error 500: javax.servlet.ServletException: Filter > [struts2]:org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter > was found, but is missing another required class. > > Info: > > The error message you provided indicates that there is an issue with the > Struts filter in your application. The filter is looking for a required > class that is missing. > > > Thanks & Regards > Rohan Patil > > > -Original Message- > From: Srinivas Arava > Sent: 22 March 2023 19:34 > To: Struts Users Mailing List > Subject: [EXTERNAL] Re: upgrade from struts 2.3.37 to 2.5.30 > > What java se and EE (java or jakart) version are you using? > > On Wed, Mar 22, 2023, 6:27 AM Rohan Patil7 > wrote: > > > Hi, > > > > We are following the " > > > https://cwiki.apache.org/confluence/display/WW/Struts+2.3+to+2.5+migration > " > > document to upgrade struts 2.3.37 to 2.5.30. > > As of now, we are facing an error as below, but unable to figure out > > what causing it. > > > > ERROR: > > > > Error 500: javax.servlet.ServletException: Filter [struts2]: > > org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter was > > found, but is missing another required class. > > > > > > Any lead will be helpful. > > > > > > Thanks & Regards > > Rohan Patil > > > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >
Re: Child window opening problem
//Is there a way thru which i can populate my JSP from Action class use mapping.findForward("success"); Other Option: Use separate JSP for displaying other fields. On 1/26/06, Deepa Khetan <[EMAIL PROTECTED]> wrote: > > Hi, > > Is there a way thru which i can populate my JSP from Action class. I have > a > requirement, wherein, when user enters a particular value, a database call > has to made and other fileds should get populated . What i was doing is, > submit another form when user enters this particular value, call an Action > class, forward the data to a JSP from Action, which will open as a child > window for some seconds, populate the parent window thru this child > window, > and close the child window. But this momentary opening of the child window > is looking quite funny. Is there a way, i can accomplish this? > Or can i somehow hide this child window and still carry on with what i am > doing? > > Deepa > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Dispatch Action Error
//java.lang.NoSuchMethodException May be caused by Spelling mistakes of the method names!! On 1/26/06, RathinaGanesh MeenakshiSundaram <[EMAIL PROTECTED]> wrote: > > Hi All, > > Iam getting the following DispatchAction error. > Everything works fine and but, once in a while, I see the following error > message in the Server Log..! > Even when I get this error in the log, I don't see any problem with my > application/usage. It just works fine..But, still throws the following > error > message to the Server Log. > > Does anyone have any idea regarding this..? > > Thanks, > Ganesh. > > 2006-01-24 11:02:46,787 ERROR [org.apache.struts.actions.DispatchAction] > Action[/notes] does not contain method named > java.lang.NoSuchMethodException: com.vrs.crm.actions.NotesAction.( > org.apache.struts.action.ActionMapping, > org.apache.struts.action.ActionForm, > javax.servlet.http.HttpServletRequest, > javax.servlet.http.HttpServletResponse) >at java.lang.Class.getMethod(Class.java:986) >at org.apache.struts.actions.DispatchAction.getMethod( > DispatchAction.java:334) >at org.apache.struts.actions.DispatchAction.dispatchMethod( > DispatchAction.java:266) >at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java > :216) >at org.apache.struts.action.RequestProcessor.processActionPerform( > RequestProcessor.java:484) >at org.apache.struts.action.RequestProcessor.process( > RequestProcessor.java:274) >at org.apache.struts.action.ActionServlet.process(ActionServlet.java > :1482) >at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java > :525) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) >at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:237) >at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:157) >at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( > ReplyHeaderFilter.java:75) >at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( > ApplicationFilterChain.java:186) >at org.apache.catalina.core.ApplicationFilterChain.doFilter( > ApplicationFilterChain.java:157) > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
user@struts.apache.org
Hi there, Iam here with a request.I need to validate a
Re:
Thanks for your reply.Here is the code iam using in validator.xml Where is the agree is the boolean property in my action form. On 3/27/06, Dave Newton <[EMAIL PROTECTED]> wrote: > > Srinivas Jadcharla wrote: > > Iam here with a request.I need to validate a using > > Struts Validator Framework.I want to make sure that the user checks the > > Check Box.if it is not checked validation should fail.Can some one > suggest > > me which validator i need to use?? I tried *required* > > Validator but its not working. > > > > That's what I use and it's working fine. > > Dave > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Why did Struts development stagnate?
ld need to be refactored. > > > > > At the end of the day though this does seem academic, - since we now > have two > > offering for whatever camp you fall into (component orientated or action > > orientated) and from my point of view the really good thing about the > > WebWork merger is not only the great software were getting - but also > the > > talented new blood thats coming into the project. > > Well, if you accept that the Webwork people just ran the better project, > you guys failed to keep Struts 1.x going at least in terms of innovation > and development, then by that logic, the current Struts PMC should just > step down probably and let the Webwork people run the show. > > If the same PMC that presided over technical stagnation before is going > to remain the managers of the project, then I think it isn't an academic > question. You have to examine the mistakes you made before. > > > > > > So I've given my answer to the question - now can we let this list get > back > > to helping and answering user questions - which is its main purpose? > > Niall, I don't know what you're talking about here. I see no sign that > the list stopped helping people and answering their questions due to the > presence of this thread. > > You were giving some signs that you now were willing to talk about this. > You've had a certain say about this now. You've stepped forward and said > the topic is not taboo. Well, now you're saying, let's not talk about it > any more, i.e. I broke the taboo temporarily to get this guy off my > back, but nudge nudge, wink, wink, the topic really is taboo. > > Okay, maybe that wasn't your intent, but if not, and the topic isn't > taboo, how do you know other people don't have opinions to express now? > > Again, the idea that this is an either-or proposition and the list has > to choose between talking about this and helping people by answering > technical questions is actually absurd, isn't it? > > Jonathan Revusky > -- > lead developer, FreeMarker project, http://freemarker.org/ > > > > > Niall > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Validation help required
Use Validate method instead Validator framework On 4/24/06, Dinesh Mehra <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using struts 1.1 > > I have two textboxes (username, password). > My requirements is > - I need to display a standard error message when both the fields are > empty > or when either of the field is empty. > - I need to display a different error message when both the the fields are > filled but username-pwd do not match. > > In validation.xml I declared two field properties each for username and > password with the same msg key but the problem is that when the form is > submitted with both the fields empty then the same error msg appears > twice. > How to rectify this situation. > > Any kind of help would be highly appreciated. > > Thanks. > Dinesh > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
how to display a message for every request
Hi, I am new to struts. I have a request that, for every request I want to display a message or log a message using struts frame work. How this could achieve. Please help in this regard Thanks and Regards Srinivas Vakkalanka
Problem in saving file content in DB using BLOB
Hi, I am using BLOB object through LOB package to save file content in oracle 9.2.0.1 I have created the blob object. But when I am writing data in to the blob it is giving the following error. Kindly help in this regard It gives the following Error: java.sql.SQLException: Must be logged on to server at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1160) at oracle.jdbc.ttc7.TTC7Protocol.assertLoggedIn(TTC7Protocol.java:2196) at oracle.jdbc.ttc7.TTC7Protocol.getLobChunkSize(TTC7Protocol.java:2972) at oracle.sql.LobDBAccessImpl.getChunkSize(LobDBAccessImpl.java:322) at oracle.sql.BLOB.getChunkSize(BLOB.java:478) at oracle.sql.BLOB.getBufferSize(BLOB.java:515) at oracle.sql.BLOB.getBinaryOutputStream(BLOB.java:413) at com.vertex.png.myidea.model.SubmitIdea.InsertIdea(SubmitIdea.java:250) at com.vertex.png.myidea.model.submitidea.SubmitMyIdeaAction.execute(SubmitMyId eaAction.java:59) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:419) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:807) at javax.servlet.http.HttpServlet.service(HttpServlet.java:908) at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardW rapperValve.java:771) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:322) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209 ) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.ja va:161) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578) Application CODE: Writing File content in blob BLOB byteFile1Content = dmlObj.blbCreation();//temporary lob creation in Dml class OutputStreamos1 = byteFile1Content.getBinaryOutputStream(); os1.write(byteFile1Content.getBytes()); os1.flush(); } Getting data Source from struts config ServletContext context = request.getSession().getServletContext(); ModuleConfig moduleConfig = ModuleUtils.getInstance().getModuleConfig(request,context); dataSource = (DataSource)context.getAttribute("org.apache.struts.action.DATA_SOURCE"+modu leConfig.getPrefix()); Struts-config Please help Thank You Srinivas Vakkalanka
logout/Back Button problem
Hi There, I have a problem logging out my Struts Based Web Application.Here iam giving the code in Logout Action.. request.getSession().removeAttribute("ssn"); request.getSession().removeAttribute("pin"); request.getSession().removeAttribute("parentrole"); request.getSession().invalidate(); response.sendRedirect("/login.jsp"); Once it invalidates the Session iam redirecting the user to login page where he/she needs to sign in again.But problem is when user clicks back button in the browser its taking me to secured pages which i dont want.Iam using the following code in my secured pages but no use. <% response.setHeader("pragma", "no-cache"); response.setHeader("Cache-Control", "no-cache"); response.setDateHeader("Expires", -1); %> Iam not understanding where exactly iam doing the mistake.Some one please help me to sort it out. Thanks In Advance Srinivas 732-648-9421(Cell)
Logout Problem
Hi There, I have a problem logging out my Struts Based Web Application.Here iam giving the code in Logout Action.. request.getSession().removeAttribute("ssn"); request.getSession().removeAttribute("pin"); request.getSession().removeAttribute("parentrole"); request.getSession().invalidate(); response.sendRedirect("/login.jsp"); Once it invalidates the Session iam redirecting the user to login page where he/she needs to sign in again.But problem is when user clicks back button in the browser its taking me to secured pages which i dont want.Iam using the following code in my secured pages but no use. <% response.setHeader( "pragma", "no-cache"); response.setHeader( "Cache-Control", "no-cache"); response.setDateHeader( "Expires", -1); %> Iam not understanding where exactly iam doing the mistake.Some one please help me to sort it out. -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Logout Problem
Thanks for the reply . On 11/15/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Sounds like an opportunity for a ValidSession filter: > > http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html > > -Dennis > > > > > Srinivas Jadcharla <[EMAIL PROTECTED]> > 11/15/2005 10:00 AM > Please respond to > "Struts Users Mailing List" > > > To > user@struts.apache.org > cc > > Subject > Logout Problem > > > > > > > Hi There, > I have a problem logging out my Struts Based Web Application.Here iam > giving the code in Logout Action.. > request.getSession().removeAttribute("ssn"); > request.getSession().removeAttribute("pin"); > request.getSession().removeAttribute("parentrole"); > request.getSession().invalidate(); > response.sendRedirect("/login.jsp"); > Once it invalidates the Session iam redirecting the user to login page > where > he/she needs to sign in again.But problem is when user clicks back button > in > the browser its taking me to secured pages which i dont want.Iam using the > following code in my secured pages but no use. > > <% > > response.setHeader( > "pragma", "no-cache"); > > response.setHeader( > "Cache-Control", "no-cache"); > > response.setDateHeader( > "Expires", -1); > > %> > Iam not understanding where exactly iam doing the mistake.Some one please > help me to sort it out. > -- > Thanks & Regards > > Srinivas > 732-648-9421(Cell) > > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Logout Problem
Working fine in Netscape Browser.We are getting problem with IE. On 11/15/05, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > Sounds like an opportunity for a ValidSession filter: > > http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.html > > -Dennis > > > > > Srinivas Jadcharla <[EMAIL PROTECTED]> > 11/15/2005 10:00 AM > Please respond to > "Struts Users Mailing List" > > > To > user@struts.apache.org > cc > > Subject > Logout Problem > > > > > > > Hi There, > I have a problem logging out my Struts Based Web Application.Here iam > giving the code in Logout Action.. > request.getSession().removeAttribute("ssn"); > request.getSession().removeAttribute("pin"); > request.getSession().removeAttribute("parentrole"); > request.getSession().invalidate(); > response.sendRedirect("/login.jsp"); > Once it invalidates the Session iam redirecting the user to login page > where > he/she needs to sign in again.But problem is when user clicks back button > in > the browser its taking me to secured pages which i dont want.Iam using the > following code in my secured pages but no use. > > <% > > response.setHeader( > "pragma", "no-cache"); > > response.setHeader( > "Cache-Control", "no-cache"); > > response.setDateHeader( > "Expires", -1); > > %> > Iam not understanding where exactly iam doing the mistake.Some one please > help me to sort it out. > -- > Thanks & Regards > > Srinivas > 732-648-9421(Cell) > > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: logout/Back Button problem
Thanks michael On 11/15/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Firefox? Add "no-store": > > response.setHeader("Cache-Control", "no-cache, no-store"); > > On the other hand, SSL + "no-cache" should work for Firefox as well, > hmm... > > On 11/15/05, Srinivas Jadcharla <[EMAIL PROTECTED]> wrote: > > Hi There, > > > > I have a problem logging out my Struts Based Web Application.Here iam > giving > > the code in Logout Action.. > > > > request.getSession().removeAttribute("ssn"); > > request.getSession().removeAttribute("pin"); > > request.getSession().removeAttribute("parentrole"); > > request.getSession().invalidate(); > > response.sendRedirect("/login.jsp"); > > > > Once it invalidates the Session iam redirecting the user to login page > where > > he/she needs to sign in again.But problem is when user clicks back > button in > > the browser its taking me to secured pages which i dont want.Iam using > the > > following code in my secured pages but no use. > > > > <% > > > > response.setHeader("pragma", "no-cache"); > > > > response.setHeader("Cache-Control", "no-cache"); > > > > response.setDateHeader("Expires", -1); > > > > %> > > > > Iam not understanding where exactly iam doing the mistake.Some one > please > > help me to sort it out. > > Thanks In Advance > > > > Srinivas > > 732-648-9421(Cell) > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: struts & javascript question
Use Validate method in the Action Form or write your own Validator. On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > In my JSP > have a checkbox. When it is checked by user have to make sure 2 of the > entries are enteried. > > i.e > chkBox1 -- checkbox --- checked > txtfield1 --- Should have entered value. > txtfield2 Should have entered value. > > Also, have a 2 radio buttons. When selected one of them by the use would > like to display a message. > > > Do not want to use client side java script. what is the best way to do > this? > > thanks. > > _ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: struts & javascript question
Look for examples in the net or you can use validate method in the form it is easier. On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > >write your own Validator > > do you mean in Validator.xml right? > > can I right a javascript in there that does this? > where can I find an example that does such stuff? > > Thanks. > > > >From: Srinivas Jadcharla <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: Struts Users Mailing List > >Subject: Re: struts & javascript question > >Date: Fri, 18 Nov 2005 10:57:36 -0500 > > > >Use Validate method in the Action Form or write your own Validator. > > > >On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > > > > > In my JSP > > > have a checkbox. When it is checked by user have to make sure 2 of the > > > entries are enteried. > > > > > > i.e > > > chkBox1 -- checkbox --- checked > > > txtfield1 --- Should have entered value. > > > txtfield2 Should have entered value. > > > > > > Also, have a 2 radio buttons. When selected one of them by the use > would > > > like to display a message. > > > > > > > > > Do not want to use client side java script. what is the best way to do > > > this? > > > > > > thanks. > > > > > > _ > > > Express yourself instantly with MSN Messenger! Download today - it's > >FREE! > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > >-- > >Thanks & Regards > > > >Srinivas > >732-648-9421(Cell) > > _ > FREE pop-up blocking with the new MSN Toolbar – get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: struts & javascript question
Iam sorry i have no idea abt DynaAction forms. On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > using dynaactionforms. would prefer using the the validator xml for this. > thanks for your response. > > > >From: Srinivas Jadcharla <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: Struts Users Mailing List > >Subject: Re: struts & javascript question > >Date: Fri, 18 Nov 2005 11:05:29 -0500 > > > >Look for examples in the net or you can use validate method in the form > it > >is easier. > > > >On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > > > > > >write your own Validator > > > > > > do you mean in Validator.xml right? > > > > > > can I right a javascript in there that does this? > > > where can I find an example that does such stuff? > > > > > > Thanks. > > > > > > > > > >From: Srinivas Jadcharla <[EMAIL PROTECTED]> > > > >Reply-To: "Struts Users Mailing List" > > > >To: Struts Users Mailing List > > > >Subject: Re: struts & javascript question > > > >Date: Fri, 18 Nov 2005 10:57:36 -0500 > > > > > > > >Use Validate method in the Action Form or write your own Validator. > > > > > > > >On 11/18/05, fea jabi <[EMAIL PROTECTED]> wrote: > > > > > > > > > > In my JSP > > > > > have a checkbox. When it is checked by user have to make sure 2 of > >the > > > > > entries are enteried. > > > > > > > > > > i.e > > > > > chkBox1 -- checkbox --- checked > > > > > txtfield1 --- Should have entered value. > > > > > txtfield2 Should have entered value. > > > > > > > > > > Also, have a 2 radio buttons. When selected one of them by the use > > > would > > > > > like to display a message. > > > > > > > > > > > > > > > Do not want to use client side java script. what is the best way > to > >do > > > > > this? > > > > > > > > > > thanks. > > > > > > > > > > _ > > > > > Express yourself instantly with MSN Messenger! Download today - > it's > > > >FREE! > > > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > > > > > > > > > > > >- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > >-- > > > >Thanks & Regards > > > > > > > >Srinivas > > > >732-648-9421(Cell) > > > > > > _ > > > FREE pop-up blocking with the new MSN Toolbar â€" get it now! > > > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > >-- > >Thanks & Regards > > > >Srinivas > >732-648-9421(Cell) > > _ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
user@struts.apache.org
Hi , I have code like this. no payments have been applied to your account. Some payments have been applied to your account. The Aboove code was working as long as lastPaymentAmount was double.But as per the requiremnt i had to change it to String.As per the new requirement i have to look for whether lastPaymentAmount is null or not.Which Struts Libs i need to use in this situation.. Thanks In Advance Srinivas
Re:
Thanks Shawn.Thanks for your response. On 11/22/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > Use to test if it is null or an empty String. > Use to test if it is not a null String and not an empty > String > > > Shawn > -Original Message- > From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 22, 2005 3:55 PM > To: Struts Users Mailing List > Subject: > Hi , > I have code like this. > > property="lastPaymentAmount" > value= "0.00"> > > no payments have been applied to your account. > > > > property="lastPaymentAmount" > value="0.00"> > > Some payments have been applied to your account. > > > The Aboove code was working as long as lastPaymentAmount was double.But as > per the requiremnt i had to change it to String.As per the new requirement > i > have to look for whether lastPaymentAmount is null or not.Which Struts > Libs > i need to use in this situation.. > > Thanks In Advance > Srinivas > > > > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > > > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Validate() and Validator Framework Together
Hi there, As per the requirement i have to use Both types of validations 1.validations using Validate Method 2.Validations using Validations framework For the fields in a Single Form.Is it possible ???Some one please advice me. -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: please reaply as early as possible - session tracking
You can use HttpSession Object..In that you have setAttribute("") and getAttribute("") mthods. On 11/29/05, Sony Thomas <[EMAIL PROTECTED]> wrote: > > Hi Stephen, > > What I want to know is suppose I have to store some value to session. Is > there is something called Session object in struts. how can I set the > value from jsp and how can I retrieve that value in action from session > object. My problem is that i have to set the value to the session and I > have to keep that value for quiet a long time. I will be using that > value in different actions. so how can i set the value to the session > which should be persistent for long time > > thanks Stephen for the reply > > sony > > >> > >> > > > > > > > > > >___ > >How much free photo storage do you get? Store your holiday > >snaps for FREE with Yahoo! Photos http://uk.photos.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] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Validate() and Validator Framework Together
Thanks Niall..Thank you very much. On 11/29/05, Niall Pemberton <[EMAIL PROTECTED]> wrote: > > Sure, just extends one of the ValidatorForm flavours and do something like > the following... > > public class MyForm extends ValidatorForm { >public ActionErrors validate(ActionMapping mapping, > HttpServletRequest request) { > >ActionErrors errors = super.validate(mapping, request); > >if (custom validation check here) { >errors.add("foo", new ActionMessage("error.key")); >} > >return errors; > >} > } > > Niall > > - Original Message - > From: "Srinivas Jadcharla" <[EMAIL PROTECTED]> > Sent: Tuesday, November 29, 2005 3:13 PM > > > > Hi there, > > > > As per the requirement i have to use Both types of validations > > > > 1.validations using Validate Method > > 2.Validations using Validations framework > > > > For the fields in a Single Form.Is it possible ???Some one please advice > me. > > > > -- > > Thanks & Regards > > > > Srinivas > > 732-648-9421(Cell) > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Validator and Javascript
I think Validator Framework internally uses Javascript..You can customise according to you Requirement..Some one correct me if iam wrong.. On 12/8/05, Tony Santinello <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using Struts 1.2.7 and I'm using commons-validator > to validate my forms. Can someone tell me why > validator includes all the javascript functions when > rendering the jsp page? > > Even including javascript functions that I'm not using > in validation.xml, such as creditcard validation or > integer validation? > > Is there anyway to include just the javascript my jsp > needs and not all the extra javascript? > > Thanks > > __ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Addressformat For Different Countries
//I would set up three different JSP Pages .. But what happens if there are about 100 countries?? we need 100 JSPs right..Instead he can go for a single JSP with logic tags..but if there are 100 countries...his JSP will be very very long ..option left is to go for tiles... On 12/8/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > I would set up three different JSP Pages and route to them based on them > answering which country they are from. I suggest you use the struts > method > to setLocale to the country and then make a version of the resources file > for that locale. > > In our application we have two sets of properties files. > ApplicationResources_es.properties for Spanish > ApplicationResources.properties for English > > If you do a setLocale in struts it will read the key from the appropriate > file. > > so in the English properties file the key is: > title.welcome=Hello. How are you? > > and in the Spanish properties file the key is: > title.welcome=Hola. ?Como esta usted? > > Then in your JSP page all you need to do is do key="title.welcome"/> > > > There are other approaches but this will give you the best results. > > Let me know if you have any more questions on the above. > Shawn > > > -Original Message- > From: Shiva Narayana [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 06, 2005 4:10 AM > To: Struts Users Mailing List > Subject: Addressformat For Different Countries > > Hi All, > > I have to implement address format depending on country in JSP. Like > > For Australia Line1, line2 ,Street,Code > For UK Code,Street,Line1,COuntry > For IndiaStreet,City,line1,country > > Likewise i have do display the label and text box based on the country. > Please help me how to do this in struts. > > Thanks in advance. > > -- > Regards > Shiva > > > > This email may contain confidential material. > If you were not an intended recipient, > Please notify the sender and delete all copies. > We may monitor email to and from our network. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Addressformat For Different Countries
You are correct garner , with 3 pages its easy to maintain and understand. On 12/8/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > >> single JSP with logic tags > If you do this you will get one huge JSP page potentially if you have a > hundred countries. I assume with a single huge JSP not only would it take > longer to serve the page because of the logic tags but the code itself > would > be harder to maintain. Also there is a limit to the length of a JSP page > so > I'm for breaking it up. You could do it this way also for 3 countries. > > Shawn > > > -Original Message- > From: Garner, Shawn > Sent: Thursday, December 08, 2005 11:47 AM > To: 'Struts Users Mailing List' > Subject: RE: Addressformat For Different Countries > > He said he only needed it for 3 countries. Seems like my way would be > easy > for that amount of pages. He could even use tiles for the common parts of > the pages. > Seems like since the ordering is different that as tiles configuration > would > need a separate tiles definition for each country so there could possibly > be > a 100 different tiles definitions. > I would be curious to see the tiles version. I'm not that familiar with > tiles though. > > Shawn > > -Original Message- > From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 08, 2005 11:14 AM > To: Struts Users Mailing List > Subject: Re: Addressformat For Different Countries > > //I would set up three different JSP Pages .. > > But what happens if there are about 100 countries?? we need 100 JSPs > right..Instead he can go for a single JSP with logic tags..but if there > are > 100 countries...his JSP will be very very long ..option left is to go for > tiles... > > > On 12/8/05, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > > > I would set up three different JSP Pages and route to them based on them > > answering which country they are from. I suggest you use the struts > > method > > to setLocale to the country and then make a version of the resources > file > > for that locale. > > > > In our application we have two sets of properties files. > > ApplicationResources_es.properties for Spanish > > ApplicationResources.properties for English > > > > If you do a setLocale in struts it will read the key from the > appropriate > > file. > > > > so in the English properties file the key is: > > title.welcome=Hello. How are you? > > > > and in the Spanish properties file the key is: > > title.welcome=Hola. ?Como esta usted? > > > > Then in your JSP page all you need to do is do > key="title.welcome"/> > > > > > > There are other approaches but this will give you the best results. > > > > Let me know if you have any more questions on the above. > > Shawn > > > > > > -Original Message- > > From: Shiva Narayana [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, December 06, 2005 4:10 AM > > To: Struts Users Mailing List > > Subject: Addressformat For Different Countries > > > > Hi All, > > > > I have to implement address format depending on country in JSP. Like > > > > For Australia Line1, line2 ,Street,Code > > For UK Code,Street,Line1,COuntry > > For IndiaStreet,City,line1,country > > > > Likewise i have do display the label and text box based on the country. > > Please help me how to do this in struts. > > > > Thanks in advance. > > > > -- > > Regards > > Shiva > > > > > > > > **** > > This email may contain confidential material. > > If you were not an intended recipient, > > Please notify the sender and delete all copies. > > We may monitor email to and from our network. > > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks & Regards > > Srinivas > 732-648-9421(Cell) > > > > > This email may contain confidential material. >
Re: Back Button Problem..
You can find some documentation in Jakarta Struts 1.1(Wrox Series.) abt how to use Tokens , but iam not sure how far it is helpful to solve your problem On 12/19/05, Priya Saloni <[EMAIL PROTECTED]> wrote: > > Here is my Code, > > request.getSession().removeAttribute("sessionState"); > request.getSession().invalidate(); > response.sendRedirect("/BMS/logout_success.jsp"); > > It invalidates properly but when i hit back button its asking to > resubmit.Iread it some where that by implementing Tokens we can avoid > this > problem.Any one have idea where i can get the example application to work > with Transaction Tokens.. > > Thanks > > Priya > > On 12/16/05, Martin Gainty <[EMAIL PROTECTED]> wrote: > > > > just as a quick sanity check > > > > HTTPSession strSession = request.getSession(false); > > strSession.removeAttribute("sessionState"); > > > > strSession = session.getId(); > > while(strSession != null) > > { //session information is still there > > session.invalidate(); > > strSession = session.getId(); > > } > > response.sendRedirect("/BMS/logout_success.jsp"); > > > > //To clear the cache I would place these meta-commands in the head > > > > > > > > > > Then again that message appears to be specific to IE on XP SP2 > > http://support.microsoft.com/default.aspx?scid=kb;en-us;890178 > > > > Anyone else? > > M- > > > > - Original Message - > > From: "Priya Saloni" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" > > Cc: "Garner, Nigel M" <[EMAIL PROTECTED]> > > Sent: Friday, December 16, 2005 1:46 PM > > Subject: Re: Back Button Problem.. > > > > > > Thanks for your time.But i can't use Appuse at this time because my > > project > > ready for production(Except this problem). > > > > Priya > > > > > > On 12/16/05, Garner, Nigel M <[EMAIL PROTECTED]> wrote: > > > > > > You could always use a ServletFilter to make sure that users never > have > > > access to pages that you don't want them to. By checking for a user > > > object or something like the sessionState object then you could > > > determine whether or not the user is logged in. If not then it will > > > allow you to redirect the user to where ever you want. > > > > > > I have used them on a number of occasion for this purpose and I think > > > the struts appfuse projected (see struts.sourceforge.net) provide a > > > downloadable implementation. > > > > > > Thanks > > > Nigel > > > > > > -Original Message- > > > From: Priya Saloni [mailto:[EMAIL PROTECTED] > > > Sent: 16 December 2005 14:49 > > > To: Struts Users Mailing List > > > Subject: Back Button Problem.. > > > > > > Hi there, > > > > > > I facing a BIG problem in my struts based application.When i logout my > > > website and hit back button it showing a page like the following > > > > > > // > > > Warning: Page has Expired > > > The page you requested was created using information you submitted in > a > > > form. This page is no longer available. As a security precaution, > > > Internet Explorer does not automatically resubmit your information for > > > you. > > > > > > To resubmit your information and view this Web page, click the > > > *Refresh*button. > > > > > > > > > // > > > > > > When i refresh the page its showing the secured web pages too.My code > in > > > LogoutAction is as follows > > > > > >request.getSession().removeAttribute("sessionState"); > > >request.getSession().invalidate(); > > >response.sendRedirect("/BMS/logout_success.jsp"); > > > > > > sessionState is the VO where iam keeping all the objects i want to > keep > > > in session..Is there any way in struts to make sure that it won't > > > display the page like above.. > > > > > > Thanks > > > > > > Priya. > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- Thanks & RegardsSrinivas732-648-9421(Cell)
Re: validation.xml
When it looks validate = true in struts-config.xml and when you form extends ValidatorForm it looks for validations in Validator.xml this is how Client Side Validation Works.How Exactly you are implementing Serverside validations? On 22 Dec 2005 15:21:39 -, rahul kshirsagar <[EMAIL PROTECTED]> wrote: > > Hi, > > I am using validation.xml in my application.It takes care of client side > as well as server side validations.It is working fine.But i dont > understand how exactly it takes care of both validations. > > Regards, > Rahul. > > -- Thanks & RegardsSrinivas732-648-9421(Cell)
Re: html:multibox with LabelValueBean
I think its always better to use Struts taglibs where ever it is possible because of less coding.Where exactly we need JSTL(Wild guess .where its not possible with Struts tag libs?) .Correct me if iam wrong On 12/22/05, Pazhanikanthan Periasamy <[EMAIL PROTECTED]> wrote: > > Hello Fea, > > I dont think, there are any differences in the way both JSTL and Struts > logic tags work. Fundamentally they both iterate the same input array and > produce the output. Using Logic Iterate tags, you can eliminate many > scriptlet tags that you might end up using when you use JSTL scripts. The > choice is yours as to which to choose. > > JSTL is Java standard. Logic Iterate is Struts specific. > > Thanks and regards, > Pazhanikanthan. P > Project Leader, > Caritor (India) Pvt. Ltd., > Madras - 600 006 > Mob: 9886152717 > Extn: 40123 > > > > "fea jabi" <[EMAIL PROTECTED]> > 12/22/2005 09:03 PM > Please respond to > "Struts Users Mailing List" > > > To > user@struts.apache.org > cc > > Subject > Re: html:multibox with LabelValueBean > > > > > > > Thanks, Laurie. that worked. > > why is JSTL prefered over the logic tags? is there any doc I can read > about > the same? > > Thanks. > > > >From: Laurie Harper <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" > >To: user@struts.apache.org > >Subject: Re: html:multibox with LabelValueBean > >Date: Wed, 21 Dec 2005 16:55:06 -0500 > > > >fea jabi wrote: > >>Trying to use html:multibox with LabelValueBean. > >> > >>Getting error doing the same. > >> > >> > >> > >> >>type="java.util.ArrayList[]"/> > >> > >> > >> > >> > >>In prepare Action > >>... > >>... > >> > >>LabelValueBean lblValueBean1 = new LabelValueBean("Visa1", "V1"); > >>LabelValueBean lblValueBean2 = new LabelValueBean("MasterCard1", "M1"); > >> > >> > >> ArrayList misList = new ArrayList(); > >> misList.add(lblValueBean1); > >> misList.add(lblValueBean2); > >> > >> ArrayList selectedList = new ArrayList(); > >> selectedList.add(lblValueBean1); > >> > >> form.set("Items", misList); > >> form.set("SelectedItems", selectedList); > >>. > >>. > >> > >> > >>In JSP > >> > >>.. > >> > >> > >> > >> > >> > >> > >> > >> > >>not sure what's wrong in here. > > > >For one thing, you've declared your form bean properties to be of type > >ArrayList[], but you're actually setting them with just ArrayList -- i.e. > > >you're declaring an array of lists, but only supplying a single list. > Don't > >know if that's the problem but it's definitely odd :-) > > > >>Also, would like to know if it's better to use the logicIterate or JSTL > to > >>loop thru the items as I am new to JSTL too. > > > >In general the JSTL tags should be prefered over the Struts logic tags, > >though either will work fine in most cases. > > > >L. > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _ > Express yourself instantly with MSN Messenger! Download today - it's FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- Thanks & RegardsSrinivas732-648-9421(Cell)
Re: html:multibox with LabelValueBean
I may be wrong but i saw in some situations i dont have proper tag libs in struts. On 12/22/05, Pazhanikanthan Periasamy <[EMAIL PROTECTED]> wrote: > > Apache Struts developers are very very clever to ensure that you wont get > an oppurtunity for using JSTL :) > > Thanks and regards, > Pazhanikanthan. P > Project Leader, > Caritor (India) Pvt. Ltd., > Madras - 600 006 > Mob: 9886152717 > Extn: 40123 > > > > Srinivas Jadcharla <[EMAIL PROTECTED]> > 12/22/2005 09:14 PM > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > cc > > Subject > Re: html:multibox with LabelValueBean > > > > > > > I think its always better to use Struts taglibs where ever it is possible > because of less coding.Where exactly we need JSTL(Wild guess .where its > not > possible with Struts tag libs?) .Correct me if iam wrong > > On 12/22/05, Pazhanikanthan Periasamy > <[EMAIL PROTECTED]> > wrote: > > > > Hello Fea, > > > > I dont think, there are any differences in the way both JSTL and Struts > > logic tags work. Fundamentally they both iterate the same input array > and > > produce the output. Using Logic Iterate tags, you can eliminate many > > scriptlet tags that you might end up using when you use JSTL scripts. > The > > choice is yours as to which to choose. > > > > JSTL is Java standard. Logic Iterate is Struts specific. > > > > Thanks and regards, > > Pazhanikanthan. P > > Project Leader, > > Caritor (India) Pvt. Ltd., > > Madras - 600 006 > > Mob: 9886152717 > > Extn: 40123 > > > > > > > > "fea jabi" <[EMAIL PROTECTED]> > > 12/22/2005 09:03 PM > > Please respond to > > "Struts Users Mailing List" > > > > > > To > > user@struts.apache.org > > cc > > > > Subject > > Re: html:multibox with LabelValueBean > > > > > > > > > > > > > > Thanks, Laurie. that worked. > > > > why is JSTL prefered over the logic tags? is there any doc I can read > > about > > the same? > > > > Thanks. > > > > > > >From: Laurie Harper <[EMAIL PROTECTED]> > > >Reply-To: "Struts Users Mailing List" > > >To: user@struts.apache.org > > >Subject: Re: html:multibox with LabelValueBean > > >Date: Wed, 21 Dec 2005 16:55:06 -0500 > > > > > >fea jabi wrote: > > >>Trying to use html:multibox with LabelValueBean. > > >> > > >>Getting error doing the same. > > >> > > >> > > >> > > >> > >>type="java.util.ArrayList[]"/> > > >> > > >> > > >> > > >> > > >>In prepare Action > > >>... > > >>... > > >> > > >>LabelValueBean lblValueBean1 = new LabelValueBean("Visa1", "V1"); > > >>LabelValueBean lblValueBean2 = new LabelValueBean("MasterCard1", > "M1"); > > >> > > >> > > >> ArrayList misList = new ArrayList(); > > >> misList.add(lblValueBean1); > > >> misList.add(lblValueBean2); > > >> > > >> ArrayList selectedList = new ArrayList(); > > >> selectedList.add(lblValueBean1); > > >> > > >> form.set("Items", misList); > > >> form.set("SelectedItems", selectedList); > > >>. > > >>. > > >> > > >> > > >>In JSP > > >> > > >>.. > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >>not sure what's wrong in here. > > > > > >For one thing, you've declared your form bean properties to be of type > > >ArrayList[], but you're actually setting them with just ArrayList -- > i.e. > > > > >you're declaring an array of lists, but only supplying a single list. > > Don't > > >know if that's the problem but it's definitely odd :-) > > > > > >>Also, would like to know if it's better to use the logicIterate or > JSTL > > to > > >>loop thru the items as I am new to JSTL too. > > > > > >In general the JSTL tags should be prefered over the Struts logic tags, > > >though either will work fine in most cases. > > > > > >L. > > > > > > > > >- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > _ > > Express yourself instantly with MSN Messenger! Download today - it's > FREE! > > > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > -- > Thanks & RegardsSrinivas732-648-9421(Cell) > > > -- Thanks & RegardsSrinivas732-648-9421(Cell)
Re: Clear the Action Form..
U have to use reset method in ActionForm On 12/29/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > How can i clear the Action form when i have saved all the information i > want, > is there any method in Struts which does that, or do i have explicitly > clear the form. > > -Original Message- > From: Greg Reddin [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 29, 2005 11:56 AM > To: Struts Users Mailing List > Subject: Re: Using an attribute defined in tiles-defs.xml in a JSP as a > JAVA var > > > > On Dec 29, 2005, at 9:40 AM, Andreas B. Thun wrote: > > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> > > > > > classname="java.lang.String" name="selectedCountry"/> > > > > <% > > String country = selectedCountry + "something"; > > %> > > Try this: > > <% > String country = (String) pageContext.findAttribute > ("selectedCountry") + "something"; > %> > > I'm pretty sure Tiles places these attributes in page context and > does not create JSP variables for them. > > Greg > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. 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. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & RegardsSrinivas732-648-9421(Cell)
Re: [FRIDAY] You might be a geek if ...
Happy New Year to you all. On 12/30/05, Daniel Blumenthal <[EMAIL PROTECTED]> wrote: > > Remember - the first step is admitting you have a problem. > > > -Original Message- > > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > > Sent: Friday, December 30, 2005 3:04 PM > > To: Struts Users Mailing List > > Subject: Re: [FRIDAY] You might be a geek if ... > > > > ...Instead of playing Twister with your kids you spent three > > hours on the phone with Microsoft tech support trying to > > troubleshoot a DCOM problem. > > > > ...Instead of *** with your wife tonight you'd rarther watch > > the 20 minutes of deleted scenes on the Serenity DVD you just got. > > > > ...You have a stack of books in each of the bathrooms in your > > house, some titles of which include "Webworks in Action", > > "AJAX in Action", "Imponderables", "Dictionary of Ancient > > Cultures", "Advanced Computer Microarchitecture Design", > > "Compiler Construction", "The Holographic Universe" and "The > > Physics of Star Trek". > > > > King of the geeks I am! :) > > > > Although, the first has only partially happened yet... the > > part about the DCOM issue is true (still working on it!), but > > my son hasn't asked me to play Twister just yet. The others > > are, sad as it may be, 100% true :) > > > > Frank > > > > Ted Husted wrote: > > > ... for Christmas, Santa brings you all six Star Wars > > movies, so you > > > can watch them in order, from "The Phantom Menace" through > > "Revenge of > > > the Jedi". > > > > > > Happy New Year's, every one! > > > > > > -Ted. > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > -- > > Frank W. Zammetti > > Founder and Chief Software Architect > > Omnytex Technologies > > http://www.omnytex.com > > AIM: fzammetti > > Yahoo: fzammetti > > MSN: [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] > > -- Thanks & RegardsSrinivas732-648-9421(Cell)
Re: Which method sets bean into desired scope
May be this article is helpful.If it is helpful please let us know. http://www.onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html On 1/3/06, Jim Reynolds <[EMAIL PROTECTED]> wrote: > > Hello and Happy New Year > > I am trying to figure out which method (of the many) in the request > processor physically takes the form bean and sets it into the desired > scope? Based upon the configuration for said Action Mapping. > > Regards > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
problem deploying "rr-struts-nested.war"
Hi Rick, Iam getting the following problem [image: Error]The EAR file could be corrupt and/or incomplete. com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: WEB-INF/web.xml while iam trying to deploy rr-struts-nested.war from http://www.reumann.net/tech/struts-nested.jsp on Websphere 5.1.1 FYI..I right clicked on the second link(rr-struts-nested.war) and saved it as rr-struts-nested.war on my local machine. I can send a personal mail to you but i thought your solution will be useful to the other people who'z getting the same problem.. Your Help is much appreciated. -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: problem deploying "rr-struts-nested.war"
Iam not trying to rebuild the application.I just wanted to download the .war file and deploy it.Your previous lessons(from older site) worked fine when i did that way. On 1/4/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > > Srinivas Jadcharla wrote the following on 1/4/2006 9:58 AM: > > Hi Rick, > > > > Iam getting the following problem > > > > [image: Error]The EAR file could be corrupt and/or incomplete. > > com.ibm.etools.archive.exception.DeploymentDescriptorLoadException: > > WEB-INF/web.xml > > > > while iam trying to deploy rr-struts-nested.war > > from http://www.reumann.net/tech/struts-nested.jsp on Websphere 5.1.1 > > Did you try rebuilding the app yourself from the source using the build > file? Those wars were built with Java 1.5, although I just decided to > rebuild it with Java 1.4 and deployed it to Tomcat 5.0 and it's working > fine there. I uploaded that war so give it a try and let me know how it > goes. (When I get home later, I'm going to rebuild with 1.5 though.) > > I've noticed odd things when the wars are built with different Java > versions and then deployed to different servers. Maybe someone can > correct me here, but I swear I've notice problems for example when I've > compile and built a war with Java 1.5 and then tried to deploy it to > Tomcat 5.0 that was being run with Java 1.4. > > Try using the build file on your local machine and deploy to Websphere > and let me know how that works. > > Thanks > > -- > Rick > http://www.tech.reumann.net > (Struts lessons, articles, etc.) > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: java.lang.OutOfMemoryError on production server
Try to increse the Heap size Look here http://h21007.www2.hp.com/cmdspp/QuestionAnswer/1,1764,5847BAEF-DA2E-4537-B3FD-B68173E1E0E7,00.html On 1/9/06, Brian Kremmin <[EMAIL PROTECTED]> wrote: > > Tomcat 5.0.28 gives the following error sporadically but usually after > only a few hours of operation: > > > > > > type Exception report > > > > message > > > > description The server encountered an internal error () that prevented > it from fulfilling this request. > > > > exception > > > > javax.servlet.ServletException: Servlet execution threw an exception > > > > root cause > > > > java.lang.OutOfMemoryError > > > > note The full stack trace of the root cause is available in the Apache > Tomcat/5.0.28 logs. > > > > > > I realize this error message could mean a number of things (and I don't > have much further info at this time) but I'd appreciate any ideas on > where to investigate from here? > > > > The code and garbage collecting? > > > > The hardware on the physical server? > > > > Some tomcat settings? > > > > Would our transition to Tomcat 5 affect the system? > > > > Other Notes: > > - We've developed a rather complex portal application using Struts 1.1. > > - It's run flawlessly in our development and Staging environments. > > - Deployment to our production server has proven difficult as a number > of issues have surfaced but we've been able to fix most of them until > this one today. > > - Our production Tomcat server also supports 3 other portal > applications. > > - I've been told that the server hardware is not lacking in memory or > processing power. > > > > Again, any brainstorms or directions for further investigation would be > helpful... and I could probably find more information if that would be > useful in a diagnosis. > > > > Thanks > > > > Brian > > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: How to use logic iterate...
-- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. 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. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Form has Inner Object..
*NoSuchMethodException *Thrown when a particular method cannot be found. Your Object (dmaClient) may not be having the methods required..that is getters and setters On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi All, > > My struts form (newClientForm) have an Object(dmaClient) and I want to > set the Objects methods.. Like this ... > > But it cannot recognize the Object...java.lang.NoSuchMethodException: > Unknown property 'dmaClient' > > > Any suggestions. > > > name="newClientForm" property="dmaClient.allOrders" >onfocus="this.select()" size="10" > /> > name="newClientForm" property="dmaClient.orderQty" >onfocus="this.select()" size="10" > /> > name="newClientForm" property="dmaClient.orderValue" >onfocus="this.select()" size="10" > /> > name="newClientForm" property="dmaClient.totalBuy" >onfocus="this.select()" size="10" > /> > name="newClientForm" property="dmaClient.totalSell" >onfocus="this.select()" size="10" > /> > name="newClientForm" property="dmaClient.totalThreshold" >onfocus="this.select()" size="10" > /> > > > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. 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. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Form has Inner Object..
You are welcome. On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, I also noticed , I had a typo in my method name... > now the below code works.. > > -Original Message- > From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 11, 2006 11:08 AM > To: Struts Users Mailing List > Subject: Re: Form has Inner Object.. > > *NoSuchMethodException *Thrown when a particular method cannot be > found. Your Object (dmaClient) may not be having the methods > required..that is getters and setters > > > On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > Hi All, > > > > My struts form (newClientForm) have an Object(dmaClient) and I want to > > > set the Objects methods.. Like this ... > > > > But it cannot recognize the Object...java.lang.NoSuchMethodException: > > Unknown property 'dmaClient' > > > > > > Any suggestions. > > > > > > > name="newClientForm" property="dmaClient.allOrders" > >onfocus="this.select()" size="10" > > /> > > > name="newClientForm" property="dmaClient.orderQty" > >onfocus="this.select()" size="10" > > /> > > > name="newClientForm" property="dmaClient.orderValue" > >onfocus="this.select()" size="10" > > /> > > > name="newClientForm" property="dmaClient.totalBuy" > >onfocus="this.select()" size="10" > > /> > > > name="newClientForm" property="dmaClient.totalSell" > >onfocus="this.select()" size="10" > > /> > > > name="newClientForm" property="dmaClient.totalThreshold" > >onfocus="this.select()" size="10" > > /> > > > > > > Visit our website at http://www.ubs.com > > > > This message contains confidential information and is intended only > > for the individual named. If you are not the named addressee you > > should not disseminate, distribute or copy this e-mail. 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. This > > message is provided for informational purposes and should not be > > construed as a solicitation or offer to buy or sell any securities or > > related financial instruments. > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > Thanks & Regards > Srinivas > 732-648-9421(Cell) > > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. 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. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
[OT]AJAX System Requirements
Hi, I have a small doubt regarding System Requirements for AJAX.Like Javascript i just need AJAX Supported Browser and notepad(as editor) , or do i need some thing else.Are there any small and simple examples on net to start with.Any advice is highly appreciable. -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: [OT]AJAX System Requirements
i found one example from this url http://www.degraeve.com/reference/simple-ajax-example.php?word=hi But this example requires CGI Script about which i have Zero knowledge.Arethere any other simple ajax examples?? Some thing like "Hello World!!" example On 1/17/06, Srinivas Jadcharla <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a small doubt regarding System Requirements for AJAX.LikeJavascript i > just need AJAX Supported Browser and notepad(as editor) , or do > i need some thing else.Are there any small and simple examples on net to > start with.Any advice is highly appreciable. > > -- > Thanks & Regards > Srinivas > 732-648-9421(Cell) > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: [OT]AJAX System Requirements
Thanks for you time Frank //AJAX is nothing but some Javascript on the client, and something on the server that //knows what do with an AJAX request (which is just an HTTP request in the end). How can i implement the following code using AJAX // code starts alert('Hi'); // code ends By using javascript i just need a javascript supported browser and notepad(or any Editor).Iam very sorry if some one feels it as a dumb question. On 1/17/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > As far as what you "need"... you "need" whatever you currently have for > web development, nothing more. AJAX is nothing but some Javascript on the > client, and something on the server that knows what do with an AJAX > request (which is just an HTTP request in the end). > > That being said, there are a huge number of AJAX libraries out there that > will make your life much easier. If you don't have Javascript expertise, > they may be absolutely invaluable. > > Check out this recent post for some info: > > http://marc.theaimsgroup.com/?l=struts-user&m=113661166421508&w=2 > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > On Tue, January 17, 2006 4:24 pm, Srinivas Jadcharla said: > > Hi, > > > > I have a small doubt regarding System Requirements for AJAX.Like > > Javascript > > i just need AJAX Supported Browser and notepad(as editor) , or do i need > > some thing else.Are there any small and simple examples on net to start > > with.Any advice is highly appreciable. > > > > -- > > Thanks & Regards > > Srinivas > > 732-648-9421(Cell) > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: [OT]AJAX System Requirements
Thanks Again frank, May be i didn't asked the question in proper way.Suppose i just have IE 6.0and Notepad.Will i be still able to work with Simple AJAX examles??I can still work with simple javascript examples with just IE and notepad. On 1/17/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Hmm, maybe I replied a little too quickly... are you asking how to make > a call via AJAX and show an alert as a result? In other words, do > exactly as what you show below, but involving the server? If so, then I > take back what I said and I can point you in the right direction :) > > Frank > > Srinivas Jadcharla wrote: > > Thanks for you time Frank > > > > //AJAX is nothing but some Javascript on the client, and something on > the > > server that > > //knows what do with an AJAX request (which is just an HTTP request in > the > > end). > > > > How can i implement the following code using AJAX > > > > // code starts > > > > > > alert('Hi'); > > > > > > > > // code ends > > > > By using javascript i just need a javascript supported browser and > > notepad(or any Editor).Iam very sorry if some one feels it as a dumb > > question. > > > > > > On 1/17/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > >> As far as what you "need"... you "need" whatever you currently have for > >> web development, nothing more. AJAX is nothing but some Javascript on > the > >> client, and something on the server that knows what do with an AJAX > >> request (which is just an HTTP request in the end). > >> > >> That being said, there are a huge number of AJAX libraries out there > that > >> will make your life much easier. If you don't have Javascript > expertise, > >> they may be absolutely invaluable. > >> > >> Check out this recent post for some info: > >> > >> http://marc.theaimsgroup.com/?l=struts-user&m=113661166421508&w=2 > >> > >> -- > >> Frank W. Zammetti > >> Founder and Chief Software Architect > >> Omnytex Technologies > >> http://www.omnytex.com > >> AIM: fzammetti > >> Yahoo: fzammetti > >> MSN: [EMAIL PROTECTED] > >> > >> On Tue, January 17, 2006 4:24 pm, Srinivas Jadcharla said: > >>> Hi, > >>> > >>> I have a small doubt regarding System Requirements for AJAX.Like > >>> Javascript > >>> i just need AJAX Supported Browser and notepad(as editor) , or do i > need > >>> some thing else.Are there any small and simple examples on net to > start > >>> with.Any advice is highly appreciable. > >>> > >>> -- > >>> Thanks & Regards > >>> Srinivas > >>> 732-648-9421(Cell) > >>> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > > Thanks & Regards > > Srinivas > > 732-648-9421(Cell) > > -- > Frank W. Zammetti > Founder and Chief Software Architect > Omnytex Technologies > http://www.omnytex.com > AIM: fzammetti > Yahoo: fzammetti > MSN: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
Re: Intro to JSTL
JSTL(JavaServer Pages Standard Tag Library) is the Library of Tags those are simillar to the Tags you used in Struts Based JSPs like html,logic,bean etc.. On 1/18/06, Gary Feidt <[EMAIL PROTECTED]> wrote: > > Hello Everybody, > > I've been developing Struts applications for a couple of years (the > last using Struts 1.2.4), but have not used JSTL. Is JSTL the next > logical progression? Is there a good place to start learning JSTL? Any > good books, or web sites? All the standard question to get started. > > Thanks, > > Gary Feidt > __ > > Confidentiality Statement: > This email/fax, including attachments, may include confidential and/or > proprietary information and may be used only by the person or entity to > which it is addressed. If the reader of this email/fax is not the intended > recipient or his or her agent, the reader is hereby notified that any > dissemination, distribution or copying of this email/fax is prohibited. If > you have received this email/fax in error, please notify the sender by > replying to this message and deleting this email or destroying this > facsimile immediately. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Srinivas 732-648-9421(Cell)
global exception handling
> > Is there a way to go the current page when an exception occurs? > > I don' tknow the page name. I want to get the current page dynamically. I > want to define a globally which appplied to all actions > > Thanks > srinivas >
struts2 getting current page
I want to define a global exception handler where if this exception happens, it goes to the current page Is there any way to get the current page and specify it as the result ? Thanks
Re: struts result going to a current page
I am working on struts2. I cannot return null from the action. I want the current page in the global exception handler. Instead of giving a specific jsp page, I want to return to what ever the current page is On Feb 16, 2008 1:55 PM, auz <[EMAIL PROTECTED]> wrote: > > try returning null as an actionForward > this works for ajax. its for struts 1.x > > > Srinivas Surapaneni wrote: > > > > I want to define a global exception handler where if this exception > > happens, > > it goes to the current page > > > > Is there any way to get the current page and specify it as the result ? > > > > Thanks > > > > > > -- > View this message in context: > http://www.nabble.com/struts-result-going-to-a-current-page-tp15509367p15518636.html > Sent from the Struts - User mailing list archive at > Nabble.com<http://nabble.com/> > . > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [struts] struts result going to a current page
Yes, I want to return to whatever page referred the current request. Whenever a recoverable exception happens, I want to return to the current page so that user can take some action I am trying to avoid defining exception handling at each action level and do globally and want to access the current page Thanks On Feb 16, 2008 3:02 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Srinivas Surapaneni wrote: > > I want the current page in the global exception handler. Instead of > giving a > > specific jsp page, I want to return to what ever the current page is > > That desire is not well specified. Do you mean you want to return to > whatever page referred the current request? Do you really want to > re-load that page (which may or may not be from within your webapp), or > is simply not changing the content currently being displayed sufficient? > > The http return code 204 (or "no content") will leave the browser where > it was. > > Otherwise it sounds like you want to redirect to the "referer" (yes, > it's misspelled in the specification). Note if that page was the result > of a POST you pretty much can't redirect to it. > > -Dale > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [struts] struts result going to a current page
To be more specific, Here is we can do in Beehive Pageflow which is based on struts 1.x I am trying to do a similar thing in Struts 2 @Jpf.ExceptionHandler(forwards = { @Jpf.Forward(name = "recoverableError", navigateTo = Jpf.NavigateTo.page) }) protected Forward handleRecoverableException( RecoverbaleException ex, String actionName, String message, Object form) throws Exception{ // code this.addActionError(Globals.ERROR_KEY, key, null); return new Forward( "recoverbleError" ); } The above is the global exception handler. If any RecoverbaleException happens anywhere in the application the request is send back to the current page by means of Jpf.NavigareTo.Page Thanks On Feb 16, 2008 6:41 PM, Srinivas Surapaneni <[EMAIL PROTECTED]> wrote: > Yes, > > I want to return to whatever page referred the current request. Whenever a > recoverable exception happens, I want to return to the current page so that > user can take some action > > I am trying to avoid defining exception handling at each action level and > do globally and want to access the current page > > Thanks > > On Feb 16, 2008 3:02 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > > > Srinivas Surapaneni wrote: > > > I want the current page in the global exception handler. Instead of > > giving a > > > specific jsp page, I want to return to what ever the current page is > > > > That desire is not well specified. Do you mean you want to return to > > whatever page referred the current request? Do you really want to > > re-load that page (which may or may not be from within your webapp), or > > is simply not changing the content currently being displayed sufficient? > > > > The http return code 204 (or "no content") will leave the browser where > > it was. > > > > Otherwise it sounds like you want to redirect to the "referer" (yes, > > it's misspelled in the specification). Note if that page was the result > > of a POST you pretty much can't redirect to it. > > > > -Dale > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > >
RE: get real path of a file from action class
getServlet.getContextPath.getRealPath(File); Regards Srinivas Gurram IT Consultant LogicaCMG - Releasing your potential Divyasree Technopolis 124 - 125 Yemlur Main Road, Off Airport Road Yemlur P.O Bangalore 560 037 India Tel: +91 80 4194 extn 20195 M: +91 99001 44579 Fax: +91 80 41943666 E : [EMAIL PROTECTED] <<http://www.logicacmg.com/>> P We have a responsibility to the environment Before printing this e-mail or any other document, let's ask ourselves whether we need a hard copy -Original Message- From: Ambaris Mohanty [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 11:10 AM To: 'Struts Users Mailing List' Subject: get real path of a file from action class Hi all, Can anybody tell me how to get the real path of a file from an action class? I'm using struts 1.2.9. Thank you, AM This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Unable to read META-INF/tld...
Check the uri attribute of taglib directive in index.jsp is same as content of tag in struts-bean.tld. Srinivas -Original Message- From: Pierre Thibaudeau [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 2:38 PM To: Struts Users Mailing List Subject: Unable to read META-INF/tld... I think I have a problem with my library versions, but I cannot pinpoint the problem. Here's the exception when I deploy on Tomcat 6.0.2: org.apache.jasper.JasperException: /index.jsp(1,1) Unable to read TLD "META-INF/tld/struts-bean.tld" from JAR file "file:/C:/applications/Tomcat%206.0/webapps/my_app/WEB-INF/lib/struts- taglib-1.3.5.jar" My web.xml does not contain any taglib declaration, and it is identified as version 2.4: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> I am using the following versions of the libraries: jsp-api.jar [2006 Nov 15] servlet-api.jar [2006 Nov 15] standard-1.0.2.jar [2005 Nov 13] jstl-1.0.2.jar [2005 Nov 13] struts-taglib-1.3.5.jar [2006 Aug 5] etc. The system is Windows XP and the environment variable: JAVA_HOME="C:\PROGRA~1\Java\SDK\jdk" That JDK is 1.5, recently downloaded. I am using Eclipse 3.2.1, but I am assuming that is irrelevant since I use external libraries. I have run out of ideas on where to look. Can anyone suggest something? This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.mail.internet.ParseException while reading the mail.
Hi While opening the mail from the Inbox I am getting the following error message. Can anyone help me in fixing this issue? javax.mail.internet.ParseException at javax.mail.internet.ParameterList.(ParameterList.java:61) at javax.mail.internet.ContentType.(ContentType.java:83) at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:269) at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:159) at uk.gov.uficybrarian.services.impl.email.EmailServiceImpl.getEmailAttachm entHeaders(EmailServiceImpl.java:1672) at uk.gov.uficybrarian.services.impl.email.EmailServiceImpl.displayEmails(E mailServiceImpl.java:632) at uk.gov.uficybrarian.services.impl.email.EmailServiceImpl.displayEmails(E mailServiceImpl.java:3353) 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:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection( AopUtils.java:292) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinp oint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref lectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invok e(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Ref lectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAo pProxy.java:174) at $Proxy0.displayEmails(Unknown Source) at uk.gov.uficybrarian.action.email.EmailHomeAction.inbox(EmailHomeAction.j ava:142) 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:585) at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.j ava:280) at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:216 ) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr ocessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java: 274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at uk.gov.uficybrarian.services.impl.preferences.TeeFilter.doFilter(TeeFilt er.java:72) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82 5) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) at java.lang.Thread.run(Thread.java:595) Thanks in advance... Regards Vasu. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
How to change the Context Root of a webapplication
Hi I am new to struts. Currently my application url is like this http://www.site.com/contextname/Home.do I want to change this url to http://www.site.com/Home.do I need to remove the contextname. It refers to the application name under webapps. Could any one suggest the solution. Thanks in Advance Regards Srinivas. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to change the Context Root of a webapplication
Thanks wes -Original Message- From: Wesley Wannemacher [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 6:57 PM To: Struts Users Mailing List Subject: RE: How to change the Context Root of a webapplication IIRC, if you rename your web-app to "ROOT" then the container will treat it special. I've used this in Tomcat, but I fiddled around with it before I got into Struts. I can't say for sure, but I would assume that if your web-app is called "ROOT" then Struts would treat it special as well. Since those days, I've really quit caring about the web-app name. When there is a customer requirement, I will spend more time trying to use some Apache tricks to make it happen. Using Apache and mod_proxy (to connect to an instance of tomcat somewhere else) or mod_jk (or whatever is in place these days) is usually easier for me. -Wes > -Original Message- > From: Gurram, Srinivas [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 9:00 AM > To: user@struts.apache.org > Subject: How to change the Context Root of a webapplication > > Hi > > I am new to struts. Currently my application url is like this > http://www.site.com/contextname/Home.do I want to change this url to > http://www.site.com/Home.do > > I need to remove the contextname. It refers to the application name > under webapps. > > Could any one suggest the solution. > > > > Thanks in Advance > > Regards > Srinivas. > > > This e-mail and any attachment is for authorised use by the > intended recipient(s) only. It may contain proprietary > material, confidential information and/or be subject to legal > privilege. It should not be copied, disclosed to, retained or > used by, any other party. If you are not an intended > recipient then please promptly delete this e-mail and any > attachment and all copies and inform the sender. Thank you. > > - > 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: Urgent Helppp needed
Hi, The structure is always...J2EE structure. if u look at webapps of tomcat...u better know aboutt the structure u can follow.. Pls let me know then also do have ambiguity in finding the application structure... > --Thanks& Regards > Srinivas Thutika > -Original Message- From: Meenakshi S [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 21, 2004 11:23 AM To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: Urgent Helppp needed Hi all, I am newbie in struts. I need help from u all in designing my application in Struts. Plz correct me if I am wrong anywhere. I m planning to use WSAD for development. & would be implementing it with Tomcat 4.1(as wsad doesn't give an option to configure a higher version) & JDK1.3. My application is a sales tracking system wherein I have various modules. Some of my modules & it's activities are as follows: 1. Security a. Role b. Module c. Form d. Access Right e. Change Password 2. Setup a. Organisation b. Branch c. Employee d. Reporting e. Designation 3. Pre-Sales a. Team b. Model c. Color d. Status e. Price f. Finance Source g. Prospect h. Target i. Case Detail j. Lead Assignment 4. Sales a. Order Booking b. Customer c. Dispatch 5. Inventory a. Stock 6. Reports a. Model Wise b. Team Wise c. Branch Wise d. Case History e. Ageing Report 7. Competitor's Activity I m thinking about implementing the security part thru JAAS. Suggest me if there's a good alternative to it. I also want to know as to where should I store the jsp pages, the action classes, action forms etc. i.e, what kind of hierarchy should I manage so that making changes/updations is easy. It's urgent,plz help. Regards, MS. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error in "instantiate TagExtraInfo class"
Hi, Could u pls elobarate u r problem...So that can understand the problem... Did u mentioned all the struts jar's in web.xml...so by the time of application starting it will load dynamically.. > --Thanks& Regards > Srinivas Thutika > -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 11:34 AM To: Struts Users Mailing List Subject: RE: Error in "instantiate TagExtraInfo class" Thanks David, It worked, i put all jars inside Tomcat's /Common/lib directory and it worked. Btw, does this mean that automatically class path is set for all jars which r inside /common/lib OR {yr application}/WEB-INF/lib - which is having precedence ? Thanks once again, regards Manisha "David G. Friedman" <[EMAIL PROTECTED]> wrote: Manisha, I don't think setting the classpath with another framework will do the job. You should still have the struts.jar in WEB-INF/classes because the struts.jar should be copied into each webapp. Putting it in some 'global' place may cause errors, especially if multiple struts applications are running. Where is your struts.jar? Regards, David -Original Message- From: Manisha Sathe [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 9:39 PM To: user@struts.apache.org Subject: Error in "instantiate TagExtraInfo class" I am installing struts framework on another m/c. I copied all related files + my application war file over there. Set class path for struts.jar. Now testing with one small program with struts. --- " rel="stylesheet" type="text/css"> Authorisation Form -- But i am getting following error msgs -- org.apache.jasper.JasperException: Failed to load or instantiate TagExtraInfo class: org.apache.struts.taglib.html.MessagesTei org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler .java:50) org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:37 8) org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:28 3) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI mpl.java:422) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j ava:248) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav a:162) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:2 20) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101 ) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203) org.apache.jasper.compiler.Compiler.compile(Compiler.java:461) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) root cause java.lang.ClassNotFoundException: org.apache.struts.taglib.html.MessagesTei org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1340) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja va:1189) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoI mpl.java:419) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.j ava:248) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.jav a:162) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539) org.apache.jasper.compiler.Parser.parse(Parser.java:126) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:2 20) org.apache.jasper.compiler.ParserController.parse(ParserController.java:101 ) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203) org.apache.jasper.compiler.Compiler.compile(Compiler.java:461) org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) org.apache.jasper.compiler.Compiler.compile(Compiler.java:430) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 274) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servl