• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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: 1512
  • 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?
 
Get me the mayor's office! I need to tell her about this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic