IllegalArgumentException: no bean specefied

2006-06-29 Thread Fredrik Andersson
Hi all I'm trying to pass a piece of data into a bean. I have a html form where the important data is called Language with different values. I send this to a struts action togheter with a form bean wich I specify in the struts conf. Anyone that has had this problem? Important part from struts-c

Validate boolean

2006-06-29 Thread Emmanouil Batsis
Just wondering what people use as a best practice to handle/validate boolean values in form beans: * Do you use boolean or string objects in your form beans? * What do you use instead of @struts.validator type="boolean" ? Cheers, Manos

Ejb

2006-06-29 Thread Abhimanyu Koul
hi! Why do we use ejbs in our application particularly entity and sessions. can't we write java classes to do the same and use java beans as data carriers. what are the true benefits of using ejbs with struts. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090

Re: Ejb

2006-06-29 Thread Leon Rosenberg
On 6/29/06, Abhimanyu Koul <[EMAIL PROTECTED]> wrote: hi! Why do we use ejbs in our application particularly entity and sessions. can't we write java classes to do the same and use java beans as data carriers. what are the true benefits of using ejbs with struts. why do you ask us? It's your d

RE: Ejb

2006-06-29 Thread Tejas Bavishi
Hello There are some standard advantages mentioned in favour of EJBs like transaction management, application scalability, security, database connection pools, etc. You can read through the advantages by browsing through the EJB specification. However, recently there have been loads of talks of n

Re: Validate boolean

2006-06-29 Thread Paul Benedict
I exclusively use strings in my forms. Emmanouil Batsis <[EMAIL PROTECTED]> wrote: Just wondering what people use as a best practice to handle/validate boolean values in form beans: * Do you use boolean or string objects in your form beans? * What do you use instead of @struts.validator type="

About sending mails from tomcat

2006-06-29 Thread Patil, Sheetal
Hi all Finally I got the solution for sending mails from my struts application The problem was that my antivirus was not allowing me to connect SMTP server through port no 25 When I disable port blocking I get success Tanks all, for your help Sp

Reloading certain things in cahce

2006-06-29 Thread Fredrik Andersson
Hi all I'm using getRequest().getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY, new java.util.Locale("sv","SV") ); To change the language on my page (using struts i18n internationalization). Now my page is storing the pages inside it's cache and I was woundering if I somehow can cle

Re: Validate boolean

2006-06-29 Thread Richard Yee
Use the Boolean wrapper object. -Richard Emmanouil Batsis wrote: Just wondering what people use as a best practice to handle/validate boolean values in form beans: * Do you use boolean or string objects in your form beans? * What do you use instead of @struts.validator type="boolean" ? Ch

RE: JSP files cached in NetBeans ???

2006-06-29 Thread 季 峰
Hello: If you use Tomcat as a web server,then you delete all the files in the directory $tomcat home/work/catalina/,because all the files is class file of jsp. Thanks Wallace From: "Krishna, Hari" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List

Validation does not verify the hidden controls?

2006-06-29 Thread José María Tristán
Hello: I have five tabs. When i click into a tab one css hide and other css show. If anything control of a form is into a css hide when I launch the validation is not validate. Why? Thank you very much. - To unsubscri

html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
My worked fine. But if the ... come before the , I got the runtime JSP error: "cannot find bean: "org.apache.struts.taglib.html.BEAN" in any scope". The complaint points specifically to the . The getter method for selectedUsers[0].selected can no longer be recognized. I need help because I r

Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
Hi- Quick question: What is the version of the commons-validator that comes with Struts 1.2.8 and 1.2.9? Also, if, for Struts 1.2.9, the version of the validator is not 1.3.0, would there be any problems if I were to replace the commons-validator.jar file that comes with Struts 1.2.9 w/ the

How to take care of session mgmt

2006-06-29 Thread kumar.vinodh
Hi *, I am new to struts and to this group. Is there any standard way of doing session management. For eg, user is not allowed to access any resource(jsp pages directly) unless he logins. When he tries he should be directed to login page. Is there any standard way of doing this. Struts framework

[shale]Craig McClanahan's comment on View Controllers

2006-06-29 Thread Baker,Jonathan
In an earlier post, Craig responded to a question by saying "Personally, I consider putting view controllers in session scope to be a pretty bad idea, and would lean towards making this a restriction. (Putting non-view-controller backing beans in session scope to save state across sessions is fin

RE: How to take care of session mgmt

2006-06-29 Thread nageshkumar.siddu
HI Vinodh, Look for an user attribute like user_id if if preset process the JSP or sendredirect it to login JSP. Regards, Nagesh Wipro Technologies -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 8:37 PM To: user@struts.apache.org Subject

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Ed Griebel
The reason is that your checkbox really is no longer in the form, so the framework doesn't know where to pull the value from. All of the and tags which create form 'widgets' must be between and . What you probably need to do is to create a second form on the page by adding before the and cha

RE: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
I think I've answered the first part of my question: looking in the commons-validator.jar file that comes with Struts 1.2.9, the class files are dated 12 NOV 2004 and the source package for validator 1.1.4 on the mirrors have the same date, so I think I can assume that Struts 1.2.9 comes with vers

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF file with this in it: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.5.3 Created-By: Apache Maven Built-By: Niall Pemberton Package: org.apache.c

Eclipse plugin

2006-06-29 Thread Rafael Taboada
Hi folks... In my all Struts life I've used Netbeans as IDE favourite... But right I have to develop in Eclipse... Because I have to work in a team... So I'm wondering if there is a Struts plugin for Eclipse... I was googling and there is EasyStruts but I want to know if there is another plugin i

RE: Eclipse plugin

2006-06-29 Thread David Friedman
Here's one (complete with pictures): http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=StrutsIDE Also, if you are using Eclipse, I believe a new RELEASE version is coming out in the next week (or sooner) so you might want to upgrade almost immediately once it comes out in case it has

Re: Quick Struts/Validator version question

2006-06-29 Thread Adam Gordon
You know, I saw that, but a co-worker told me that it was the version of Java that the package was compatible with so I didn't give it a second thought...he has been flogged and beaten. :-) Any idea of the ramifications of using validator 1.3.0 w/ Struts 1.2.9? -adam David Friedman wrote: A

RE: Eclipse plugin

2006-06-29 Thread Wilson, Scott
There's myEclipse... http://www.myeclipseide.com/ It's free for a month and subscription after, Scott -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: June 29, 2006 12:25 To: Struts Users Mailing List Subject: RE: Eclipse plugin Here's one (complete with pictur

RE: Ejb

2006-06-29 Thread George.Dinwiddie
If you do a good job of separating your business logic from your presentation, then it's quite easy to put that business logic into an EJB behind a BusinessDelegate that implements the same API. This ease means that you can defer going to an EJB solution until you actually need the advantages (pri

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Ed, your suggestion makes sense. I have created a second form on the page by adding before the and change the to followed by . The second form is defined inside the and also in the action mapping. This time, I got another kind of JSP runtime error: "cannot retrieve definition for form bean

RE: Quick Struts/Validator version question

2006-06-29 Thread David Friedman
I believe the minimum java build it is compatible with is under the "Build-Jdk" unless you are using 1.5 with a compatibility flag. I'm just not sure if or how that would be indicated in the MANIFEST.MF file. As for the later versions of the commons validator, I can only guess from the changes re

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Michael Jouravlev
Make sure that you have refer to a form bean in the "selectUsers" action mapping. On 6/29/06, Caroline Jen <[EMAIL PROTECTED]> wrote: Ed, your suggestion makes sense. I have created a second form on the page by adding before the and change the to followed by . The second form is defined in

[shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread stephan opitz
hello... does exist any kind of good example which include in the controller component hibernate with normal pojos or maybe already ejb 3.0??? stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Eclipse plugin

2006-06-29 Thread Ed Griebel
I've used MyEclipse also, it works pretty well. It can be a little rough around the edges, but you can't beat the price, $50 w/UML support, $30 without. I'm currently using NitroX v2, since bought by BEA and rebranded BEA Workbench or something like that. It's a lot more expensive, but it is bett

Re: Eclipse plugin

2006-06-29 Thread David Durham
David Friedman wrote: Also, if you are using Eclipse, I believe a new RELEASE version is coming out in the next week (or sooner) so you might want to upgrade almost immediately once it comes out in case it has any benefits (speed, new features, better possible stability, etc.). That's right, "C

Re: [shale]Craig McClanahan's comment on View Controllers

2006-06-29 Thread Craig McClanahan
On 6/29/06, Baker,Jonathan <[EMAIL PROTECTED]> wrote: In an earlier post, Craig responded to a question by saying "Personally, I consider putting view controllers in session scope to be a pretty bad idea, and would lean towards making this a restriction. (Putting non-view-controller backing be

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread Craig McClanahan
On 6/29/06, stephan opitz <[EMAIL PROTECTED]> wrote: hello... does exist any kind of good example which include in the controller component hibernate with normal pojos or maybe already ejb 3.0??? I am almost through with a Shale+EJB3 (well, actually its Shale+JPA) example. It's the good ol'

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Yes, the second form is defined inside the and also refered in the action mapping. But, the new runtime JSP error is: cannot retrieve definition for form bean null on action /admin/selectUsers.do" --Caroline --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > Make sure that you have refer to a

[shale]Craig McClanahan's comment on View Controllers

2006-06-29 Thread Gary VanMatre
>In an earlier post, Craig responded to a question by saying "Personally, >I consider putting view controllers in session scope to be a pretty bad >idea, and would >lean towards making this a restriction. (Putting non-view-controller >backing beans in session scope to save state across sessions i

Re: [shale] and ejb 3.0 and hibernate working together example

2006-06-29 Thread stephan opitz
thx... thats great... i learned on studying the mailreader example... when it is ready to service... i'm right now writing on an application using mailreader as base... thats why it will be great using/learning from yours... using hibernate and ejb 3.0 is not so simple - i could find an example

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Michael Jouravlev
Would be nice to see your and definitions. On 6/29/06, Caroline Jen <[EMAIL PROTECTED]> wrote: Yes, the second form is defined inside the and also refered in the action mapping. But, the new runtime JSP error is: cannot retrieve definition for form bean null on action /admin/selectUsers.do"

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
Struts 1.2.9 is compatible with Validator 1.3.0 (I have that deployed in production) . Validator 1.3.0 was primarily a bug fix for Validator 1.2.0 and was going to be version 1.2.1 - but as there was a whole set of new classes (which don't currently affect Struts because it doesn't use them) othe

Re: Quick Struts/Validator version question

2006-06-29 Thread Scott Van Wart
David Friedman wrote: And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF file with this in it: I've found that this isn't always reliable -- commons-beanutils.jar in struts 1.2.9, for example,

shale log trace

2006-06-29 Thread Daniel del Río
Hi all, I have a trace in the console like "DEBUG DelegatingVariableResolver : Attempting to resolve variable 'org.apache.shale.TAG_UTILITY_BEAN" The console is full of traces like this every time a page is reload, what it means? I tried to limit the category for the org.apache package in the log

Tiles 1.29 and XML definition

2006-06-29 Thread Mississippi John Hurt
Hi, Now that I switched to Tiles from pure jsp I get 404 trying to access page. Before I had an login.jsp. Now all the layout is divided into a masterTemplate.jsp, the tileDefinitions.xml, and each subcomponent jsp's, including a loginBody.jsp. But now, how do I access my login page now directly v

Re: shale log trace

2006-06-29 Thread Craig McClanahan
On 6/29/06, Daniel del Río <[EMAIL PROTECTED]> wrote: Hi all, I have a trace in the console like "DEBUG DelegatingVariableResolver : Attempting to resolve variable 'org.apache.shale.TAG_UTILITY_BEAN" The console is full of traces like this every time a page is reload, what it means? It looks

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
On 6/29/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: David Friedman wrote: > And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF > file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF > file with this in it: > I've found that this isn't always relia

Re: Quick Struts/Validator version question

2006-06-29 Thread Niall Pemberton
On 6/29/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 6/29/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: > David Friedman wrote: > > And now for the simple and exact way: check the jar's META-INF/MANIFEST.MF > > file. I have 1.2.9 and the commons-validator.jar has a META-INF/MANIFEST.MF > >

RE: Tiles 1.29 and XML definition

2006-06-29 Thread David Friedman
Try making a JSP like this, where you substitute "myFirstDefiniton" for the name of the definition you wish to import into the JSP: <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> Section 6 (6.2.X specifically) from this old site is stilly very accurate and should relate to what you are tr

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
I sort of think it is the way I did my SelectUsersForm because the boolean selected is defined in another Java class. Please see the attachments. But, the checkbox worked without any problem if it is not preceded by a form. My struts-config.xml looks like:

RE: Validation does not verify the hidden controls?

2006-06-29 Thread Yee, Richard K CTR DMDC
Do you know if the hidden field values were sent by the browser? That would be a place to start. Struts doesn't distinguish between an html:hidden and a html:text field on the server side. -Richard -Original Message- From: José María Tristán [mailto:[EMAIL PROTECTED] Sent: Thursday, Jun

RE: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread David Friedman
Since they are different forms and different beans, have you tried using them in the same form but adding the html:select attribute name="SelectUsersForm" ? That way it uses SelectUsersForm.getSelectedUsers[i].isSelected() ? Example: I've mixed fields from different beans inside of the same si

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Michael Jouravlev
This is a helpful advice, I always use "name" explicitly. But in this case this is not it. According to FormTag.java source code: === cut here === // Look up the form bean definition FormBeanConfig formBeanConfig = moduleConfig.findFormBeanConfig(mapping.getName());

Re: Validation does not verify the hidden controls?

2006-06-29 Thread Monkeyden
Is the content of each tab within a tag, and you're just hiding and showing the div? Do they share the same form tag? Are all of them nested within it? On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hello: I have five tabs. When i click into a tab one css hide and other cs

Re: Validation does not verify the hidden controls?

2006-06-29 Thread Niall Pemberton
On 6/29/06, José María Tristán <[EMAIL PROTECTED]> wrote: Hello: I have five tabs. When i click into a tab one css hide and other css show. If anything control of a form is into a css hide when I launch the validation is not validate. Why? Could you say what version of Commons Validato

Re: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread Caroline Jen
Thanks for your attention to my problem. If there is a bug, what is the get around of my problem? --- Michael Jouravlev <[EMAIL PROTECTED]> wrote: > This is a helpful advice, I always use "name" > explicitly. But in this > case this is not it. According to FormTag.java > source code: > > === cu

RE: html-el:checkbox No Longer Works If Preceded by html-el:form

2006-06-29 Thread David Friedman
On last question. Have you tried it on a recent test Tomcat server so you can use EL inside a regular html taglib and skip the html-el taglib? There is always the (doubtful) chance it is related specifically to the html-el taglib. Regards, David -Original Message- From: Caroline Jen [ma

RE: Problem loading/invoking struts app

2006-06-29 Thread Adari, Chandra
Thanks Adam. That did the trick. -Original Message- From: Adam J Samere [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 4:13 PM To: Struts Users Mailing List Subject: Re: Problem loading/invoking struts app You can tell the runtime which SaxParserFactory implementation to use in

Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread Mississippi John Hurt
I'm trying to get Tiles working but not much luck. I have a mainlayout, header, body, footer. I got it so the header, body, footer render, but for some reason the tags dont seem to be displaying the ApplicationResources entries. So I put at the top of my body.jsp... <%@ taglib uri="http://struts

Re: Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread Mississippi John Hurt
Also, my body is internationalized. It seems if I remove the "<%@ taglib uri=" http://struts.apache.org/tags-html"; prefix="html" %> then it displays in the foreign language fine, however by removing it my tags don't work!! On the otherhand, when I leave that html-taglib at the top of the body, t

RE: Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread David Friedman
Can you post your tile definition and a more complete JSP for us to look at? Regards, David -Original Message- From: Mississippi John Hurt [mailto:[EMAIL PROTECTED] Sent: Thursday, June 29, 2006 9:27 PM To: Struts Users Mailing List Subject: Tiles not rendering body, footer when put <%@ t

Re: Tiles not rendering body, footer when put <%@ taglib %> at top of body

2006-06-29 Thread Mississippi John Hurt
Hi, Here's my Tiles definition... I'm using struts 1.2.9, servlet 2.3, jdk 1.4.2 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";> MainTemplate.jsp: <%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %> <%@ tag

[Default Bundle] Missing Field

2006-06-29 Thread red phoenix
I use JDK1.6,tomcat5.0.28,Struts1.2.9,I run Bundles Example Form of struts-examples.war,when I click Save button,I find the Field Address say "[Other Bundle]Missing Field: Address(Other Bundle) " Why raise above error? How to

xhtml-mobile with Struts?

2006-06-29 Thread Jose Benjamin Perez Soto
Hello! Good, my question is, if there is some tool to work with xhtml-mobile with the Struts, like the one of wml, but I need is something for xhtml-mobile. cheers, Ben - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

RE: Validation does not verify the hidden controls?

2006-06-29 Thread José María Tristán
Hello, the validation is of side of client. The values of text and select are send to server of correct form. Thank you -Mensaje original- De: Yee, Richard K CTR DMDC [mailto:[EMAIL PROTECTED] Enviado el: jueves, 29 de junio de 2006 20:55 Para: 'Struts Users Mailing List' Asunto: