Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding data to a new JSP page  RSS feed

 
Darko Markovic
Greenhorn
Posts: 16
C++ Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a servlet that I called using a JSP. It takes some form information from it. I wrote this in my JSP:

But instead of writing it in the current page, I want to write it in another, empty JSP I got, and I want to open that new JSP. Can anyone write the code for that and explain it?

EDIT: I figured out that I have to issue


But It's just Blank. I want to use the servlet to output the code I wrote earlier. Does anyone have the code for that?
 
Sourabh Bawage
Ranch Hand
Posts: 33
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the need??
 
Darko Markovic
Greenhorn
Posts: 16
C++ Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excuse me? I don't really understand what you're asking me. If the question is what I want to happen, then the answer is that I want that HTML code to be printed in a new JSP Page. I'm guessing I need attributes but I always seem to get an error, because of the list or something.
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is also, what does that mean? I have some guesses about what you might want, but an explanation of what you are trying to do would be helpful.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65830
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should take a step back and tell us what you are trying to accomplish rather than how. Just by looking at the code of the first post leads me to believe that you've already gone astray.
 
Darko Markovic
Greenhorn
Posts: 16
C++ Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved it again, but thanks anyway. I was trying to take some information from a jsp using a servlet, then use the servlet to transfer it and write it in a new jsp (newjsp.jsp) that isn't currently used for anything. I did it using attributes and a list, but thanks anyway. And Bear, you look like you are the god of programming on this forum
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!