• 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

Cracking Question

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello friends...Please help me out regarding this question...


Generally we can authenticate a servlet while accessing directly..but...

How can we protect our servlet being accessed from other programs within the same appl...

As I know there is a tag in DD to do this, but I am unable to get it...

Thanks in advance....
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


As I know there is a tag in DD to do this, but I am unable to get it...



I don't think there is a tag like that. But why do want to protect your servlet from being accessed with your application?
 
Mahendar Reddy
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vishnu Prakash:


But why do want to protect your servlet from being accessed with your application?



first of all thanks for ur quick reply Vishnu...Here is some expl...

Some times I may want to protect some of my appl servlets(not all) from unauthorized persons.

Assume that my home page is having hyperlinks to
5 servlets, in which 3 of them deal with confidential matters...and other two are not. So I don't want to protect other two, so that anybody can access them. Now I want to authenticate/authorize the users who will try to access my 3 confidential servlets. What should I do?...



 
Ranch Hand
Posts: 1514
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't you just check within your applicatoin if the user is authorized before allowing access?
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic