Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

url parameters

 
khurrum abdullah
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i am using parameter in my url through links for example /mypage.jsp?id=12&name=abc.
now users can see these parameters in url and they can change the values (eg. /mypage.jsp?id=34&name=def). this can cause pages to behave differently. i want to detect if user has changed id and name by himself. what would be best approach in sovling this problem.
Thanks,
Khurrum
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi khurrum,
I would suggest, you validate the id and the name on every JSP page for which you would want the user to access.
When client requests a page, he would be assigned and id and a name by your web server.You may consider storing this in some temparary variables, probably in the Session implicit object to validate it with the id and name, in case the user makes anu changes.
Hope this helps.
Regards,


------------------
Sandeep Desai
vgdesai@bom3.vsnl.net.in

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic