Capture JSP Response
Hi, Requirements : - I have a form in a jsp on submission of which I need to send an e-mail. - On submission of the form, I am calling another .do page & getting the response. This response I dont need to show in the jsp but capture this html response and use this as a string to construct the email message body. - I need to capture the html response as a String. I tried using but from that I am not able to capture the "out" object since I need to display a "Email Sent" message on the same jsp. - Then I tried creating filters, I created a response filter alongwith a response wrapper and then try to capture the response but I am not able to capture the response. - I am using WebLogic 7.0 and Java 1.3 Any kind of help will appreciated. -- Regards, Dinesh
Validation help required
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
Secure - Non Secure problem (http-https)
Hi, I have a shipping/billing page (secure page - https) in a shopping cart application. If there is any error then I am redirecting to home page that is non-secure(http). The problem is that after error in the secure pages its redirecting to home page but in the same secure https mode. Is there any way in struts-config.xml (either by action mapping or in forward tag) where I can rectify this situation?? Any sort of help would be appreciated. Thanks in advance. -- Regards, Dinesh