File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send an array of Strings as a html response from the doPost of the servlet

 
balu
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all...
i have an array of strings which i want to display in my html response being generated by the servlets doPost method...
The point is..like i use..
out.println(<>String 1)
out.println(String 2)....how do i end it.....b'coz what i have is a an array and though i get to know its length in a variable how do i break the printing and let the out.println know that it is the last string.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use a for loop


Or did I miss something?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic