Re: Struts2 Memory Management

2011-10-19 Thread Robert Graf-Waczenski
Am 19.10.2011 16:16, schrieb dan.zheng: So many objects dump directly to jsp will certainly consume a lot memory,I suppose you can enlarge your Web Server's jvm memory size to afford your requirement such as "-Xms 1024m -Xmx 1024m",more details can come from google "jvm tuning" What do you mean

Re: Struts2 Memory Management

2011-10-19 Thread Robert Graf-Waczenski
Am 19.10.2011 15:49, schrieb Charles Godfrey: Sorry, let me clarify. I meant loading all those objects into the action class vs. lets say loading 50 at a time and doing out.println() in your servlet, then repeating this, so you are only ever loading 50 (or whatever number) into memory. Nothing

Re: Action Struts2

2011-01-12 Thread Robert Graf-Waczenski
Am 12.01.2011 14:02, schrieb Mohamed SIDI: Hello, I woud like to know if the Struts actions are singleton based or not, some links treating this topic are pleased Thanks Struts2 actions are far away from being singletons. Quite the contrary: Instances of action classes are created (IIRC) f

Re: AJAX file upload

2010-12-01 Thread Robert Graf-Waczenski
Am 30.11.2010 21:59, schrieb Harsh C: How can I setup a AJAX-ified file upload page using Struts 2? If there is some integration with Dojo, it would be even better i.e. not use the OS specific file upload button etc. There are various resources floating around in the net regarding "AJAX file

Re: Emailing the contents of a Struts2 view?

2010-07-08 Thread Robert Graf-Waczenski
Am 08.07.2010 15:44, schrieb ch...@chrismiles.org: Thanks yeah I see what you mean. It would be easy to have a class generate tons of HTML but that would be cumbersome. Getting the resuling rendered JSP would be something tricky. Yes, tricky indeed, but currently the only way to go. Our own

Re: Confusing model with controller

2010-05-25 Thread Robert Graf-Waczenski
My intuition for the "model" is "that which is serialized to disk" (or, more generally: "to persistent storage"). This means that such a class does not contain any business logic but only has getters and/or setters. In reality (and in many nontrivial projects) the distinction is not as strict,

Re: Change form bean properties in JSP

2010-05-20 Thread Robert Graf-Waczenski
Am 20.05.2010 13:16, schrieb Manoj Singh: Hi, Thanks for your reply. Please let me know how to do it? Thanks, Manoj On Thu, May 20, 2010 at 4:42 PM, Robert Graf-Waczenskiwrote: Am 20.05.2010 12:50, schrieb Manoj Singh: Hi, Is it possible to change the value of form bean proper

Re: Change form bean properties in JSP

2010-05-20 Thread Robert Graf-Waczenski
Am 20.05.2010 12:50, schrieb Manoj Singh: Hi, Is it possible to change the value of form bean properties in JSP Page? If yes, then please let me know. Thanks, Manoj Yes. - To unsubscribe, e-mail: user-unsubscr...@strut

Re: ExecAndWait interceptor parameters lost

2010-05-05 Thread Robert Graf-Waczenski
Am 05.05.2010 12:42, schrieb Yiorgos Panayiotakis: Thank you, Though I have little experience in web development I was aware of that, but I avoided using sessions due to the fact that a user could open multiple tabs in a browser and issue multiple requests that would belong to the same session. S

Re: input fields with dynamic names

2010-05-04 Thread Robert Graf-Waczenski
Have your Action method getAuthorizedOptions() return something like a Hashtable, where MyBean is your inner thingy with methods setWhateverProperty() and getWhateverProperty(). Then your iterator incantation as below: would deliver instances of Hashtable.Entry, which means that you would b

Re: previous action

2010-04-15 Thread Robert Graf-Waczenski
lucas owen schrieb: thanks for the answer, but I'm completely sure you can obtain it from ActionContext or ActionInvocation or something similar... Not to my knowledge (i may be wrong, though). My understanding of the ActionContext and the ActionInvocation is that both are valid only per req

Re: [Struts 2.1.8] s:url : how to open in a new window ?

2010-03-23 Thread Robert Graf-Waczenski
Hi! How about using target="_blank" instead of onclick? Robert Gustavo Felisberto schrieb: Hello, This is a JS thing. Try: onclick="javascript:window.open('%{genererRapportPDF}'); return false;" Gustavo -Mensagem original- De: Celinio Fernandes [mailto:cel...@yahoo.com] Enviada:

Re: checkbox array

2010-02-23 Thread Robert Graf-Waczenski
as I have previously commented... WHY? It seems it has to be always selected one of the checkboxes at least 2010/2/23 Robert Graf-Waczenski lucas owen schrieb: Hi struts users, I'm working with a checkbox array; the problem is that it doesn't work as a single checkbox: I can'

Re: checkbox array

2010-02-23 Thread Robert Graf-Waczenski
Tatiyana Tarabara schrieb: Voviya, Could you please pick up Nadika from horse riding at 7:30 p.m. today? A ya popletus' v Majer. T. No i won't, sorry. :-) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addit

Re: checkbox array

2010-02-23 Thread Robert Graf-Waczenski
lucas owen schrieb: Hi struts users, I'm working with a checkbox array; the problem is that it doesn't work as a single checkbox: I can't have the checkbox array with all checkboxes unchecked (apart from the beginning) Example: I check checkbox1. I check checkbox2. I uncheck checkbox2 --> OK I

Re: Convert struts tag to html

2010-01-21 Thread Robert Graf-Waczenski
VSGoud schrieb: Hi Friends, When i am using Data Tag , loosing linebreaks ,spaces etc. which were there in the DataBase columns. I am eager to convert the fetched data to html. Could u help me out from this issue. Srikanth Even though your problem is completely unrelated to Struts (and ther

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Robert Graf-Waczenski
Dale Newfield schrieb: Robert Graf-Waczenski wrote: which correctly yields a runtime error Unless you're in devMode, I don't want anything yielding a runtime error, I want it to proceed as best it can, and let me know so I can address any potential issue (the logging is a step fo

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-02 Thread Robert Graf-Waczenski
Dale Newfield schrieb: so setting doesnt fail? No, it doesn't fail, the text input field is rendered with empty contents. That is the appropriate way for it to render if the property is indeed missing. Is a warning generated in your logs? I would not call this appropriate. It should b

Re: S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-01 Thread Robert Graf-Waczenski
Musachy Barroso schrieb: On Tue, Dec 1, 2009 at 3:41 AM, Robert Graf-Waczenski wrote: so setting doesnt fail? musachy - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail

S2.1.8.1: Need something similar to struts.el.throwExceptionOnFailure for and

2009-12-01 Thread Robert Graf-Waczenski
Hi, we recently upgraded to Struts V2.1.8.1. One of the reasons for the upgrade was the option to have the system throw an exception when OGNL expression evaluation encounters an error or is unable to find the corresponding propertey accessor method. This works just fine, i.e. using results

Re: [OT] Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-27 Thread Robert Graf-Waczenski
Dave Newton schrieb: Robert Graf-Waczenski wrote: And, to tell the truth, our choice to use "getmProperty()" as accessor method naming pattern was a bad one originally but we lived with it since the beginning and are now being bitten in the behind :-) That about sums it up, I t

Re: [OT] Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-27 Thread Robert Graf-Waczenski
I agree to your observation, Dave. Point well made. I would like to get a comment from you about my claim about backwards incompatibility, though. Robert Dave Newton schrieb: Robert Graf-Waczenski wrote: And, to tell the truth, our choice to use "getmProperty()" as accessor met

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-27 Thread Robert Graf-Waczenski
arrogant SOB that decided to defy the Bean naming conventions. LOL. (No offense intended if he is present company :) With affection, Bill On Thu, Nov 26, 2009 at 8:31 AM, Robert Graf-Waczenski wrote: Rafał Krupiński schrieb: On Thu, Nov 26, 2009 at 4:41 PM, Robert Graf-Waczenski wrote

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Rafał Krupiński schrieb: On Thu, Nov 26, 2009 at 4:41 PM, Robert Graf-Waczenski wrote: approach, which is tedious work because [...] i have to go through each applicable class and refactor-rename each method. Please don't try to make us feel guilty :-) You'll ge

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
eclipse will do the rest, plus there's a bonus, You don't need to change anything in your jsp files. Ant to be absolutely sure everything worked well simply run all your tests after the refactoring. But of course it's for You to decide what to do. Best greetings, Paweł Wielgus. 2

Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Hi, we do of course use a refactoring tool, but we are talking about a huge amount of methods. I'm not aware of a refactoring tool that would allow me to rename *all* methods in *one* step. Robert Rafał Krupiński schrieb: Robert Graf-Waczenski pisze: Hi, [...] Since we (obviously)

S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)

2009-11-26 Thread Robert Graf-Waczenski
Hi, we are currently in the process of evaluating if upgrading our app from Struts 2.1.6 to 2.1.8.1 is feasible. Currently it is not because various things stopped working, but i'll like to work on one of them at a time. We frequently (*very* frequently, actually) use property names such as

Re: How to get the host name if proxy is configured

2009-11-23 Thread Robert Graf-Waczenski
Mageshwaran schrieb: Hi All, In my application, am using request.getRemoteHost() to get the host name where the client is running. But it is returning the proxy address if configured instead of host address/ host name. Can any one help me to solve this issue? Thanks in Advance, Magesh. -

Re: findForward forwards twice, not once

2009-11-17 Thread Robert Graf-Waczenski
Hi, why does your forward "ShowList" forward to an action url? In good old Struts1 manner, this should not be necessary. Instead, i would implement place-list.jsp in such a way that it extracts all necessary information from the user's session. Your action PlaceAction should then prepare ever

Re: Form wizard: how to manage state?

2009-11-12 Thread Robert Graf-Waczenski
Alex Siman schrieb: Suppose a state of the form wizard is stored in session. And ID of current wizard process is passed with every form submit. But if user unfinishes process and leaves the form wizard, then wizard data will pollute the session. What is the best way to manage form wizard state?

Re: Binding multiple values to a single immutable object

2009-11-03 Thread Robert Graf-Waczenski
Gareth Davis schrieb: The more I look at the Ognl stuff and the ParametersIntercepter the more I've convincing my self that this is just not possible with the framework, can anybody confirm this? Others may have a deeper knowledge of the framework, but i would approach your issue differentl

Next GA release?

2009-08-28 Thread Robert Graf-Waczenski
Hi, some time ago there was a release of Struts V 2.1.7 in the making. IIRC, this release was cancelled because there was a class missing, so the release was postponed and we are now waiting for V 2.1.8. Now, do those of you who have deeper insight into the development roadmap have any inform

Re: Display Doc or PDF file in JSP

2009-07-27 Thread Robert Graf-Waczenski
Paweł Wielgus schrieb: Hi Nitesh, as far as i know it's impossible with DOC, but pretty easy with PDF, just create iframe with source that will point to that pdf file. Most browsers on computers where acrobat reader is installed will display it as an inline document, i don't know if it will work

Re: ParameterInterceptor problem

2009-07-16 Thread Robert Graf-Waczenski
Say Jon schrieb: public void prepare() throws Exception { super.prepare(); BaseEntity model = null; if (getId() != null) { model = (BaseEntity) session.get(getEmbeddedModelKey() + getId()); if (model == null) model = service.retrieve(modelClass, getId()); } if (model == null && !(this inst

Re: ParameterInterceptor problem

2009-07-15 Thread Robert Graf-Waczenski
Even though you are pretty vague in what you write below, i have a few pointers for you: 1) Check (and tell us) if you designed your action implements the ModelDriven interface (guessed from you talking about getModel() below) 2) Maybe your getModel() returns an improperly initialized instance

Re: not displaying errors!

2009-07-09 Thread Robert Graf-Waczenski
My first guess would be that you are not properly dispatching back to your input page. A closer look at your struts.xml would clarify this, though. Robert Kavita Mehta schrieb: Hi, I am using Struts 2.0 and I am not able to display the action errors in my JSP. Action class code : if( ( g

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions: RESOLVED in 2.1.7!

2009-05-18 Thread Robert Graf-Waczenski
Thanks, Musachy, this would be *exactly* what i want. Robert Musachy Barroso schrieb: It was added after 2.1.6 and it will be available in 2.1.7, here is the ticket: https://issues.apache.org/struts/browse/WW-3051 you need to set: musachy On Fri, May 15, 2009 at 9:09 AM, Robert Graf

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Zoran Avtarovski schrieb: We upgraded to 2.1.6 and I remember that the messages starting appearing in the logs. Here are the two entries in my log4j properties file to restrict output only to errors: log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR log4j.logger.org.apache.struts2.

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Zoran Avtarovski schrieb: It¹s in 2.1.6. In fact I was glad they were there and also to be able to get rid of them. Z. In 2.1.6 already? We're using 2.1.6, so then i'd like to know how i would enable this. Thanks, Robert --

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Dave Newton schrieb: Robert Graf-Waczenski wrote: Are there any plans in a (current or) future version of Struts2 to enable such a behavior? That was added a month or two ago. Dave - To unsubscribe, e-mail: user-unsubscr

[S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Robert Graf-Waczenski
Hi, first off: Sorry for the rude subject, this is meant to be catchy in order to gain as much feedback as possible. We are using Struts2 more and more in our large and nontrivial application. I'd like to once again raise attention to a phenomenon that has already been complained about by va

Re: breaking struts.xml

2009-03-25 Thread Robert Graf-Waczenski
David C. Hicks wrote: It's just a resource on your classpath like any other. Never done it, but you should be able to without any problem. sudhi123 wrote: Hello ... I am quite new to struts2 I just want to know how to break struts.xml in to a module (jar). Anybody has done this ...?

Re: Server-side equivalent of tag?

2009-03-05 Thread Robert Graf-Waczenski
at 3:09 PM, Robert Graf-Waczenski wrote: Hi! We need the ability to fetch the result of a Struts2 action on the server, so that the response text is available as a String. With a Struts1 action, we were able to utilize a RequestDispatcher for this task. Due to Struts2 being served by a filter

Server-side equivalent of tag?

2009-03-05 Thread Robert Graf-Waczenski
Hi! We need the ability to fetch the result of a Struts2 action on the server, so that the response text is available as a String. With a Struts1 action, we were able to utilize a RequestDispatcher for this task. Due to Struts2 being served by a filter and not by a servlet, this approach no l

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Robert Graf-Waczenski
The javascript solution is of course only production-ready if you use it in an application that is safeguarded against access w/o javascript, i.e. you also need an error page that tells the user to enable javascript in order to use your application. We here in our shop do it this way (we need j

Re: Handling Browser Back/Forward Button in Struts2

2009-01-20 Thread Robert Graf-Waczenski
You don't write if the browser back button is supposed to be functional in your application (in many cases it is not, but YMMV). If you want to disable the browser back button, use the code below in all your pages: history.forward(); I'm not aware of any feature in Struts2 that deals with

Re: How can I render a two column layout with

2009-01-19 Thread Robert Graf-Waczenski
Hi! Add "theme='simple'" to your tag, then no tag is written and you can supply your own custom layout. Robert Michael Obster wrote: Hi, can anybody tell me how I can make a two column layout with ? Putting some table tags around doesn't work because renders also as table. To get my i

Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?

2009-01-15 Thread Robert Graf-Waczenski
the Warning You are seeing complains about no action A in namespace B. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : Yes, that's what the documentation says but in my setup here it simply does not work. If i write the s:form tag as you suggest, then the form

Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?

2009-01-15 Thread Robert Graf-Waczenski
re seeing complains about no action A in namespace B. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : Yes, that's what the documentation says but in my setup here it simply does not work. If i write the s:form tag as you suggest, then the form action property has the value

Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?

2009-01-15 Thread Robert Graf-Waczenski
ts.enable.SlashesInActionNames true struts2 *.action struts2 *.jsp Robert Paweł Wielgus wrote: Hi Robert, shouldn't it be: ? Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : Hi all, i'm using S2 since

[S2] How to get rid of "WARNING: No configuration found for the specified action:"?

2009-01-15 Thread Robert Graf-Waczenski
Hi all, i'm using S2 since a while now (started with 2.0 betas and using 2.1.6 GA currently) and one of the issues that i'm still having is that even though my struts.xml is configured properly (meaning that all the intended action methods are called as i want them to be called), i'm still se

Re: Upgrading Struts from 1 to 2.0.14

2009-01-14 Thread Robert Graf-Waczenski
Frank W. Zammetti wrote: Dave is 100% correct: S2 != S1. They have a few concepts in common naturally, but there is, I think it's fair to say, more that makes them different than makes them alike. A complete rewrite is probably the best bet (I heard tell of some porting possibilities, side-

Roadmap for GA Release of Struts 2.1?

2009-01-12 Thread Robert Graf-Waczenski
Hi All, i see that many of you fine people are using Struts 2.1 already. I'm a bit concerned to use a beta release in our production system here, so i'd like to know if there is any schedule for the GA release of 2.1. This here http://struts.apache.org/2.1.2/docs/version-notes-212.html only

Re: OGNL exceptions are swallowed by struts2

2009-01-09 Thread Robert Graf-Waczenski
Hi! To my knowledge, you have to enable devMode. This gives you a lot of debugging output and exception stack traces on the console. The drawback is that it makes your application rather sluggish. Yes, the article you quote is well known. I agree, Struts2 sucks big time in this regard while

[S2] UI Tags: Wrong property name handled too leniently (same with OGNL)

2008-12-18 Thread Robert Graf-Waczenski
Hi! With Struts1, i am used to getting runtime exceptions when for example was used and when the underlying form class did not offer a getter or setter for the property "whatever". Now with Struts2 (V2.0.14), i'm using and i'm observing that the underlying action class does not have an appr

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
. 2008/12/17 Robert Graf-Waczenski : This does not sound like what i'm after. I need something like this: -- write iterator row details In your iterator, the status attribute defined (e.g., status="stat" in your case) is an object of type "IteratorStatus". It has

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
, isEven, isFirst, isLast, isOdd, and modulus. You could check isLast to find the last row (e.g., stat.isLast == true). Beez ( 4961 -Original Message- From: Robert Graf-Waczenski [mailto:r...@lsoft.com] Sent: Wednesday, December 17, 2008 10:27 AM To: Struts Users Mailing List Subject

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
Thanks Dave, that was a very enlightening suggestion, i'm using right now. One thing remains: After , i need to know if the iterator that was processed previously delivered rows or not. How would i accomplish this? Robert Dave Newton wrote: --- On Wed, 12/17/08, Robert Graf-Waczenski

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
d inside the for loop: <% pageContext.setAttribute("row", row); %> With this, the value is constructed dynamically as i want it, i.e. the ognl expression #attr.list.getEntry(#attr.row,0) translates to a method call list.getEntry(row, 0). Robert Robert Graf-Waczenski wrote: Hm. Tried this, didn

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
l documentation and i am under the assumption to have understood it :-) Robert Dave Newton wrote: --- On Wed, 12/17/08, Robert Graf-Waczenski wrote: [...] how would i access the value of a JSP-local variable in an ognl expression? #attr.foo http://struts.apache.org/2.x/docs/ognl.htm

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
Dave Newton wrote: How would one create a url with multiple url parameters? That bit was clear to me. The unclear part is where you put "..." above :-) I need a method to supply somthing dynamically for the "vaue=" attribute of the tag. OGNL has been suggested as the soluti

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
ing multiple inside the url tag. I think rtexprvalue was disabled due to some security issues with the combination of ognl and rtexprval. However, you should be able to use ognl expressions instead. Nils-H On Wed, Dec 17, 2008 at 11:59 AM, Robert Graf-Waczenski wrote: Hi, i'm using in

[S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
Hi, i'm using inside an tag to dynamically generate the appropriate url params. In my current example i only need one parameter, so in order to add the parameter value dynamically to the url, i can do so here: <%=whateverObject.getBlurb()%> So i have a situation were i can do what i curre

Re: how many forms do i need??

2008-12-17 Thread Robert Graf-Waczenski
Using many form classes is ok with Struts. Design your form classes as you like them and implement custom validation in every class as you need it. In our application we have countless form classes with various flavors of validation depending on the form's purpose. No, i will not help you des

Re: how many forms do i need??

2008-12-17 Thread Robert Graf-Waczenski
Hi! AFAIK, Struts does not impose an upper limit on how many forms you use. So if using many form classes fits with your own design principles (which IMO are outside of the scope of struts), then you should use this approach. Or are you instead asking if having the same fields and methods d

Re: S2 V2.0.14: with HTML in property key value

2008-12-17 Thread Robert Graf-Waczenski
Yes, that's what i can do for a button, so by using cssStyle="padding-left:1em; padding-right:1em" i'm achieving the layout that i want to see, thanks. Robert Dave Newton wrote: --- On Tue, 12/16/08, Robert Graf-Waczenski wrote: I would like to avoid the HTML encoding

Re: Fwd: export file data using formFile

2008-12-17 Thread Robert Graf-Waczenski
elyes sallem wrote: it forwarded me to page with "unreadable data" comapred to the first example, you omit the resp.setHeader("Content-Disposition", ... Sorry if this sounds a bit harsh, but the people on this list are not here to solve any single Java or Servlet-API related mystery for you

S2 V2.0.14: with HTML in property key value

2008-12-16 Thread Robert Graf-Waczenski
Hello all, I'm using and my properties file looks like this: myproperties.caption.buttoncaption=  OK   This yields a button with the label "  OK  ", i.e. the button text has been HTML-encoded before it was sent to the browser. I would like to avoid the HTML encoding, so that the button ca

Re: Fwd: export file data using formFile

2008-12-16 Thread Robert Graf-Waczenski
excel file on the server and i have a button to download it for the client (of course with a browse dialog) could you show me how develop it , in your example , you call writePDFDataToOutputStream and it is a pdf file which is not my case Thanks Regards Elyes 2008/12/15 Robert Graf-Waczenski

Re: get file path from FormFile

2008-12-16 Thread Robert Graf-Waczenski
Looking at your previous posts, i think that you are wasting your time even thinking about using a java applet. Go back a few steps and think again, maybe answering the following simple sequence of questions: 1) Your web application server has access to some data somewhere. The data can be any

Re: Fwd: export file data using formFile

2008-12-15 Thread Robert Graf-Waczenski
Here's an example: public class Downloader extends HttpServlet { private void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setHeader("Pragma", "no-cache"); resp.setHeader("Cache-control", "no-cache"); resp.setIntHeader("Expires", -1);

Re: Fwd: export file data using formFile

2008-12-15 Thread Robert Graf-Waczenski
Hm. Sounds more like a download, not like an upload. Is that what you're after? Robert elyes sallem wrote: the problem is that with the html:file you must browse to an existant file, but in my case, i wanna browse to a new file, and then in the action i will make some treatment, generate data

Re: Fwd: export file data using formFile

2008-12-15 Thread Robert Graf-Waczenski
There is no reliable way to get the selected file path. This has been discussed a few days ago on this list. Robert elyes sallem wrote: it is not to export the file content , i want juste get back in the action, the *selected file path* 2008/12/15 Dave Newton --- On Mon, 12/15/08, elyes

Re: file name as null in model driven

2008-12-12 Thread Robert Graf-Waczenski
Hi, your problem description is a bit vague. Please post the source code of your upload page, the source code of your action class and the relevant parts of your struts.xml. I'm sure that then someone can help. Robert srinivasa_v . wrote: Hi All I have werid problem, I am using file upload

Re: initialise a form file

2008-12-11 Thread Robert Graf-Waczenski
parameter to other function but in the formFile, i find only getFileName(), which gives only the name , not the absolute path have you an idea how can i get the absolute path? Regards Elyes 2008/12/11 Robert Graf-Waczenski <[EMAIL PROTECTED]> Hi, short answer: This is not possible

Re: initialise a form file

2008-12-11 Thread Robert Graf-Waczenski
Hi, short answer: This is not possible. This restriction is not imposed by Struts but is instead due to a restriction of the html tag, for which the value can not be prefilled or changed programmatically. In our app we therefore have the pattern that when a file is currently already uploaded

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Tue, 12/9/08, Robert Graf-Waczenski <[EMAIL PROTECTED]> wrote: getmFoo() as getter works just fine here with S2 as it did since almost eight years with S1. Which version of S2? I'll re-check when I get home and follow up. T

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Tue, 12/9/08, Robert Graf-Waczenski wrote: [...] I was guessing in that direction already but wanted a guru to confirm this first, which is what you did. Minus the "guru" part ;) That's our naming spec and we have decided to also use thi

Re: Struts2: Pre-populate form with values from a session bean

2008-12-09 Thread Robert Graf-Waczenski
Dave, your comments helped me resolve the issue, see my comments below. Dave Newton wrote: A couple of comments, although with the configuration provided I'm not getting as far as you are. --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: name="com.

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: I'm using Struts 2.0.14, any chance that this is a fixed bug? If it is unknown, i'll go file a bug then. I dunno; I've used this pattern on a few apps (ScopedModelDriven, too) so I'm skeptical i

Re: Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Robert Graf-Waczenski
Dave Newton wrote: --- On Thu, 12/4/08, Robert Graf-Waczenski wrote: The form field is only pre-filled if i explicitly use value="#session...", but with this, [...] If the action implements modelDriven, and the getModel() call returns the session bean under mySessionBea

Struts2: Pre-populate form with values from a session bean

2008-12-04 Thread Robert Graf-Waczenski
Hi! We were previously using Struts1 session scope form beans to achieve what we feel was rather natural: We frequently have a pattern were a user needs to change some settings in some model bean stored in a persistent storage. With Struts1, we had a jsp with a tag that was bound to an actio