Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Javaranch mock?Question Bank ID : 16

 
Ranch Hand
Posts: 5390
1
Spring Java
  • 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
     
    ranger
    Posts: 17346
    11
    Mac IntelliJ IDE 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
     
    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
    Posts: 17346
    11
    Mac IntelliJ IDE 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: 5390
    1
    Spring Java
    • 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
     
    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...
     
    My cellmate was this tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
      Bookmark Topic Watch Topic
    • New Topic