Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SSL & relative urls.

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I've got a webapp running with apache 2/ mod jk2 and tomcat 5.5

I'm just starting to implement some security in the site, so when for example a user registers, the form post will (my intention) go to a HTTPS address..

The question I have is , is there anyway to still keep a relative URL for the post, at the moment, it goes to "/ValidateRegistration".. If I can, I'd like to avoid a fully qualified URL.

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the HttpServletRequest object has all the methods you need for this:

 
Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic