• 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 2 webapps

 
Ranch Hand
Posts: 296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I previously built a webapp using form based authentication (j_security_check, etc.) and protected directories for regular HTML browsers.

Now I want to build a second webapp for WAP browsers using the protected content from the first webapp.

I setup a subdomain for this second webapp (ie. wap.mydomain.com) and it's pointing to a directory called "wap" inside the first webapp.

I am able to login with the second app but I'm having a problem with the error page; it always takes me to the error page of the first webapp.

I know this error page is defined in web.xml, but I don't think it's possible to define two different error pages.

I guess I could make up a generic error page for both logins but that's not ideal...

Maybe it's possible to define two webapps that share resources in web.xml?

Am I going about this all wrong?

Thanks,

Drew
 
Ranch Hand
Posts: 225
IBM DB2 Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Drew Lane:
I previously built a webapp using form based authentication (j_security_check, etc.) and protected directories for regular HTML browsers.

Now I want to build a second webapp for WAP browsers using the protected content from the first webapp.

I setup a subdomain for this second webapp (ie. wap.mydomain.com) and it's pointing to a directory called "wap" inside the first webapp.

I am able to login with the second app but I'm having a problem with the error page; it always takes me to the error page of the first webapp.

I know this error page is defined in web.xml, but I don't think it's possible to define two different error pages.

I guess I could make up a generic error page for both logins but that's not ideal...

Maybe it's possible to define two webapps that share resources in web.xml?

Am I going about this all wrong?

Thanks,

Drew




Hi Drew ,
Y wont u try the jsp <%@page %> attribute "ErrorPage" to point ur inner wap domain. Try ..

by the by how to configure inner like wap.myWebApp.com , Let me know the steps , eben i am trying but in vain.So let me know the steps from scratch..

regards
gowtham g r
grgowtham_cse@yahoo.com
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Gowtham, JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

Please read this for more information.

thanks,
bear
Forum Bartender
 
Quick! Before anybody notices! Cover it up with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic