Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

ashwini hikulkarni

Greenhorn
+ Follow
since Jun 16, 2008
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 ashwini hikulkarni

Hi all
I am not having much experience in thread programming , kindly help me out

1.This is the upload program and the file is uploading on the C:// drive successfully ,
2. I need to implement the thread in my program
3.If the user logs out the thread must execute the task .please can you help me,



4. I need to implement the thread on this method
and run in background .
[ September 29, 2008: Message edited by: ashwini hikulkarni ]
Hi please see the code and help me out to send the other parameter values to the servlet
Hi All
I am trying to upload the file of 1kb to 250MB.
I had developed 2 applications
1>In Struts framework (one application)
2> and using servlets and JSP (second application)

I am using second application (using servlets and JSP )
when i am trying to upload locally on my machine it is working very fine and able to upload as much as i can
so for testing i have to upload MAX till 250MB(because it is client requirement)

All these experiments are on the development server and External IP (using internet)
In my application i am splitting the file say example: I am tring to upload 100Mb of file
step 1> on the server side i am splitting the file of 100Mb in to 1Mb and saving in the Temporary folder
step 2> I am joining the splitted files and then again joining to the orignal file (at the time of upload ) to the destination location
step 3 > Deleting the temporay folder after the joining is done

So These are the results on Development Server (L.A.N) local area network
For --->>13Mb -------->>(Time Taken) 3 minutes
For --->>25Mb -------->>(Time Taken) 6 minutes
For --->>56Mb -------->>(Time Taken) 11 minutes
For --->>100Mb -------->>(Time Taken) 18 minutes
For --->>150Mb -------->>(Time Taken) 30 minutes
For --->>250Mb -------->>(Time Taken) 58 minutes

--------------------------------------------------------------------------------

Similiarly
These are the results on External IP (through internet)
For --->>20Mb -------->>(Time Taken) 5 minutes
For --->>56Mb -------->>(Time Taken) 11 minutes
For --->>78Mb -------->>(Time Taken) 20 minutes

after that if i am tring to upload more than this i am unable to upload
and getting this exception at the server LOG

1>org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly

2>org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Connection reset


Can any one help me how to make this programm efficient and error free
i cannot use FTP because i have to create a port which is not permitted by the client
can any one help me out with the execellent solution
11 years ago
Hi All
I am trying to upload the file of 1kb to 250MB.
I had developed 2 applications
1>In Struts framework (one application)
2> and using servlets and JSP (second application)

I am using second application (using servlets and JSP )
when i am trying to upload locally on my machine it is working very fine and able to upload as much as i can
so for testing i have to upload MAX till 250MB(because it is client requirement)

All these experiments are on the development server and External IP (using internet)
In my application i am splitting the file say example: I am tring to upload 100Mb of file
step 1> on the server side i am splitting the file of 100Mb in to 1Mb and saving in the Temporary folder
step 2> I am joining the splitted files and then again joining to the orignal file (at the time of upload ) to the destination location
step 3 > Deleting the temporay folder after the joining is done

So These are the results on Development Server (L.A.N) local area network
For --->>13Mb -------->>(Time Taken) 3 minutes
For --->>25Mb -------->>(Time Taken) 6 minutes
For --->>56Mb -------->>(Time Taken) 11 minutes
For --->>100Mb -------->>(Time Taken) 18 minutes
For --->>150Mb -------->>(Time Taken) 30 minutes
For --->>250Mb -------->>(Time Taken) 58 minutes

--------------------------------------------------------------------------------

Similiarly
These are the results on External IP (through internet)
For --->>20Mb -------->>(Time Taken) 5 minutes
For --->>56Mb -------->>(Time Taken) 11 minutes
For --->>78Mb -------->>(Time Taken) 20 minutes

after that if i am tring to upload more than this i am unable to upload
and getting this exception at the server LOG

1>org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly

2>org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Connection reset


Can any one help me how to make this programm efficient and error free
i cannot use FTP because i have to create a port which is not permitted by the client
can any one help me out with the execellent solution
11 years ago
JSP
yes we can use java script inside the servlets but it will be very complicated

so what i think is to create an anathor file named as abc.js and then call the abc.js inside the servlet
12 years ago
Hi all
Can i use javascript inside the servlet
12 years ago

Originally posted by Abhijeet Nalawade:


Please make changes to argumnet passed to SimpleDateFormat class as below.




Abhijeet i want to convert the formatt of the date and then display the date in
12 years ago
Sir Jeanne
I have shown ,just an example . I dont want to match that value but the value which i am printing on console is:: Wed Jul 16 18:31:04 GMT+05:30 2008 ,, so the format i need is MM/dd/yyyy ... so where i am confused is , i dont want to show the date in this fashion ( Wed Jul 16 18:31:04 GMT+05:30 2008).... I want the date to be displayed in in this fashion 7/16/2008...
12 years ago
please help me out to convert the date format to mm/dd/yyyy hh:mm PM
but i am unable to get the value .My code is below

when i am printing the value of

on console it is showing in this format >> Wed Jul 16 18:31:04 GMT+05:30 2008
and i want the date to be displayed in this >>> mm/dd/yyyy hh:mm PM - format please Help
12 years ago
Thanks a lot . It worked fine
12 years ago
Hi all
Thanks for response ,, but it giving this exception
Kindly resolve


exception

javax.servlet.ServletException: No action config found for the specified url.
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)


root cause

org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url.
org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelectAction.java:71)
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet
12 years ago
Hi all
I am having a .jsp page and in that page i am using <ahref>
like

so instead of going to uploadHistory.jsp i want to send this request to actionservlet

kindly help
12 years ago
thanks for responding

but sagar every thing is mapped clearly.. even though it is showing error

Adding to this i would also post my Upload Services.java



please respond
12 years ago
Hi all
please help me to resolve the error related to jsp , I would be thankful to you
warm regards

Error is
16:47:04,209 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
at org.apache.jsp.uploadHistory_jsp._jspService(org.apache.jsp.uploadHistory_jsp:96)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

I am posting my JSP and Servlet kindly help me please

JSP CODE where i want to see the retrived data from database



MY ACTIONSERVLET
12 years ago