5 Replies - 583 Views - Last Post: 02 March 2011 - 06:13 AM

#1 Dean_Grobler  Icon User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 390
  • Joined: 15-January 10

Servlets Reponse Type

Posted 02 March 2011 - 12:11 AM

Hello there,

This is just a quick question. You know that servlets respond by printing out dynamic HTML code? Well, is it possible that instead of doing that, the servlet just redirects back to the HTML form that send the servlet the Form data in the first place?

myHtml(sends form data) --------------> myServlet ---------------> myHtml




Another question I have, might as well ask. Say your servlet prints out a dynamic html page, and in that page you have a button linking to a seperate html document on your server. That button doesn't work, for some reason, you can't link to a seperate html document from a dynamically created html page by a serlvet..... Why??


Thanks guys.

This post has been edited by Dean_Grobler: 02 March 2011 - 12:27 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Servlets Reponse Type

#2 Dean_Grobler  Icon User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 390
  • Joined: 15-January 10

Re: Servlets Reponse Type

Posted 02 March 2011 - 05:22 AM

Nevermind, sorted out..
Was This Post Helpful? 0
  • +
  • -

#3 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • View blog
  • Posts: 1,689
  • Joined: 13-March 10

Re: Servlets Reponse Type

Posted 02 March 2011 - 06:01 AM

You should never build a dynamic webpage using servlets. Its sooooo cumbersome. I think only logic should go to the servlet and JSP and HTML should display all the info.
Was This Post Helpful? 1
  • +
  • -

#4 Dean_Grobler  Icon User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 390
  • Joined: 15-January 10

Re: Servlets Reponse Type

Posted 02 March 2011 - 06:03 AM

View Postdarek9576, on 02 March 2011 - 06:01 AM, said:

You should never build a dynamic webpage using servlets. Its sooooo cumbersome. I think only logic should go to the servlet and JSP and HTML should display all the info.


That's exactly what my solution was LOL. I'll never generate HTML dynamically with servlet, the most confuzing thing you can do.
Was This Post Helpful? 0
  • +
  • -

#5 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • View blog
  • Posts: 1,689
  • Joined: 13-March 10

Re: Servlets Reponse Type

Posted 02 March 2011 - 06:08 AM

Ok, cool, Did not get it :). Good that you are not going to do it.:)
Was This Post Helpful? 0
  • +
  • -

#6 Dean_Grobler  Icon User is offline

  • D.I.C Regular

Reputation: 39
  • View blog
  • Posts: 390
  • Joined: 15-January 10

Re: Servlets Reponse Type

Posted 02 March 2011 - 06:13 AM

View Postdarek9576, on 02 March 2011 - 06:08 AM, said:

Ok, cool, Did not get it :). Good that you are not going to do it.:)


That's what I first did though, I acctualy felt depressed looking at that HTML code in my servlets. I just wanted to do alot of acid,climbp in a chicken suit and maybe jump out my office builing..

Then I discovered JSPs and my whole world lit up, and it is safe to say that, once again, I am on the right path.

This post has been edited by Dean_Grobler: 02 March 2011 - 06:14 AM

Was This Post Helpful? 1
  • +
  • -

Page 1 of 1