Re: textarea

2004-03-11 Thread Daniel Henrique Alves Lima
You must be carefull. You can don't see the whole text (because the \n characteres). Are you using an java IDE to debug your source ? If this is true, try to write the contents of your property in your log file... as as wrote: Hi, I am generatinga textare on my jsp with this: textarea

Re: map-backed action forms - form params not loaded ?

2004-03-11 Thread Daniel Henrique Alves Lima
Raghu, i think this .html is wrong. It must be like : form action=/saveParams.do input type=text name=value(param1)/ input type=text name=value(param2)/ /form Please, try it. Raghu Havaldar wrote: I do not have a problem while displaying those properties. However, when a form (which has a

Re: AW: textarea

2004-03-11 Thread Daniel Henrique Alves Lima
html:form method=post I think that post is the default but i'm not sure... as as wrote: Andreas, Thanks for the quick reply. I am using struts form tag as follows. wondering ,syntax wise, how I can mention form method as GET...in this tag. Thanks in advance, Sam.

Re: [OT] Database password

2004-03-11 Thread Daniel Henrique Alves Lima
Guillermo, we're also using DBCP. Our approach is to use our own Properties subclass. This subclass can read (and decrypt) a previously encrypted property file (using a 2-way dummy encryption algorithm)... I don't know if this is the best way but it works for us :-) object

Re: map-backed action forms - form params not loaded ?

2004-03-10 Thread Daniel Henrique Alves Lima
How do look like the properties in your form ? Something like this : html:text property=value(test1)/ html:text property=value(test2)/ ? Are the other properties (non map-backed) ok ? Raghu Havaldar wrote: Hi, Am using Struts 1.1, WinXP. Trying to use map-backed action forms to load

Re: Cookies And Session Problems

2004-03-10 Thread Daniel Henrique Alves Lima
Ciaran, Brian is right. Using IE, you can get a different session if you try to execute a new instance of IE (do not use Open a new window). But you must be carefull because even the links in Windows' startup menu can just Open a new window (instead starts a new IE instance). When you are

Re: Cookies And Session Problems

2004-03-09 Thread Daniel Henrique Alves Lima
I think that i've found the problem. Please, look below : Ciaran Hanley wrote: Hi thanks for your reply, I am using form based authentication. Cookies are enabled. I am storing all session information using request.getSession() for example:

Re: Cookies And Session Problems

2004-03-09 Thread Daniel Henrique Alves Lima
I think that i've found the problem. Please, look below : Ciaran Hanley wrote: Hi thanks for your reply, I am using form based authentication. Cookies are enabled. I am storing all session information using request.getSession() for example:

Re: collection of strings (newbie question)

2004-03-09 Thread Daniel Henrique Alves Lima
Have you import logic taglibs ? steve hazelwood wrote: I have an action that creates a bean. That bean has a property myStrings that returns a collection of String objects. On a jsp, I want to list the strings. If my jsp has this: logic:iterate id=myId name=myBean property=myStrings

Re: Problems with UTF-8 and forms

2004-03-09 Thread Daniel Henrique Alves Lima
I don't know if this will help but try to search charset encoding at tomcat maillist archive. You will find some tips in there. Take a look at http://tagunov.tripod.com/i18n/i18n.html (try to contact Anton, if you want). -Original Message- From: Adam Hardy [mailto:[EMAIL

Re: Problems with UTF-8 and forms

2004-03-09 Thread Daniel Henrique Alves Lima
You can try this also: http://jakarta.apache.org/tomcat/faq/misc.html#utf8 -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:47 AM To: Struts Users Mailing List Subject: Re: Problems with UTF-8 and forms On 03/01/2004 12:29 AM Jon Bohm wrote:

Re: people using action form field

2004-03-09 Thread Daniel Henrique Alves Lima
document.forms[0].action='somethig.do' works to me... to change a field with name action, i guess you must do something like document.forms[0].action.value Slattery, Tim - BLS wrote: If you use a field called action in the form, how can you change the form action with javascript. When I try

Re: Getting values from two different beans in the same form

2004-03-09 Thread Daniel Henrique Alves Lima
I don't know if a got it...You can use nested beans inside your ActionForm, like: FirstBean - has get/set name and get/set id SecondBean - has get/set version MyActionForm - has get/set firstBean and secondBean You can do : html:form... html:hidden property=firstBean.id/ html:text

Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
Try logic:iterate (http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) and bean:write (http://jakarta.apache.org/struts/userGuide/struts-bean.html#write). Look at mail archive (http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]). I think somebody has been sent a

Re: Newbie Q

2004-03-09 Thread Daniel Henrique Alves Lima
I don't know if your construction is possible (i think it is). But try to use bean:define : bean:define id=myProp name=myBean property=beanProperty/ html:link href=%=myProp%Link Text/html:link Kunal H. Parikh wrote: Hi All! Can someone tell me as to how do I call bean:write .../ inside

Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
How about this ? logic:iterate id=myString name=myform property=ListofStringobjects bean:write name=myString/ /logic:iterate Ramadoss Chinnakuzhandai wrote: finally I got the following working.. logic:iterate id=list name=myform property=ListofStringobjects bean:define id=xyz name=list

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
Please, try html:form method=post action=/openReport or html:form method=post action=/myapp/openReport You can also do a view source and look the html generated by tag html:form - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
Sorry, my mistake. When you use view source of your browser, how does the html code look like ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
The exception is been generated when .jsp is rendered (and not when you submit the form), hum ? Try to enable struts debug log (in your log4j config file) and try to check the package/name of your action (in struts-config.xml)...

Re: Problem with Map-backed ActionForm and Key value

2004-03-07 Thread Daniel Henrique Alves Lima
Try % String propertyName = value( + myId + ); % html:text title=myinput property=%=propertyName% readonly=true size=2 / Brian Boyle wrote: Hi!, Thanks for the quick response. I have already tried declaring myId as String myId = value.getCandId();. I then put myId as an argument in html:text

[Suggestion] struts-user-newbie list

2004-03-07 Thread Daniel Henrique Alves Lima
It sounds good to me ! Andrew Petro wrote: Incidentally, have there been any thoughts on this list of differentiating out a struts-user-newbie list from the main struts-user list? I think it's wonderful to have a welcoming place for newbies to post questions, but I think it might also be

Re: Struts starter

2004-03-07 Thread Daniel Henrique Alves Lima
Frank, please, correct me if i'm wrong: You have a Java Bean (validUser) and an ActionForm (PersonalDetailsForm) and you want to transfer property values from validUser to PersonalDetailsForm. Is it right ? If the name of these properties are the same, you can use

Multi-page session forms

2004-03-07 Thread Daniel Henrique Alves Lima
Hi, everybody. Is there a pattern for multi-page session forms ? How should i proceed when using multi-page forms (like wizards) ? Must the fields be repeated (as input hidden) in all pages ? When (exactly) ActionForm.reset() will be called for forms like this ? Thanks in advance.

1 request 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
Hi. Can i use the struts mechanism to fill 2 *different* action forms from 1 http request ? I've a button in a .jsp page. When the user to press this button, i need to save a session scoped form before forward to a new page (the new page uses another form). Is is possible ? Thanks.

Re: 1 request 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
Yes, i got a error. I've just added a org.apache.struts.actions.ForwardAction (to struts initializes and populates the session scoped form - named A) between the .jsp file (which contains the button) and a previous existent action (the one which receives a new request scoped form - named B).

Re: 1 request 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
.. and i'm not sure I *do* understand your question now either.. would you explain your problem and what you are trying to do once again..? Daniel Henrique Alves Lima wrote: Yes, i got a error. I've just added a org.apache.struts.actions.ForwardAction (to struts initializes and populates

Re: 1 request 2 forms

2004-03-06 Thread Daniel Henrique Alves Lima
Solved ! I don't know why but when i use multipart-form i get an error while populating the second form (like the case of Guillermo). Then i've removed enctype from html:form and everything works ! **Case 2** source.jsp - AAction (AForm) - BAction (BForm) - destiny.jsp (BForm) Where

Re: redirects / actionErrors

2004-03-05 Thread Daniel Henrique Alves Lima
Hi, I don't know if i could understand your doubt (correct me if i'm wrong) but you must forward to your .jsp page and not redirect... If you have a global forward (in your struts-config.xml) like forward name=/my_forward_name path=/my_jsp.jsp redirect=false\ the request will be

Re: redirects / actionErrors

2004-03-05 Thread Daniel Henrique Alves Lima
Ok, but i think you will lose your request attributes (because redirect will generate a new request from your browser)...Session or application attributes will be preserved. mucus snot wrote: Hi, I am intending to use a redirect rather than a forward. For me, it adds clarity for the user,

Re: Pls help on Javascript

2004-03-04 Thread Daniel Henrique Alves Lima
You can find a validator example inside the struts-1.1 .tgz: struts-validator.war. Install it under Weblogic and check the validations... sougata wrote: HI Paul Thanks for the reply.can u pls let me know how to do it in weblogic.Can u pls send me a small example. Thanks Sougata -Original

Re: Problem in iterating

2004-03-04 Thread Daniel Henrique Alves Lima
If the bean is an ActionForm, you must use the name of the form in the struts-config.xml. If your bean is only a plain Java Bean, you must add it to request, session, page or application scopes (using request.setAttribute() or session.setAttribute, for instance)... Vishal Arora wrote: it's