• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Suggestion

 
ruijin yang
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the moment,we are lack of Mock Exams for SCWCD to discuss.What can we do in this forum?Some of ranchers who already passed the beta exam or formal exam said that they mainly focused on studying JSP Specification 1.2 and Servlet Specification 2.3.So,I think we can discuss THESE TWO SPECIFICATIONS here.When we are studying specifications,we may meet some points that we do not understand or we do not know how to use them in programs.We need some one to explane for us or
present some examples to show us how to use them.
Now,I have two problems:
1> What is URI?What is relationship between URI and URL?
2> "How to use setHeader in servlet?".Can some one give explanations or present a servlet to me?

ruijin yang
-----------
SCJP2

[This message has been edited by ruijin yang (edited August 12, 2001).]
[This message has been edited by ruijin yang (edited August 12, 2001).]
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello All,
I fully agree with ruijin yang.I was cursing myself as to why i did not think of this earlier.Also It would be nice
if the guys who had passed the exam get together and prepare some
kind of a mock exam similiar to that of the real one.That would be really appreciated!!!.
Thanks,
Manjunath
 
Premkumar Venkatasamy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Servlet spec 2.3
uniform resource locator (URL) A compact string representation of resources available via the network. Once the resource represented by a URL has been accessed, various operations may be performed on that resource.
A URL is a type of uniform resource identifier (URI). URLs are typically of the form:
<protocol>//<servername>/<resource>
For the purposes of this specification, we are primarily interested in HTT-based URLs which are of the form:
http[s]://<servername>[ ort]/<url-path>["> lt;query-string>]
For example: http://java.sun.com/products/servlet/index.html
https://javashop.sun.com/purchase
In HTTP-based URLs, the �/� character is reserved to separate a hierarchical path structure in the URL-path portion of the URL. The server is responsible for determining the meaning of the hierarchical structure. There is no corre-spondence between a URL-path and a given file system path.
To setHeader
response.setHeader ( "Refresh", "1; URL=urlName" );
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic