Go Back

2006-05-29 Thread Shervin Asgari
Hello. I was wondering. Is there a way in struts to go back to the previous page. Like hitting back button? I have a confirmation page, and I want when the user hits the cancel button for it to be redirected to the previous page. Currently I have an ActionForward which returns

Re: Go Back

2006-05-29 Thread Abhimanyu Koul
hi! you can have a separate mapping for the previous page like you have for the next page Abhimanyu Koul FinEng Solutions (P) Ltd. Dani Compound, 158, Vidyanagari Marg, Kalina, Santacruz (East), Mumbai - 400 098 Mobile : +91 9860582533 - Original Message - From: Shervin Asgari [EMAIL

Re: Go Back

2006-05-29 Thread Shervin Asgari
Yes I have. But the problem is that I have some values which doesn't get shown because they are not null. That's why I would like to just go back. There is another ActionForm on the previous page which I cannot receive the values from. Shervin Asgari - System Consultant M: +47 918 64 148, @:

RE: Go Back

2006-05-29 Thread Emilia Ipate
There are 2 ways for doing it: 1. on client side: - use javascript: history.back() or history.go(-1) This solution is very fast because the browser loads the page quite fast as from the client's PC (does not go to the server) 2. on the server side - in the your

Re: Go Back

2006-05-29 Thread Manfred Wolff
Exactly No. 2 does http://www.manfred-wolff.de/struts/articles/HowTo-Back.html Manfred Emilia Ipate wrote: There are 2 ways for doing it: 1. on client side: - use javascript: history.back() or history.go(-1) This solution is very fast because the browser loads the page quite

Re: Go Back

2006-05-29 Thread Shervin Asgari
Thank you for the replies. Shervin Manfred Wolff wrote: Exactly No. 2 does http://www.manfred-wolff.de/struts/articles/HowTo-Back.html Manfred Emilia Ipate wrote: There are 2 ways for doing it: 1. on client side: - use javascript: history.back() or history.go(-1) This

Custom tag

2006-05-29 Thread Hanmay Udgiri
Hi I have 100 fields for a JSP.And in the JSP a field can be mandatory/optiobal/read only. I am writing a custom tag to display the label bold for mandatory and non bold for optional. I am having a indicator for each field and I am passing this indicator to the custom tag. I am giving the sample

Java Exams Web site

2006-05-29 Thread Ahmed Hashim
Dear All, From 2 months, I found a web site offer Free Java Exams and Exams for frameworks like Struts and all technologies like EJB, JSF. There are 2 types of exam, Demo and Real. To go through the real exam, you must have points. To get points, you must contribute by adding questions in any

Custom tag info

2006-05-29 Thread Jean-Marie Pitre
Hi, I have done a custom tag and I would like to pass to it a value issued from a bean. My problem is, I can't retrieve the obj.filed1 value inside my tag, I have only as value the string obj.field1 ... Example: mytag refCde='bean:write name=test property=obj.field1 /' /

RE: Custom tag info

2006-05-29 Thread Emilia Ipate
You can't put the value of a custom-tag another cutom-tag! You should use scriptlet or el-expressions or somthing else! -Original Message- From: Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Sent: maandag 29 mei 2006 14:36 To: user@struts.apache.org Subject: Custom tag info Hi, I

Re: Session form IE problem

2006-05-29 Thread Martin Gainty
If you start with a basic form such as html body input type=file id=uploaded_file name=uploaded_file size=50 /body /html example make sure that works as far as receiving form data and then add in one parameter or taglib at a time making sure EACH iteration works before proceeding.. then you

.properties file

2006-05-29 Thread Shervin Asgari
Hello, can anyone point me to a tutorial or HowTo on how I can create a .properties file and how I can extract the information from this file within the source code? I don't know if Struts has some automagic stuff that does this. Thanks Shervin

Re: Custom tag

2006-05-29 Thread [EMAIL PROTECTED]
If I understand what it is you are trying to do. I think you want to write out an input field with the name,value and a display property. What I normally do for simplicity sake is to create an object to represent a field and it's properties. In the action class I populate a collection with these

Form reset()

2006-05-29 Thread Miguel Galves
Hi, can someone tell exactly in which cases the ActionForm.reset() method is called ? More specifically, when an action or a erro handler redirects the system to a specific DispatchAction method, as showed in the code below, dos struts reset the form ? public class MyExceptionHandler extends

Tests for bugs fixed in Struts 1.2.9

2006-05-29 Thread Niall Pemberton
Someone asked me privately whether there were any test cases for the three security/vulnerability bugs fixed in Struts 1.2.9: * Bug 38374 - Validation always skipped with Globals.CANCEL_KEY * Bug 38534 - DOS attack, application hack * Bug 38749 - XSS vulnerability in DispatchAction I have

RE : Custom tag info

2006-05-29 Thread Jean-Marie Pitre
Ok, But I think I have forgotten something, because even if I put el_expression to the attribute value, at Runtime the container map the el_expression as a string and so it is not parsed ... -Message d'origine- De : Emilia Ipate [mailto:[EMAIL PROTECTED] Envoyé : lundi 29 mai 2006

Re: .properties file

2006-05-29 Thread Antonio Petrelli
Shervin Asgari ha scritto: Hello, can anyone point me to a tutorial or HowTo on how I can create a .properties file and how I can extract the information from this file within the source code? I don't know if Struts has some automagic stuff that does this. If you mean simple .properties

Action Form reset()

2006-05-29 Thread Miguel Galves
Hi, when I'm in an ExceptionHandler or inside an action method, and I forward the control to a specific DispatchAction method, as in the code below, does struts reset the form ? It seems to me that it doesn't, but we having some strange behaviours in some forms, and I would like to be sure of

RE : RE : Custom tag info

2006-05-29 Thread Jean-Marie Pitre
This is my code :-) I would like to retrieve perConge.typeConge value inside my cofisun:TextRefControl (refcde attribute). Is it possible ? logic:notEmpty name=AdminConges property=doCptCongeUti logic:iterate name=AdminConges id=cpt property=doCptCongeUti

Struts-menu:How can I open the very page that the location defined in the parent window,namelly NOT a new window?

2006-05-29 Thread M.Liang Liu
I tried to use struts-menu and I find a BIG problem: My customer would like to open the very page that the location defined in the same window,not a new window? It woks in firefox and the customer is satisfied.The problem occurred under Internet Explorer. Can you help me please? Thank you.

Re: Form reset()

2006-05-29 Thread Philihp Busby
ActionForm objects are reused. A new one may not necessarily be created every time a form is submitted... Struts will try and reuse one from a pool of ActionForm objects. If there's a free one, it calls reset() before populating it in the controller with form values and hands it to your action.

multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
Hi, I 've searched the archives but haven't found any solution to my latest problem. I have with a html:file input and a html:text input. The problem is that request.getCharacterEncoding() returns null and the text input is considered to be in iso-8859-1 encoding. In the corresponding

Re: multipart/form-data and character encoding

2006-05-29 Thread Martin Gainty
Good Afternoon Antonis- This character encoding issue has been addressed http://issues.apache.org/struts/browse/STR-2117 as follows Set your page to use correct character encoding %@ page ;contentType=text/html charset=UTF-8% Set form to use correct form encoding html:form

Re: multipart/form-data and character encoding

2006-05-29 Thread Miguel Galves
Antonis, we had the same problem with multi part forms. We tried everithing, including enctype in the form tag, URIEncoding, and request.setEncoding...in reset() method. All theses solutions worked fine with all kinds of requests, except for the mulipart, which is handled in a different way.

[ANNOUNCE] new Version of FormView 1.0-b5 is available.

2006-05-29 Thread Angelo zerr
Hello there is a new version of Formview. This version is able to manage any HTML element like label, div,... that you can set a state. For instance when your input filed has ERROR (after validation), your label associated (with attribute for) can be RED too. You can too set a BOLD label when

Re: Custom tag

2006-05-29 Thread Angelo zerr
Hello, you could use FormView for manage your state (readonly, ...) for your input. With new version of formview you can too manage label to set RED color when input has ERROR. You can find FormView Web Site at http://formview.sourceforge.net/ and download JAR at

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
Hello Martin, I tried your suggestion but there is a difference in my case: The enctype in my form's declaration is multipart/form-data (I have to support file upload). If I leave it that way, I get the same results (no greek characters). If I change it to multipart/form-data;

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
Miguel, If you ever come to Greece, remind me to offer you some ouzo and mousaka ;) It worked just fine! I' ll keep looking for a more official solution, but until then you' ve saved me... Thank you very very much, Antonis On 5/29/06, Miguel Galves [EMAIL PROTECTED] wrote: Antonis, we had

Re: multipart/form-data and character encoding

2006-05-29 Thread Miguel Galves
Antonis, I`m glad to know that your problem is solved. If you find a more official solution, please let me know. But, as you, I spent many hours looking for it, and I didn`t find anything at all. []s miguel On 5/29/06, Antonis Lebesis [EMAIL PROTECTED] wrote: Miguel, If you ever come to

Re: multipart/form-data and character encoding

2006-05-29 Thread Martin Gainty
Antonis- Did you set the characterEncoding for the response e.g. res.setCharacterEncoding(UTF-8) ??? Martin -- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received

Re: multipart/form-data and character encoding

2006-05-29 Thread Antonis Lebesis
Martin, I' m not sure what you mean. In my Action's execute() method I get a request, a response and an ActionForm object. Whatever I do to the request or response objects, the values from the html form are already in the actionForm (encoded in a false way). The only way to alter the Strings in

[shale] Shale and standalone tiles integration problems...

2006-05-29 Thread Greg Allen
I am new to JSP and am trying to use shale and standalone tiles. I have what is probably a simple problem, but I haven't been able to find the answer anywhere. My login page is looks like this: %@ taglib uri=http://java.sun.com/jsf/core; prefix=f % %@ taglib uri=http://java.sun.com/jsf/html;

Re: [shale] Shale and standalone tiles integration problems...

2006-05-29 Thread Li
Hi, Check your application server log to see the detailed error stack ... On 5/30/06, Greg Allen [EMAIL PROTECTED] wrote: I am new to JSP and am trying to use shale and standalone tiles. I have what is probably a simple problem, but I haven't been able to find the answer anywhere. My login

Re: [shale] Shale and standalone tiles integration problems...

2006-05-29 Thread Wendy Smoak
On 5/29/06, Greg Allen [EMAIL PROTECTED] wrote: My resulting page comes up blank. When I view the source, I see the Layout.jsp source, including the shale tags like f:view and the tiles tags. For some reason, these aren't getting resolved or translated to the resulting HTML. That usually

Help:validation is not working with struts1.2

2006-05-29 Thread M.Liang Liu
I tried to use validator in my struts application and I find a problem occurred: The form did not validate itself and the execute method is always called. I active the plug-in in struts-config.xml as following: plug-in className=org.apache.struts.validator.ValidatorPlugIn