Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

Adding data to a new JSP page

 
Greenhorn
Posts: 16
Netbeans IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 33
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the need??
 
Darko Markovic
Greenhorn
Posts: 16
Netbeans IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 27374
88
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67671
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Netbeans IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I've read about this kind of thing at the checkout counter. That's where I met this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic