Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Session object path retrival

Posted on 2012-04-09
7
Medium Priority
?
385 Views
Last Modified: 2012-05-18
Hi
i have Session.setAttribute("year",year); year contains the year id in Integer format // that is i am setting the data to session .

my Q is how to know from which previous pages in a project , from which this year is coming   .. i.e. year.

i wish to  get the class name /  page name  either from  the session object or is there any method to get the whole details of this circumstances..

thanks
0
Comment
Question by:darien_software
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 23

Assisted Solution

by:wdosanjos
wdosanjos earned 1336 total points
ID: 37824145
Unless you store that information on the Session as another attribute there is no way to know from what page the year value came from.
0
 

Author Comment

by:darien_software
ID: 37824174
yeah thats the problem, anothe programmer has created it and he is not there now am i am doing the maintainence part and no doc record regarding this session..
for past three days searching and couldnt find any..please suggest some other way out
0
 
LVL 23

Accepted Solution

by:
wdosanjos earned 1336 total points
ID: 37824191
You can try searching all the source code for the string setAttribute("year" perhaps that will point you to the right place.
0
Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

 

Author Comment

by:darien_software
ID: 37824213
hi
i am manually checking each source fill to find out about it but its too vast ..is there a way / tool in eclipse which can search through all source code and point out where that string is
0
 
LVL 23

Expert Comment

by:wdosanjos
ID: 37824284
Ctrl+H, enter the search criteria, make sure Scope is set to Workspace, and hit Search.
0
 

Author Comment

by:darien_software
ID: 37824306
ok will try and get back..thanks wdosanjos
0
 
LVL 20

Assisted Solution

by:Sathish David Kumar N
Sathish David  Kumar N earned 664 total points
ID: 37836164
>>>>>by: wdosanjos give correct answer
Ctrl+H, enter the search criteria, make sure Scope is set to Workspace, and hit Search.


in more accurate use file search tab in the search window .....
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question