Win a copy of Microservices Testing (Live Project) this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

how to preserve the NTLM authentication

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've a login.jsp page with username and password fields, in which the username will be filled up with the username of the system(machine : in domain). The user may/maynot edit that string, only the password will be entered by the user. When I submit the form, using the onSubmit(Object command) method, and I try to retrieve the values as below it returns null. Code below :

JSP Code: [ the <%=username%> is the value from the NTLM authentication ]

Log message is as below:

2008-06-30 12:39:59,390 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'alcsreports': initialization completed in 859 ms>
2008-06-30 12:46:35,703 INFO [] - <onSubmit() method is called>
2008-06-30 12:46:35,718 INFO [] - <toString() method in UserLogin class>
2008-06-30 12:46:35,718 INFO [] - <UserLogin:User Name: null;Password: password could not be displayed>
2008-06-30 12:46:35,718 INFO [] - <Username :null>
2008-06-30 12:46:35,718 INFO [] - <Password :null>
2008-06-30 12:46:35,718 INFO [] - <In handleRequest() method>

Bean mapping

Can someone help me?

John Bright. J
[ June 30, 2008: Message edited by: John Bright ]
    Bookmark Topic Watch Topic
  • New Topic