Srinivas Reddy Patelu

Greenhorn
+ Follow
since May 06, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Srinivas Reddy Patelu

If you are running your ANT script from WASD, you can do like this. Right click your build.xml and then external tools. In classpath tab, add ejbdeploy.jar and run it.
If you are running from command prompt, add your ejbdeploy jar to class path and run it.

Some reason it's not finding through pathelement.

Thanks.
16 years ago
In your customer.jsp, call something like browse details(java script call)

<script language="javascript" type="text/javascript">

function callBrowseHierarchy(){
window.open("<%=contextpath%>/action.do","Browse","left=600,top=450,width=350,height=160,toolbar=0,resizable=0");
}

This will make a call to action class. Action class will thorow your generate.jsp as pop up window.

Thanks
16 years ago
public class LoggedInUserTable {
/** A Hashtable of all of the active users. */

private static Hashtable LoggedInUsers = new Hashtable ();

public static boolean isLoggedInUser (String username) {
return LoggedInUsers.containsValue(username);
}

public static void addLoggedInUser ( String sessionId, String username) {
LoggedInUsers.put (sessionId, username);
}

public static String getSessionId(String username) {
String sessionId = "";
Enumeration enum = LoggedInUsers.keys();
while(enum!= null && enum.hasMoreElements()){
String key = (String)enum.nextElement();
String value = (String)LoggedInUsers.get(key);
if(value.equals(username))
return key;
}
return sessionId;
}

public static void removeLoggedInUser(String sessionId){
LoggedInUsers.remove(sessionId);
}
16 years ago
Instead of Standalone Java client, try it from servlet. From Servlet you can call java calss if you want. Java class will contain lookup code. Thanks
Did you add your web module to application.xml? Thanks
16 years ago