Tracking Page user clicked (*.jsp)

Hi,
I have a custom iView with 5 pages the user can drill. Is there anyway I could find within my Java code which page the user drilled from (Get the name of the *.jsp page user clicked).
Any help would be appreciated.
~NAC

Hi NAC,
    Try the following code.
public void OnClick(Event e) {
     String jsp_name = this.getJspName()

Similar Messages

  • How to save data in html format while user click a save button in jsp page

    Hi All,
    I have the following requirement
    If user click on the Save Button it should display a window which allows the user to select the directory and the data is stored in the Internet Explorer Format.
    Could please anybody suggest me how to impletment the above requirment in jsp page.
    It's very urgent. Please replay ASAP.
    Thanks
    Rajeshwari

    Analyzing ur ques ...
    If user click on the Save Button it should display a window which allows the user to select the directory and the data is stored in the Internet Explorer Format.hmmm..
    There is no html object type which supports directory selection for download. There is only an input type="file" which however is related to an upload scenario.
    By downloading the file using output stream u can achieve what you want.
    You simply need to do the following things ..
    a) Write to an output stream
    b) Set the content type to "text/html" for your response
    Example ....
    response.setContentType("text/html");
    response.setHeader("Content-disposition",
    "attachment; filename" +
    "Example.html" );
    javax.servlet.ServletOutputStream stream = res.getOutputStream();
    StringBuffer text = new StringBuffer(1024);
    text.append("some text . . . ");
    text.append("more text . . . ");
    stream.write(data);
    stream.close();

  • Including a jsp on the same page by clicking a button

    Hi,
    I have a jsp page where there are many controls and some buttons. If I click a buton called "Edit" I need to include a jsp page below the existing controls.
    Can someone please tell me how to do that?
    <tr>
    <td>
    <a><img name="View" src="view.gif" border="0"/></a>
    <a><img name="Edit" src="edit.gif" border="0"/></a>
    </td>
    </tr>
    this is thecode which I have for buttons in my page
    Thanks

    Using javascript, you could wrap the included page within a DIV tag or SPAN tag that is initially not visible. Then when the user clicks the button you would make the hidden DIV or SPAN visible.
    The visibility attribute can be set to visible (to see it) or hidden (to not see it). Here's a page that might shed some light:
    http://www.csctce.com/demos/dom_tutorial/
    HTH

  • How to make the page expired when user click back

    how to make the page as expired when i click back button on the browser.
    i want a better way.
    actually i have a timer.when it reaches 00.00 then the expired page will be called automaticlly using location.href="expired.jsp" then if the user clicks back it should not show the previous page.this concept is applied with paging concept
    response.setheader is not working ...
    i have redirect when click back using
    <body onunload>....i call another page here.
    but it is not a good way.
    so pls help me to solve this problem
    using session or another good way

    Use this instead.
    Frame.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);

  • Passing value to jsp page by clicking a hyperlink

    I have a hyperlink in a jsp page1. The hyperlink is for another jsp page2. I have a string value in JSP page1, which I want to pass to jsp page2 when user clicks the hyperlink. Can anyone tell me what will be the suitable way to do this? Thanks.

    here's the source to two very simple jsps that do what you want..
    <HTML>
    <HEAD>
    <TITLE>
    ForwardValue
    </TITLE>
    </HEAD>
    <BODY>
    <H1>
    Go To GetValue.jsp
    </H1>
    </BODY>
    </HTML>
    <HTML>
    <HEAD>
    <TITLE>
    GetValue
    </TITLE>
    </HEAD>
    <BODY>
    <H1>
    <%= request.getParameter("value") %>
    </H1>
    </BODY>
    </HTML>

  • Include a jsp file in the same page by click on a button

    Hello Everybody
    I'd like to control "my.jsp" page by clicking on some buttons. So if I click on Button1, f1.jsp go to be includeing in "my.jsp" or Button2 to include f2.jsp on "my.jsp" and so on
    Thank you in addvance

    In my.jsp you could put a form with n submit buttons whith different values of parameter "name", like this:
    ---My.jsp------
    <form method="yourMethod" action="My.jsp">
    <input type="submit" value="Button1" name="button1">
    <input type="submit" value="Button1" name="button2">
    <input type="submit" value="Buttonn" name="buttonn">
    </form>
    <%if(request.getParameter("button1")!=null){%>
    <jsp:include page="f1.jsp">
    <%}%>
    <%if(request.getParameter("button2")!=null){%>
    <jsp:include page="f2.jsp">
    <%}%>
    <%if(request.getParameter("buttonn")!=null){%>
    <jsp:include page="fn.jsp">
    <%}%>
    I didn't try it but it might work.

  • When user clicks OOTB Calendar Tool appears at top of page

    Hello Community
        Using Sharepoint 2010 server and UI when the user clicks on
    the OOTB Calendar the Calendar Tool at the top of the page appears
    giving them the access to things like: Calendar Overlay, Manage Views,
    Email a Link, RSS Feed, Export to Excel.
        How can I prevent the Calendar Tool from appearing on the page?
        Thank you
        Shabeaut

    Hi Shabeaut,
    You will not get Permission Level option into Calendars.
    For Permission Level you have to navigate to Site Action > Site Settings > Site Permission
    Or
    You can directly type http://site/_layouts/role.aspx
    You will definitely find View permission over there and then you can follow my instruction to create custom permission level
    Once you will create custom permission, assign it to intended user / group and then add that group / user to OOTB calendar.
    You can refer below video for how to create custom permission level in SharePoint 2010
    http://www.youtube.com/watch?v=UnxPwngzer4
    Let us know your results, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • How to get login page when user clicks on browser's back button

    Hi,
    I am using struts framework.
    I have set property nochache=true in response header of all pages.
    So, browser does not caches my pages.
    Now,when I am clicking on browser's back button, I am getting following message..generated by browser.
    Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button.
    Instead of that I want to show user a login page, when it clicks on back button.
    Can anyone help me?

    Hi,
    I agree with your suggestion.But my query is,
    If you have seen many credit card or banking websites,generally when user clicks on browser's back button,its redirectly user to login page of it for security reasons.
    I want to implement that kind of functionality.So need help on that point

  • To create popup message when user clicks on some quick link or area page

    Hi Experts,
    I have following requirement:
    1) User will login into Portal.
    2) User will be shown ESS / MSS tab pages
    3) User will click on ESS Area Page --> Training Home  or User will click on ESS Area Page --> Training Home --> Some Quick LInk
    4) As soon as user clicks on these links, one pop up message should be displayed to the user. This should contain some information from the R/3
    5) The above pop up message will be displayed if the user fulfils certain conditions (i.e. user has not completed training appraisal).
    How we can achieve this?
    Please help.
    Regards,
    Gary

    Hi Gary,
    Config table T7XSSSERLNK is for maintaining links in the Confirmation screen of ESS. Please look into this table to find out if this is of any help.
    Preetham Roy Aranha

  • How do I use JSP to track online user

    Hi,
    I am using JPSs to build a website,and I want these JSPs to detect and display how many users are active browsing on my website and their usernames.I know I can use session to track cocurrent users online,but I had to use some external class to do that,so my Q is that is there pure JSP solution for this without use bean or call other class?
    Thanks!
    John

    Okay,
    I am fairly new to the whole JSP thing, but I
    I understand what you are saying by putting the login
    names into a vector. What I don't understand is how
    you would set up the vector. I know this isnt going
    to be syntactically correct but for example - :
    In my file Logon.jsp lets say I have the following
    code:
    Vector v = new Vector();
    String LoginName = session.getValue("login");
    v.add(LoginName);
    Now the problem I see with this code is that
    t everytime someone logs in, Vector v is going to be
    reset to a new empty vector and instead of adding to
    an already existing vector, this code would just only
    be able to hold at most, one login name. Where would
    I declare my vector and how do I prevent it from being
    wiped out? I am new to this, so please dont bash me
    too hard.
    EdThis is why you would want to use an external class.
    Write a class which has the vector as an instance variable.
    The class should have a method to add to the vector
    when someone logs in and remove them when they log out.
    Use the <jsp:useBean ... scope='application'> tag in your JSP.
    This will make the class available to all JSPs in the application.
    The first time your class is called it is instantiated.
    After the first call it is read from the application object and
    is not re-instantiated. You can call your add/remove methods from
    a scriptlet in the JSP.

  • Problem in passing data from one .jsp page to another .jsp page

    i have a problem here
    Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
    The first jsp page contains data that user wants to update in the form of table.
    <td><img src = "edit.gif" alt = "edit" border="0" ><td>
    <TD><%= Name %></td>
    <TD><%= rs.getInt("Age") %></td>
    <TD><%= rs.getString("Gender") %></td>
    So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
    The problem here is that it is not displaying the existing data in the second .jsp page.
    The second page basically contains forms
    <INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
    Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advance

    Please modify below code to:
    td><img src = "edit.gif" alt = "edit" border="0" ><td>
    -----------------modified code
    td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
    I'm sure it works</a>

  • How to pass the value that the user clicks on

    I have a bunch of files that i am displaying. If the user clicks on a file I am taking to another page. I want to capture
    the value that the user clicks on as that's the file name.
    I am displaying the list of files in a loop and have a href to the next page.
    the setAttributes and getAttributes do not work as they capture only the last value in the loop.
    Any suggestions what I should use?

    The standard approach is to send a request parameter with the click.
    You are showing the filenames as hyperlinks?
    Then you just have to make the link
    <a href="fileDetails.jsp?fileId=<%= currentFile.getFileId() %>">currentFile.getFileName()</a>You can then use request.getParameter("fileId") to find which link was clicked.
    Cheers,
    evnafets

  • How to close a session when user clicks Logout

    In my jsp page i create a session for every user's name.
    when particular user clicks logut without closing his personal page,
    the others can access his page.
    so, how to close a session when clicks logout link.?
    similarly when user gets signin one system,he will not be sigin in other system.but how can we achieve this?
    Thanks in Advance

    What is the name of the session variable that you are creating on login? When he clicks logout, set that session variable to null. Like session.setAttribute("userName",null); and check for non-null condition before proceeding with any functionality in your jsp's.
    What is the second question? You want to prevent duplicate logins from different systems? You would have to maintain a static datastructure like a HashMap for instance. Everytime a user logs in, put an entry into the HashMap...like userMap.put("userName","userName"); If an entry already exists, throw a message saying that user already logged in from another machine...

  • How to forward an applet page to servlet/jsp?

    I have an applet in imageMap.jsp file. This applet displays a map. When user enters the page of imageMap.jsp, they will see the map . If user clicks a point of the map, the latitude and longitude of that point should be sent to Search.java servlet and search results should replace the current page.
    My Search.java servlet works well.
    I think I should add mouse event in the applet. I can use MouseEvent.getX() and MouseEvent.getY() in the applet to get latitude and longitude. But I do not know how to go from this applet to servlet. How can I forward applet page to servlet?

    The <jsp:plugin> action is used in pages to generate client specific HTML tags involving download and execution of the applet that is specified in the tag.

  • Can you track source of clicks on the "clickable" icons

    Can you track source of clicks on the "clickable" icons or track links in Dreamweaver?  I know about Google analytics for a page body but don't know for clicks.
    Thanks in advance

    It's called "event tracking".
    Here I will use Google Analytics and jQuery to record click event from any element with the class "clickable".
    <p class="clickable" id="clickable-element-1">Clickable element 1</p>
    <a class="clickable" id="clickable-element-2" title="Clcikable element 2" href="#">Clickable element 2</a>
    <img class="clickable" id="clickable-element-3" src="img/image.jpg" alt="Clickable elment 3" />
    <script>
        $(".clickable").click(function(e) {
            _gaq.push(["_trackEvent", "User interaction", "Click", $(this).attr("id")]);                          
    </script>
    More on Google Analytics event tracking: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
    Any tracking code should provide you with event tracking method. You can also write your own - I'd use AJAX call.
    Kenneth Kawamoto
    [link removed by moderator]
    Message was edited by: kennethkawamoto2   - Updated with slightly more "useful" example - hopefully

Maybe you are looking for

  • Problem with internal links created in iweb 06 after upgrading to iweb 08

    I have a site I created in iweb 06 and have uploaded to my own server (not .mac). After switching to iweb 08, I have found that any blog entry that has a title with punctuation of any kind results in a broken link (404 page not found error). I am usi

  • How can you set up to sync 2 ipods on one computer

    I have 2 ipods and want to set them up on 1 computer how do I do that?

  • Ideal resolution (dpi) for standard 24"x36" posters?

    There has long been debate at the various studios I worked for regarding ideal poster size resolutions. For 24"x36" posters, some studios work in full 300dpi. Others find that resolution too demanding on the computer, and work at half-size (150dpi).

  • DYNAMIC QUERY FOR INSERT USING SELECT

    Hi All, I am facing an issue...I am un bale to do an dynamic query. i have explained my code and the sample create, insert statements. I shud insert values in a table using a select statement dynamically.. create table listing (tel_no varchar2(16), l

  • Overlapping Of Message

    Hi All The ABAP Gurus, I have made a BDC Program For Vendor code creation by using Call Transaction XK01. It is working fine I am using it for multiple vendor creation. After successfull creation I have displayed an ALV of all the Vendor code created