rahul saxena

Greenhorn
+ Follow
since Jun 10, 2003
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 rahul saxena

hi what for FileInputStream object used in the following code???

thanks



Originally posted by Ben Keeping:
I take it you mean as a binary BLOB field in the db ?

17 years ago
hey all,
please give me the sample JSP source code to upload file as object into database.

thanks,
rahul
17 years ago
hey all,
please give me the sample JSP source code to upload file as object into database.

thanks,
rahul
17 years ago
JSP
hi all,

how MVC2 is different from MVC??? what are the advantages in MVC2???.
Thanks in advance!!!

Rahul
17 years ago
hi all,
how to identify state of a particular client after passivation?
When ejbActivate() is called how it actually identifies state of particular client??? please be elborate.

rahul
hi all,
Does anybody has j2ee certification sample papers???
if yes please do send across the link or the attachment..
hope to recieve +ve response..
thanks in advance..

rahul
Hi All,
Please give me the link for good oops material?
material should have real time examples..
waiting for response

Thanks in advance
rahul
hi can anyone give me the java program which downloads file using FTP?plz its very urgent.
thanks in advance
17 years ago
Hi,
thanks for the response. Do u have any sample program for creating copy of .pdf file?
thanks in advance.

Originally posted by clio cat:
just a suggestion but:
(1) i'm not sure what FileDataSource class is doing, but I don't see why it should not have to relinquish it's file handle *before* you rename the file it has fetched for you... Will it not generate a FileNotFoundException sooner-or-later when it shuts-down/goes out of scope?
(2) i don't see anywhere that you give a (fully-qualified) filepath for the renamed file ... presumably it will be written to the 'current' directory - whatever that may be ... it may be better to give it an explicit path - at least you'll know where to look for it:-)
hth

18 years ago
Hi Stefan Krompass,
thanks for timely response. I am using same logic, it working fine but sometimes it cribs and I cant predict when it will give "file not found exception". but intrestingly old file will be there in local system.
Is it bcoz its trying to access file before its getting generated? It should not bcoz we are checking for oldFile.exists() condition. and also why i am not able to find newly named files? but attachments are going in mail with newname
Will it solve If I give delay of few seconds before attaching files ?
regards,
Shankar
18 years ago
hi all,
I have generated pdf file. I have to rename tht file and send as attachment in mail. problem here is its renaming and sending mail with renamed file as attachment but i am not able to find renamed file in local system.
Also sometimes its very inconsistent , its giving "File not found Exception"(for previous file name)
please see the following code....
String filename = "C:\\test2222.txt";
FileDataSource fds = new FileDataSource(filename);
File file = fds.getFile();
if ( file.exists() ) {
File file1 = new File(filename);
file1.renameTo(new File("05012004.txt"));
}
can u please tell me how to make copy of original file and then renaming that file with new name? will this solve my problem?
thanks in advance..
18 years ago
is there any method which returns previous quarter by giving todays date?
thanks in advance.
18 years ago
I am getting the following error. Please help.
org.apache.jasper.compiler.CompileException: C:\tomcat32\webapps\examples\jsp\testpage.jsp(1,0) Unable to open taglibrary /WEB-INF/cewolf.tld : Parse Error in the tag library descriptor: External entity not found: "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd".
at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEventListener.java:713)
at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingListener.java:116)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
18 years ago
JSP
Hi All,
In weblogic where actually it maintains(stores) state after passivation? (i am referring to stateful beans here)
I mean is it in File System or in something else??? In iPlanet it saves state in File System....plz tell me for weblogic..
thks in advance..
Best Regards,
Shankar
18 years ago
we r using e-Actuate for reporting... so far its gud....no problem..