prasad regula

Greenhorn
+ Follow
since Jul 03, 2006
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 prasad regula

I have wsdl url. I need to write a java code to invoke various functionalities offered at that wsdl. Could anyone guide me how to proceed. It is SOAP based. Thanks in advance.
13 years ago
Solution given by Ankit Garg is working fine. I commited a mistake, and it is working fine now. Thanks Ankit.
I added Transaction statement

Transaction transaction = session.beginTransaction();
//code to delete rows
transaction.commit();

This time I am getting that the rows are being deleted, but they are not getting deleted. I tried to deleted the row using jdbc code. The row is getting deleted.
If I change that to <sql-query> as below I am getting the following error




SEVERE: Update queries only supported through HQL

With <query> I am getting the following error





SEVERE: could not execute update query
I am trying to delete rows from database using hibernate. It is returning the row count of the number of rows deleted, when I go to database the rows are still existing

Here was my query


My code is


I found on google the jtest plugin for eclipse is the url http://www.parasoft.com/jtest83. I went to help menu and clicked add new software and entered the above url with the name jtest. It is not getting accepted. Moreover I am finding that the eclipse website has changed. I dont know when this has happened. I even tried this in myeclipse. It didnt work. Could anyone guide me how to proceed and at the sametime how to use the eclipse updated website as it is taking me to so bugzilla etc.
13 years ago
Here is the solution to upgrade the jvm, do the following
Place the JAVA_HOME/bin and <other classpath statements as rt.jat, tools.jar> at the begining of the path statement. As it is placed in the end, as the system reads the path variable, if it comes across 1.3 in between it accepts 1.3 as its jvm version. So it overrides. To avoid this issue, place the java bin path and classpath statements at the begining of the path statement. This will change the jvm to the version you wanted it to be.
I installed java 1.6. As I am trying to open eclipse it ws not opening. Later as i typed java -version, it is displaying as 1.3. I am not sure where this 1.3 has come from. My path and classpath are pointing to 1.6. What should I do to update the jvm to 1.6
13 years ago
How should I upgrade my jvm from 1.3 to 1.6. My path and classpath are being shown tyo 1.6 only. I dont know where it is picking this 1.3 from.
I just found that jvm version 1.3 is running. as I typed java -version. I have hot installed 1.3. I am not sure where it has picked it from.
I downloaded eclipse-SDK-3.5.2-win32, and unzipped using winzip. I clicked on the icon, the eclipse ide got opened. Things were fine. I downloaded Apache studio as a WSDL editor. Later I installed eclipse plugins for the Apache studio. As it didnt work, I decided to delete eclipse and reinstall on a clean slate. Now I unzipped eclipse again and tried to open it. Now eclipse is not opening. It is giving an message box "An error has occured. See the log file in the configuration folder". As I opened the log file, this is what I have found.

!SESSION 2010-05-05 11:38:50.001 -----------------------------------------------
eclipse.buildId=M20100211-1343
java.version=1.3.1_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 4 0 2010-05-05 11:38:50.516
!MESSAGE Startup error
!STACK 1
java.lang.NoSuchMethodError
at org.osgi.framework.BundleException.<init>(BundleException.java:149)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:806)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.resume(InternalSystemBundle.java:207)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:649)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:298)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

In a jdbc code, I am mentioning a sample code below for our reference, we come across
Connections, Statements, PreparedStatement, ResultSet. All these are interfaces. In which part of the jdbc code are we coming across a concrete class. We cant execute a code without a concrete class, by just using interfaces. I am not able to identify what class is the real concrete that is executing this jdbc code.


On the server side in the servlet I have the following code



On the client side I need to display this user name on the top of the page. Had that been a jsp I would have written a following statements


Now this has become a html as I need to deal this page with ajax. How should I get that username attribute and display on the html.
One way you are right. It has become a html question from Ajax as ajax needs to be a html at the time of submitting the data to the webserver. My doubt here is as below:
1) has it not been a ajax issue,
I would have placed a jsp
Submitted the jsp to retrive the data from the database and
Redisplay the page with the retrived data from the database.

With JSP I have the facility of sending the HttpServletResponse data etc. Now if a html comes in between, how do we manage with the dynamic data sent by the server.
Thanks for the reply. It was helpful. I also found a good tutorial at http://www.learn-ajax-tutorial.com/. Even it speaks the same point you have said(Everything starts with a html).

I have one simple doubt. If this is a case what would be the situation if this page where I am applying the ajax, is not a starting page and comes somewhere in the middle of the page flow, and this page has some text to be displayed on the top say Name of the user. How do you manage the dynamic values with a html.