rachana ravali

Ranch Hand
+ Follow
since Jun 20, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by rachana ravali

Hi , I have a requirement where I have to display a pdf in iframe or part of the webpage. Is there any way on displaying the content in bytearray in iframe .I have searched in web, but i can see options where iframe can only display contents from a file located on server. I am getting bytearray from a service. I have to use this byte array and display it in form of pdf in lower half of the webpage.I am using struts. Please advice. Thanks in advance.
12 years ago
JSP
I am trying to send an XML RPC request through Apache XMLRPC client.
In the resquest created by the client , the tag <string> in front of the string value is not generated.
All the other types are being appended with their respective types like <i4> etc.
Will this make my request invalid ?
Thanks Pat Farrell,Damodhar Kumar and William Brogden for giving replies.

William,
I am using a SAX parser to parse the document and while parsing i have kept the elements in a hashmap.
I thought DOM will eat soo much of memory space.... am i wrong ?
14 years ago
Hi,
I wrote some java jdbc code to fetch the data from the database and store it in an xml document .This xml document is updated for every 24 hours.

When ever a search query comes i need to search in the xml file for the given data.

I want to know whether this is an efficient/good way to do searching , to avoid database call every time a search request comes.

Or storing the data in hashmap (key=column1,value=column2) and searching in them improves performance.

I will at most 25000 rows in the database.

Thanks in advance
14 years ago
thanks manish and paul ... thank you very much for replying..
14 years ago
Hi ,
i have a requirement where i have to put rows from database into hashmap as keys and values.
I have a doubt whether hashmap can support large data such as 2000 records or entries.

Can any one please clarify whether it is a good idea to have such as huge data in maps for avoiding network traffic with database.

Thanks in advance.
14 years ago
hi ...
I am new to using derby .. i have some doubts on it ... please clarify...

1). can i use embeddedDriver of derby with commons pool and dbcp

2) Can i use the con from the pool (created with embeddedDriver and pools) to be accessed by multiple users to make insert,delete operations

3) Do i have to shutdown the database for every user ... if every user has one connection each...

4) can i create a read/write database to be accessed by multiple users in derby using embeddeddriver.


thanks in advance

hi Daya Anand,
thanks for the solution.
I also tried the same and now my application is working.

thanks a lot.
15 years ago
hi Joe,
thanks for the reply.
The struts jar is present in the WAR file.

I also had all the required commons.xxx jars etc.

But i am getting the following error when i tried to run the apllication:

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans collection
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:34)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java(Compiled Code))
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java(Compiled Code))
at java.lang.Thread.run(Thread.java:513)
15 years ago
Hi ,
i want to deploy a struts application on tomcat 4 in unix .
Can any body give me some information on the required jars to make that successfull.

Because i am getting JasperException- cannot find ActionMappings when I am trying to run the application.

I double checked whether the struts.jar is in the classpath and it is present.Even then i am getting this exception.
15 years ago
hi ,
I have developed a struts application using Struts1.x, and deployed it on Tomcat 5.x.
It is running fine.
But when i tried to deploy the same application on Tomcat4.1 ,
I am getting jasper exception cannot find actionmapping error.
Not able to figure out what the problem is ..



Please help me resolving this issue?
15 years ago
thanks to both of you ... Paul and Campbell
15 years ago
but in the specification it is written as we can read and write any where in the file unlike other file objects???
15 years ago
I have to append some content to each line in a text file.
But when i use random access file and write contents to the file.. the content in next are getting over writed.
Is it not possible to write in the middle of a file using random access file without getting the contents next to it overwritten>

i have a example program like this :

File file = new File("C:\\Desktop\\RandomAccessFileExample.txt");
RandomAccessFile raf = new RandomAccessFile(file, "rw");


raf.seek(4);

raf.writeBytes("This will complete the example");

raf.close();

} catch (IOException e) {

System.out.println("IOException:");
e.printStackTrace();

}

}

and my RandomAccessFileExample.txt has the contents like
ser1
ser2

If i want insert some contents after ser1 and before ser2 using the above program...
the ser2 in the text is overwritten with the new contents.

How to insert contents in the middle of a file ?
Please help me.
15 years ago
Hi,
Is there any performance advantage if we perform the operations on String by converting them into char arrays ?
16 years ago