Ritesh Badwaik

Greenhorn
+ Follow
since Feb 23, 2009
Merit badge: grant badges
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 Ritesh Badwaik

Hello friends,
I am new to ajax, Can anyone tell how to use ajax with struts2? The problem is as follows:
I have to submit a form using ajax. the action class generates a image and I have to use that image in the same form(input page)
Please suggest some books or give some small code snippet.

Thanking you,
Ritesh

12 years ago
hi all,
Why a top level class in java be a private or protected ?

Thanks
Ritesh
13 years ago
Hi all
Is it possible to provide a downloading functionality for a file which is on disk(not on a web server) ? i.e. Can I provide a direct link to that file ?
If yes, How to do this ?


Thanks
Ritesh


13 years ago
Hi all,
I tried the validation for radio button as follows but it is not working

<field name="ctlfilename">
<field-validator type="requiredstring">
<message>Select file</message>
</field-validator>
</field>

Can anyone tell me, how to use required validator or requiredstring validator for radio button ?

Thanks
Ritesh

13 years ago
hi,
Thanks for the reply.
I got it .
13 years ago
Hi Himanshu,
I didn't understand . Should I use a iterator ?
Can you please post a sample code snippet ?

Thanks
Ritesh
13 years ago
Hi all,
Is there any way to set the width / alignment of each checkbox among the checkboxlist. I want to display some 50-80 checkboxes. I tried as follows but they are not aligned properly.

<s:checkboxlist name="filename" list="#session.fileNames_Size.keys"/>

How can I set to display only 2 or 3 checkboxes with lables in a row ?

Thanks
Ritesh
13 years ago
Hi all,

I want to hide some components using div tag . I tried as follows
<s:div id="divFromHour" style="display:none">
some component
</s:div>
but it is not working.

please help !


Thanks
Ritesh



13 years ago
yes, maybe this is because of network , following are some results(the time is in seconds)

1 MB 2 MB 5 MB 10 MB 50 MB 100 MB 500 MB

4.92 13.45 24.05 57.14 307.59 530.88 2716.98
6.03 11.88 27.86 55.28 299.3 530.89 2603.73
4.78 11.66 37.03 51.77 298.45 542.5 2721.81
4.51 12.31 27.02 50.27 276.08 525.53 2727.56
5.3 10.7 28.92 51.88 270.16 550.25 2552.5
5.11 12 28.98 53.27 290.32 536.01 2664.52

Is there any other way to minimize this time?


Thanks
Ritesh
13 years ago
Hi all,
I want to transfer data file between two Linux machines using java code. I tried this using pscp in java code but the transfer speed is very slow. The file size are between 300 MB to 700 MB.
Can anyone help me ?


Thanks
Ritesh
13 years ago
hi all,
I have struts 2 application which runs successfully but when I tried it using Eclipse Version: 3.3.2 , it gives error as
-----------------------------
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/5.5.27
-----------------------------------
the application runs fine till I add struts.xml to WebContent/WEB-INF/classes folder. After adding struts.xml, it gives above error.
Can anyone tell me where to put struts.xml file ?

Thanks
Ritesh
13 years ago
Hi,
Thanks for the reply.
The files are already compressed.
Can you please explain me how to implement HTTP downloads using java ?
Does it require any program to be installed like FTP ?



Regards
Ritesh
13 years ago
Hi all,
I am developing a web application which provides very large data files(file size is equal to about 500 MB) for downloading.
Can anyone tell me, how to implement this ?
Also I want to know , what is FTP file downloading & HTTP file downloading ? Which one I should use ?




Regards
Ritesh
13 years ago
Hi all,
Can anyone tell me , how to use NFS mounted directory(files) in java code ?


Thanks and Regards
Ritesh
13 years ago