sarim raza

Ranch Hand
+ Follow
since Nov 02, 2000
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 sarim raza

when user clicks back button of browser i want to log him out (that works) and i also want to post his name to a jsp page that deletes it from the database (this does not work)..
it works in other places in the applet but not when i call it from stop() method of applet ?
is this ok to do and how can i debug ?
println statements show that execution is going into posting to jsp, but the jsp page returns nothing back .. so i dont know how to debug
21 years ago
in my applet if a user clicks the browser back button, i assume my applet stop() method gets called
inside that stop() method i have made a posting to a jsp page, but it doesnt seem to work, is what i am doing possible ?
all other applet-jsp communications work fine except in this case.
thanks
21 years ago
JSP
I am sorry but i cant find any dispose() method, which class has this method, and how can i use this on Joptionpane ?
21 years ago
its easy to make joption, but these guys only vanish when i click ok ..
if i want it to vanish automatically after some time (i know the time bit) .. is one way to remove() from the parent container and call validate() so that the
container refreshes ?
if parent container has border layout do i have to put dialog in some part of it, since dialogs normally visually appear to be independant (not fitted within a container).
the way joption function, we never put it inside any container, i wish to achieve the same, but make it vanish without clicking on its default ok button
thanks
21 years ago
how can i make the thread to sleep ?
which thread ?
21 years ago
JSP
is there any way in jsp to wait say 3 secs before the jsp forward tag functions ?
thanks
21 years ago
JSP
i am able to login some user using
the server.xml and web.xmp files,
now how do i allow him to logout when he say
clicks on a button.
does this have something to do with invalidating the session.. how ?
thanks
21 years ago
JSP
I know how to login, using modifications to
server.xml and web.xml files ...
how do i logout now, by clicking on say a button
this should then require the user to enter their username/password again to see the secure pages ...
i think it has something to do with invalidating a session. ..
please help
21 years ago
do i include this in startup.sh or shutdown.sh ?
could u please tell me the position and the exact line of code i need to enter ..
say the file i need to access is here
tomcat/webapps/ROOT/myusers/One.java
I cannot put this class in WEB-INF/classes ... so i need to set the classpath to refer to this one
21 years ago
JSP
do i include this in startup.sh or shutdown.sh ?
could u please tell me the position and the exact line of code i need to enter ..
say the file i need to access is here
tomcat/webapps/ROOT/myusers/One.java
I cannot put this class in WEB-INF/classes ... so i need to set the classpath to refer to this one
21 years ago
JSP
seems simple, but it doesnt let me
if i put the class in WEB-INF/classes
and import it it works
but for some reason i need to keep the class
in same directory as the jsp page ...
but it doesnt find it ???
thanks
21 years ago
JSP
Can someone please tell me how to do this ?
I am using jdk1.4 using full directory path
I am using following code
----------------------------------------
String text = "<html>\n" + "<font color=red>hi my name is sarim</font>\n" + "<img src=\"/home/masters/2001/sr1305/tomcat/webapps/ROOT/myadmin/graphs/copy.gif\" width=200 height=200></img>";
editorPane = new JEditorPane(type, text);
it shows the font, but shows an empty icon in place of the image....
I have included the full absolute path to the image folder
thanks
21 years ago
1. i am trying to display a .png image, will that
work or will only .gif work ?
2.
I am using following code
----------------------------------------
String text = "<html>\n" + "<font color=red>hi my name is sarim</font>\n" + "<img src=\"/home/masters/2001/sr1305/tomcat/webapps/ROOT/myadmin/graphs/copy.gif\" width=200 height=200></img>";
editorPane = new JEditorPane(type, text);
it shows the font, but shows an empty icon in place of the image....
I have included the full absolute path to the image folder

21 years ago
My menus are attached to each other, and displayed horizontally, i need space between them .
Here is my code:
I used addSeparator(), but I think that is to create space between menuitems and not between menus ....
//Create the menu bar.
menubar = new JMenuBar();
//Build the first menu.
menu1 = new JMenu("Options");
menu1.setBackground(color3);
menu1.addSeparator();
menu2 = new JMenu("Help");
menu2.setBackground(color3);
menu2.addSeparator();
menu3 = new JMenu("Edit");
menu3.setBackground(color3);
menu3.addSeparator();
menu4 = new JMenu("Quit");
menu4.setBackground(color3);
menu4.addSeparator();

menubar.add(menu1);
menubar.add(menu2);
menubar.add(menu3);
menubar.add(menu4);
21 years ago
I know for JTextArea i can give rows and columns
but the JEditorPane, just is big enough initialluy
to accomodate the displayed text and not more
this is inconvenient when there is no text to begin with.
how can i set a particular initial preferred size ?
thanks
21 years ago