This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 3060
    
  38

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: 61106
    
  66

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