• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Form based authentication with Struts login form

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,
I config in web.xml security constraints to protect my pages, and I choose <auth-method> is FORM
With jsp/servlet application, login page like that

But with jsp/struts application, what shoud I do ?

Above code does not work.

Thanks
Phuc Bui
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Struts tags, at translation time, get resolved into simple HTML, so there is NO big difference in using struts tag in JSP as compered to JSP standard tags. So to make this form using struts, I do this




Look there is just a change of tags & attributes, everything else is same.
 
Phuc Bui
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear,
attribute "id" is not defined in Struts tag
Your code still does not work

Thanks
Phuc Bui
 
Sagar Rohankar
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Phuc Bui wrote:
attribute "id" is not defined in Struts tag
Your code still does not work


You find out, which attribute in html:form is rendered as "id"
 
reply
    Bookmark Topic Watch Topic
  • New Topic