This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Getting the http message on submit of a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Getting the http message on submit of a jsp" Watch "Getting the http message on submit of a jsp" New topic
Author

Getting the http message on submit of a jsp

Samy Ganou
Greenhorn

Joined: Oct 05, 2009
Posts: 28

I'm using a frame like struts , i want to get all the html message when I submit a form, my requirement is to get the html of the jsp page and send it by mail. I want to do it on my Action but how ?
Thank you in advance
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3017
    
  35

For your requirement, it's better to use some other templating technologies like Velocity rather than using JSPs.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60773
    
  65

You want to submit the entire HTML page as part of a form submission within it? That's not going to happen.

Maybe you can expand on what your goal is and we maybe able to suggest something that could work.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting the http message on submit of a jsp
 
Similar Threads
Jsp to HTML
How to keep a button from submitting a form.
content types jsp?
Confirmation message in Struts using JavaScript
JSP is resubmitted twice on tomcat