Re: Strange problem with content disposition

2008-06-27 Thread Paranoid_Fabio
Yes. You're right. Thank you very much. Paranoid_Fabio wrote: Hello. I've a very strange problem using content disposition in stream result: result name=success type=stream param name=contentType${contentType} /param param name=inputNamedownloadStream /param param name

Strange problem with content disposition

2008-06-26 Thread Paranoid_Fabio
Hello. I've a very strange problem using content disposition in stream result: result name=success type=stream ${contentType} downloadStream filename=${fileName} 1024 /result fileName is a field of my action

Re: s:a and result in new window

2008-06-18 Thread Paranoid_Fabio
Thank you for the reply. I tried your solution and the action is invoked..the problem is that,using the standard html anchor, the parameters are not passed to my action. Paranoid_Fabio wrote: Hello. What I want to do is a very simple thing, but I can't find a solution. I call an action

Re: s:a and result in new window

2008-06-18 Thread Paranoid_Fabio
wrong applying the parameters when the request was made. Determine where it failed, and that will tell you where to focus on debugging further. L. Paranoid_Fabio wrote: Thank you for the reply. I tried your solution and the action is invoked..the problem is that,using the standard html

s:a and result in new window

2008-06-16 Thread Paranoid_Fabio
Hello. What I want to do is a very simple thing, but I can't find a solution. I call an action from a jsp page, and I want to display the resulting jsp page in a new browser window. I've already read about target=_blank, target=_new etc... but I can't use them because I can't use the simple html

Ajax and page refresh

2008-06-13 Thread Paranoid_Fabio
Hello. I'm using Struts2 with Ajax support and I'm able to refresh the content of a div with remote content via Ajax calls. Anyway I've a problem: when the div is refreshed, the page is scrolled up to the top, like if the entire page is refreshed.That's it, if I scroll down the page and then i

Re: Two resource bundles in the same page?

2008-04-22 Thread Paranoid_Fabio
Paranoid_Fabio wrote: Hello. I've a problem with i18n resource bundles. I've a page home.jsp that uses a resoruce bundle res1 for internationalization. home.jsp, like all the pages of my web app, includes bar.jsp which is a bar with some links. The links are also internationalized

Two resource bundles in the same page?

2008-04-21 Thread Paranoid_Fabio
Hello. I've a problem with i18n resource bundles. I've a page home.jsp that uses a resoruce bundle res1 for internationalization. home.jsp, like all the pages of my web app, includes bar.jsp which is a bar with some links. The links are also internationalized and this bar uses the resource

How to implement an help

2008-03-06 Thread Paranoid_Fabio
Hello. I'm trying to implement an help page consisting of and index (on the left) and a content part(on the right) that is refreshed when the user click on an index entry, like a common help. I'm having trouble to do this.. I'm trying using two iframes but I can't manage to get the second frame

Re: How to implement an help

2008-03-06 Thread Paranoid_Fabio
Thank you for the reply. I haven't tried with frame, but only with iframe..i thought that target work. I'm testing with Firefox 2.0.0.12. I will try with frame. Paranoid_Fabio wrote: Hello. I'm trying to implement an help page consisting of and index (on the left) and a content part

Re: How to implement an help

2008-03-06 Thread Paranoid_Fabio
Ok. I tried also with frame but no way. When I click on the index entry, the corrisponding help page is showed in a new browser window... :( Paranoid_Fabio wrote: Hello. I'm trying to implement an help page consisting of and index (on the left) and a content part(on the right

apostrophe does not appear

2008-03-05 Thread Paranoid_Fabio
Hello. I've a problem. Apostrophe in resource files of my application does not appear. example: Property1=L'ID è sbagliato is showed (using text tag in the jsp page) as : LID è sbagliato I'm using ISO-8859-1 in Eclipse editor and I include this on top of every jsp page: %@ page language=java

Re: apostrophe does not appear

2008-03-05 Thread Paranoid_Fabio
Solved! Thank you :) Paranoid_Fabio wrote: Hello. I've a problem. Apostrophe in resource files of my application does not appear. example: Property1=L'ID è sbagliato is showed (using text tag in the jsp page) as : LID è sbagliato I'm using ISO-8859-1 in Eclipse editor and I

Invoking action method from javascript

2008-02-29 Thread Paranoid_Fabio
Hello. I've an action that populates a table with some info. In each row, there's a button to delete the entry and the associated object from the DB. In my action class I've a list (something like a queue) of the ID that will be removed after the user clicks on the apply button. So, all I want to

Re: Invoking action method from javascript

2008-02-29 Thread Paranoid_Fabio
Ok. Thank you. I will try this way. Paranoid_Fabio wrote: Hello. I've an action that populates a table with some info. In each row, there's a button to delete the entry and the associated object from the DB. In my action class I've a list (something like a queue) of the ID

Re: Invoking action method from javascript

2008-02-29 Thread Paranoid_Fabio
on. In this case I could use s:div with target to refresh only the table. Paranoid_Fabio wrote: Hello. I've an action that populates a table with some info. In each row, there's a button to delete the entry and the associated object from the DB. In my action class I've a list (something like

Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
Hello. I know it's really simple but I cannot make it works. What I want to do is to put a radio button with two options, in a form. The attribute that will be set by selecting one of the two options is a boolean. That's it, simpy a true/false choice. 1) Is it possible to declare a static list

Re: Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
? s:radio list=#{true:'True', false:'False'} name=c_sub/ (the part in Bold is what the editor highlight as syntax error...) Thank you Paranoid_Fabio wrote: Hello. I know it's really simple but I cannot make it works. What I want to do is to put a radio button with two options

Re: Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
ok.No matter. Thank you Paranoid_Fabio wrote: Hello. I know it's really simple but I cannot make it works. What I want to do is to put a radio button with two options, in a form. The attribute that will be set by selecting one of the two options is a boolean. That's it, simpy a true/false

Re: Tabbed panel problem

2008-02-27 Thread Paranoid_Fabio
is added and Action2 returns error. JSP1.jsp (as result of error result type) should be displayed again, inside the tab, with error messages. The problem is that JSP1 is now displayed like a standalone page. Paranoid_Fabio wrote: Hello. I try to explain the problem as cleary as possible: I want

Re: Tabbed panel problem

2008-02-21 Thread Paranoid_Fabio
Thank you for the reply. But I can't understand how I could set this div as target of the form if the form is in other JSP, shown as result of the invoking of an action from inside the tab. ?? Paranoid_Fabio wrote: Hello. I try to explain the problem as cleary as possible: I want

Re: Tabbed panel problem

2008-02-19 Thread Paranoid_Fabio
fragments into your tabs asynchronously, but; - you also want to use the notifyTopics and listenTopics features of these tags to trigger refreshing/reloads See the topics section of :http://struts.apache.org/2.0.11/docs/ajax-tags.html Paranoid_Fabio wrote: Hello. I try to explain

tabbed panel refresh on input

2008-02-18 Thread Paranoid_Fabio
Hi everyone. My problem is that I have a jsp page with a tabbed panel consisting of two tabs. The main action is showUpload that shows upload.jsp. In one of the tab, I've a form that the user should fill and send to the manualUpload action. If some required fields are not filled, I should show

Tabbed panel problem

2008-02-18 Thread Paranoid_Fabio
Hello. I try to explain the problem as cleary as possible: I want to manage a jsp with two views: mainPage.jsp is a jsp with a tabbed panel. In the tabbed panel I've two tabs. In each tab calls an action and shows the resulting jsp correctly. Here's the code of mainPage.jsp tabbed panel:

Form with upload

2008-02-16 Thread Paranoid_Fabio
Hello. I have to implement a file upload. Togheter with it, the user have to fill a form. The form is like: title price image The user should fill the title and price field, upload an image and then, clicking a submit button, send the form parameters to the action.

Re: Form with upload

2008-02-16 Thread Paranoid_Fabio
, in the end, all the data (image, files, paramaters) available in the same action.. so what I thought to do is to call different methods of the same action class via different action names in struts.xml, each declaring a different method parameter..but I guess I'm doing something wrong. Paranoid_Fabio

Re: Form with upload

2008-02-16 Thread Paranoid_Fabio
ok. I've understood. Thank you very much Paranoid_Fabio wrote: Hello. I have to implement a file upload. Togheter with it, the user have to fill a form. The form is like: title price image The user should fill the title and price field, upload an image

Re: Parameters in URL

2008-02-15 Thread Paranoid_Fabio
/s:url s:a href=%{en} Paranoid_Fabio wrote: Hi, i'm new to struts. I'm developing a web application and I can't understand why parameters still in the url beetwen actions calls. I try to explain it better (sorry for my poor english): I call myAction?paramx=valuex and the url

Re: Parameters in URL

2008-02-15 Thread Paranoid_Fabio
if I used includeParams=none Paranoid_Fabio wrote: Hi, i'm new to struts. I'm developing a web application and I can't understand why parameters still in the url beetwen actions calls. I try to explain it better (sorry for my poor english): I call myAction?paramx=valuex and the url becomes

Error with action call from div

2008-02-15 Thread Paranoid_Fabio
Hello. I've the following problem I'm stuck with: A tabbed panel with some divs: s:tabbedPanel id=upload_options s:url id=mu action=ManualContentUpload/ s:div id=one key=ContentUploadMain.Option.1 theme=ajax

Parameters in URL

2008-02-14 Thread Paranoid_Fabio
Hi, i'm new to struts. I'm developing a web application and I can't understand why parameters still in the url beetwen actions calls. I try to explain it better (sorry for my poor english): I call myAction?paramx=valuex and the url becomes .../myAction?paramx=valuex correctly. Then, my new

Re: Parameters in URL

2008-02-14 Thread Paranoid_Fabio
? Paranoid_Fabio wrote: Hi, i'm new to struts. I'm developing a web application and I can't understand why parameters still in the url beetwen actions calls. I try to explain it better (sorry for my poor english): I call myAction?paramx=valuex and the url becomes .../myAction?paramx=valuex correctly

Re: cannot redirect to an URL

2007-12-14 Thread Paranoid_Fabio
Yes. The first time i saw the errore message I thought the same. It was like the content of the variable was the page itself, rather then the url. But I checked it and I can assure you that the content of the variable is actually the url, not the page itself. Nils-Helge Garli wrote: The

cannot redirect to an URL

2007-12-14 Thread Paranoid_Fabio
Hello. I've a problem whit redirect and i'm really going mad. All i want to do is very simple. I've an action that sends a post to a server. The server answer with a page to which i've to redirect the client. When the server answer, i read the page in a buffer and i extract the url to which i've

Re: cannot redirect to an URL

2007-12-14 Thread Paranoid_Fabio
I solved the problem.. It was just a stupid error in a xml file :( Thank you anyway for the advice. Paranoid_Fabio wrote: Yes. The first time i saw the errore message I thought the same. It was like the content of the variable was the page itself, rather then the url. But I checked

sendRedirect only works with final string

2007-12-13 Thread Paranoid_Fabio
Hello. I'm a problem and i'm really going mad with redirect... All i want to do is very simple. I've an action that sends a post to a server. The server answer with a page to which i've to redirect the client. When the server answer, i read the page in a buffer and i extract the url to which i've

Problem passing parameters do action...parameters remain displayed

2007-12-12 Thread Paranoid_Fabio
Dave Newton newton.dave at yahoo.com writes: See if s:url ... includeParams=none .../ helps. You can also set that as a default. I do agree with the other response that using the s:param.../ tag makes things a little cleaner. d. Thank you. The problem of the growing parametes is

Problem passing parameters do action...parameters remain displayed

2007-12-11 Thread Paranoid_Fabio
Hi everyone. I'm new to Struts and i'm developing a web application. I've a page with 3 links. Every link call the doPurchase action, but each passes a different amount.Here's the snippet of the jsp that calls doPurchase action pspan style=font-size:8pt;a href=s:url