JSP with textarea/Form getter and german special character problem

2005-08-29 Thread Andreas Scheucher
Hello, I have got a JSP with an textarea. Whene i read out the value over the getter from the related formBean, i get wrong characters for german spezial characters: äöüÄÖÜß ( right encoding is auml; ouml; uuml; Auml; szlig; becomes to äöüÃ?Ã?Ã?Ã? Can anybody tell me, what to do to

Re: [SHALE] prerender() never called..?

2005-08-29 Thread Bjørn T Johansen
Craig McClanahan wrote: On 8/28/05, Bjørn T Johansen [EMAIL PROTECTED] wrote: Ok, that I did not know... Tonight's nightly build will include Javadocs for ViewController that make this requirement much more explicit -- you're not the first person to run into it. I am trying to access

Re: [SHALE] prerender() never called..?

2005-08-29 Thread Wendy Smoak
From: Bjørn T Johansen [EMAIL PROTECTED] I am trying to access the download area, http://cvs.apache.org/builds/struts/nightly/struts-shale/core-library/ but all I get is this..: Not Found Back up one directory, Craig recently changed the way the nightly builds are packaged:

Re: [SHALE] prerender() never called..?

2005-08-29 Thread Craig McClanahan
On 8/28/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Bjørn T Johansen [EMAIL PROTECTED] I am trying to access the download area, http://cvs.apache.org/builds/struts/nightly/struts-shale/core-library/ but all I get is this..: Not Found Back up one directory, Craig recently changed

Re: [SHALE] prerender() never called..?

2005-08-29 Thread Bjørn T Johansen
That did the trick... But maybe this should be updated as well...: http://struts.apache.org/shale/index.html#download BTJ Craig McClanahan wrote: On 8/28/05, Wendy Smoak [EMAIL PROTECTED] wrote: From: Bjørn T Johansen [EMAIL PROTECTED] I am trying to access the download area,

Re: [SHALE] prerender() never called..?

2005-08-29 Thread Bjørn T Johansen
But now I have changed the name of my managed bean to correspond to this naming scheme, but still no methods is called...? Am I missing more...? Without more details about what you're doing, it's impossible to tell what is going wrong -- but one thing you should *not* be worrying about is

Re: JSP with textarea/Form getter and german special character problem

2005-08-29 Thread Leon Rosenberg
Sorry, but what do you mean with read out. You have Ä in the jsp but ä in the console? If its a Win/DOS console, it doesn't matter, because windows uses it's own encoding. (cp1250) If its a unix/linux console, try to set the encoding of the console to iso-8859-1. You also have to save the

Re: JSP with textarea/Form getter and german special character problem

2005-08-29 Thread Andreas Scheucher
Thanks! Problem solved :-) My jsp was encoded in UTF-8. Changing to iso-8859-1 fixed it. read out should mean, use the getField() of the Form... Leon Rosenberg schrieb: Sorry, but what do you mean with read out. You have Ä in the jsp but ä in the console? If its a Win/DOS console, it

dynaforms and BeanUtils.copyProperties()

2005-08-29 Thread Karin Schellner
For initializing a formbean with data from another already existing bean, I would like to use the BeanUtils.copyProperties() method - Does anyone know, if there is a possibility to use the BeanUtils.copyProperties() method also with Dynaforms - I don't think so, as Dynaforms have only the

Re: dynaforms and BeanUtils.copyProperties()

2005-08-29 Thread Rémi Dewitte
Yes you can. BeanUtils will work. DynaProperty[] dynaProperties = bean.getDynaClass().getDynaProperties(); for (DynaProperty property : dynaProperties) { use property.getName() and BeanUtils.copyProperties() } You may use BeanUtils.populate(). As for me, all the BeanUtils package works fine

using a collection of checkboxes using layout

2005-08-29 Thread Anuradha
Hello all Is it possible to use a collection of checkboxes using layout tag?Can we keep the property associated with these(as in html:multibox) empty initially but to be populated on submission of form? Thanks Anuradha

Passing variable to javascript function

2005-08-29 Thread Anuradha S.Athreya
I had posted this problem a few days back, but I couldn't find a solution to this. So I'm posting this again, since I need to implemen this urgently. script function validateDelete() { return confirm(Delete Data); } /script html:link action=deleteData

RE: Passing variable to javascript function

2005-08-29 Thread Anjishnu Bandyopadhyay
Hi Anuradha, I think this will work: onclick=return validateDelete('bean:write name=abc/') where abc is the java variable that you put in request/session. With best regards, Anjishnu. -Original Message- From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED] Sent: Monday, August

Re: Navigating back to a previous page

2005-08-29 Thread 梁炳場
Can it be done if the back button of IE goes to the page (menu page) before the input form? I do not want a common back page. It seems that I have to extend the back button of IE or something else? Can it be defined in JSP or struts-config.xml? Thanks 2005/8/28, Martin Gainty [EMAIL

RE: Navigating back to a previous page

2005-08-29 Thread Sharda, Ravi
I guess javascript:history.back() should help you. Regds.- Ravi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 2:51 PM To: Struts Users Mailing List; Martin Gainty Subject: Re: Navigating back to a previous page Can it be done if

RE: Passing variable to javascript function

2005-08-29 Thread Leon Rosenberg
Unfortunately it's not so easy, because you can't use a tag as an attribute to the tag. html:link action=deleteData name=deleteDataParams scope=page onclick=return validateDelete(bean:write name=data/) This can't work, because the attribute (onclick) will not be evaluated. There could be two

RE: Passing variable to javascript function

2005-08-29 Thread Anuradha S.Athreya
Thanks , this was very informative. Regards Anuradha -Original Message- From: Leon Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 4:09 PM To: user@struts.apache.org Subject: RE: Passing variable to javascript function Unfortunately it's not so easy, because you

problem with nested:text within nested:iterate

2005-08-29 Thread Anjishnu Bandyopadhyay
Hi all, I have a nested:iterate where I am iterating over a list of objects. Each object has a property label, which is being displayed as a textbox. Now, I have a hidden field hdnField, for each row of object. I want to call a _javascript_ function fnUpdate onChange of the

Reset for DynaActionForm.

2005-08-29 Thread Amol Yadwadkar
Hi List, How shall we reset the DynaActionForm as we do reset while sing Actionform ? Thankx best regds, AMOL YADWADKAR | Software Engineer | M P H A S I S Architecting Value| IT SERVICES 2nd Floor, The Leela Business Park, Andheri Kurla Road, Andheri(E), Mumbai 400059| Tel: 91 22

RE: Passing variable to javascript function

2005-08-29 Thread BHansard
You can also use JSTL Notation. bean:define id=myVar name=form property=field/ html:link action="" name=deleteDataParams scope=page validateDelete('${myVar}') Leon Rosenberg [EMAIL PROTECTED] Leon Rosenberg [EMAIL PROTECTED] 08/29/2005 06:39 AM Please respond to Struts Users

re:passing variable to javascript

2005-08-29 Thread Anuradha
Hi Anuradha try using el.I mean you may use struts-html-el.tld and it will be a lot easier. For e.g. html-el:link href=javascript:CancelX('${beanname.property}') so the $ will indicate that beanname.property has to be evaluated.You will need jstl.jar,standard.jar and struts-el for this. Warm

File Upload

2005-08-29 Thread Anuradha S.Athreya
Hello, I am using Struts Upload. I want to understand the intricacies of using File upload using Struts. In our JSP/ HTML, we use a form with enctype =multipart/form-data and the HTML - file to upload a file using HTTP post. Now, If I were to spcify the same request in the Browser;s address bar,

how to init forms?

2005-08-29 Thread Karin Schellner
Hi, I just started implementing a webapplication using Struts and could not find a good solution for the following (- not so uncommon as I would guess -) problem: Each authenticated user has a userprofile with personal data which he/she can edit via a PersdataForm. The initial values for this

Re: how to init forms?

2005-08-29 Thread Hubert Rabago
Check out Rick's Struttin with Struts lessons. Lesson 2 covers form prepopulation. http://www.reumann.net/struts/lesson2.do Hubert On 8/29/05, Karin Schellner [EMAIL PROTECTED] wrote: Hi, I just started implementing a webapplication using Struts and could not find a good solution for the

Re: File Upload

2005-08-29 Thread Hubert Rabago
You can't upload a document using a GET request. Stick with your HTTP post form. Hubert On 8/29/05, Anuradha S.Athreya [EMAIL PROTECTED] wrote: Hello, I am using Struts Upload. I want to understand the intricacies of using File upload using Struts. In our JSP/ HTML, we use a form with

Re: problem with nested:text within nested:iterate

2005-08-29 Thread Hubert Rabago
Your problem is trying to use a JSP tag within a JSP tag: nested:text styleClass=label maxlength=100 name=functionalities property=label indexed=true onChange=fnUpdate('bean:write name=indxFunc/');/ Try something like: onChange=%= fnUpdate(' + bean:write name=indxFunc/ + ') %/ On 8/29/05,

RE: File Upload

2005-08-29 Thread Anuradha S.Athreya
I yeah I figured that out... But if I were to have my java program do the Post job, How do I specify the file details? Rgds Anu -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Monday, August 29, 2005 6:21 PM To: Struts Users Mailing List Subject: Re: File

Re: File Upload

2005-08-29 Thread Hubert Rabago
That part I'm not familiar with. If someone doesn't provide you with a response, maybe google for some HTTP upload tutorials or technical documentation. On 8/29/05, Anuradha S.Athreya [EMAIL PROTECTED] wrote: I yeah I figured that out... But if I were to have my java program do the Post job,

Re: how to init forms?

2005-08-29 Thread Joe Germuska
This is something which is kind of awkward in Struts 1.2. I think we've got a pretty decent approach in Struts 1.3, but I guess we'll have to wait until more people start checking that out to find out. Basically, the approach is to prepare a FormBean instance in an action and populate its

core struts -- best practise fundementals

2005-08-29 Thread peru cheppanu
Hi all, I am trying to understand the motivation behind seperation of logic and presentation in struts framework. I was wondering if any of you can provide some light if I am thinking in right direction. Now, if you write scriptlets in JSP, that is a bad practice.., however if you hide

Re: File Upload

2005-08-29 Thread Laurie Harper
You need to send the HTTP POST request using the multipart/form-data encoding. In other words, the POST body should be in multipart MIME format. If you're using an HTTP library to construct the request it probably already has built in support for this. Otherwise you'll need to read up on the

RE: core struts -- best practise fundementals

2005-08-29 Thread Paranj, Bala
The tag library allows reuse whereas scriptlets lead to copy/paste oriented programming ;-). Separation of concerns is one of the main principles of OOAD. It allows you to change the logic and presentation layer objects independent of each other. It is easier to develop, maintain and extend a

Re: core struts -- best practise fundementals

2005-08-29 Thread BHansard
For the most part you are correct. However, it is a little more straight forward than that. Logic should be wrappered in a logic object. The Tag Library can bridge the presentation to this generic logic. This is so that the generic logic can be used universally from either a presentation

What Is the URL to Join the Discussion of JSF?

2005-08-29 Thread Caroline Jen
I start using the JSF. But, I cannot find the place where I can join the discussion of JSF at the jakarta.apache.org. What is the exact URL? Please help. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around

Re: What Is the URL to Join the Discussion of JSF?

2005-08-29 Thread Craig McClanahan
On 8/29/05, Caroline Jen [EMAIL PROTECTED] wrote: I start using the JSF. But, I cannot find the place where I can join the discussion of JSF at the jakarta.apache.org. What is the exact URL? Please help. There is not really a the place at Apache to discuss JSF, but your best bet for general

[Struts] - How to put a nested object inside a set, that's inside a ActionForm

2005-08-29 Thread Rafael Nami
Hi everyone I'm trying to build a search, accessing a nested object, in a JSP, that is inside a set nested in the a POJO, to perform a search in the page. For example, I have a PersonForm p - Set purchases - Product product - Brand brand - brand name I was trying this approach: td align=left

Integrating two applications

2005-08-29 Thread venkats
Hello: I have two applications that have front-ends developed using the struts framework. They both run on weblogic application servers. Each application has its own controller. They operate in two different physical environments. In the MVC paradigm, it's two independent MVCs. I should

Struts-Layout DispatchAction problem.

2005-08-29 Thread kunjal shah
Hello, I am new to Struts Framework. I am developing a Struts based JSR 168 portlet on WepSphere Portal 5.1 platform. I needed some help with an error I am getting in designing a Tree based hierarchial View in the portlet. I am using Struts DispatchAction class to forward the user to the Tree

Re: core struts -- best practise fundementals

2005-08-29 Thread Radu Badita
Although the previous two answers are basically correct, I don't think they really contain the response to Peru's initial question. I hope that the elders of this list will clarify things a bit for him. :-) I considered that I'd better avoid responding myself to this, as one that sometime ago

re: Integrating two applications

2005-08-29 Thread Leon Rosenberg
aehm... 1. the easy (or quick and very dirty) solution: As soon as the user logins in app1, login him into app2 via iframe or hidden javascript link and vice versa. Embed screens from the second application via iframe or similar into the first application. Ensure you have reloads of dummy

RowSetDynaClass weird problem

2005-08-29 Thread C.F. Scheidecker Antunes
Hello all, I've done it before, in one project it works perfectly in the other it doesn't so I was hoping I could get some help from you. This new project tries to create a Radiobutton table on the fly using RowSetDynaClass I have an action that calls a DAO which returns a RowSetDynaClass

Re: RowSetDynaClass weird problem

2005-08-29 Thread C.F. Scheidecker Antunes
Never mind. It was fixed by using low caps property names for the bean. Thanks. C.F. Scheidecker Antunes wrote: Hello all, I've done it before, in one project it works perfectly in the other it doesn't so I was hoping I could get some help from you. This new project tries to create a

check radiobutton option based on value posted to the session 2

2005-08-29 Thread C.F. Scheidecker Antunes
Hello all, I have a radiobutton group called categID. Once the form is submited it goes to the following form bean: *form-bean* name=catForm type=org.apache.struts.action.DynaActionForm** *form-property* name=categID type=java.lang.String*/* */form-bean* That is the catForm has

Re: [Struts] - How to put a nested object inside a set, that's inside a ActionForm

2005-08-29 Thread Laurie Harper
Rafael Nami wrote: I'm trying to build a search, accessing a nested object, in a JSP, that is inside a set nested in the a POJO, to perform a search in the page. For example, I have a PersonForm p - Set purchases - Product product - Brand brand - brand name I was trying this approach: [...]

Re: [Struts] - How to put a nested object inside a set, that's inside a ActionForm

2005-08-29 Thread Rafael Nami
I've done this: Added to PersonForm a brandName - now I just have to get the Hibernate CriteriaQuery running. Thanks Laurie Rafael Mauricio Nami 2005/8/29, Laurie Harper [EMAIL PROTECTED]: Rafael Nami wrote: I'm trying to build a search, accessing a nested object, in a JSP, that is inside

[OT] HTML slideshows: S5 slideshow system

2005-08-29 Thread Michael Jouravlev
For those of you doing presentations, this may be of interest: http://www.meyerweb.com/eric/tools/s5/ Michael. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] HTML slideshows: S5 slideshow system

2005-08-29 Thread James Mitchell
That's pretty cool. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTECTED] Skype: callto://jmitchtx On Aug 29, 2005, at 8:40 PM,

Re: [OT] HTML slideshows: S5 slideshow system

2005-08-29 Thread Martin Gainty
Michael i did'nt know you could email P.M. Blair??? is / are there any XFN spiders released? M - Original Message - From: Michael Jouravlev [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, August 29, 2005 8:40 PM Subject: [OT] HTML slideshows: S5

[OT] How To Hard Code Data in JSF h:dataTable ...?

2005-08-29 Thread Caroline Jen
I am trying to arbitrarily type in some values for a datatable that is coded using JSF. I am new to the JSF and please help me. 1. Do I set it correctly (see the code below)? 2. I have to hard code some data in the h:dataTable .. that I create. How do I do it (i.e. how do I modify the code shown

Re: check radiobutton option based on value posted to the session 2

2005-08-29 Thread Wendy Smoak
From: C.F. Scheidecker Antunes [EMAIL PROTECTED] Once the form is submited I need to show the radio group again on the next page with the one selected already checked. How can I check this DynaActionForm from the session on the JSP and see if the corresponding radiobutton is to be checked or

back button does not function?

2005-08-29 Thread 梁炳場
I add a button to a page, hope it will go back to the menu page, but it fails. 1) The button text cannot obtain the value from MessageResources.properties. 2) When mouse goes up, the page forward does not work. How can they be resolved? Thanks JSP: td html:button

RE: Struts Validator Framework

2005-08-29 Thread Ashutosh Satyam
Hi, I'm reposting this mail with the hope that I can get response from someone. If anyone of you have any clue on the question mentioned below, kindly get back. Thanks, Ashutosh -Original Message- From: Ashutosh Satyam Sent: Thursday, August 25, 2005 11:28 PM To: Struts Users Mailing

Re: Re-use field validations?

2005-08-29 Thread Hubert Rabago
Fyi, Struts 1.3 is moving to a Validator 1.2 dependency. This version includes support for the form extends attribute which provides just what you were asking for. Hubert On 8/26/05, Laurie Harper [EMAIL PROTECTED] wrote: Quinn Stone wrote: Is there any way to define the validation for a

Re: Re-use field validations?

2005-08-29 Thread Don Brown
I should also add that you cannot use external XML entities in validator XML files for any released version of Struts. However, Struts 1.3, as of tonight, will include code, dependent on Validator 1.2, which will allow their use. Don On 8/29/05, Hubert Rabago [EMAIL PROTECTED] wrote: Fyi,