RE: people using action form field

2004-03-09 Thread Andrew Hill
Hehe. I remember when I first encountered this. Took me ages to figure out why the heck my form didnt work. I ended up chopping bits out of the form one at a time till suddenly it worked, and seeing it was an input field named 'action' the penny dropped! lol. Like Wendy says, the best way to deal

Multiple databases in 1 Query

2004-03-09 Thread Verify
In my struts application I need two databases. I have used DBCP and defined the datasources. I am able to use both the databases. But I want to execute some query which will require tables from both the databases.(Union). Is it possible? If so how can I do it. I kno that this is more of a databa

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: help ,action path

2004-03-09 Thread Mu Mike
of course, I m using an ide to edit the jsp page, it can hotly tell the errors in a jsp page and I have struts.jar(1.1) in my library directory(web-inf/lib) From: "Khalid K." <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL

RE: help ,action path

2004-03-09 Thread Khalid K.
Do you have the tag libraries defined on top of the page Example: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> ??? Khalid modified the jsp file to the below still doesnt work or You can also do a "view source" an

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 Mu Mike
modified the jsp file to the below still doesnt work or You can also do a "view source" and look the html generated by tag and ,I think I need an explaination of this, and what should be the right way? (I think I m doing the right which I described in my last mail(below) ) thank you all Fr

Re: help ,action path

2004-03-09 Thread Daniel Henrique Alves Lima
Please, try or You can also do a "view source" and look the html generated by tag - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
How about this ? Ramadoss Chinnakuzhandai wrote: finally I got the following working.. -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

pdf file open.

2004-03-09 Thread deepaksawdekar
Hi, I am trying to open a pdf file. I am using servlet and struts in my application. Everything is working fine except it ask me two times do you want to open or save the file, once for the file whoes name is session id and second time for the actual file. Am i doing some thing wrong. Please hel

help ,action path

2004-03-09 Thread Mu Mike
I got this jsp page: sample.jsp: it is saved in /contextPath/rv/sample.jsp this is part of my web.xml web.xml: config/rv /WEB-INF/struts-rv-config.xml this is part of my struts-rv-config.xml struts-rv-config.xml: when I try t

Re: Newbie Q

2004-03-09 Thread Paul Stanton
yes, but theres no other way (without writing your own tag) to put "myProp" into the "href" attribute. Kunal H. Parikh wrote: Will try this, but doesn't having <%=myProp%> mean that I am using a scriptlet ? And, shouldn't our JSP not include scriptlets as far as possible ? ---

RE: Newbie Q

2004-03-09 Thread Kunal H. Parikh
Will try this, but doesn't having <%=myProp%> mean that I am using a scriptlet ? And, shouldn't our JSP not include scriptlets as far as possible ? Thanks for the help! Kunal -Original Message- From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] Sent: Wednesday, 10 March 2

RE: How to configure JNDI in tomcat5

2004-03-09 Thread rx liu
thx at first. my tomcat version is 5.0.as your know,there is nothing about my webapp in server.xml ,oppositely,there are some xml file in %CATALINA_HOME%/conf/catalina/localhost,in which myApp.xml has been. i have configure myApp.xml,web.xml in %myapp_home%/web-inf,and throw class12.jar into co

RE: Iterating List

2004-03-09 Thread Ramadoss Chinnakuzhandai
finally I got the following working.. -Ramadoss -Original Message- From: Daniel Henrique Alves Lima [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 09, 2004 8:35 PM To: Struts Users Mailing List Subject: Re: Iterating List Try (http://jakarta.apache.org/struts/userGuide/struts-logi

Re: [OT] Database locking and deadlock

2004-03-09 Thread Shyam A
Duncan, Thanks for the suggestion. I was aware of that and did consider the option. However, after consulting with my DBA and doing some research, it seems the problem lies with the number of concurrent transactions that can be done on a table. This can be configured in the "INITRANS" parameter fo

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 : Link Text Kunal H. Parikh wrote: Hi All! Can someone tell me as to how do I call inside Example: ">Link Text I investigated a little abt nested tags, but I don't think that it is applicable here. TIA, Kunal

Re: Iterating List

2004-03-09 Thread Daniel Henrique Alves Lima
Try (http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate) and (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 question like yours. I h

Newbie Q

2004-03-09 Thread Kunal H. Parikh
Hi All! Can someone tell me as to how do I call inside Example: ">Link Text I investigated a little abt nested tags, but I don't think that it is applicable here. TIA, Kunal - To unsubscribe, e-mail: [EMAIL PROTECTED] F

Iterating List

2004-03-09 Thread Ramadoss Chinnakuzhandai
I need to iterate and display collection object "List" containing objects of type "String" in my JSP, I know that if the collection is of type Array I can index and get all the objects but is there anyway I can iterate this List object and disply its String objects in my JSP(without having to c

Re: [OT] Database locking and deadlock

2004-03-09 Thread Duncan Mills
From a pure Oracle perspective I would program this more defensively e.g Do a "select for update nowait" before you issue the update to grab the lock in advance. That way you'll get an oracle error (ora -54) if another user has the row and you can handle it appropriately Duncan Shyam A wrote:

Re: [OT] Tomcat and Aliases

2004-03-09 Thread Joe Hertz
I went thru this myself with Windows and IIS -- If it's a *nix install, you can use a symbolic link. If it's a Windows install (2K) or later, see the following URL about Junctions which are more or less the same thing. http://www.sysinternals.com/ntw2k/source/misc.shtml HTH, Joe -Origi

Re: Populating form Elements from another object.

2004-03-09 Thread Metin Carl
This is really good. An example of processing this form in Action classes would be very useful too as the way Shanmugam needs. "Niall Pemberton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Yup, thats it - plus dynamic="true" > > type="lib.framework.struts.LazyValidatorActionFo

Re: [OT] copyrighted documents in Struts package

2004-03-09 Thread Henri Yandell
Having the Netscape copyrighted stuff in there can't cause any commercial problems as there must be RSS commercial tools out there. Unless every commercial RSS tool is bad. It's more of an issue for Apache licencewise, in that all files distributed by Apache are increasingly meant to be owned by

Tomcat and matching actions

2004-03-09 Thread David Erickson
Hey all.. I have experienced some really stupid behavior of tomcat/struts when combined.. let me explain. In web.xml if you map *.do to the struts action servlet you are able to match actions with paths, ie /blah/something.do correctly gets matched to /blah/something (the .do gets stripped.. still

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

2004-03-09 Thread as as
Thanks Daniel and Wendy! I am trying this now and will post my results soon ~~~Sam. Daniel Henrique Alves Lima <[EMAIL PROTECTED]> wrote: 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 ver

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

2004-03-09 Thread Wendy Smoak
> From: as as [mailto:[EMAIL PROTECTED] > I have a question on using two beans in same form. > I get the followig error: > javax.servlet.jsp.JspException: No getter method for property > name of bean testModule > basically I am trying to access name and id of bean1 and > version of bean2 to

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 : Hi, I have a question on using two beans in same form..

Getting values from two different beans in the same form

2004-03-09 Thread as as
Hi, I have a question on using two beans in same form. I get the followig error: javax.servlet.jsp.JspException: No getter method for property name of bean testModule basically I am trying to access name and id of bean1 and version of bean2 to show in the same one form... is this possible..

Re: [OT] Database locking and deadlock

2004-03-09 Thread Paul Thomas
On 08/03/2004 21:31 Shyam A wrote: [snip] Is there a possibilty of a deadlock occuring in the above code when there are mutliple users concurrently accessing the system.i.e, multiple users update multiple rows of the table at the same time I can't see anything in your update that might cause deadlo

RE: Compression Filter

2004-03-09 Thread Hookom, Jacob
No, the problem is that the implementation you are using is the same as the one our programmer tried to use. In the Servlet spec, you can write to response 2 different ways. Depending on the application server you are using, this can be through the writer or stream, but not both. This is the pro

RE: Compression Filter

2004-03-09 Thread Shahak.Nagiel
Indeed, I got the exceptions you mentioned. Presumably, this is because requests for ".do"s ultimately either forward or redirect to JSP's, and, I believe, either one will flush the response buffer and hence commit the response. So, does this mean there's no way to enable a filter-based compres

RE: Compression Filter

2004-03-09 Thread Hookom, Jacob
Check your server logs for exceptions that say the response has already been committed. We had a programmer try to create a compression filter based on the source from one of those articles and it did not work on our production servers. Worth a look... -Original Message- From: [EMAIL PRO

Compression Filter

2004-03-09 Thread Shahak.Nagiel
I'm trying to implement a compression filter on the HTTP response similar to that discussed in http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=1. When requesting straight JSP's, it works fine, but any Struts ".do"s do not work. Specifically, it appears the compression filter its

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
Tim, I keep on getting the value of the "action" field when I try your solution. I guess the best solution would be changing the "action" field name to "whichAction" or something. Thanks especially you and everyone for helping! Julio -Mensaje original- De: Slattery, Tim - BLS [mail

RE: Role based access?

2004-03-09 Thread Zsolt Koppany
Hi Pedro, I'm interested in your software, can you send it to me? Zsolt > -Original Message- > From: Pedro Salgado [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 01, 1970 1:09 AM > To: Struts Users List > Subject: Re: Role based access? > > > > If you need this kind of behaviou

Tomcat and Aliases

2004-03-09 Thread Eric Dahnke
I have searched the archives as well as google with no lick. Is the answer use apache? We're running TC in a standalone configuration. Short of putting Apache in front of it, and running mod_jk is there a way in server.xml, web.xml or otherwise to do aliasing like the following httpd.conf entr

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> Ok, let me show what I'm trying to do, imagine that this is > the HTML code rendered by struts: > > > > Now, when I try to change the value of > ..action="/getElements.do".. using javascript , > document.elementForm.action = '/newGetElements.do', this > refers to the field that h

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
Ok, let me show what I'm trying to do, imagine that this is the HTML code rendered by struts: Now, when I try to change the value of ..action="/getElements.do".. using javascript , document.elementForm.action = '/newGetElements.do', this refers to the field that has the Create value in

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
Julio, are you talking about something like: In that case, you can assign an "id" attribute to the input field the same way you assigned one to the form field, and address it in the same manner. Or you can use the name field: Document.getElementsByName("action")[0].value="whatever"; Note that

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 tr

Re: display message on success

2004-03-09 Thread roy-strutsuser
Thanks all for the suggestions. Will try. Roy. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> Ok, Tim. But when I try the change the value of the action, > as you said, > document.getElementById("formname").action="newaction.do"; > it refers to the action "field" and not the action element in > the form tag. Suddenly I have the feeling that I don't know what you're talking about. W

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
Ok, Tim. But when I try the change the value of the action, as you said, document.getElementById("formname").action="newaction.do"; it refers to the action "field" and not the action element in the form tag. Thanks -Mensaje original- De: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] E

tag and DynaActionForm

2004-03-09 Thread Poppe, Troy
I have an tag inside a tag, which points to one of my Struts Actions. My Action utilizes a DynaActionForm, in which I have defined several form-property entries. One of these form-property entries, lets call it "imageProperty" matches the property attribute of my tag, also "imageProperty". H

RE: people using action form field

2004-03-09 Thread Wendy Smoak
> From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED] > I know this is a javascript question but is related with struts. > If you use a field called "action" in the form, how can you change the > form action with javascript. > When I try to set the document.form.action it tries to set the field >

Re: Problems with UTF-8 and forms

2004-03-09 Thread Jon Bohm
Thanks, File encoding flag for java.exe? Sounds like an old version of Tomcat. I suppose you set this in web.xml now, or am I wrong? - Jon [paste] In the Catalina.bat (windows) catalina.sh (windows) apache$jakarta_config.com (OpenVMS), file there must be a switch added to the call to java.exe.

RE: people using action form field

2004-03-09 Thread Slattery, Tim - BLS
> But I cannot set the id element in the tag. Yes you can. The Struts "styleId" attribute of translates in HTML to the "id" attribute of . -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

RE: [OT] Database locking and deadlock

2004-03-09 Thread Shyam A
Hello Vijay, Thanks for your mail. I know I can synchronize the transactions using "synchronized" method in Java or use semaphores. This will avoid the row-level locks, but,I understand it may cause performance bottlenecks when there are many concurrent users. I always update the tables in the sam

RE: people using action form field

2004-03-09 Thread Julio Cesar De Salvo
But I cannot set the id element in the tag. Thanks -Mensaje original- De: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Enviado el: Martes, 09 de Marzo de 2004 04:07 p.m. Para: 'Struts Users Mailing List' Asunto: RE: people using action form field > If you use a field called "action" i

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 Slattery, Tim - BLS
> If you use a field called "action" in the form, how can you > change the form action with javascript. When I try to set the > document.form.action it tries to set the field instead of the > action for the form. Is there any other way to change the > action for the form? Give the form an "id"

people using action form field

2004-03-09 Thread Julio Cesar De Salvo
I know this is a javascript question but is related with struts. If you use a field called "action" in the form, how can you change the form action with javascript. When I try to set the document.form.action it tries to set the field instead of the action for the form. Is there any other way to c

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 PROTE

Re: Suggestion needed on good Struts book

2004-03-09 Thread Ed Robbins
I have to second Dave's opinion. I have Strings In Action, Mastering Jakarta Struts, Mastering Jakarta Struts and JSP Site Design. The book I turn to again and again is Struts In Action. What I truly like about Ted's book, beside the fact that I won a free copy from him, is that he goes into

Tomcat and Aliases

2004-03-09 Thread Eric Dahnke
We're running TC in a standalone configuration. Short of putting Apache in front of it, and running mod_jk is there a way in server.xml, web.xml or otherwise to do aliasing like the following httpd.conf entry? Alias /images/ "/usr/local/product/images/" Options Indexes MultiViews

Regarding Error in Validator

2004-03-09 Thread Ramachandran
Hi Friends, I am using the validator to perform the validations. I am facing the error while perform such operations. Can anyone please help me regarding this one. I am having LoginForm conatins username and password. For that i am performing the validation using validator. Please suugest me

RE:

2004-03-09 Thread Au-Yeung, Stella H
Paul: I tried the following in the JSP based on your suggestion and it is still not defaulting to the desired option. I just want to default the option to whatever matches between "shopWorkOrder.engineerId" and "userId". Segment of JSP: The following debug section

Re: Suggestion needed on good Struts book

2004-03-09 Thread David Evans
I have both the O'Reilly and Struts in Action. I think the O'Reilly book is better when you're first starting out, it's overview presentation was easier to understand for me. But the Struts in Action book really goes into a lot greater depth about the possibilities form using the tools Struts provi

dataPatterString e.g. 01JAN2003 - validation

2004-03-09 Thread bojke
Is there a Date validation option for a date in a format from a subject? (DDMMM e.g. 02JAN2003) Thanks, Bojan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Database locking and deadlock

2004-03-09 Thread Balakrishnan, Vijay
Hi Shyam, You can synchronise the whole transaction with the 2 updates.That will take care of 1 of the issues.The other issue might be cyclic i.e are you updating table C first and then updating table A or B somewhere in your application.You will then have to make the updates in the same order i.e

Re: SSL and actionforms

2004-03-09 Thread amr
FL > maybe http://www.modwest.com/help/kb.phtml?cat=2&qid=260 This works, thanks so much! I thought I had googled the subject to exhaustion I dont know how I missed it... feeling a little dumb... "Franck

Multiple validation

2004-03-09 Thread Ruben Pardo
Hi, here is the scenario ... i've got 4 different validation depending on 4 different javascript tab, i want to do a validation depending on the tab that you are localized, ie, i want to validate one field if the user is in the tab 1, other if the user are in tab 2 and so on. I define in validation

Re: Populating form Elements from another object.

2004-03-09 Thread Niall Pemberton
Yup, thats it - plus dynamic="true" Oh, I noticed an error in LazyValidatorForm, its declared as "abstract" - which it shouldn't be - I don't use it directly, I use LazyValidatorActionForm which extends it. Niall - Original Message - From: "Mark Lowe" <[EMAIL PROTECTED]> To: "

SV: SV: SSL and actionforms

2004-03-09 Thread Håkan Fransson
yeah, using IE and this was NOT good. It works fine with mozilla. Microsoft are incredible!!. They will hear from us. Thanks for your answer. > -Ursprungligt meddelande- > Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Skickat: den 9 mars 2004 17:03 > Till: Struts Users Mailing List >

RE: Problems with UTF-8 and forms

2004-03-09 Thread Jirole, Amar
Hi, We had the same problem but we are using weblogic. May this will give you a clue on what needs to be changed in Tomcat. We did the following to solve the problem : In weblogic's web.xml we have following snippet weblogic.jsp.encoding iso-8859-1

RE: question

2004-03-09 Thread as as
Hi Paul, Your question seems very similar to my post last week. "I need to set a "pre-defined" option in using the >>"value=" attribute, I thought the following will work: " For this you can set the attribute in your form class and when you use in your jsp, while populating the options in the

Re: SSL and actionforms

2004-03-09 Thread Franck Lefebure
Le Tuesday, March 09, 2004 11:49 AM, Håkan Fransson <[EMAIL PROTECTED]> m'a, d'une plume avisee, ecrit: > We are on development right now so we are just assuming all material > being dynamic > and deploy the web application direct on the application server(WAS > 5.0.2.2) and it's web container > u

tiles tabbed layout

2004-03-09 Thread koen boutsen
hello I want to use tiles tabbed layout. I'm using tiles at the moment, but no tiles definitions. My question is : can I use this layout without definitions and how do I put the tabs in my jsp that fills my layout page, e.g. any help is very appreciated Koen boutsen __

RE: Grid..........

2004-03-09 Thread Jirole, Amar
We tried grid from http://www.blueshoes.org It works great. It has basic functionalities like paste/copy/export etc. The only problem we faced was performance. If the number of row/columns is large. It takes 10 something seconds to load. If you have found a better grid. Please let us know HTH -Ama

Re: SV: SSL and actionforms

2004-03-09 Thread amr
Are you accessing the app through InternetExplorer? We had a production app running on just WAS 5 Express (no apache) with SSL with no problems Then the users upgraded their browsers in the beginning of Feb, and they started having problems. It appears that sometimes POST forms don't submit a

SV: SSL and actionforms

2004-03-09 Thread Håkan Fransson
We are on development right now so we are just assuming all material being dynamic and deploy the web application direct on the application server(WAS 5.0.2.2) and it's web container using port 9443. I'm running it through WSAD. > -Ursprungligt meddelande- > Från: Mark Lowe [mailto:[EMAIL

[OT] copyrighted documents in Struts package

2004-03-09 Thread Andreas Solarik
So, is it just me, or are licensing and copyrighting rather unrelated issues? -Ursprungliche Nachricht- Von: Kevin Wang [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 09. Marz 2004 16:31 An: Struts Users Mailing List Betreff: Re: copyrighted documents in Struts package If those files are

Re: SSL and actionforms

2004-03-09 Thread Mark Lowe
what's your deployment setup like? running with apache? On 9 Mar 2004, at 16:21, Håkan Fransson wrote: Hi!! I'm running a struts application on Websphere and have encountered a problem when added SSL. It seems that on submit, the set methods on the actionform sometimes are not invoked. It works

Re: copyrighted documents in Struts package

2004-03-09 Thread Kevin Wang
If those files are part of Struts package, but copyrighted as netscape's property, is it still legal to use Struts to develop commercial software? Paul Stanton <[EMAIL PROTECTED]> Paul Stanton <[EMAIL PROTECTED]> 03/08/2004 05:46 PM Please respond to "Struts Users Mailing List"

validator framework / multibox and javascript validation

2004-03-09 Thread harm
Hi all, I have want to validate (client-side using javascript generated by the validator framework) if my user has at least selected one checkbox in my form item. Unfortunatly the javascript generator does not generate the JavaScript needed to validate this. I read somewhere on the mailingl

SSL and actionforms

2004-03-09 Thread Håkan Fransson
Hi!! I'm running a struts application on Websphere and have encountered a problem when added SSL. It seems that on submit, the set methods on the actionform sometimes are not invoked. It works fine when not using SSL on the container. Does anyone has a suggestion what to do? Hakan Fransson Per Ja

Using global-exceptions in modules

2004-03-09 Thread Bruno Moreno
Hi all, I'm using modules in my struts application and I want to have some general exceptions handlers that will be used by all modules. When I've put this information im my default struts-config.xml, the exception threw by my sub-module was not catched. When I've put this information in str

Re: collection of strings (newbie question)

2004-03-09 Thread Daniel H. F. e Silva
Hi all, Other possibility is to check whether 'myBean' exists in some scope. Cheers, Daniel Silva. --- Daniel Henrique Alves Lima <[EMAIL PROTECTED]> wrote: >Have you import logic taglibs ? > > steve hazelwood wrote: > > >I have an action that creates a bean. That bean has a > >proper

[ANNOUNCEMENT] final release of struts-layout 1.0

2004-03-09 Thread Jean-Noel Ribette
Hi everybody, I’m pleased to announce that struts-layout 1.0 is available now. Struts-layout is an open source taglib for struts which provides easy and fast interface creation. This is achieved by powerful tags which display panels, input fields, tables, treeviews, sortable lists, popups, cal

Re: collection of strings (newbie question)

2004-03-09 Thread steve hazelwood
Solved, well done. I'm glad I put 'newbie' in the subject line now :-) Thanks, Steve On 9 Mar 2004 at 11:03, Daniel Henrique Alves Lima wrote: 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 c

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: Then I get an exception "Cannot find bean myId in any sc

collection of strings (newbie question)

2004-03-09 Thread steve hazelwood
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: Then I get an exception "Cannot find bean myId in any scope". I can understand that cos myId is a String not a

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: request.getSession().getServletContext().setAttribute("

Re: Cookies And Session Problems

2004-03-09 Thread Mark Lowe
As a general point life gets less confusing when you retrieve you objects one at a time rather than drilling through several at once.. When you get used to using stuff on a daily basis then of course you're going to start opting for one line rather than several. but IMO you better thinking/codi

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: request.getSession().getServletContext().setAttribute("

RE: Cookies And Session Problems

2004-03-09 Thread Ciaran Hanley
If you mean in the action mappings then no, I have the scope set to request for each mapping. Ciaran -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: 09 March 2004 03:26 To: Struts Users Mailing List Subject: RE: Cookies And Session Problems Did you accidentally

RE: How to configure JNDI in tomcat5

2004-03-09 Thread Dixit, Shashank (Cognizant)
If you are using default initialContext() i.e. Context ctx = new InitialContext(); // without any parameter Then you have to look up like java:comp/dsname Or if you are initialising your context with server specific factory Context ctx = new InitialContext(xx, yy) // Refer server sp. Doc

RE: How to configure JNDI in tomcat5

2004-03-09 Thread Marco Mistroni
Hi, I m assuming u have been thru the steps of configuring Jndi in tomcat (update of server.xml and common\lib) Assuming you have called, in ur server.xml, your datasource test/myDb, You would have entered a resource-ref in your web.xml, that refers to Test/myDb Now when you look it up y

RE: can struts generate strict XHTML

2004-03-09 Thread Kransen, J.
It seems like the tag still adds a "name" attribute to the generated tag (as was the issue in the mentioned discussion from half a year ago) , and validators don't like that in XHTML So either I'm badly mistaken, or it still hasn't changed. Jeroen -Oorspronkelijk bericht- Van: Adam

How to configure JNDI in tomcat5

2004-03-09 Thread rx liu
I had try to configure JNDI( and DataSource) with my tomcat5.0,by hand or by web page which is localhost:8080/admin,but both are failure.the err occur: Context context = new IntitalContext(); Context envContext = ( Context)context.lookup("java:comp/env"); with the err msg : javax.naming.NameN

AW: Error in message resources

2004-03-09 Thread Andreas Solarik
Quoting Ted from a forum on JGuru: Re[2]: More info: Cannot find message resources under key org.apache.struts.action.MESSAGE Topic: Struts Ted Husted PREMIUM, Feb 10, 2003 Under b3 and later, you may need to specify the messages resources in the struts-config: This can go at the very end of

Error in message resources

2004-03-09 Thread Praveen Reddy Basani
Hi all, I am getting the following error when i tried to run the application. "Cannot find message resources under key org.apache.struts.action.MESSAGE" Can any suggest the solution for it. regards praveen - To unsubscribe,

Re: How can I get MessageResources in jsp

2004-03-09 Thread Christian Burger
Taken from the Struts Action class: /** * Return the default message resources for the current module. * * @param request The servlet request we are processing * @since Struts 1.1 */ protected MessageResources getResources(HttpServletRequest request) { retu

How can I get MessageResources in jsp

2004-03-09 Thread Billy Ng
Hi folks, if I don't use the tag, is there any ways to get MessageResources objewct from session or request in jsp? I have tried the following, but it doesn't work. MessageResources message = (MessageResources)session.getAttribute(org.apache.struts.action.Action.MESSAGES_KEY); Thanks! B

Re: Populating form Elements from another object.

2004-03-09 Thread Mark Lowe
I haven't seen the code but if what i understand of what Niall has been saying you'd use them instead of DynaActionForm. of course you'll need to call the package and class name to something appropriate. On 9 Mar 2004, at 09:47, shanmugampl wrote: Hi, I saw your code. I have one doubt.

Re: Populating form Elements from another object.

2004-03-09 Thread shanmugampl
Hi, I saw your code. I have one doubt. How do you plugin your own DynaBean implementation into the struts framework. Shanmugam PL Niall Pemberton wrote: I wrote these http://www.niallp.pwp.blueyonder.co.uk Niall - Original Message - From: "shanmugampl" <[EMAIL PROTECTED]> To

Improving performace of Struts based Apps

2004-03-09 Thread Satya Narayan Dash
Hi All, Can you provide me any tips for improving Struts based applications? Satya