vidhi sanghavi

Greenhorn
+ Follow
since Mar 28, 2009
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 vidhi sanghavi

Hi

I forgot to mention the data is stored as CLOB in database.

Thanks
7 years ago
JSF
Hi

I have a zip file physically stored in database.
I need to read the file from database and download it .
When I tried to get the data from database using getAsciiStream and wrote it using FileWriter zip file got created but unzipping the file gives error..
I also tried unzipping the zip file but that also gave an exception

Please help!!!

Thanks in Advance

Vidhi
7 years ago
JSF
Hi,

Can anyone tell me how many times is the begin method of PageFlow COntroller called?
Is it called only once when the Controller is called for the first time or is it called every time a particular controller is called?

Thanks in Advance,
Vidhi
8 years ago
hi,


Could you please tel me how did you solve your problem of using insertbefore method;



Thank you
Hi,


I have found out that insertbefore method seems to be useful for the scenario.
But I am unable to understand how to use that method.


Please help me....



Thank you in advance,
Vidhi
Hi,



Yes the XML document gets saved.
Which method should I use?

Thanks in advance,

Vidhi
Hi!



I am trying to parse an XML using org.dom4j.io.SAXReader.

My xml is as follows:



<record>

<item name="score">
<value>
<item name="cricket">
<value>25/1</value>
</value>
</item>
</record>
while parsing i need to add 2 more child elements ie tag with attribute tennis and other with attribute football to record tag

one child element will be before cricket and one after cricket


I want my xml to be as follows:


<record>

<item name="score">
<value>
<item name="tennis">
<value>6-3,0-2</value>

<item name="cricket">
<value>25/1</value>

<item name="football">
<value>0-0</value>
</value>
</item>
</record>


How do I do that?



Thanks in advance,

Vidhi
Hi,


Thank you for the previous reply!!!11

Could you please include the statements that are mssing in the code.
I am nt able to understand what am I supposed to da



Thank you in advance,
Vidhi
Hi ,



I am trying to access cetain data from the database.
once I retrieve the data I have to process dat data and then update a particular column using the modified data.
I used the following code.

Statement stmt=null;

ResultSet rs=null;
rs = stmt.executeQuery("select data from table where id = 2");
while(rs.next()){
String description= rs.getString("data");
String overview=description.substring(description.indexOf("<Overview>")+10,description.indexOf("</Overview"));

String updateString = "update table " +
"set data= '"+overview+"' " +
"where id = 2 ";

int x= stmt.executeUpdate(updateString);
System.out.println("query updated");
}

I am getting the followng exception.........


java.sql.SQLException: ResultSet is closed


Please help me in solving the problem......


Thank you in advance

Vidhi
Hi,


I have an XML structure as follows:


<employees>

<employee data="Name">
<value>Vidhi</value>
</employee>

<employee data="qualification">
<value>BE</value>
</employee>

</employees>
Whwn I parse the XML document I want to change the value of element <employee data="Name">
to Sami
ie I wan the XML structure to be
<employees>

<employee data="Name">
<value>Sami</value>
</employee>

<employee data="qualification">
<value>BE</value>
</employee>

</employees>
I am using JAVA and org.dom4j.SAXReader


Thanks in advance
Vidhi
hello,


I have checked the spring.jar .It contains Dispatcher Servlet Class.
i dont understand whats the problem.


Thank you
I have checked in the lib folder.

It contains all the jar files present in spring-framework-3.0.0.M2.
Is there any jar file that i have noy included in the lib folder.
hi

I have developed a small appliaction in java using spring framework.
i am using Tommcat5.5 and eclipseeuropa
iam getting thw following exception...

Mar 29, 2009 2:12:11 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet add as unavailable
Mar 29, 2009 2:12:11 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@166aa18
org.springframework.web.servlet.DispatcherServlet
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Mar 29, 2009 2:12:11 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /addmodule threw load() exception
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1068)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Mar 29, 2009 2:12:11 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 29, 2009 2:12:11 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 29, 2009 2:12:11 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Mar 29, 2009 2:12:11 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Mar 29, 2009 2:12:12 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 547 ms
Mar 29, 2009 2:12:23 AM org.apache.catalina.core.StandardWrapperValve invoke
INFO: Servlet add is currently unavailable



please do help me in solving this problem


Thankx

Vidhi