This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!

Surya Kant

Ranch Hand
+ Follow
since Mar 29, 2005
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 Surya Kant

in my web app on clicking on a link i show an applet. If the applet is been visited number of times in the same session i get an exception with JVM error message while closing IE. Exception is as follows.
Any clue why this error comes ....???

Exception occurred during event dispatching:
java.lang.NullPointerException: null pData
at sun.awt.windows.WComponentPeer.hide(Native Method)
at java.awt.Component.hide(Unknown Source)
at java.awt.Window.hide(Unknown Source)
at sun.awt.EmbeddedFrame.hide(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at sun.plugin.viewer.frame.IExplorerEmbeddedFrame$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at sun.plugin.util.PluginSysUtil.execute(Unknown Source)
at sun.plugin.util.PluginSysUtil.delegate(Unknown Source)
at com.sun.deploy.util.DeploySysRun.execute(Unknown Source)
at com.sun.deploy.util.DialogFactory.showExceptionDialog(Unknown Source)
at sun.plugin.util.Trace.printException(Unknown Source)
at sun.plugin.util.Trace.printException(Unknown Source)
at sun.plugin.util.Trace.printException(Unknown Source)
at sun.plugin.util.Trace.printException(Unknown Source)
at sun.plugin.viewer.frame.IExplorerEmbeddedFrame.windowClosed(Unknown Source)
9 years ago
Hi All,
For some security reasons i want to increase the complexity of jsessionid created in tomcat.I would like to create a stronger session id with capitals,lowercases,numbers and punctuation marks for the higher security.Is it possible to do?does tomcate allow such customization?

Regards,
Surya
9 years ago
I think no one does it.When you click download button in UI it wil go as one request and request will be completed when response is commotted.You cant send the response back to your UI after that.
9 years ago
JSP
Yes you are correct.For request dispatcher to work correctly you should place jsps inside your context path.You can precompile JSPs also
9 years ago
JSP
Yes you are correct.Execute the query with user name & password which you have got from request.If Resultset returns some entries then it means login successful.Otherwise fail.
9 years ago
Hi Dinesh,
Your logic to find the existence of user is wrong.You are iterating through all the records of admin table
& assigning it to same variable.Thats why only "ramesh" is getting logged in it to your system.User Where clause for
finding the user.Hope you understood.
9 years ago
You have uniquely identify each row by id.& that same id you should give to check box.Whenever you are submitting the form,you should make sure that you are passing selected check box ids.
9 years ago
But i have observed that clicking back button will make another request to server.
I am really confused .Can anybody clear this doubt with some meaning ful explanation?
9 years ago
You can do it by specifying
<load-on-startup> in servlet definition.
You can find this in web.xml
9 years ago
No it is not possible.
Even if you specify the file system's location in img tag it will search in the computer where your JSPs are running.
So always all paths should be relative to your web application.
Anyve you can do this using servlet.
9 years ago
JSP
Many third party javascript trees are available.Google on the same.You should be doing this without much pain.
9 years ago
JSP
Yes i agree with swastik..you have to provide mapping in your xml files(if your are using struts)
Directly you cant access it
9 years ago
JSP
Did you check your output directory?
does it contain .class file of your servlet?
9 years ago
You have to manually get all values and append it to the url before submitting.
It would be great if you post your JSP.We can suggest something else after seeing the JSP
9 years ago
Looks like P-R-G pattern.Can you please post your JSP?
9 years ago
JSP