within -- problem

2005-08-22 Thread Anjishnu Bandyopadhyay
Hi all, I have a where I am iterating over a list of objects. Each object has a property “label”, which is being displayed as a textbox. Now, I have a hidden field “hdnField”, for each row of object. I want to call a javascript function “fnUpdate” onChange of the textbox to update the hidden

RE: Passing variable to javascript function

2005-08-29 Thread Anjishnu Bandyopadhyay
Hi Anuradha, I think this will work: onclick="return validateDelete('')" where "abc" is the java variable that you put in request/session. With best regards, Anjishnu. -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 2:26 PM

problem with within

2005-08-29 Thread Anjishnu Bandyopadhyay
  Hi all,   I have a where I am iterating over a list of objects. Each object has a property “label”, which is being displayed as a textbox.   Now, I have a hidden field “hdnField”, for each row of object.    I want to call a _javascript_ function “fnUpdate” onChange of the textbo

how to pass value defined in a "nested:define" to a java script function?

2005-09-08 Thread Anjishnu Bandyopadhyay
Hi all, I have a tag within another tag. < nested:define id="year" value=".."/> Here, on change of the text box in the inner , I want to send some value to a java script function, that is available from a / va

Saving a HTML screen data as a Word doc.

2006-02-07 Thread Anjishnu Bandyopadhyay
Hi all, I am generating a HTML screen through JSP. Now, I need to save/export the data in the JSP to a Word document. Any pointers in this respect will be very much helpful. Thanks for your time. With best regards, Anjishnu. CAUTION - Disclaimer * T

RE: Problem whith a arrayList and a html:option

2006-02-07 Thread Anjishnu Bandyopadhyay
Hi, Try this out: In the formBean, instead of an array list, try putting a String array. ActionForm: private String[] listEdad = null; public String[] getListEdad () { return listEdad; } public void setListEdad (String[] listEdad) { this.listEdad = listEdad; } With b

RE: Saving a HTML screen data as a Word doc.

2006-02-07 Thread Anjishnu Bandyopadhyay
On 2/7/06, Anjishnu Bandyopadhyay <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > I am generating a HTML screen through JSP. Now, I need to save/export > the data in the JSP to a Word document. > > Any pointers in this respect will be ve

Opening a MS Word from JSP/HTML

2006-02-20 Thread Anjishnu Bandyopadhyay
Hi all, I have a static MS Word document, which I want to open on click of a hyperlink in my JSP page. I am trying like: window.open('abc.doc','',600,600); But the Word doc is not properly opening. In IE, the document opens in the browser itself. In Mozilla, the Word doc opens along with

Exporting data to MS Word.

2006-02-28 Thread Anjishnu Bandyopadhyay
Hi all, I am trying to generate a MS Word document through WordML. The report contains some special (accentuated) French characters (e.g. é). In my java code, I am using "XMLOutputter" to generate the document. In the action class, I set the "response.setContentType("application/msword; cha

Exporting an image from JSP to MS Word

2006-03-02 Thread Anjishnu Bandyopadhyay
Hi all, I am generating a MS Word document through JSP, by setting the JSP's content type as "application/msword;". In the Word document, I want to display an image. But, I am not being able to export that image. I have tried giving the complete context path, and, the relative path; as the

RE: Exporting an image from JSP to MS Word

2006-03-02 Thread Anjishnu Bandyopadhyay
Hi Dave, Thanks a lot. I will have a look at it. With best regards, Anjishnu. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, March 03, 2006 3:19 AM To: Struts Users Mailing List Subject: Re: Exporting an image from JSP to MS Word Anjishnu Bandyopadhyay

Exporting an image from JSP to MS Word

2006-03-05 Thread Anjishnu Bandyopadhyay
Hi all, I had posted the same mail a few days ago, but didn't get a proper solution. I am generating a MS Word document through JSP, by setting the JSP's content type as "application/msword;". In the Word document, I want to display an image. But, I am not being able to export that image

regarding tag

2006-03-06 Thread Anjishnu Bandyopadhyay
Hi all, I am using the Struts resource bundle to display internationalized messages in my JSP, Eg. Here, the message is displayed according to the current locale. Now, I want to display a "French" string irrespective of the current locale. Can you tell me how to implement this? is

Set focus on a table on page load.

2006-03-16 Thread Anjishnu Bandyopadhyay
Hi all, I have a JSP page, which has a table (). On load of the page, I need to set focus on this table. I gave an "id" to the table, and tried something like this: var tblObj = document.getElementById("..."); docTblObj.focus(); But this does not work. So, I declared an anchor tag ()

RE: Set focus on a table on page load.

2006-03-16 Thread Anjishnu Bandyopadhyay
: Re: Set focus on a table on page load. Anjishnu Bandyopadhyay wrote: > I have a JSP page, which has a table (). On load of the page, I > need to set focus on this table. > Why would you want to set focus on something that can't receive use

Problem with character encoding.

2006-03-21 Thread Anjishnu Bandyopadhyay
Hi all, I am generating a MS Word document through a JSP, by setting the JSP's content type as "application/msword;". The ".doc" that is generated contains accentuated French characters (special French characters). I use Websphere (WSAD) to develop the code, but use Tomcat server for deploy

RE: Problem with character encoding.

2006-03-21 Thread Anjishnu Bandyopadhyay
? - Original Message - From: "Anjishnu Bandyopadhyay" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, March 21, 2006 5:51 AM Subject: Problem with character encoding. Hi all, I am generating a MS Word document through a JSP, by setting

RE: Struts Dynamic Radio Button Query

2007-01-10 Thread Anjishnu Bandyopadhyay
Hi Priya, You can use a for each Question row. For each question, you can have another inner for each answer radio button. <%-- Question comes here --%>

Export an image to MS Excel through Apache POI

2007-01-15 Thread Anjishnu Bandyopadhyay
Hi all, I am trying to write an application which will open an MS Excel sheet, and display an image in one of the cells. I am using Apache POI for opening, and populating values in the Excel sheet. Here, the image path will be somewhere in my server, or hard disk. Any pointers regarding the s

Opening a popup with same data as the main window

2006-06-21 Thread Anjishnu Bandyopadhyay
Hi all, I need to open a popup screen from a main window (on click of a button), with the same data as the main window. (The purpose is that the popup will serve a print preview screen for the data to be printed.) I cannot go to the server back and fetch the data. (This needs to be implemented

Printing background color in IE

2006-07-23 Thread Anjishnu Bandyopadhyay
Hi all, I want to print an IE screen, along with it's background color. On option is to "Tools --> Internet Options --> Advanced --> Printing" and set the option of printing background colors. But we need an alternative to this. May be in any CSS styles, or JavaScript; or anything like that.

RE: Passing value from pop window to parent window

2006-08-22 Thread Anjishnu Bandyopadhyay
Hi, You can try something like: function updatetext() { var val = document.getElementbyid("secondForm.attribute").value; window.opener.func(val); } Here, "func" is a JS function in the parent window. In "func", write your code to set the value. With best regard

Converting HTML content to PDF

2006-09-07 Thread Anjishnu Bandyopadhyay
Hi all, I am trying to programmatically convert an HTML file to pdf dynamically; by setting the content type. But, I am not being able to succeed. Any pointers regarding the same will be of much use. Please note that, I am not using a JSP here. (So that, I could be able to set the "content"

RE: Converting HTML content to PDF

2006-09-07 Thread Anjishnu Bandyopadhyay
27;t make a stop as HTML first, so it might help to understand a little better what your trying to do to offer some suggestions. But, it is definitely more than just the content type. Frank Anjishnu Bandyopadhyay wrote: > Hi all, > > > > > I am trying

RE: Converting HTML content to PDF

2006-09-07 Thread Anjishnu Bandyopadhyay
the client, in which case I doubt you'll find many options... *maybe* an applet that could grab the written contents of the document body and generate a PDF, but even that would be way more work than it needs to be. Generate on the server, that's the simplest and best answer :)