Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javaranch mock?Question Bank ID : 16

 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know whether it is errta or I am wrong :
Question Bank ID : 16 Choose the 1 correct answer
Which of the following is correct html for 'Form Based Authentication"?

  • <form method="post" action="j_security_check">

  • <input type="text" name="j_username">
    <input type="password" name="j_password">
    </form>
  • <form method="post" action="your login page">

  • <input type="text" name="j_username">
    <input type="password" name="j_password">
    </form>

  • <form method="post" action="security_check">

  • <input type="text" name="username">
    <input type="password" name="password">
    </form>

  • <form method="post" action="your login page">

  • <input type="text" name="username">
    <input type="password" name="password">
    </form>

    2 and 4 looks same to me.
    Someone Please tell me what is the difference?
    and if it is errata then plz move it to respected forum.

    TIA
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17278
    6
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    name="j_username">
    B has the j_ in from of username.
    I just think you are going blind. JK
    Mark
     
    Madhav Lakkapragada
    Ranch Hand
    Posts: 5040
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    This post tells you (whoever is reading this) how important it is to read code word by word or char by char.
    I did this once way back and realized this important fact. Thats the one time I made myself recognize the mistake, god knows how many times I did this unknowingly.
    Ravish, this is a very important lesson when it comes to Cert exams. Learn from this mistake. I learnt from what I did (my post should still be around in the Servlets forum).
    regds.
    - madhav
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17278
    6
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    my post should still be around in the Servlets forum

    And I think we should put a reply in that thread, so it can reach the top of the list, and keep replying each week, so that we can all be reminded of Single Character Errors that Satya made, and remind us to read the fine print.
    Mark
     
    R K Singh
    Ranch Hand
    Posts: 5384
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    thanks to all of you ...
    I have to do security and Design still...
    but this j_ matters this much ??
    I was thinking that one can have any name for his textbox on html from....
    is it a custom to put "j_" or there is any specific reason?
    Because I think if it is form based authentication then it is servlet OR developer dependent authetication.
    TIA
     
    Sam Cala
    Ranch Hand
    Posts: 147
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Ravish, you need to get your basics on security. Dont take Jump Start...
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic