aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mock queston on URL rewriting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mock queston on URL rewriting" Watch "Mock queston on URL rewriting" New topic
Author

Mock queston on URL rewriting

Tiffiny Yang
Ranch Hand

Joined: Mar 29, 2006
Posts: 124
Which of the following best describes an example of URL rewriting?
A.out.println("<INPUT TYPE='hidden' NAME='name' VALUE='BillyBob'>");
B.out.println("<FORM ACTION='servlet/TestServlet/ BillyBob' METHOD='POST'>");
C.HttpSession session = req.getSession();
D.session.addAttribute("name", "BillyBob");
E.None of the above

The anwser is B.

I don't understand it.

Anybody agrees? and why? explaination?

Thanks in advance
Edisandro Bessa
Ranch Hand

Joined: Jan 19, 2006
Posts: 584
Hi Tiffiny,

I personally think the correct choice would be letter E.

My anwser is based on the fact that URL rewriting is supposed to take place either when the user disables cookies so that the session id is appended to the URL or when some special characters are included on url parameters so that such characters are converted accordingly.

The letter B does not guarantee that the session id will be appended to the URL if the user disables cookies on his browser.

I hope that helps.


"If someone asks you to do something you don't know how to, don't tell I don't know, tell I can learn instead." - Myself
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hi,

I agree with Mr.Edisandro.


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Jayant Raj
Ranch Hand

Joined: Mar 11, 2004
Posts: 42
I agree as well. The answer should be 'E'.


regards,<br />Jayant Raj<br /> <br />SCJP 1.4 [98%]<br />SCWCD 1.4 [91%]<br />SCBCD [In Progress]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Yep, B has nothing to do with URL rewriting.


[My Blog]
All roads lead to JavaRanch
Tiffiny Yang
Ranch Hand

Joined: Mar 29, 2006
Posts: 124
Thank you guys. That's what I thought . Choice E should be the correct since the URL rewriting has nothing to do Choice B.

Tiffiny
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mock queston on URL rewriting