RE: [OT] Sending email from struts

2004-02-12 Thread McCormack, Chris
On our sites we are using taglibs-mailer which is very simple and sends mail using tags embedded in a jsp. This makes it very simple to have the jsp render out some dynamic bean information in to the page and have the contents of that page be mailed as the mail body. Chris -Original

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
An alternative is to have an action form then has a number of nested forms or maps in there for example an order. An order contains and addressForm, login/register form, and a payment card form. These are all hand reusable bit n pieces that can be reused. if you nest this in an orderForm,

Open Source UML Tool (Freeware) as an Eclipse Plugin.

2004-02-12 Thread ssrinivasrao
Hi, Can anyone pls. let me know if there exists an open source freeware (not trial) UML Tool in the web, which I can make use of, inside Eclipse (as a plug-in)? Thanks and Regards S Srikanth Satyam Computer Services Limited 12 C P Ramaswamy Road Alwarpet Chennai 600018 Office

Re: Open Source UML Tool (Freeware) as an Eclipse Plugin.

2004-02-12 Thread Michael Scholz
Hello, yes there are some tools, like OMONDO or EclipseUML2. Have a look at this plugin page: http://www.eclipse-plugins.info/eclipse/plugins.jsp?category=UML cu Micha - To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: [OT] - Request against Session

2004-02-12 Thread shirishchandra.sakhare
Hi Guys, I think the issue over here is, in such cases we need a new scope(workflow scope).The existing scopes(request/session) do not suffice in such cases. The session scope can be used but it may not be cleared.So there has to be a solution at architecture level.And the struts workflow

Re: Open Source UML Tool (Freeware) as an Eclipse Plugin.

2004-02-12 Thread Karma Struts
See Omondo Eclipse UML maybe http://www.omondo.com/download/index.jsp I've already downloaded it, but I haven't tried it yet = KARMA Project - Development Team __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online.

RE: An off-road Question --- How to configure Eclipse for this feature.

2004-02-12 Thread Andrew Hill
Works for me. Can it resolve that particular class (ie: youve imported it without error?). Sometimes ive noticed that the hyperlink doesnt come up quickly and you sometimes have to move the mouse around a bit too! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

RE: An off-road Question --- How to configure Eclipse for this feature.

2004-02-12 Thread ssrinivasrao
hi andrew, The hyperlink itself does not show up for me. Otherwise, the alternative way opens up the class file without errors. My need is how to configure Eclipse to achieve this hyperlink (on ctrl + mouse over) functionality. Regards S Srikanth Satyam Computer Services Limited 12 C P

Monolithic Struts application to modules cookbook ?

2004-02-12 Thread Karma Struts
Hi all, We are currently trying to split an existing Struts application into sub-modules, but it seems it is not as easy as it is usually said in the short articles we have found about it. So, I'll try to explain a bit more where we are and what we have done until now. 1. File structure

RE: An off-road Question --- How to configure Eclipse for this feature.

2004-02-12 Thread Andrew Hill
Which eclipse version are you using? Afaik, the class opening hyperlink was only introduced in 2.1, but in 2.0 you had to do it from the right click menu. Hmmm. Under preferences screen - javaeditors 'hovers' tab theres a 'source' option that seems to be it with a chackbox for enable disable,

what is wrong with this code

2004-02-12 Thread Mlinar, Mario
putting an attribute in my request ... the jsp cant´t find it in there request.setAttribute(Konstanten.ADRESSEN_RESULT_START_INDEX_KEY, indexListWert); return mapping.findForward(Konstanten.CONTINUE); struts-config: action path=/adressenExtDetail

RE: An off-road Question --- How to configure Eclipse for this feature.

2004-02-12 Thread ssrinivasrao
hi andrew, oh, i am using 2.0 eclipse. thanks for the feedback. Regards S Srikanth Satyam Computer Services Limited 12 C P Ramaswamy Road Alwarpet Chennai 600018 Office +(91)-(44)-24983221 Extn 2767

RE: Question on iterate

2004-02-12 Thread Patrick Cheng
More clues? it still doesn't work. -Original Message- From: Manish Singla [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 2:34 PM To: Struts Users Mailing List Subject: Re: Question on iterate bean:write cannot support index as bean:write just writes as plain text. See

RE: what is wrong with this code

2004-02-12 Thread Andrew Hill
I presume Konstanten.CONTINUE is continue and I see that forward will default to a non-redirecting forward looking at your config, so thats not the problem. Whats in the JSP? You sure you got the attribute key correct there? -Original Message- From: Mlinar, Mario [mailto:[EMAIL

AW: what is wrong with this code

2004-02-12 Thread Mlinar, Mario
Just to be sure what is in the request my code at the beginning of the jsp is: % java.util.Enumeration e2 = request.getAttributeNames(); while (e.hasMoreElements()) { String tempString = (String) e2.nextElement(); % %= tempString %=%= request.getAttribute(tempString) %br %

Configuring Omondo UML .jar in Eclipse.

2004-02-12 Thread ssrinivasrao
hi, I have downloaded the .jar file of Omondo UML. Please let me know how to configure this in Eclipse 2.0. Regards S Srikanth Satyam Computer Services Limited 12 C P Ramaswamy Road Alwarpet Chennai 600018 Office +(91)-(44)-24983221 Extn 2767

RE: what is wrong with this code

2004-02-12 Thread Andrew Hill
snip Using the solution with the Action shows no parameters /snip Attributes and Parameters are *not* the same thing. Attributes are server side only (and can be any type of object), while parameters are taken from the request itself and must be Strings. If you want this value as a parameter

AW: what is wrong with this code

2004-02-12 Thread Mlinar, Mario
Here is a snippet of my log org.apache.struts.action.mapping.instance=ActionConfig[path=/adressenView,pa rameter=/gp_detail_adressen.jsp,scope=session,type=de.shs.partnerportal.adb. ui.web.actions.AdressDetailActionorg.apache.struts.action.MODULE=org.apache. [EMAIL PROTECTED] [EMAIL PROTECTED]

RE: what is wrong with this code

2004-02-12 Thread Andrew Hill
Not sure how tiles works internally, but I think like most JSP templating solutions its does a lot of inclusions (similar to forwards). These are server side so should preserve the request parameters. The included stuff could modify attributes but I doubt they would modify the ones you set (unless

Re: problem moving a form page into tiles

2004-02-12 Thread Pedro Salgado
Maybe you're setting your action to redirect=true in your struts-config? (but if you're storing your form-bean in session - your action scope attribute is session - this should be irrelevant) Another maybe :), I think you have to put an action class between your JSP and your tiles

RE: Configuring Omondo UML .jar in Eclipse.

2004-02-12 Thread Jesse Alexander (KAID 11)
I think that is a bit OffTopic The eclipse.org website has also its support-structures. hth Alexander PS: every now and then I ask myself whether the visit in the search-engines should not be made mandatory... The old RTFM might be changed to STFW (SearchTheFuckingWeb) -Original

Problem in using DataSource with Informix9.x Database..?

2004-02-12 Thread Vishal Arora
Hi, I m using Tomcat5.0 and Struts1.1 and Informix 9.x as database When i m trying to use DataSource of org.apache.commons.dbcp.BasicDataSource in my struts application it gives error .I have mentioned in struts-config file also abt sdatasource like username,password,drivername and

struts actions and content/type responses

2004-02-12 Thread Turner Benjamin
hello, i am looking for a solution for the following problem: in my database i have various BLOB items which represent images (gif or jpg). i would like to create a struts action which returns this (by passing along a request parameter to the action which is the imageid in the database. is it

RE: struts actions and content/type responses

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi Ben, I'm not sure if I understood you well, but I believe it's as simple as coding the Action just like you said and inserting the corresponding URL to call it (I suppose it would have to include the imageID as a parameter) inside, let's say, the src attribute on an image tag. HTH, Freddy.

RE: struts actions and content/type responses

2004-02-12 Thread Andrew Hill
Your ImageAction could stream the result in the appropriate format itself. When done, return null instead of an ActionForward to indicate to struts that the Action has already handled writing the response. Not sure what headers etc... need to be set though. If you search the archive you can

RE: struts actions and content/type responses

2004-02-12 Thread Turner Benjamin
hi freddy, thanks for the response. that's not exactly what i mean however. what i want my action to do is this: - retrieve the imageid from the request params - retrieve a byte array from the database corresponding to the image the imageid relates to (so get the image blob from the db) - set

Re: struts actions and content/type responses

2004-02-12 Thread Jignesh Patel
Hi Friend's I am trying to upload strut1.1 on the weblogic8.1 Any body guide me for the same? -jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts actions and content/type responses

2004-02-12 Thread Mark Lowe
Hi ben I assume you know how to get request parameters, construct query strings and get a byte array from you db. Here's some code that will stream an image. This should get you far enough to adapt to you needs. if you use an action just return null instead of a forward, or just use a

RE: struts actions and content/type responses

2004-02-12 Thread Andrew Hill
http://www.catb.org/~esr/faqs/smart-questions.html -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 February 2004 19:42 To: Struts Users Mailing List Subject: Re: struts actions and content/type responses Hi Friend's I am trying to upload strut1.1 on

[OT] Case insensitive Map keys

2004-02-12 Thread Guillermo Meyer
Hi: Does anyone know an implementation of Map where keys are String and case insensitive? I want to do this: map.put(propertyName, DATA); And then, I should be able to get the value like this: Object obj = map.get(PROPERTYNAME); Or like this: Object obj = map.get(propertyname); //or whatever.

strut1.1 installationon weblogic8.1

2004-02-12 Thread Jignesh Patel
Hi Friend's I am trying to install strut1.1 on the weblogic8.1 Any body guide me for the same? -jignesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Case insensitive Map keys

2004-02-12 Thread Navjot Singh
yes. here it is. public CIMap extends HashMap { public Object get(String key) { return super.get(key.toLowerCase()); } public Object put(String key, Object value) { super.put(key.toLowerCase(),value); } } This was

RE: [OT] Case insensitive Map keys

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
Navjot, I believe this is exactly what Guillermo CLEARLY stated he had already tried (and is not efficient enough for him). If you had taken a little bit longer and read carefully, then maybe you'd have noticed. Regards, Freddy. -Mensaje original- De: Navjot Singh [mailto:[EMAIL

Javscript

2004-02-12 Thread Darren Massel
Using struts 1.1 on Tomcat 4.1.29 I want to use the Javascript validation i.e. html:javascript/ but it goes straight to the struts validation Also all the javascript is written to the screen, unless in script tags - which after reading the javadoc should not be needed. Any ideas?

Problem with opening a file that comes from SevletResponse

2004-02-12 Thread Hendrickx Wesley
Hi, In my application I have a feature to download a report in PDF format. The contents come from an XML tree, together with an XSL-T to make the byte array for the PDF file. The content type for the httpServletOutputStream is as follows:

RE: Problem with opening a file that comes from SevletResponse

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi, I'm not sure about this, but I remember having the same problem a long time ago and I believe it had something to do with the response's header(s). Sorry, can't remember exactly what it was. HTH, Freddy. -Mensaje original- De: Hendrickx Wesley [mailto:[EMAIL PROTECTED] Enviado

Re: Javscript

2004-02-12 Thread Carl Walker
Make sure 1) that the entry in struts-config.xml matches the entry in validation.xml and that both refer to the attribute value in html:javascript name=... / 2) that the validation.xml syntax is ok. Try testing a form entry with a construct that you know works. Add each new field element

RE: struts actions and content/type responses

2004-02-12 Thread Turner Benjamin
thank you mark, that worked a treat :-) cheers, Ben -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 12 februari 2004 12:45 To: Struts Users Mailing List Subject: Re: struts actions and content/type responses OutputStream ou = response.getOutputStream(); java.net.URI

Re: Problem with opening a file that comes from SevletResponse

2004-02-12 Thread Mark Lowe
have a look at the posting called struts actions and content/type responses and see the randomaccessfile bit.. Not sure but I reckon that could be the beef..also perhaps response.setHeader(Cache-Control, no-cache); On 12 Feb 2004, at 13:29, Villalba Arias, Fredy [BILBOMATICA] wrote: Hi,

Securing Struts - Which is my best option

2004-02-12 Thread Joanne L Corless
Hi, I know this topic has been discussed before but I've looked at all the previous posts and can't find anything to answer my problem I have a struts app that is designed to use a database user with very limited rights pre-login and then post login it is designed to use the users own view. I

Re: Javscript

2004-02-12 Thread Joe Germuska
At 12:29 PM + 2/12/04, Darren Massel wrote: Using struts 1.1 on Tomcat 4.1.29 I want to use the Javascript validation i.e. html:javascript/ but it goes straight to the struts validation Also all the javascript is written to the screen, unless in script tags - which after reading the javadoc

RE: [OT] Case insensitive Map keys

2004-02-12 Thread Kris Schneider
You could always try the built-in approach: Map m = new TreeMap(String.CASE_INSENSITIVE_ORDER); Obviously, you'll have to decide for yourself if it's efficient enough... Quoting Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED]: Navjot, I believe this is exactly what Guillermo CLEARLY

Reading Context Data

2004-02-12 Thread Rassmann, Natalie D
smime.p7m Description: S/MIME encrypted message

Getting data from a disabled form field

2004-02-12 Thread Arne Brutschy
Hi, I have a problem with disabled form fields. I'm using a user entry form, which fields can be edited by the current user based on his group memberships. So a normal user without admin status cannot change the uid, as this field is disabled. My problem is, that after submitting the form,

RE: [OT] - Request against Session

2004-02-12 Thread Robert Nocera
This is probably even more off topic, but I've seen this mentioned before. From what I can tell of their description of this workflow scope, it looks like it may be helpful as far as ease of use goes, but it doesn't offer any real technical benefit over the use of hidden form fields or sessions,

validation.xml and java.sql.Date

2004-02-12 Thread Carl Walker
Hi, I'm having a problem setting an initial value for a DynaValidatorForm. I have a date field that is not required to be filled in. However, when I submit the form without a value, I get a Date.valueOf exception thrown from SQLConverter. If I submit a valid value or attempt to submit a

RE: Getting data from a disabled form field

2004-02-12 Thread Andrew Hill
Yep. The browser doesnt submit a value for the field if its disabled. If your using a request scoped actionform then you will either need to reload its value from wherever or add an additional hidden field on the form to submit the value. If its a session scoped form, just make sure that you dont

RE: [OT] - Request against Session

2004-02-12 Thread Robert Nocera
Brian said: Don't use getParameter() to try to get hidden form variables. getParameter() looks for parameters appended to the request URL -- http://www.myhost.com/do/myAction?param1=1param2=2. getParameter() will give you access to param1 and param2. The only reason not to use getParamter to get

Re: validation.xml and java.sql.Date

2004-02-12 Thread Mark Lowe
You can have a string that looks like a date and validator will still validate it. To my knowledge there is no need to have the property of type Date. same is true of other types also. On 12 Feb 2004, at 14:36, Carl Walker wrote: Hi, I'm having a problem setting an initial value for a

Re: Getting data from a disabled form field

2004-02-12 Thread Mark Lowe
i believe that disabled form elements return null. I hate to say it, but you could have the uid stored as a hidden variable in the case of the non admin user but still display a text field with the value displayed. On 12 Feb 2004, at 14:31, Arne Brutschy wrote: Hi, I have a problem with

RE: [OT] - Request against Session

2004-02-12 Thread shirishchandra.sakhare
The whole point is there is no concept of a Workflow scope in Servlet API and if you want to share objects , you have to put them in session.And then clearing them is not always easy, as you will never be clear when user may leave the workflow scope.And you have to code for it in every action.

RE: Reading Context Data

2004-02-12 Thread Rassmann, Natalie D
smime.p7m Description: S/MIME encrypted message

RE: Getting data from a disabled form field

2004-02-12 Thread Angharad Stapleton
Try using Javascript to re-enable the fields when the form is submitted, this allows them to be passed through to the form as normal. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 13:46 To: Struts Users Mailing List Subject: Re: Getting data from a

Re: validation.xml and java.sql.Date

2004-02-12 Thread Carl Walker
Thanks for your reply. The problem I'm having is that the field is not required, so specifying a string like '1970-01-01' for an initial value isn't desirable. - Original Message - From: Mark Lowe [EMAIL PROTECTED] Date: Thursday, February 12, 2004 8:44 am Subject: Re: validation.xml

RE: Reading Context Data

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
Did you check that you are put-ing (into the Context) the correct object (the one you expect to get afterwards?)? Have you verified that the value you are put-ing (in case its the right one) is not being (unexpectedly) overwritten? Are you using (/importing) more than one class with that

Re: validation.xml and java.sql.Date

2004-02-12 Thread Mark Lowe
html:text property=fooDate value= / Personally I just use separate field for day / month / year and convert to a date in my model. Drop down menus make inputing dates simpler. On 12 Feb 2004, at 14:56, Carl Walker wrote: Thanks for your reply. The problem I'm having is that the field is

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
While I found your solution interesting. But whether the session is bloated or not is other folk's problem. The javadoc for HttpSession says what its for, the other way is to persist out-side of the web tier which is another subject. Sure you don't want to use session for everything that would

RE: Javscript

2004-02-12 Thread Darren Massel
I've satisfied both your suggestions the javascript text no longer appears. but How do i activate the JS validation? -Original Message- From: Carl Walker [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 12:34 To: Struts Users Mailing List Subject: Re: Javscript Make sure 1) that the

RE: Getting data from a disabled form field

2004-02-12 Thread Andrew Hill
They dont submit any parameter in the posted request. As a result, when struts populates the form, iterating the list of request parameters and calling the setters with the values it wont call the setter for that one. The value in the actionform thus depends upon the logic in the forms reset

Re: RE: Javscript

2004-02-12 Thread Carl Walker
Put these sample elements in the JSP. Note the JavaScript embedded in the html:form attribue. html:javascript formName=ContractForm / html:form action=/insertContract onsubmit=return validateContractForm(this); - Original Message - From: Darren Massel [EMAIL PROTECTED]

Re: Setting nocache

2004-02-12 Thread Janarthan Sathiamurthy
Hi, Your problem sounds like you are using a forward tag which might be like - forward name=success path=/my_page.jsp / Try this - forward name=success path=/zip_inquiry.jsp redirect=true / This should solve your repost problem. This is very beautifully explained in Chuck Cavances

RE: RE: Javscript

2004-02-12 Thread Darren Massel
Cheers worked a dream. -Original Message- From: Carl Walker [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 14:31 To: Struts Users Mailing List Subject: Re: RE: Javscript Put these sample elements in the JSP. Note the JavaScript embedded in the html:form attribue. html:javascript

RE: [OT] - Request against Session

2004-02-12 Thread Andrew Hill
snip And then he has no more worries as to getting a bloated session, as the session gets trimmed of workflow objects as soon as user goes to any screen which is not part of work flow. /snip Unless of course the user simply closes the window. :-( If the user has multiple windows open all sharing

Re: RE: Javscript

2004-02-12 Thread Joe Germuska
At 9:31 AM -0500 2/12/04, Carl Walker wrote: Put these sample elements in the JSP. Note the JavaScript embedded in the html:form attribue. html:javascript formName=ContractForm / html:form action=/insertContract onsubmit=return validateContractForm(this); And if you want to control

RE: RE: Javscript

2004-02-12 Thread Darren Massel
ok not quite a dream the date format is not validated although this works with the struts validation. any ideas? -Original Message- From: Darren Massel [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 14:42 To: 'Struts Users Mailing List' Subject: RE: RE: Javscript Cheers worked a

RE: [OT] - Request against Session

2004-02-12 Thread Andrew Hill
snip Surely if performance is that much of an issue then java would be the last technology you'd use. /snip What would you suggest for a high performing web application? snip If there are performance issue with this and you haven't abused the use of session then IMO this is a matter for the

Re: RE: RE: Javscript

2004-02-12 Thread Carl Walker
Try these entries in validation.xml. field property=dateOfPO depends=date arg0 key=label.dateOfPO / var var-namedatePatternStrict/var-name var-valueMM/dd//var-value /var /field And in the resources file errors.date=Use 'MM/dd/'

hibernate-struts example -- where is it?

2004-02-12 Thread Tarkenton, Daniel S.
Hello all. Long time struts user here, newbie to hibernate. I found a link on the hibernate.org site to a struts-hibernate example written by Ted Husted. I thought this would be a great example for me since I really learned a lot from the Struts in Action book. Well the link was to

html:button and Javascript

2004-02-12 Thread Sniadach, Tomasz
Hello , i have a problem with the html:button tag. i have a string in my JSP, this is an action, now i have to use a button to link to the action. I tryed: html:button property=send onclick=location.href='%=mystring%' / but it does not work. What is wrong ? Thanks for help Tomek

RE: [OT] - Request against Session

2004-02-12 Thread shirishchandra.sakhare
snip If the user has multiple windows open all sharing a session and does different things in different windows things get really fun. /snip If user has different windows in different windows, then only the latest windows workflow is honoured.SO all other window will have lost thier workflow

[OT] Servlet Name at runtime

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
Hi to you all, An OT question (if it were not urgent, I wouldnt post it) hope not to get fired for this. :-) Given a web application with two Servlets classA and classB: how can I determine classBs servlet-name (as specified inside the web.xml file) from classAs doGet method? I

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
On 12 Feb 2004, at 15:44, Andrew Hill wrote: snip Surely if performance is that much of an issue then java would be the last technology you'd use. /snip What would you suggest for a high performing web application? I agree, java does the job nicely but if you're gonna get your knickers in a

RE: [OT] - Request against Session

2004-02-12 Thread Robert Nocera
Shirish, I'm not knocking the workflow concept, my only point earlier was that someone shouldn't think it provides any real difference from session storage except that it will attempt to automatically clear the session when they leave that workflow and they won't have to put that logic in. It's

RE: [OT] - Request against Session

2004-02-12 Thread shirishchandra.sakhare
The performance is not the only issue with bloated sessions Like in our current project, we are using WSAD4.0 and websphere does nto guareentee that session will be transferred across in a clustered environment if the session size is more than 4k..And we are having our depoyment in a

RE: Reading Context Data

2004-02-12 Thread Rassmann, Natalie D
smime.p7m Description: S/MIME encrypted message

RE: Reading Context Data

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
So am I! If you send me the stack trace, the source code where the put gets done and the source code containing the get, I might spare some time to give it a look. The action mapping would also help. Can't promess anything. Don't expect and answer for today, ok? (have work to do) :) Regards,

Re: Array of text fields generated dynamically - struggling with indexed properties

2004-02-12 Thread Shyam A
Hello, I'm trying to use indexed propeties in my form bean (ActionForm) to handle an array of text fields generated dynamically. Initially, I used a String[] to hold the text field values, and had a problem when validation errors occured in my validate() method, i.e, the values of the text fields

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
we'll i reckon we've exhausted the subject, and my experience on big projects was when i was working with quite large teams and some really good sys admin folks so we (servlet/jsp people) never had to worry too much about all that clustering stuff. The same was true of the model tier where

PageFlow within a Tile?!

2004-02-12 Thread Dominik Stttner
Hi, I am trying to write a webapp with struts and tiles that is similar to the portlet-technology. The tiles-documentation example provided with struts is very helpful to create the main functionality (e.g. customizing the portal by moving the tiles). But so far I haven`t figured out how to

RE: Reading Context Data

2004-02-12 Thread Robert Nocera
If that code with the user2 variable works, it looks like the user code should work unless there is another MDF_userBean class it is referencing. Can you send the log file of the error you get running the action class you included here? The log file I see is for the previous version of this

RE: Reading Context Data

2004-02-12 Thread Villalba Arias, Fredy [BILBOMATICA]
1 questions... I can't see where the mdfUser attribute is set. Where is it? 1 comment: There is a line that gets my attention: //import data.DTO.MDF_UserBean; (inside LoginEmdfCrPktAction.java) Is it possible that for some reason you are trying to cast a data.DTO.MDF_UserBean to

NEWBIE: difficulties getting simple no bean page working...

2004-02-12 Thread Timothy Stone
List, I'm a Struts newbie with a lot of general hours in Tomcat. I want to advance my development with Struts 1.1 and Model 2. In an applied Struts scenario I have performed the following: Followed closely the suggestions for integrating Struts into an existing web application. I did do one

Double formating in html:text boxes

2004-02-12 Thread Nathan Maves
In my business logic I return a java.util.List to my action. In this action I run through the list and use the BeanUtils.copyProperties() to convert the List elements into formbeans. The problem is that in the business object the property actual is a Double and in the formBean it is a

RE: NEWBIE: difficulties getting simple no bean page working...

2004-02-12 Thread Daniel Kalcevich
If you do not want to use a FormBean and your action solely calls a success page, maybe you could use the Forward Action build into Struts. Then it would do a forward directly to the JSP page. Daniel Kalcevich SCJP Software Development Analyst I Mercury Insurance Group - IT, Web Agency Systems

Re: DynaFormBean base on other DynaFormBeans?

2004-02-12 Thread Nathan Maves
Well I am close :) I have a DynaValidatorActionForm that has a property of an Array of custom ActionForm. I am able to validate the properties of the internal Action form from the validator using the indexedList property in the validation.xml. I am not sure how I can convert the internal

Re: Double formating in html:text boxes

2004-02-12 Thread Larry Meadors
A few dozen, yes. :) Look at the java.text.NumberFormat class. Larry [EMAIL PROTECTED] 02/12/04 10:18 AM In my business logic I return a java.util.List to my action. In this action I run through the list and use the BeanUtils.copyProperties() to convert the List elements into formbeans.

multiple struts-config files

2004-02-12 Thread koen boutsen
Hi I've read some mails about multiple struts-config files, but still have some questions: -what's the advantage of using multiple struts-config files in one application ? Is it better for performance ? -how can I call a forward or action in my second struts-config from within a jsp ? -can I

RE: multiple struts-config files

2004-02-12 Thread Daniel Kalcevich
The advantage (from what I have read and seen) is geared more towards team development. Having multiple struts configuration files allows you to modularize the areas of your app, so that people aren't stepping on each others toes with new changes. Another advantage of multiple config files is to

Re: Double formating in html:text boxes

2004-02-12 Thread Nathan Maves
So you would suggest formating the number after it is copied into my form bean? It is a string at this point. Nathan Maves Sun Microsystems On Feb 12, 2004, at 10:28 AM, Larry Meadors wrote: A few dozen, yes. :) Look at the java.text.NumberFormat class. Larry [EMAIL PROTECTED] 02/12/04

RE: multiple struts-config files

2004-02-12 Thread Joe Germuska
If you use multiple struts-config files in a single module, the net result is a module which is configured from the union of all the files; Struts has no knowledge of which components were defined in which files, so those questions are not relevant. Note that if you use MODULES, by adding more

RE: multiple struts-config files

2004-02-12 Thread vasudevrao gupta
This is the answer to your third question: Yes, you can forward an action in one struts-config from within another struts-config... All the mapping(from all config file) will be in put in a single ActionMapping class at the start of the web server Regards VasudevRaoGupta -Original

RE: Double formating in html:text boxes

2004-02-12 Thread Slattery, Tim - BLS
So you would suggest formating the number after it is copied into my form bean? It is a string at this point. Anything that's collected from the page has to be a string. If you're goihng to display a number, not collect it, I'd leave it in numeric format in the bean and use a JSTL tag to

Dyna Validator Form values

2004-02-12 Thread Darren Massel
How do i reset the values of a Dyna Validator form that is in the session? So that when i link back to that form once it has been submitted the values are blank. In the Action form.reset(..) and form.set(String, ) had no affect. form-bean name=acoSummaryInitForm

Dyna Validator Form values

2004-02-12 Thread Darren Massel
How do i reset the values of a Dyna Validator form that is in the session? So that when i link back to that form once it has been submitted the values are blank. In the Action form.reset(..) and form.set(String, ) intial= in the form definition ...had no affect. cheers.

RE: Dyna Validator Form values

2004-02-12 Thread Matthias Wessendorf
hi, perhaps you mean request.getSession().removeAttribute(nameOfFormBean); cheers, -Original Message- From: Darren Massel [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 7:08 PM To: '[EMAIL PROTECTED]' Subject: Dyna Validator Form values How do i reset the values of a

No getter method available for property - error

2004-02-12 Thread Samyukta Akunuru
Hi, My error: javax.servlet.jsp.JspException: No getter method available for property ids for bean under name org.apache.struts.taglib.html.BEAN at org.apache.struts.taglib.html.MultiboxTag.doEndTag(MultiboxTag.java:247) I do have a getter in my form bean: private String[] ids;

Re: NEWBIE: difficulties getting simple no bean page working...

2004-02-12 Thread Timothy Stone
Daniel Kalcevich wrote: If you do not want to use a FormBean and your action solely calls a success page, maybe you could use the Forward Action build into Struts. Then it would do a forward directly to the JSP page. Daniel, Thanks. So I edited my struts-config.xml: Step 4. Update

Re: DynaFormBean base on other DynaFormBeans?

2004-02-12 Thread Mark Lowe
Nice.. Are you on 1.1 or 1.2? On 12 Feb 2004, at 18:22, Nathan Maves wrote: Well I am close :) I have a DynaValidatorActionForm that has a property of an Array of custom ActionForm. I am able to validate the properties of the internal Action form from the validator using the

Re: DynaFormBean base on other DynaFormBeans?

2004-02-12 Thread Nathan Maves
1.1 as far as I know. I could never find the page to download 1.2 Nathan Maves Sun Microsystems On Feb 12, 2004, at 11:24 AM, Mark Lowe wrote: Nice.. Are you on 1.1 or 1.2? On 12 Feb 2004, at 18:22, Nathan Maves wrote: Well I am close :) I have a DynaValidatorActionForm that has a

RE: Dyna Validator Form values

2004-02-12 Thread Wendy Smoak
From: Darren Massel [mailto:[EMAIL PROTECTED] How do i reset the values of a Dyna Validator form that is in the session? The 'initialize' method is inherited from DynaActionForm: http://jakarta.apache.org/struts/api/org/apache/struts/action/DynaActio

  1   2   >