Problem addressing hashtable keys in jsp-file

2006-10-25 Thread Andreas . Hartmann
Hello! I' ve got the bean jobs, which is defined in Action and provided by setAttribute(). The bean itself is a Hashtable >. In the corresponding ActionForm-class, the getter-method jlist is defined as follows: Hashtable > ht = new Hashtable >(); public ArrayList getJlist(String key) {return h

jasper reports.jar problem..

2006-10-25 Thread B . Sridhar
Hi, Iam writing an application which generates reports using jasper reports eclipse3.1 is the IDE. For generating ".jrxml" iam using ireport tool.Ihave written a struts application which uses this .jrxml file to generate the report. I have added the jasperreports1.2.7.jar file into the webinf\

Antwort: Problem addressing hashtable keys in jsp-file

2006-10-25 Thread Andreas . Hartmann
Hello! The problem is fixed meanwhile. I forgot to set the Hashtable in the ActionForm after it has been defined in Action. And the line 2 in the jsp must be correctly written as Kind regards, Andreas Hartmann [EMAIL PROTECTED] schrieb am 25.10.2006 08:42:03: > > Hello! > > I' ve got the bean

Re: Select row from a Table

2006-10-25 Thread Vijay Venkataraman
I believe you will specify action/href or forward attribute - which will identify the action. So in the appropriate action class you should be able to pull the value from the HttpServletRequest (request ) object. request.getParameter("orderNum"), plain servlet code. Thanks, Vijay Venkataraman

RE: Unable to Download Struts2

2006-10-25 Thread Wesslan
Same here. -Original Message- From: Matthew J. Vincent [mailto:[EMAIL PROTECTED] Sent: den 24 oktober 2006 20:45 To: user@struts.apache.org Subject: Unable to Download Struts2 Hi all, I get a connection timeout everytime I try to download: http://people.apache.org/builds/struts/2.0.1/

Facing Problem using html:select with html:options

2006-10-25 Thread Chetan Pandey
Hi All: I have a JSP Form in which one field is a multi-select drop-down box. An array of String is used to represent it I am facing this problem when trying to "Edit" stuff. The Drop-down initially has many different values selected. If I try to change selections everything is Fin

Re: Add request parameter in

2006-10-25 Thread Antonis Lebesis
Hello Martin, thanks for the answer, but I 'm afraid I wasn't clear. I want to set a parameter to the call of login action not retrieve it in the login action. Thanks again, Antonis On 10/25/06, Martin Gainty <[EMAIL PROTECTED]> wrote: The request parameter is available thru bean:parameter be

how to use SET method of DynaValidatorForm?

2006-10-25 Thread Mallik
Hi friends my problem is : how to use set method of DynaValidatorForm like get(""); i am using like this but it is not working.let me know where i did mistake... this is my execute method of BlocksSetup action (i want to show all the blocks existed,and give text boxes to enter new) --

Validation with actions

2006-10-25 Thread zeta
I want to associate the validation with the action definition. In this way, I need to performed the client-side validation when an action is called and not taken into account the form associated to this action. Can you give me some example of how do this? Thanks! Zeta -- View this message in c

[SOLVED?]: Add request parameter in

2006-10-25 Thread Antonis Lebesis
After a lot of searching, I found that you there is no "struts way" of adding a request parameter to . I used java code to solve it: Antonis. On 10/25/06, Antonis Lebesis <[EMAIL PROTECTED]> wrote: Hello Martin, thanks for the answer, but I 'm afraid I wasn't clear. I want to set a paramet

Re: Debugging struts applications with eclipse

2006-10-25 Thread Ulrich Elsner
On 10/25/06, Joe Yuen <[EMAIL PROTECTED]> wrote: Can anyone tell me how to debug an application running under tomcat? Is there any special setup I have to do in eclipse? A popular method consists of using the sysdeo plugin for Eclipse (http://www.sysdeo.com/eclipse/tomcatplugin). If you then

Re: question about DWR integration

2006-10-25 Thread Ilya Liubovich
Thanks Frank! It's a great idea. I'll give it a try. But to generalize a bit on my question. Let's say you have a legacy servlet, which is mapped to a certain url pattern. Now, you'd to use only a single controller ( the struts' controller), and do some processing on all of the requests, before

Re: Debugging struts applications with eclipse

2006-10-25 Thread Yujun Liang
MyEclipse has a huge selection of plugins, it is easy to config any application server and use the breakpoint to debug, you can even debug open source code if you download the source code. You need pay $50+ per year. I think it worths it. Regards On 10/25/06, Ulrich Elsner <[EMAIL PROTECTED]> wr

Re: question about DWR integration

2006-10-25 Thread Yujun Liang
You can use WebContextFactory http://getahead.ltd.uk/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContextFactory.htmlto get a WebContext http://getahead.ltd.uk/dwr-demo/javadoc/uk/ltd/getahead/dwr/WebContext.html, then you can do whatever you want. Regards On 10/25/06, Ilya Liubovich <[EMAIL PROTECTED

Re: form bean with composition, is it possible?

2006-10-25 Thread Yujun Liang
public class MyForm extends ValidatorForm { CreditCard getCreditCard() } CreditCard has to be a bean, jsp. Regards On 10/25/06, xianwinwin <[EMAIL PROTECTED]> wrote: Hi guys, I wonder if it's possible to create a form bean with a composition. I mean, assuming I have the following class

RE: jasper reports.jar problem..

2006-10-25 Thread Francisco Ronconi
Hi, Try to set the property... System.setProperty("jasper.reports.compile.class.path", System.getProperty("java.class.path")); This has relation with appserver that these using, and the classloader because jasperreports uses the classloader of another way. Francisco Martin Roncon

RE: Re: FormFile getPath() ?

2006-10-25 Thread Givler, Eric
Can you elaborate on this some more? I followed through the example here: http://www.roseindia.net/struts/strutsfileupload.shtml. My ActionForm has a property of FormFile called myFile. Once I'm inside the Action class, the file upload has already taken place (part of processPopulate?). That

Re: Unable to Download Struts2

2006-10-25 Thread Matthew J. Vincent
Is there someplace else where i can download this? Thanks! Matt Wendy Smoak wrote: On 10/24/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote: I get a connection timeout everytime I try to download: http://people.apache.org/builds/struts/2.0.1/struts-2.0.1-all.zip Anyone else getting this?

Re: jasper reports.jar problem..

2006-10-25 Thread B . Sridhar
HI, thanks for your respose. I have added the statements which you have suggested. But I am getting the same error. Tthe class path has only tools.jar and bootstrap.jar, which are getting assigned to jasper.reports.compile.classpath. But I think we have to set the jasperreports.jar to the clas

Re: question about DWR integration

2006-10-25 Thread Frank W. Zammetti
Yes, I think its possible... you'd have to remap the URL for the legacy servlet to ActionServlet, then, to keep things simple, have at minimum 1 Action mapping that uses ActionForward to the servlet (could have your own Action in there if you wanted to do some processing in it). This would introdu

XSLT result

2006-10-25 Thread Kimus Linuxus
Hi, Is it possible to configure the XSLTResult to put a XML file to the transformation instead of the serialization of the Action result? thanx

XSLT Result

2006-10-25 Thread Kimus Linuxus
Hi, Is it possible to configure the XSLTResult to put a XML file to the transformation instead of the serialization of the Action result? thanx

How to show downloadable link using FormFile class .

2006-10-25 Thread Anuraag Shinde
Hi, In my application i need to allow user to upload files, View list of uploaded files and download a specific file. I have sucessfully configured my application to upload the file using FormFile as type for my file field. Now the problem is how to Get data from database and show a downloadable l

Re: Facing Problem using html:select with html:options

2006-10-25 Thread Chris Pratt
In HTML, only the selected values get sent to the server, so when no values in the multi-select are selected, nothing gets sent to the server for that property. Make sure your reset() method clears out the values for that property and you should be ok. (*Chris*) On 10/25/06, Chetan Pandey <[EMA

Re: How to show downloadable link using FormFile class .

2006-10-25 Thread Ed Griebel
What I have done in this situation is - obtain a list of valid files and create an identifier or "token" for each one (usually as simple as the name of the file) corresponding with the identifier expected in the action described below - throw the list of files into a List in the request/session/fo

Re: How to show downloadable link using FormFile class .

2006-10-25 Thread Anuraag Shinde
Thanks a lot friend for ur detailed explanation, But the problem is DownloadAction came with struts 1.2 and i am using 1.1 :( And i am saving the file in databse as blob. I can get content using resultset.getblob("file") but what after that ? How can i transfer this to my formbean's file field ??

Re: How to show downloadable link using FormFile class .

2006-10-25 Thread Ed Griebel
For 1.1, you could try extending Servlet or a generic Action which will redirect the InputStream to the servlet response writer. You will have to do some of the busywork yourself like getting the writer and setting up the InputStream yourself. Can't help you with the blob stuff, but my guess is t

S:ITERATOR

2006-10-25 Thread Juan Espinosa
Im using the tag iterator to iterato over a list of objects in the user session. Anyone knows hot to iterate over a list in the application day is: sometingh like this day is: Regards Juan.

Re: How to show downloadable link using FormFile class .

2006-10-25 Thread Anuraag Shinde
Thanks will definately try it. On 10/25/06, Ed Griebel <[EMAIL PROTECTED]> wrote: For 1.1, you could try extending Servlet or a generic Action which will redirect the InputStream to the servlet response writer. You will have to do some of the busywork yourself like getting the writer and settin

help integrating struts and spring 2

2006-10-25 Thread Doug Tangren
Hi. I have been using Struts 1.2.9 for a while and just started using Spring 2.0. I am trying to integrate the two an am running into trouble. I am following Springs docs @ http:// static.springframework.org/spring/docs/2.0.x/reference/ webintegration.html#struts-actionsupport and I tried

FormFile field value not getting retained

2006-10-25 Thread Puneet Lakhina
Hi, This is the first time I am using a FormFile. I have a few other fields in my form along with the field. The problem is when some validation fails, the value in the text field of the file control gets lost i.e. the user has to select the file again. Is this normal behavior or does it have to

Re: [SOLVED?]: Add request parameter in

2006-10-25 Thread Jim Reynolds
In Struts 1.x I used to use this type of mechanism to add parameters to an action. I think that is what you are trying to do, if not dismiss. In JSP collect data and put into a Map. [ java.util.HashMap params = new java.util.HashMap(); params.put("imageNum", imageNum); params.put("assetId", asset

RE: Drag-and-drop struts-aware IDE?

2006-10-25 Thread Bruno Melloni
Probably because managers are always looking for the famous "silver bullet" that will allow them to use untrained developers in half the time... Yes, it is a dream, but it is the dream being sold by Micro$oft for .NET, and showing a tool that does it for Struts is the first step to avoid the miriad

ITERATOR

2006-10-25 Thread Juan Espinosa
hi anyone know how to iterato over a object that is in the application object (not in the session) im using s:iterate, im searching for a parameter like "scope" or something like that Regards Juan

Re: question about DWR integration

2006-10-25 Thread Ilya Liubovich
If I understand it correctly, you can use this in the context of the DWR Servlet (i.e. remote class), so it will have to be implemented for each remote bean. I was sort of hoping for a generic solution. Thanks for your reply, Lig From: "Yujun Liang" <[EMAIL PROTECTED]> Reply-To: "Struts Us

Re: Drag-and-drop struts-aware IDE?

2006-10-25 Thread Ed Griebel
Yes, this is the "issue" with Struts, it's hard for an OSS product to compete with the .Net marketing juggernaut. MS seems to be happy trotting out their dog-and-pony show to anyone who will look at it. The source control, code checking, etc. components in Eclipse match closely to what VisualStudi

Re: Drag-and-drop struts-aware IDE?

2006-10-25 Thread Leon Rosenberg
the situation seems to be completely different whereever you are. here in europe, especially in germany, .net has probably same market shares as perl :-) And if you count open positions, there are maybe 1:10 for .net against java. Not everything is struts however. regards Leon On 10/25/06, Ed Gr

RE: Drag-and-drop struts-aware IDE?

2006-10-25 Thread Coelho.Joao
Leon, It sounds like Java is a stronger language in Europe versus .net. You mentioned that not everything is struts, a question: in your estimation what is java being mostly used for in europe ? And what about C ? Thanks. Joao coelho -Original Message- From: Leon Rosenberg [mailto:[EMAIL

Re: javabeans with Collection (Set)

2006-10-25 Thread Laurie Harper
I haven't tried it, but I'd assume you would have to register a converter for String[], rather than just String. What does your converter registration code look like? L. BISO wrote: Thanks Laurie for your response. I used BeanUtils and It worked well with me :) Unfortunately, convert(Clas

Re: 2 different FormFile size restrictions

2006-10-25 Thread Laurie Harper
Marcolino wrote: Hi, a short question: I have a /createShortEntry and a /createLargeEntry. I want to limit filesize for /createShortEntry to 250kb and for /createLargeEntry to 350kb. is this possible in a simple way? Thanks, Markus No, you can only set a max upload size for the application

Re: several html forms

2006-10-25 Thread Laurie Harper
Jean-Marie Pitre wrote: Hello, What do you think about using several html forms with same name in the same page ? I explain me, my JSP displays (with iterate) content of a tab element (object in my formbean). I would like to update one of these elements, so my idea was to create a html form blo

Re: doubt with multibox

2006-10-25 Thread Laurie Harper
Yariel Ramos Moreno wrote: hello... I´m using html:multibox to generate a dynamic list of items... so far so good, but I have a problem because at the same time I generate a dynamic list too, but this list print always the same (example "working")... then, what can I do if the second list always

Re: Too many moving parts in Tiles

2006-10-25 Thread Laurie Harper
Chris Pratt wrote: Hmmm, I'm not using Tiles alone or Struts 2. I'm using the Tiles integrated into Struts 1.2.9. I've tried using the ForwardAction to forward something like: But it doesn't work, it just returns 404's. You probably want something like where .tile.name is the name o

Re: Validation with actions

2006-10-25 Thread Laurie Harper
zeta wrote: I want to associate the validation with the action definition. In this way, I need to performed the client-side validation when an action is called and not taken into account the form associated to this action. Can you give me some example of how do this? I'm not sure what you mean

Re: how to use SET method of DynaValidatorForm?

2006-10-25 Thread Laurie Harper
In general, you should not be creating Dyna* form beans by hand like that. Properly setting up a dyna bean involves more steps than just calling new(). In this case you should probably be using a regular, POJO bean. L. Mallik wrote: Hi friends my problem is : how to use set method of DynaVal

Re: FormFile field value not getting retained

2006-10-25 Thread Laurie Harper
Puneet Lakhina wrote: Hi, This is the first time I am using a FormFile. I have a few other fields in my form along with the field. The problem is when some validation fails, the value in the text field of the file control gets lost i.e. the user has to select the file again. Is this normal behav

Re: Too many moving parts in Tiles

2006-10-25 Thread Chris Pratt
Hmmm, I can't get that working can anyone point me at a working example? All the examples I can find are extremely simple and don't use nested tiles. (*Chris*) On 10/25/06, Laurie Harper <[EMAIL PROTECTED]> wrote: Chris Pratt wrote: > Hmmm, I'm not using Tiles alone or Struts 2. I'm using the

Re: Too many moving parts in Tiles

2006-10-25 Thread Chris Pratt
In fact the Apache Tiles Web site example ( http://struts.apache.org/1.x/struts-tiles/examples.html right above the header "Specify Attribute Types") seems to be promoting the two line file as the right way to do things? I'm very confused... Doesn't anyone use Tiles? (*Chris*) On 10/25/06, Chr

Re: Too many moving parts in Tiles

2006-10-25 Thread Chris Pratt
Greg, to answer your question, "how do I think this should work?" One improvement I can think of would be to allow this type of construct. In the tiles-defs.xml, specify a definition like: http://struts.apache.org/dtds/tiles-config_1_1.dtd";> /** * Pa

RE: Form not found for locale 'en_US' warning message

2006-10-25 Thread Strachan, Paul
could it be you have validate="true" but no form validations defined ? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 24 October 2006 9:38 PM To: user@struts.apache.org Subject: Form not found for locale 'en_US' warning message Hi, I am the getting

Re: Form not found for locale 'en_US' warning message

2006-10-25 Thread Martin Gainty
MessageResources.properties assumes a default configuration for en english and US if you copy your MessageResources.properties (presumably in american english) to MessageResources_en_US.properties then that error should be addressed Martin -- This e-mail communication and any attachments may co

Re: Too many moving parts in Tiles

2006-10-25 Thread Greg Reddin
On Oct 25, 2006, at 5:04 PM, Laurie Harper wrote: Chris Pratt wrote: Hmmm, I'm not using Tiles alone or Struts 2. I'm using the Tiles integrated into Struts 1.2.9. I've tried using the ForwardAction to forward something like: But it doesn't work, it just returns 404's. You probably

Re: Too many moving parts in Tiles

2006-10-25 Thread Greg Reddin
On Oct 25, 2006, at 6:01 PM, Chris Pratt wrote: Greg, to answer your question, "how do I think this should work?" One improvement I can think of would be to allow this type of construct. In the tiles-defs.xml, specify a definition like: [snip] Then allow inserting, referencing and popu