Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Copy and past link problem  RSS feed

 
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am developing a test application with servlets , JSP and hibernate. My problem is if user search data in my page and if he get some result he can copy and paste the URL to any one so that they can see that data. When do so in my application it is showing a blank page what to do.

Like if i found some topic related to servlets in Code ranch i'll forword that link to my friend. If he open that link it has to show the data(it is not happening in my case)
 
Marshal
Posts: 67191
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should be performing extensive checks in your model to make sure that the logged-in user has permission to see the data.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
User may not be logged in to view that data he can directly access the link(data coming from database). Like viewing questions posted by any user can be viewed by other user(without login in coderanch, in which the data is comming from DB i think).
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed upto this check the link click on menu bar "Job Search" then you will find search and after do empty search will get some records from db. If user copy and paste link in other browser then it is showing an empty page why?
 
Bear Bibeault
Marshal
Posts: 67191
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Impossible to say with the scant information you've provided.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok i'll provide som sample code which replicate my application








bean class i don't uploaded when i execute this i am getting data. After getting data when i copy and paste the link in different i am getting blank page. How to overcome this.(i know data is in session)
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hy i got solution i did a basic mistake that

Instead of this i use


and


This solved my problem
 
I'm so happy! And I wish to make this tiny ad happy too:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!