my dog learned polymorphism*
The moose likes Servlets and the fly likes Copy and past link problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Copy and past link problem" Watch "Copy and past link problem" New topic
Author

Copy and past link problem

mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

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)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

You should be performing extensive checks in your model to make sure that the logged-in user has permission to see the data.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

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

Joined: Mar 18, 2011
Posts: 243

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
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

Impossible to say with the scant information you've provided.
mallikarjun dontamsetti
Ranch Hand

Joined: Mar 18, 2011
Posts: 243

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

Joined: Mar 18, 2011
Posts: 243

Hy i got solution i did a basic mistake that

Instead of this i use


and


This solved my problem
 
 
subject: Copy and past link problem
 
Similar Threads
File upload
security on PDA
installation..
MVC - Downloading a file created on the fly
choosing the right scope for a java bean