Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes [HFSJ 2nd Edition] Questions related to chapter1/2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "[HFSJ 2nd Edition] Questions related to chapter1/2" Watch "[HFSJ 2nd Edition] Questions related to chapter1/2" New topic
Author

[HFSJ 2nd Edition] Questions related to chapter1/2

Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Hello Friends,

Atlast I have started reading the HFSJ. I have gone through the chapter 1 and 2 and i have some doubts.

Below is the snap of Chapter1, Page #14, Here the author is discussing the limitations of HTTP GET method.
The total amount of characters in a GET is really limited (depending on the server). If the user types, say, a long passage into a �search� input box, the GET might not work.

The data you send with the GET is appended to the URL up in the browser bar, so whatever you send is exposed. Better not put a password or some other sensitive data as part of a GET!

Because of number two above, the user can�t bookmark a form submission if you use POST instead of GET. Depending on your app, you may or may not want users to be able to bookmark the resulting request from a form submission.

1)
Because of number two above, the user can�t bookmark a form submission if you use POST instead of GET. Depending on your app, you may or may not want users to be able to bookmark the resulting request from a form submission.
[Chapter1, page # 14] -- What does this statement mean? Does it mean we can't bookmark the pages, if we have used HTTP POST method?

2) From the chapter 2 I come to know that if we want to develop a static website than Apache HTTP Web server application is enough no need of servlet container like tomcat. Then my question is now a days almost all the websites are dynamic then what is the use of Apache HTTP Web Application Server.

[ November 13, 2008: Message edited by: Vishal Pandya ]

[ November 13, 2008: Message edited by: Vishal Pandya ]
[ November 13, 2008: Message edited by: Vishal Pandya ]
Matteo Di Furia
Ranch Hand

Joined: Jun 20, 2008
Posts: 102
To answer question #2, a vast number of web sites are made with PHP, which you can add to Apache Server with a specific mod (modPHP, if I'm correct).

As for question #1, I didn't understand what you want to know. I'd need to know what's the "number two above" you quote. I'm pretty sure you can bookmark a page which is the result of an form submission, but the result could be not identical to the one you bookmarked, that's true.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I believe what it's saying is that since with a POST as opposed to a GET, any parameters are NOT appended to the URL, they are part of the body (payload). A bookmark of a POST submission's results only includes the URL, and none of the submitted form data.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Originally posted by Matteo Di Furia:
To answer question #2, a vast number of web sites are made with PHP, which you can add to Apache Server with a specific mod (modPHP, if I'm correct).

As for question #1, I didn't understand what you want to know. I'd need to know what's the "number two above" you quote. I'm pretty sure you can bookmark a page which is the result of an form submission, but the result could be not identical to the one you bookmarked, that's true.

I have provided the requested information by editing the original question.
Vikas Kapoor
Ranch Hand

Joined: Aug 16, 2007
Posts: 1374
Originally posted by Bosun Bello:
I believe what it's saying is that since with a POST as opposed to a GET, any parameters are NOT appended to the URL, they are part of the body (payload). A bookmark of a POST submission's results only includes the URL, and none of the submitted form data.

Thanks Bosun. I got it now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [HFSJ 2nd Edition] Questions related to chapter1/2
 
Similar Threads
Football not famous in Some parts
FW: A SHORT LOVE STORY
Grammar Correction
Need Help in Understanding Limitation of HTTP Get
Why don't I win the lottery?