This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 3022
    
  35

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


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
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