web-applications

how to list out all the logged on users in a web application using jsp,servlets

痴心易碎 提交于 2019-12-14 04:05:55
问题 I need to list out all the logged on users information(username) and i have to show the list like online friends list in gmail or orkut. I am using JSP and Servlets. can anybody help me in this regard. Thanks in advance. 回答1: You need to maintain a server side session. For example, you can

Why does the log4j2's ${web:rootDir} web lookup cause issues at the deployment in weblogic 12c?

眉间皱痕 提交于 2019-12-14 03:58:23
问题 The log4j2's web lookup - ${web:rootDir} seems to cause problems on weblogic 12c deployment. I suspect that the log4j2 web-lookup plugin is not initialized when weblogic requests the logger at the start of deployment and is unable to create the file. What I've done - Added slf4j in weblogic

call a java program from a webapp in tomcat server - the java program is out side of tomcat server

可紊 提交于 2019-12-14 03:54:26
问题 I have a webapp in tomcat server. also i have a java program outside the tomcat server - in linux machine root. i need to call the java program outside and get a response to the webapp. is this possible to do? Please give me an answer? Thanks in advance. 回答1: You can use exec method on runtime

Which J2EE web development framework to choose for a simple, accessible application?

喜你入骨 提交于 2019-12-14 03:45:32
问题 I want to write a simple web application, on J2EE, with these characteristics: I don't need any AJAX, and it should even work with JavaScript disabled on the browser. It is a simple CRUD application I would need full control on the way each element is laid out on the page - no compromise on the

Security risks and appropriate measures while using PHP for taking database dumps/backups of remote databases

孤人 提交于 2019-12-14 03:17:32
问题 Of course there is possibility of script timeout exceeding etc. (unless set accordingly) when using PHP for taking database backups/dumps. But ignoring these non-security related things what are all the security issues involved. I read somewhere that since the backup needs to be created in the

I get unexpected T_VARIABLE error when i open facebook application with this code.Please make this code correct

一笑奈何 提交于 2019-12-14 03:01:33
问题 <?php session_start(); require_once 'facebook.php'; $app_id = "418907881455014"; $app_secret = "36389d2c4caaf6de86982cb87686a494"; $redirect_uri = 'http://gooogle12.comuf.com' $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true )); $user = $facebook-

Connect to internet : Google Custom Search in java app “not connecting” ()

ⅰ亾dé卋堺 提交于 2019-12-14 02:35:48
问题 I am starting out on using google custom search api in java but it is just not connecting. I am receiving json data from google.(i am supposed to but it is not connecting..:() HttpResponse response = httpClient.execute(httpGet); // exception is thrown at this point. which is a line in my code.