This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 27

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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2691
    
    3

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


Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting the http message on submit of a jsp
 
Similar Threads
How to keep a button from submitting a form.
Jsp to HTML
Confirmation message in Struts using JavaScript
JSP is resubmitted twice on tomcat
content types jsp?