Re: Upload question

2001-11-14 Thread Balasubrahmanyam Pasumarthy

Hi Daniel,

I got the similar problem with. The problem is eliminated because of two 
things:

1) Just check whether you have two form elements. Use only one struts form tag
2) It is a must that you have to handle that file. That is getting its 
input stream and read it to somewhere.

Hope this helps

Balu
At 11:56 AM 11/14/01 +0100, you wrote:
So could you telle me what can mean a ServletException 
BeanUtils.populate because it's the error I got as soon as I click on the 
upload button and how do I can get a ride on it ?

Thanks for help,

Daniel WAMARA

_
Téléchargez MSN Explorer gratuitement à l'adresse 
http://explorer.msn.fr/intl.asp


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Balasubrahmanyam Pasumarthy
**
Sr. Consultant,
Zensar Technologies Ltd,
Ph: 91-20-6633001 extn 613
***



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: ActionServlet return a pdf document

2001-11-14 Thread Balasubrahmanyam Pasumarthy

Hi,

I had a similar problem with an RTF document generation on the fly.

The only thing it is working fine for Netscape but the IE is not opening it 
as word
document because of extension it has got. .do

I eliminated it by introducing another mapping similar to .do as .rtf 
in Web.xml

Hopefully you also create the similar mapping and call the action as 
action.pdf instead
of action.do

Balu

At 01:01 PM 11/14/01 +0100, you wrote:

Hi,

I am trying to generate a PDF document on the fly based on dynamic html
generation comming from BroadVision.

I am using a tool called HTMLDOC that can use as input parameter a html file
or a URL.

If i used this tool directly from the command line,

htmldoc URL -f result.pdf

then, the pdf generation is fine, includig images.


But if i called this via an action, and i get the ouput of the tool and send
it to the response, the pdf result is not displayed if i used the image tag
in the HTML.

This is the java code for my action :


 Process process;
 Runtime runtime;
 java.io.InputStream input;
 byte buffer []; // Buffer for output data
 int bytes; // Number of bytes

 command = the called to my tool with the options and the URL :
/opt/htmldoc http://www.myfile.jsp 

 runtime = Runtime.getRuntime();

 try
 {
 process = runtime.exec(command);

 input = process.getInputStream();
 buffer = new byte[8192];

 while ((bytes = input.read(buffer))  0)
outputStream.write(buffer, 0, bytes);

 return (process.waitFor());


Any idea or suggestion ???

Thanks in advance

Regards,

ignacio






--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Balasubrahmanyam Pasumarthy
**
Sr. Consultant,
Zensar Technologies Ltd,
Ph: 91-20-6633001 extn 613
***



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Locating to particular section

2001-11-12 Thread Balasubrahmanyam Pasumarthy

Greetings to all,

I'd already send this problem but I couldn't find any pointers towards.

I have problem of taking the user to a particular section of page, while 
loading it thru struts.
Problem Description:
I have got a parent page with many sections all canned text.
Each section has separate update button on click will open a child window
with editable fields.
On close of that window the parent page has to be reloaded with the user 
updated data.
Also the page is to be relocated to that section where user updated.
I'm using two actions Parent Action that loads parent page and Child action 
that takes care
of presenting page in child window and updates.

Any pointers towards this is really appreciated.

Thanks

Balu



Balasubrahmanyam Pasumarthy
**
Sr. Consultant,
Zensar Technologies Ltd,
Ph: 91-20-6633001 extn 613
***



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Radio Button..in struts..

2001-09-16 Thread Balasubrahmanyam Pasumarthy

Hi All,

I'm for the first time implementing struts in my project. I've got a set of 
radio buttons inside table (row wise).

I need to set the value / name of the radio button with the form bean's 
property( say companyNumber)

How I can do that? Anyway help is appreciated.

Thanks

Balasubrahmanyam Pasumarthy
**
Sr. Consultant
Zensar Technologies Ltd,
Ph: 91-20-6684001 extn 612
 9822114193 (mobile)
***




Image Handling through Struts.

2001-09-14 Thread Balasubrahmanyam Pasumarthy

Hi Everybody,

I've got an application, using struts, which has the following requirement:

It needs to upload an a image file from the user and should display on the 
same page.

One constraint is it should not store the file in servers directory 
temporarily. Of course it can be store in any database/memory and retrieve 
the same back to page.

Again while getting it back it is should not be stored temporarily anywhere.

Any help or code snippets will be greatly appreciated.

Thank you,


Bala subrahmanyam Pasumarthy
**
Sr. Consultant
Zensar Technologies Ltd,
Ph: 91-20-6684001 extn 612
 9822114193 (mobile)
***