How to figure out if users loggin in the system in JSP??
Hi, all
I am developing a website system which consist of
(Client Brower) <----> (JSP/Servlets) <--->(JavaBean)<----->(Database)
model, and the system is used to sell the DVD online, but I am just confused of how can I find out if the user is logged in or not?
Thanks to anyone who read and rely this.
use session variable or cookies to track the user if he / she is logged r not
Similar Messages
-
How to check if a user exists in the system ?
Dear Gurus,
I want to check whether a user ID exists in the system after logon by using VBA. If the user ID exists, then I will update the user's information with external data by using the method user.change.
When running below codes, error occurs and error msg is: "The persistent key for an business object instance of type USER has not been set. Cannot invoke method EXISTENCECHECK"
How can I do to check the user ID existence ?
Set oUser = oBAPICtrl.GetSapObject("user")
oUser.ExistenceCheck "MyUserID", return:=oReturn
Thanks and Regards,
Bao YanMickey,
I'm afraid I never did get this to work properly. However, in the way of all bad/good (delete as appropriate) programmers eveywhere I worked around this problem. I was using this code in Banner.asp to change the view based on the user group so if a given session variable was set a user would see a different view. It works fine with no slow down on the page and you should be able to adapt it to what you need.
Hope this helps.
Neville
Note: Application variables are ones I have defined in config.xml.
Code follows:
<!--START:INC\common\getgroup.asp-->
<% 'NAH 29/03/2004 ' 'This check the to see if the current user has the group in their membership that has been defined as the group to provide an alternative view of the portal.' 'The group variable is defined in the config.xml as "ALTVIEWGROUP"'
'Do not do this is we have already matched the group'If Session("groupMatch") <> "1" and Session("groupMatch") <> "2" then
Dim pGroup
pGroup = Application("ALTVIEWGROUP") Set Session("groupMatch") = nothing
Dim Plumtree
Set Plumtree = Server.CreateObject("ADODB.Recordset") Plumtree.ActiveConnection = "Driver={SQL Server};Server=" & Application("DBSERVER") & ";Database=" & Application("PLUMTREEDB") & ";" Plumtree.Source = "SELECT GROUPID FROM " & Application("PLUMTREEDBUSER") & ".PTGROUPMEMBERSHIP WHERE (USERID = " & strUserID & ") AND (GROUPID = " & pGroup & ")" Plumtree.CursorType = 3 Plumtree.CursorLocation = 2 Plumtree.LockType = 1 Plumtree.Open()
'If there are records we should have a match otherwise set the session varible to no match.' If Plumtree.EOF then Session("groupMatch") = "2" Else 'By getting here the user should have the matching group but complete one final check to make sure' If cInt(Plumtree.Fields.Item("GROUPID").Value) = cInt(pGroup) then Session("groupMatch") = "1" Else Session("groupMatch") = "2" End If
End If
Plumtree.Close() Set Plumtree = Nothing
End if%><!--END:INC\common\getgroup.asp--> -
How to find out list user who did the printing
Dear All,
We are using network print server using HP LaserJet 5550 and jetdirect, since our number of users is more than 500 staff in one place, sometimes they do the unresponsible printing such as print full color photos for personal use, print a novel and anything that not related to the business purpose.
Today, our director found out that someone print out a whole story book and spend a lot of paper... he challenge me to find out who is the user who did this? I can log on to the printer web console, but I can't find user log printing...
Any help will be much appreciated.
Thanks & Regards,
FrankyThis seems to be a commercial product. For the best chance at finding a solution I would suggest posting in the forum for HP Business Support!
You can find the Commercial Jetdirect board here:
http://h30499.www3.hp.com/t5/Print-Servers-Network-Storage/bd-p/bsc-254
Best of Luck!
You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too. -
How to figure out the properties of field/object ??
Hello
I have field (say, its name is field_1) in my_form and i am coloring yellow by using below code of initialization event:
this.ui.oneOfChild.border.fill.color.value = "255,255,191"; (Actually, just for differentiating / tracing back purpose here am assigning this yellow color to this field, you can suggest me any thing else that marks / tags this field (i can not populate a value, bcz its visible to user), so that in the CHANGE event of this field, again i want to check/get/know that whether this field is tagged/marked or not)
fine. But, because of some/below reason, i need to find out its color by using JavaScript, pls. let me know how to figure out its color is as yellow by using JavaScrit?
Reason: If field_1's color is YELLOW (or you suggested any tag/mark as said in the above in red text), then i have to make HIDE the field_2
Field_0's position is extreme left, Field_1's position is middle and the Field_2's position is exterme right of the page.
I guess, i hv only one option of finding out color, hence am looking forward for JavaScript to find out the color of a field in question
(OR)
Also, pls. let me know the JavaScript that How can i make HIDE a check box for that COMLETE session (i mean, starting from launching the form in the browser until he closes the window/browser/tab/form), i guess, this idea also workes for my requirement, ( i want to put this code in the docReady event) .....no matter/what ever code is existing there in any event of that field level
Thank youHi,
If you want to give a visual indicator to the user, then colouring the field yellow is probably a good approach.
However if you just want to keep track on the field, then you could test the field's value (.rawValue) and take appropriate action. In addition you can also attach a variable to an object using the <desc> element. It is a bit involved but you can find an example here: http://assure.ly/x1QObn.
Hope that helps,
Niall -
How to figure out server has capacity to install OEM 10 Grid control
How to figure out server has capacity to install OEM 10 Grid control
Hi Experts
I have HP_UX 11.11 server which has 1 instance on it with version 10.2.0.1.0.
Now I would like to install Grid control with a separate instance for repository.
I was told I would need 2 GB Ram for OMS and 2 GB Ram for instance.
Now how do I figure out if my server has enough resources from Ram perspective
Following is output from top and vmstat
1. for top it says 3045556K free , now is this free memory virtual(real +swap) or real?
2. as per top I only have free 3GB(3045556K) , so does that mean I can not have OMS & repository on
this server ?
3. In vmstat I see free memory as 762335
in man it says free - Size of the free list
what does this mean, how much is my free meemory ?
4. For OMS I read - It is a J2EE application that is installed and deployed using Oracle
Application Server
Now when I look at top I see these processes
0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java
Does oasadm user means Oracle application server ? If yes does it mean I will not
need 2GB for OMS ?
cov6817:plmbomdv $ vmstat 2 5
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
1 0 0 3348627 762335 69 11 0 0 0 0 0 1014 4916 671 12 1 87
1 0 0 3348627 762284 17 0 0 0 0 0 0 1040 10514 886 1 0 99
1 0 0 3330668 762284 10 0 0 0 0 0 0 1031 7820 872 0 0 100
1 0 0 3330668 762284 9 0 0 0 0 0 0 1033 6173 873 0 0 100
1 0 0 3330668 762284 5 0 0 0 0 0 0 1029 5468 891 1 0 98
cov6817:plmbomdv $ top
System: cov6817 Wed Jul 18 08:48:43 2007
Load averages: 0.02, 0.04, 0.03
267 processes: 215 sleeping, 51 running, 1 zombie
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 0.03 0.0% 0.0% 0.2% 99.8% 0.0% 0.0% 0.0% 0.0%
1 0.03 0.6% 0.0% 0.4% 99.0% 0.0% 0.0% 0.0% 0.0%
2 0.02 0.6% 0.0% 0.2% 99.2% 0.0% 0.0% 0.0% 0.0%
3 0.01 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
avg 0.02 0.4% 0.0% 0.2% 99.4% 0.0% 0.0% 0.0% 0.0%
Memory: 8733312K (7157492K) real, 15353696K (13382776K) virtual, 3045556K free Page# 1/10
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java
Thanks a lot
New DBAhow much is my free meemory ?Do you have kmeminfo command installed?
4. For OMS I read - It is a J2EE application that is
installed and deployed using Oracle Application Server
s oasadm user means Oracle application server ? If
yes does it mean I will not need 2GB for OMS ?Even if that java vm is an instance of Oracle AS (OC4J), the Grid Control installs a separate instance of AS. The choice to install OMS app to any existing AS home does not exist in any version I know.
Find out what more is running on the box and how much resources (i.e. RAM) those apps are configured with. -
How to find out which user create folder
how to find out which user create folder in shared drive?
Hello,
you have to enable Auditing in on the DCs OU and also on the top folder level where this should be monitored.
http://technet.microsoft.com/en-us/library/cc784387(v=ws.10).aspx
http://support.microsoft.com/kb/310399
Best regards
Meinolf Weber
MVP, MCP, MCTS
Microsoft MVP - Directory Services
My Blog: http://msmvps.com/blogs/mweber/
Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights. -
How to find out what user locked account
We had production type schema account locked this morning. I checked profile which this user belongs and it has 3 times for Failed Login Attempts. My question is how to find out what user had 3 unsuccessful login attempts and lock this account.
Oracle version 8.1.7Assuming that [auditing was enabled|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/security.htm#sthref2916], the command
AUDIT CONNECT WHENEVER NOT SUCCESSFULThat will write audit records when there is an unsuccessful login. Depending on how you've configured auditing, those records will either be written to the SYS.AUD$ table, in which case you can query them through a few different views, or to a file on the operating system that you can grep.
Justin -
How to find out all user exits edited
Hi All,
Would you know how to find out all user exits have been ever edited?
Can we find out those user exit by some tcode or table?
Thank you very much
Best Regards,
Calvin
Edited by: Sam Sum on Mar 2, 2009 5:09 AMHi,
Just try this in your system.
Go to SE38 and give ZX* and press F4.
Have a look at table MODATTR to find the active projects in your system.
Regards
Edited by: Rajvansh Ravi on Mar 2, 2009 5:17 AM -
Hi there,
How to find out which users are using SharePoint Designer to make changes in SharePoint 2010 site?
Thanks.You need to enable auditing on SharePoint server and it will let you know, if someone makes any critical changes for the same.
Please walk through this informative KB to enable auditing on SharePoint :https://support.office.com/en-za/article/Configure-audit-settings-for-a-site-collection-f5a346d0-ee0f-4412-a5e6-d9b5abaa1012
Here is one more resource :
https://support.office.com/en-in/article/View-audit-log-reports-4293e8d5-4e7d-4201-b8ac-c8e63a100131
Moreover, if you wish to audit such critical changes automatically, you may consider on this comprehensive application (http://www.sharepointauditing.com/) that helps to track every changes on SharePoint into
real time and provides the captured data at granular level. -
How to figure out ORA_12203:TNS unable to connect to destination?
OS: WSK
I have installed oracle817 and form6i in different directory in a machine
and defined two oracle home for them. I can access sqlplus through
OEM of oracle817, but I can not do the same thing through form6i,
the error showed me: ORA_12203:TNS unable to connect to destination.
But after installation, I have copied tnsname.ora of oracle817(oracle_home/network/admin) to tnsname.ora of form6i
(oracle_home_net80/admin). The same error slao showed me when I open
From Builder, droped the menu FILE --> Connect: system/manager/oradb,
TNS unable to connect to destination.
How to figure out this promble? I think maybe listener configuration
have some promble, but I am not sure how to do that?
COuld some give me some ideas? ThanksHi shay,
I have not fixed my problem. I defined two homes respectively:
Oracle817: Home_name: oraHome81
Path: D:\oracle
Form6i: home_name: orahome6i
path: d:\Form6i
But I'm wondering when I opened the ORACLE folder under
HKEY_LOCAL_MACHINE, All_Homes just show one home name:
oraHome81 or orahome6i, deponding on which I imported later.
So I like to ask do I need make the export/import
registery of ORACLE floder under HKEY_LOCAL_MACHINE
when you install oralce and form6i together?
By the way, let me attached the TNSNAMES.ora file which
configured by Oracle during installation:
# TNSNAMES.ORA Network Configuration File: D:\oracle817\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORADB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = name3)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORADB)
INST1_HTTP =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = name3)(PORT = 1521))
(CONNECT_DATA =
(SERVER = SHARED)
(SERVICE_NAME = ORADB)
(PRESENTATION = http://admin)
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO) -
How can i obtain a user guide for the ipod nano 16GB 5th gen. without printing it off the computor.
You can't, at least not the one provided by Apple.
B-rock -
How to find out web-inf path from the physical drive?
How to find out web-inf path from the physical drive?
I have some user profiles in web-inf directory.SO I want to know the path from root directory like
d:/program files/allaire/jrun/appname/web-inf/profiles/username like that.
Presently I am able to get the path upto the application directory and from that I am concatinationg web-inf/profiles/username .
But it is giving problems when it is deployed under unix or linux.Because web-inf there it treats as WEB_INF
SO I want to get the path of web-inf directory with out hard coding.
ThankuString path = application.getRealPath("/WEB-INF/profiles/username");
Note sure why you need this, but you don't need the real path to read the file - you can get an InputStream using the relative path. See ServletContext getResource() and getResourceAsStream(). -
I Have 2 users on my computer and both access i-tunes using same password etc. however 1 library has the full content of music but the other one has only partial playlists. How do I get both users to have the same full library?
The title of my initial post is a bit misleading. I already took a chance deleting one of the iPhones, hoping if I deleted the wrong one, I can still reauthorize it (all with the same Apple ID acct, so not subject to 90-day waiting period, right?) The iTunes database just updated itself, and it says I have 4 "devices" "in the Cloud", but 5 "computers" associated w my account. How can I find out what computers are associated? Isn't there a list I can see? I dont have a clue what computers they might be. If I use the "Deauthorize All" option, is it a pain to add them all back in. I assume I would have to log in from each computer to reauthorize each one. Would I have to be running the newest OS or version of iTunes to reauthorize? I think I have a PowerBook G4 Titanium with an older OS and iTunes. I'd like to keep that authorized, if possible.
-
How to find out if your Mac has the new Virus ?
How to find out if your Mac has the new Virus, and how to fix it ???
Helpful Links Regarding Flashback Trojan
A link to a great User Tip about the trojan: Flashback Trojan User Tip
A related link in the tip to a checker: Malware Checker Dowload Link
A Google search can reveal a variety of alternatives on how the remove the trojan should your computer get infected. This can get you started.
For now I recommend the User Tip from etressoft to detect and remove:
Checking for and removing the "Flashback" trojan
Kaspersky Flashback Trojan Site:Flashback Trojan Detection and Removal
Also see Apple's article About Flashback malware. -
Determin how many user log on the site using JSP/Servlet?
Hi all,
Is there a way to determine how many user log on the site using JSP/Sevlet? I'm running Apache 2.x & Tomcat 4.x
I'm trying to get a list of user currently log in the site.
Please help!
Thanks,
-JN-You could use the HttpSessionBindingListener interface. Every time a user logs into the session put a user object into the session. The user object will implement the HttpSessionBindingListener interface. When the user object is added to a sessiion it recieves an event and it increments a counter. When the session times out or you invalidate the session because the user has logged out the user object will recieve an event and it can then decrement the counter.
This will at least tell how many active user sessions there are.
Maybe you are looking for
-
How much would it be to fix a keyboard?
I would like to know how much it would be to replace all the whole keyboard on a macbook?
-
Can I create a generic Point to Row Column function?
I have a VI with multiple MultiColumn Listboxes in it. One way I've seen to make the entries writeable is as follows: This works fine. The only issue is that to get the 'Point to Row Column' (PtRC) method requires (as I understand it) right-clickin
-
Table to view the CO settlement document (not tcode)
What is the table to view the CO settlement document.I donot need transaction code..only table pls.
-
Incorrect lens name although lens id number is correct
I have two versions of the sony 70-400 ssm lens versions I and II. Both lenses are identified as 70-400 SSM. However if I examine the exif data in the xml sidecar for photos taken with these two lenses they have different lens IDs 53 for the first ve
-
Como descargar las fotos del iphone al pc si el pc no reconoce al iphone en el explorador?
¿Cómo puedo descargar las fotos del iphone al pc?. El explorador de windows no reconoce el iphone al conectarlo al puerto USB