Smitesh Shinde

Ranch Hand
+ Follow
since Feb 16, 2008
Smitesh likes ...
Firefox Browser Java
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
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 Smitesh Shinde

I am using spring web-service client to call a web service. The web service performs mutual authentication. We have been provided with .p12 (PCKS12) client certificate. I exported it to JKS using keytool.

Then I have provided JKS keystore to Wss4jSecurityInterceptor. But I receive following exception. Not sure what the problem is?

org.springframework.ws.client.WebServiceIOException: I/O error: Received fatal alert: bad_certificate; nested exception is javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate


Below is my Wss4jSecurityInterceptor entry in applicationContext.xml file.



10 years ago
Could you please take some pain to paste the error you are getting while compiling your servlet?
12 years ago
Ramesh, first of all JSP isn't place to write your application logic. It is considered as bad practice.

Regarding your exception problem -

You can't be absolutely sure of which exception your JSP is throwing. You'll always get java.lang.SQLException in every case as you are explicitly throwing it from your code. Try to print the stack trace to get the exact exception.
12 years ago
JSP
As far as I know C# produces exe file after the compilation. You can exeute the .exe files from a java program as if it is executed from commandline. Do research on how to exeute commands in java.

If you are looking for calling particular method in your C# from java then I believe web services is the only way.
13 years ago
Yes I know it. Probably I was thinking of something else rather than concentrating on the fact that it's session attribute.

Yes you are right it has something to do with the way myobje is getting populated.
13 years ago
JSP
What do you expect it to print? Please do some research on pre-increment and post-increment operators.
13 years ago
Yes.

And Can't you use username as a key?
13 years ago
JSP
Aditya,
You are using same key for string attributes for all the user. So your session data is getting overwritten. Remember you should use unique key per user.
13 years ago
JSP
Store some value in the session attribute when user enters using login pae. Check for that attribute on success page if that is not present redirect the user back to login page.
13 years ago
JSP
1.Check if following tag libraries are present in the WEB-INF folder.

  • struts-bean.tld
  • struts-html.tld
  • struts-logic.tld
  • struts-tiles.tld


  • 2.These tag libraries need to be defined in the web.xml file as


    Question should have been posted in the Struts forum though.
    13 years ago
    Try to find out database profiling tool for the database you are using,
    Well you need an instance of a class to access it's members unless they are static. It's only possible when the class is visible to you. Besides creating an instance class being public makes itself extensible too.

    In short public class makes itself reusable which is ultimate goal of the Object Oriented Programming.
    13 years ago