Deepak MP

Greenhorn
+ Follow
since Dec 01, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Deepak MP

I am trying to write a unit test (Junit way) for a Swing application using Abbot framework. The examples unit test which come with Abbot, is cumbersome when you have multiple components on same time in your application.
The approach mentioned in the article web page > seems to be good. The approach mentioned is to use ComponentReference & Component Testers classes. I have tried to follow the example and use the same for my application, but it has compilation problems.
Can any one post a sample Swing Application unit test written using Junit / Abbot framework?

Regards
DEEPAK
19 years ago
Eclipse framework provides plugins like SWT & JFace, to develop UI. SWT is an API similar to AWT/Swing.
Hi,
Can you please post the stack trace ? or what error you are getting?
DEEPAK
20 years ago
I am trying NTAuthentication using JAAS. I have a signed applet in a JSP page which will run at the client and execute JAAS code. Login class using LoginContext is in a jar file. Applet is able to locate the configuration file, but is not able to read the configuration entry i.e "NTLogin".
Following is the part of code & exception :
**Part of Login Class
--
login() method
LoginContext lc = new LoginContext("NTLogin", new LoginCallbackHandler());
-----------------------
**Entry in the login configuration file is ::
NTLogin
{
com.ntlogin.auth.test.NTtest required returnNames=true returnSIDs=false;
};
-----------------------
** Part of applet code
Login() mLogin = new Login();
System.setProperty("login.config.url.1", "file:C:/local/tomcat/webapps/examples/myexample.login");
mLogin.login();
// login method is called thru JavaScript in the JSP page.
-------------------

Exception as :
java.lang.SecurityException : Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>
Caused by: java.io.IOException : Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java : 206)
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java : 95)
---------------------------
Can anyone suggest how to execute JAAS code using an applet.
Regards,
DEEPAK
20 years ago
Hi,
I have a applet to be displayed in jsp page. JavaScript function Initilize() is called on load of the page. Initilize() is iterating in a loop to initilizes 3 applets(number may vary at runtime).
I am using SunJVM1.4.1_01.
All 3 applet is getting initilzed with applets defined by <applet> tag.
When I try to call theses applets defined with <object> tag, only the first applet get initilized. I need to initilize all 3 applets in order to make my application function.
Does anyone has a solution to initilize all 3 applets using <object> tag. I need to maintain the iterating mechanism mentioned above.
DEEPAK
21 years ago
Hi,
I have an application which has few applets (UI & non-UI applets). Java Script codes call the methods of non-UI applets to do certain verifications. Everything works fine while running on Internet Explorer 6 (with Microsoft VM).
When I tried to run this application in another machine with Sun Java VM 1.4.1_01 enabled in the IE, everything works fine.
However when I try to access the same application with Sun Java VM 1.3.1_06 enabled, applet code donot function properly. I get grey screen for UI applets & for non-UI applets Java Scripts is not able to call the methods in the applet. I have checked and found that applets init() is called, but applets doesnt seem to be working. Any help / suggession will be appreciated.
DEEPAK
21 years ago
I have my class UserDate.Class in c:\myfolder\myclasses. and I have added this to the classpath. I am using tomcat 3.3.1 and JDK 1.4 is installed on my system. I am using servlet 2.2 and jsp 1.1 . why am I getting the following error.. please help..
PUT THE UserData.class in WEB-INF FOLDER.
DEEPAK
21 years ago
JSP
My code for Hello.jsp:
<%-- Hello.jsp --%>
<%@ page import = "mypackage.HelloBean" %>
<jsp:useBean id="hello" class="mypackage.HelloBean" >
<jsp:setProperty name="hello" property="*" />
</jsp:useBean>
Hi,
I think you have missed the "scope" attribute in the useBean tag. Hope it helps.
Good luck
Deepak
21 years ago
JSP
HI,
I have an applet that has date checking functions in it. Now i want to call these functions from javascript.
When i try to access these methods i get a javascript 'Object error' message.
Please help me.
Deepak M P
hi,
While making the database of questions & answers, you can have a column indicating the answers(in case of Multiple answers seperate it by some string(",")) and column in database indicating the type of answers i.e multiple answers[checkbox] or single answer[radiobutton] or editanswer[textarea]. The question can be displayed in a JSP, by making a call to JSP / Servlet (which in turn may request the database for next question OR can store all the questions along with it answers for a given test in a Java Object and get the information to be displayed from this object).
-----------
You can try the below logic to implement.
ValueInDatabase : is the value got for the column entry indicating the type of Question.
if (ValueInDatabase.equals("Single"))
{
//Implement display logic for JSP for Single Answer(i.e with RadioButtons)
}
if (ValueInDatabase.equals("Multiple"))
{
//Implement display logic for JSP for Multiple Answers Type (i.e with Check box)
}
if (ValueInDatabase.equals("TextArea"))
{
//Implement display logic for JSP for Text Area Answer type
}
-----------
Answers can be stored in HttpSession variable and then be compared at the end of the test.
I hope it help.
DEEPAK
21 years ago
JSP

Originally posted by Nidhi Juneja:
Hello All...can any one give me an idea about what will be the logic behind making a mock exam style program. If I make a database of set of questions and answers and the answers type are mixed like a checkbox, radiobutton , textarea....how do I introduce this and also for a given user how is his answers stored in order to evaluate at the end
If anyone could suggest some links where i cud find such a code will be very helpful
Thanks
Nidhi

21 years ago
JSP