No of user currently using a particular jsp file

hi
i have two questions
1)
i have a jsp page . i want to get the names of all users in the server who using that jsp currently.
2)
I have a jsp page . i want to retrieve all the names of the jsp, bean files which have been used by that jsp page.
Thx in Adv
Pradeep

U wanna 2 liszt all acteev HTTP ses'ns? (Is it r3ally eezr 2 reed'n'rite w/ abbrs leek "thx", "ur", ...? Should I really bother answering a question that is so unimportant to you that you can't even be bothered to type the vowels of "are" in your question?)
I can't see a really good way to do that, offhand. There's HttpSessionContext which would do it, but that's deprecated. Maybe a hack using HttpSessionBindingListener would do it (assuming single web server).
The really real way would be to write your own session manager and put in a getAllSessions() method (or find a ready session manager that has it.) If needed, think about multi-server clusters: if the web servers store sessions in a database, you'd need to get the list from there.
Or, in other words: "uh, are you really sure you want to go to all that trouble...?"
How about this: log user ids in the web server log at each page access. To get an approximate head count, take the last half hour of the log and "sed | sort | uniq | wc -l".

Similar Messages

  • When did a user last used a particular Responsibility.

    Hi,
    I am looking for a way which can provide me information regarding when did a user last used a particular Responsibility ( eg CIC User,CRM Administrator etc).
    For eg , If I last used CIC User responsibility last on 30th March 2015, then is there anyway I could fetch this information ?
    Any help with backend query or front end navigation would be much appreciated.
    Regards,
    Praveen

    Thanks Ahmed Abbas, this works perfect 
    please don't mind but I have modified the query a little so that exact responsibility could come up  and kindly suggest if this is okay
    SELECT user_name,
           frt.responsibility_name,
           fr.responsibility_key responsibility,
           (SELECT user_function_name
              FROM fnd_form_functions_vl fffv
             WHERE (fffv.function_id = A.function_id)) "Current Function",
           TO_CHAR(first_connect, 'DD/MM/YYYY HH:MI:SS') start_time,
           TO_CHAR(last_connect, 'DD/MM/YYYY HH:MI:SS') "Date and time of last hit",
           TO_CHAR(SYSDATE, 'HH:MI:SS') CURRENT_TIME,
           session_id,
           (SYSDATE - last_connect) * 24 * 60 mins_idle,
           fnd_profile.value_specific('ICX_SESSION_TIMEOUT',
                                      A.user_id,
                                      A.responsibility_id,
                                      A.responsibility_application_id,
                                      A.org_id,
                                      NULL) TIMEOUT,
           counter "How many hits a User has made",
           A.limit_connects "Num of hits allowed in session"
      FROM icx_sessions A, fnd_user b, fnd_responsibility fr,fnd_responsibility_tl frt
    WHERE A.user_id = b.user_id AND
           fr.responsibility_id(+) = A.responsibility_id AND  fr.responsibility_id = frt.responsibility_id and
           user_name = nvl(:USER_NAME, user_name) and
          upper(frt.responsibility_name)=upper(':P_resp_name') --upper (fr.responsibility_key)  = upper(':P_resp_name')
    ORDER BY last_connect DESC;

  • How to use class in JSP file?

    Hello All,
    I am new to Jsp.
    In Jsp file,I used class of myself.
    Why,the Constractor seems not working?
    Thanks in advance.

    Hi,
    You can import the class in a jsp file.
    Use <% page import = "">
    and call that class.
    If u want to import a funtion in your class, then u can insert that into scriplets like <%! ..%>
    Hope u got that!
    Artz

  • User Authentication using Servlet and JSp

    Hi,
    I am developing a web app where i need to implement user Authentication to allow members to view and upload files on a certain directory say /data
    For this i am using a servlet as a controller which then forwads request to other jsps/servlets based on user response. I tried using servlet mapping in web.xml so that all browser requests would be directed to controller servlet and would branch from there on. However the problem all RequestDispatcher.forward() requests redirected to the servlet putting it in a loop.
    Is there another way to achieve this. (Apart from using form-based Basic Authentication).
    I am using Resin 1.2.8 servlet/jsp container.
    Any response as soon as possible would be appreciated.
    Thanks,
    Kushagra

    RequestDispatcher.forward() cause the HTTP request to be sent through the request processing flow as if the original request for the resource being forwarded to.
    It seems the servlet mapping you are talking about in web.xml should be made more specific. i.e. the mapping should be such that only your so called controller servlet will match up.
    You might want to specify the mapping for the controller servlet to be noticeably/effectively different from the mapping for other servlets and JSPs.

  • I want to force a user to use a particular number series

    Hi,
    I have setup my journal numbers such that under document numbering setup => Journal enteries I have the following document numbers
    Name        Start No    Next No
    Primary             1 
    Transact        400001 400016
    Jnls               600001
    The default is setup to Transact, so all system journals are posted against this number series (so all transactions effectively).  I want one of my users to be able to input journals but they must use the Jnls number series.  Unfortunately they are not responsible enough to always check the top left corner of the journal entry screen to make sure they are posting into the correct series. 
    How can restrict them so that they can only post into this series?  (Obviously they need to be able to continuing posting AP/AR invoices which will ultimately be posted against the transact series).
    Thanks
    Dan

    Hi Dan,
    Please check in Test if it can help :
    Create two Journal Entry series and when you try to SET DEFAULT the series by clicking on Set Default, then you can assign it to specific user or to all the users.
    Check if this is what you are looking for.
    Regards,
    Jitin

  • HOW TO: View users currently using my shared music on LAN

    Is it possible to see a list of the users that are currently accessing my music share?

    Sure! Their names will be under XXX's music in your source list. Your music can't be shared through anything but iTunes, so you'll see theirs too. It may be locked, and you may not be able to share it, but their name will show.

  • Using SQLJ in JSP files ... ?

    Hi,
    has anyone used oracle 8.1.5 SQLJ with JSP pages? In partucilar, with Apache Tomcat 3.0?
    Help much appreciated, direct mails ([email protected]) preferred!
    Cheers, all - keep up the good work!
    null

    Hi,
    Yes, OJSP inside JDeveloper cannot currently handle the language="sqlj" extension. A workaround is to name your file Foo.sqljsp.
    Before running the JSP on a webserver you will need to map the sqljsp extension to the class oracle.jsp.JspServlet, just as for OJSP setup, and then you can hit the page directly:
    http://<host>:<port>/SQLJQuery.sqljsp
    Let us know if you have problems..
    - Julie
    null

  • How to use JDK5.0 new feature code in tomcat 5.5.9, jsp files

    Hi Everyone:
    I am trying to use JDK5.0 new feature code -- for loop in jsp file , but got compile error , i try the same code in the java file which is working fine. i am wondering is it tomcat jsp compiler problem ?
    following is my code and error msg
    /* jdk 5.0 new feature, but cannot use in this jsp file, tomcat version? or setting problem ?
    for (Thumbnail thumbnail : thumbnailList){
         System.out.println(thumbnail.getAbsolutePath());
    // following is working fine in jsp
    Iterator iter = thumbnailList.iterator();
              while(iter.hasNext()){
                   Thumbnail thumbnail = (Thumbnail) iter.next();
                   out.print(thumbnail.getAbsolutePath()+"<BR>");
         %>
    the error msg is :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 16 in the jsp file: /test/testImageGallery.jsp
    Generated servlet error:
    Syntax error on token(s), misplaced construct(s)
    An error occurred at line: 16 in the jsp file: /test/testImageGallery.jsp
    Generated servlet error:
    Syntax error on token ")", : expected
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I am using fedora core 4 x64bit , tomcat 5.5.9,
    java -version
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)
    tomcat settings
    tomcat5/bin/catalina.sh run
    Using CATALINA_BASE: /home/normal/tomcat5
    Using CATALINA_HOME: /home/normal/tomcat5
    Using CATALINA_TMPDIR: /home/normal/tomcat5/temp
    Using JRE_HOME: /home/normal/jdk1.5.0_04

    The JDT compiler that Tomcat installs by default is only 1.4 compliant.
    You can use ant instead:
    remove the common/lib/jasper-compiler-jdt.jar file
    place ant.jar file from the latest Ant distribution in the common/lib folder.
    If you do this, you also need to use the "javac" argument to catalina.sh.
    Documentation reference: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html

  • Storing .jsp files in the web-inf directory

    Has anyone ever heard about storing JSP files in the web-inf directory instead of the web app root directory.
    Apparently it improves security.
    If this is so, how is the user suppose to access the jsp file since I thought that users were not able to access what is stored in the web-inf directory.
    Any thoughts
    Thanks
    Nat

    I didn't tyr this but I think it is possible. You can do it using <servlet-mapping/> as you do with any other servlet.
    For example include lines below, in web.xml of web-inf,
    <servlet>
    <servlet-name>ReportRouter</servlet-name>
    <jsp-file>/web-inf/jsp/ReportRouter.jsp</jsp-file>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>ReportRouter</servlet-name>
    <url-pattern>/myrouter</url-pattern>
    </servlet-mapping>
    This may work. Don't you think so?
    Sudha

  • Java class bean can not access to DB in JSP file

    Hi, I wrote a java class bean in order to access to MySql database ,and this bean is used in a JSP file,so that the bean can query from DB and then display the queried information on the JSP file,but it can not work correctly,the following is the source code and error message popup by the system,
    does anybody has experience in solving thus question,Please reply ,Thank you for your help.
    %@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ page import = "java.sql.*" %>
    <jsp:useBean id="conn" scope="page" class="news.conn"/>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>1</title>
    <style>
    <!--
    A:link {
         COLOR: #993399
    .s {
         FONT-SIZE: 13px; LINE-HEIGHT: 170%; FONT-FAMILY: "utf-8"
    -->
    </style>
    </head>
    <body>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
    <td width="100%">
    <img border="0" src="images/ruanjian.jpg" width="770" height="154"></td>
    </tr>
    <tr>
    <td width="100%">@</td>
    </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
    <tr>
    <td width="13%">@</td>
    <td width="87%">
    <img border="0" src="images/mid-rdxw2.gif" width="101" height="18"><p>
    <%
              ResultSet rs,rsNest;
    String strSql=null;
    strSql = "select * from news where TYPE=1";     
              rs = conn.executeQuery(strSql);
              while (rs.next()){
    %>
    <span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt(id")%">"><%=rs.getString("Title")%></a><br>
    <%
    %>
    <p>
    <img border="0" src="images/mid-hyxw2.gif" width="94" height="19"></p>
    <%
    strSql="select * from news where TYPE=2";     
              rs = conn.executeQuery(strSql);
              while (rs.next()){
    %>
    <span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt("id")%>"><%=rs.getString("Title")%></a><br>
    <%
    %>
    <p>@</td>
    </tr>
    </table>
    <p align="center">Study Online</p>
    <p align="center">@</p>
    </body>
    </html>
    Error message:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /newsMain.jsp:47
    44: strSql = "select * from news where TYPE=1";     
    45:           rs = conn.executeQuery(strSql);
    46:           
    47:           while (rs.next()){
    48:
    49: %>
    50:
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.newsMain_jsp._jspService(newsMain_jsp.java:98)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 l</a>

    nogoodatcoding wrote:
    Tolls wrote:
    Is that Jasper Exception telling us where the problem is in the jsp, though?
    If it is, then "rs" is null in the call rs.next()...which means conn.executeQuery() is returning null. Which means that whatever class conn is (news.conn?) has a problem maybe?That's possible. Though, it may just be the case that the 'conn' object itself is null! That line is the first place where it's being used and there are no checks that I can see...we'll have to wait for the OP to investigate and reply I guess.That's what I originally thought, then I noticed it was saying line 47, which is the rs.next() line. Assuming Jasper is correct in its choice of line, then it's the rs that's null. Which means the conn is doing strange things.
    Edit: Now that I think about it, going by the previous thread the OP posted, I'm wondering whether news.conn class is their attempt to move the JDBC stuff out of the JSP page, and it's grabbing the "real" connection (java.sql.Connection) and getting the result set and returning it...or getting something wrong and returning null.
    Edited by: Tolls on 11-Jun-2009 12:24

  • Location of JSP files

    Hi,
    I'm trying to get it so that I can put my JSP files in a directory other than O:\ifs\webui\jsps. Where would I make this change? I want to do this so that I don't need to put ifs/webui/jsps at the end of the url for my site. Any help would be greatly appreciated.
    Thanks!

    OOB you should put your JSP files in folders underneath \ifs\jsp-bin.
    To add other directory roots edit the file
    IfsDavServletParameters.properties
    found in the folder
    <ORACLE_HOME\ifs1.1\settings\oracle\ifs\protocols\dav\impl\properties>
    Look for the entry
    #JSP Properties
    ifs.dav.jsp.alloweddirs=/ifs/webui/jsps|/ifs/jsp-bin|/home/gking
    As you can see from the above example I've added an entry allowing /home/gking to be used to host JSP files
    null

  • Compile jsp file for long time

    Hi All,
    I'm applying patch on EBS 11.5.9, now it's compiling jsp file for about 1hours.
    Below is the log file,
    enumerating jsps...13577
    updating dependency...13
    parsing jsp...13
    writing deplist...13577
    initializing compilation:
    eliminating children...10257 (-3320)
    searching uncompiled...13 (10 were stale)
    translating and compiling:
    searching untranslated...13
    translating jsps...
    Please advise.
    Thanks,
    Kevin

    I'm applying patch on EBS 11.5.9, now it's compiling jsp file for about 1hours.
    Below is the log file,What is the command you use to compile JSP file?
    It is normal for compiling JSP files to run for more than 1 hour, which depends on the hardware resources you have. So, I would suggest you wait and see if the job completes successfully.
    Thanks,
    Hussein

  • Another user of your computer is currently using this connection. This user must disconnect before you can log on.

    Hello
    I have a single computer that is going to be shared between 5 people. In an effort to save time. I wanted the users to have a single shared LOCAL login to the computer.
    Then each user could pull up an RDS session through RDWEB on our 2012 r2 RDS farm.
    However, when I attempt to log in more than one user through RDWEB I receive:
    Another user of your computer is currently using this connection. This user must disconnect before you can log on.
    I have done some research on this, and followed this advice, and did the following steps on all my RDS session host and broker servers
    Enable Multiple RDP Sessions
       -  Log into the server using Remote Desktop.
       - Open the start screen (press the Windows key) and type gpedit.msc and open it
       - Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections.
       - Set Restrict Remote Desktop Services user to a single Remote Desktop Services session to Disabled.
       - Double click Limit number of connections and set the RD Maximum Connections allowed to 999999.
    However, it did not solve the problem. Anyone have suggestions?

    Hi Michael,
    In addition you can try below registry setting for multiple remote session.
    HKEY_Local_Machine\SYSTEM\CurrentControlSet\Control\Terminal Server
    fSingleSessionPerUser     REG_DWORD     0x00000000
    Note: By default the registry value is set to 1, but you need to change to 0.
    Also if you are making connection through gateway then recheck whether the setting is enabled on gateway side for multiple session.
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5. I am receiving an error problem when doing the following -  I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive whe

    Hi, I am having a little trouble with exporting images to another drive and Catalogue and need some help if anyone can give me some advice
    I am currently using Lightroom 5.6 and operating on a Mac with OSX Ver 10.9.5.
    I am receiving an error problem when doing the following -
    I am exporting selected photos from a particular Catalogue saved on Drive 1 to a folder created on another Drive where a Lightroom Catalogue has been created. In this Catalogue I have arranged for the images once exported to be moved to a different folder - I used the Auto Import process under the File dialogue box.
    When processing the Export I receive an error message for each of the images being exported indicating the following -
    Heading Import Results
    Some import operations were not performed
    Could not move a file to requested location. (1)
    then a description of the image with file name
    Box Save As                                  Box  OK
    If I click the OK button to each image I can then go to the other Catalogue and all images are then transferred to the file as required.
    To click the OK button each time is time consuming, possibly I have missed an action or maybe you can advise an alternative method to save the time in actioning this process.
    Thanks if you can can help out.

    Thank You, but this is a gong show. Why is something that is so important to us all so very, very difficult to do?

  • List of users who used particular tcode

    Dear All,
            Plz help me in this issue, I want the list of all the users who had accessed particular t_code in last three months, i had checked in suim, usr tables and in su01, i just want the screen where i can select t_code and the date to access the user names who had used that t_code in these days, thanks in advance.

    Hi,
    From my knowledge there is no standard screen answering your requirement.
    You can get dig out this information from ST03, but it is by month and it will give all transactions.
    If you really need it, it 's up to you to fire SE38 and write your own abap report !
    Regards,
    Olivier

Maybe you are looking for