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"

Strange problem with content disposition

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

Re: s:a and result in new window

2008-06-18 Thread Paranoid_Fabio
t; something went 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 t

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

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 h

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 cl

Re: Two resource bundles in the same page?

2008-04-22 Thread Paranoid_Fabio
Thank you. The outline is: Navigation.jsp (the links bar that is included in the other pages): ..page content Home.jps (which includes Navigation.jsp): <[EMAIL PROTECTED] file="Navigation.jsp"%> page content Paranoid_Fabio wrote: > > Hell

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

Re: How to implement an help

2008-03-06 Thread Paranoid_Fabio
Ok. I tried also with 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

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

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

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 tag in the jsp page) as : LID è sbagliato > >

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 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" p

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 (somethin

Re: Invoking action method from javascript

2008-02-29 Thread Paranoid_Fabio
on that populates and list the table...and so on. In this case I could use 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 o

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 t

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. Tha

Re: Radio button with two boolean choices

2008-02-28 Thread Paranoid_Fabio
s 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, in a form. > The attribute that will be set by selecting one of the

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 dir

Re: Tabbed panel problem

2008-02-27 Thread Paranoid_Fabio
ssagges 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

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:

Re: Tabbed panel problem

2008-02-19 Thread Paranoid_Fabio
e tab/remote div to load > html 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 >

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:

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 t

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 sho

Re: Form with upload

2008-02-16 Thread Paranoid_Fabio
o have, 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 parameter..but I guess I'm doing something wrong. Paran

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

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: . in the widget, i get the "loa

Re: Parameters in URL

2008-02-15 Thread Paranoid_Fabio
e url become .../showAdminPage.action?request_locale=en_US 4)If I call another action, let's say Action2 the url become: .../Action2.action?request_locale=en_US The parameters remains appended even if I used includeParams="none" Paranoid_Fabio wrote: > > Hi, i'm new

Re: Parameters in URL

2008-02-15 Thread Paranoid_Fabio
I'm sorry but I meant "includeParams=none". I wrote it correctly in the code but I posted it wrong. The result is the same, params are included in the url. The code is: en_US Paranoid_Fabio wrote: > > Hi, i'm new to st

Re: Parameters in URL

2008-02-14 Thread Paranoid_Fabio
g the "url" tag correctly.Am I? Clicking on the link, the browser shows "../showAdminPage.action?request_locale=en_US e the parameter remains displayed when i call other actions from the new jsp. What i'm doing wrong? Paranoid_Fabio wrote: > > Hi, i'm new to struts.

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 d

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. > B

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 t

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 t

Problem passing parameters do action...parameters remain displayed

2007-12-12 Thread Paranoid_Fabio
Dave Newton yahoo.com> writes: > > See if helps. > > You can also set that as a default. > > I do agree with the other response that using the tag makes > things a little cleaner. > > d. Thank you. The problem of the "growing" parametes is gone, but the parameter ?amount=... remains on a

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 "> "> "> In the Purchase action class i've