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: RE: Validation does not verify the hidden controls?


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, June 29, 2006 7:47 AM
To: user@struts.apache.org
Subject: Validation does not verify the hidden controls?


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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 additional commands, e-mail: [EMAIL PROTECTED]



[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 correct it?


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" %>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles"
%>


   
   
   








header.jsp: just pure html

loginBody.jsp:
<%@ taglib uri="http://struts.apache.org/tags-bean"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>
...

...


Thanks for any help.

On 6/29/06, David Friedman <[EMAIL PROTECTED]> wrote:


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 <%@ taglib %> at top
of body


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.apache.org/tags-bean"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>

then, what happens is that now only the header renders. Its as if when the
Tiles processes these to lines in the body.jsp, it just stops rendering
and
the html output cuts off right at that point. This is so frustrating
Tiles,
I may just use jsp includes if I can't figure this out.  Anyone with
ideas?
Struts is pretty frustrating too. Thanks for any help.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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 <%@ taglib %> at top
of body


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.apache.org/tags-bean"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>

then, what happens is that now only the header renders. Its as if when the
Tiles processes these to lines in the body.jsp, it just stops rendering and
the html output cuts off right at that point. This is so frustrating Tiles,
I may just use jsp includes if I can't figure this out.  Anyone with ideas?
Struts is pretty frustrating too. Thanks for any help.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, then
only the header displays, as if the body gets cutoff right when it reads
these 2 taglib lines!!

On 6/29/06, Mississippi John Hurt <[EMAIL PROTECTED]> wrote:


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.apache.org/tags-bean"; prefix="bean" %>
<%@ taglib uri=" http://struts.apache.org/tags-html"; prefix="html" %>

then, what happens is that now only the header renders. Its as if when the
Tiles processes these to lines in the body.jsp, it just stops rendering
and the html output cuts off right at that point. This is so frustrating
Tiles, I may just use jsp includes if I can't figure this out.  Anyone with
ideas?  Struts is pretty frustrating too. Thanks for any help.



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.apache.org/tags-bean"; prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html"; prefix="html" %>

then, what happens is that now only the header renders. Its as if when the
Tiles processes these to lines in the body.jsp, it just stops rendering and
the html output cuts off right at that point. This is so frustrating Tiles,
I may just use jsp includes if I can't figure this out.  Anyone with ideas?
Struts is pretty frustrating too. Thanks for any help.


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

a number of ways, such as setting the 
|javax.xml.parsers.SAXParserFactory system property.|

The xmlparsev2.jar probably contains a 
|META-INF/services/javax.xml.parsers.SAXParserFactory file.|

See the method detail for the newInstance static factory method for more

information:
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParserFacto
ry.html

Adam

Adari, Chandra wrote:
> Thanks Duane.
>
> I did some more research and found out that oracle "xmlparsev2.jar" is
> causing the issue. In the application ear directory with in
WEB-INF/lib
> we have two directories apache and oracle. The "xmlparserv2.jar"
located
> under oracle directory is trying to parse struts-config.xml and
failing.
> If we rename this file everything seems to be loaded and working fine
> but we need this file for other functionality. From what I understand
we
> don't have any control over the sequence of jar files to load if they
> are loaded from WEB-INF/lib directory. Is there any other alternative
> way to set the sequence? Sorry this might be websphere specific
question
> and wrong user list but trying to see if I get any help.
>
> Thanks,
>
> Chandra.
>
> -Original Message-
> From: Duane Rosengartner [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 13, 2006 6:31 AM
> To: Adari, Chandra
> Cc: Struts Users Mailing List
> Subject: RE: Problem loading/invoking struts app
>
> The following technotes address the classloader issue and give
detailed
> instructions on how to override a WebSphere included file such as
JDOM: 
>
> How to use the latest JDOM jar 
> http://www-1.ibm.com/support/docview.wss?uid=swg21222645 
>
> Best Practice for Using Common Application Files 
> http://www-1.ibm.com/support/docview.wss?uid=swg27006159
>
>
>
> Other Websphere resources I've collected in notes:
> WebSphere Application Server v6.0 InfoCenter - Product Documentation 
> http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp 
>
> Rational Web Developer v6.0 InfoCenter - Product Documentation 
>
http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?rcss=rtlrwdw
> s 
>
> WebSphere Application Server Pre-reqs - List of all supported hardware
> and software 
>
http://www-306.ibm.com/software/webservers/appserv/doc/latest/prereq.htm
> l 
>
> WebSphere Application Server developerWorks - Latest technical
articles,
> product links, tutorials, etc. 
> http://www-128.ibm.com/developerworks/websphere/zones/was/ 
>
>
> IBM Press & IBM Redbooks 
> WebSphere Application Server V6 System Management & Configuration
> Handbook (sg24-6451) 
> http://www.redbooks.ibm.com/abstracts/sg246451.html?Open 
> Ch.5 covers the Administrative Console 
> Ch. 14 covers Class Loaders 
> Ch. 16.5 covers Updating Applications (e.g.  full_app,
> single-file, single-module, partial_app, etc.) 
>
> WebSphere Application Server - Express V6 Developers Guide and
> Development Examples (sg24-6500) 
> http://www.redbooks.ibm.com/abstracts/sg246500.html?Open 
>
> IBM(r) WebSphere(r): Deployment and Advanced Configuration (ISBN:
> 0131468626) 
>
http://www.ibmpressbooks.com/bookstore/product.asp?isbn=0131468626&rl=1 
>
> Migrating Applications from WebLogic, JBoss and Tomcat to WebSphere V6
> (sg24-6690) 
> http://www.redbooks.ibm.com/abstracts/sg246690.html?Open 
>
>
> Duane
>
> -Original Message-
> From: Adari, Chandra [mailto:[EMAIL PROTECTED] 
> Sent: Monday, June 12, 2006 6:37 PM
> To: Duane Rosengartner
> Subject: RE: Problem loading/invoking struts app
>
> Can you please send me the article you are talking about from IBM.
>
> Thanks,
>
> Chandra.
>
> -Original Message-
> From: Duane Rosengartner [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 12, 2006 2:11 PM
> To: Struts Users Mailing List
> Subject: RE: Problem loading/invoking struts app
>
> It appears your classloader is picking up the wrong jar. If this is
> websphere 6, it comes with a jdom.jar that has given us problems
similar
> to yours. Attempt to use the parent-first parent last setting; match
> with your working environment. It should be under the server(or node)
> properties. If this does not work, there is an article on ibm.com that
I
> can try to find for you, a workaround for this issue.
>
> Duane
>
>
> -Original Message-
> From: Adari, Chandra [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 12, 2006 4:00 PM
> To: Struts Users Mailing List
> Subject: Problem loading/invoking struts app
>
> I am getting the following error during run time (ERROR Stack during
> Runtime) when I invoke the Login.do. Please find the error stack down
> below. I tried to put some debug statements and what I found was
"module
> config" is coming "null". I tried the same 

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 [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 7:27 PM
To: Struts Users Mailing List
Subject: Re: html-el:checkbox No Longer Works If Preceded by
html-el:form


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:
>
> === cut here ===
> // Look up the form bean definition
> FormBeanConfig formBeanConfig =
>
> moduleConfig.findFormBeanConfig(mapping.getName());
>
> if (formBeanConfig == null) {
> JspException e = null;
>
> if (mapping.getName() == null) {
> e = new
> JspException(messages.getMessage("formTag.name",
> calcAction));
> } else {
> e = new
> JspException(messages.getMessage("formTag.formBean",
> mapping.getName(),
> calcAction));
> }
>
>
> pageContext.setAttribute(Globals.EXCEPTION_KEY, e,
> PageContext.REQUEST_SCOPE);
> throw e;
> }
> === cut here ===
>
> Here mapping != null, but mapping.getName() == null.
> And I don't
> really know why.
>
> Another interesting gotcha is that FormTag removes
> Constants.BEAN_KEY
> from page context, therefore implicit references to
> outer form will
> not work after inner form closes. I would suggest
> not to put one
> html:form into another. But this should not be the
> reason for
> Caroline's bug.
>
> On 6/29/06, David Friedman <[EMAIL PROTECTED]>
> wrote:
> > 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:
> >
> >  > property="selectedUsers[${idx.index}].selected" />
> >
> > I've mixed fields from different beans inside of
> the same single form before
> > using the name=".." attribute without any problems
> (as long as my beans were
> > already instantiated). For fields from the default
> form (the one used by the
> > html:form action attribute) I didn't put the
> name="..." because it is
> > assumed but I did add name="..." when I wanted to
> "insert" other bean field
> > values into my JSP.
> >
> > Regards,
> > David
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:
> 
> === cut here ===
> // Look up the form bean definition
> FormBeanConfig formBeanConfig =
>
> moduleConfig.findFormBeanConfig(mapping.getName());
> 
> if (formBeanConfig == null) {
> JspException e = null;
> 
> if (mapping.getName() == null) {
> e = new
> JspException(messages.getMessage("formTag.name",
> calcAction));
> } else {
> e = new
> JspException(messages.getMessage("formTag.formBean",
> mapping.getName(),
> calcAction));
> }
> 
>
> pageContext.setAttribute(Globals.EXCEPTION_KEY, e,
> PageContext.REQUEST_SCOPE);
> throw e;
> }
> === cut here ===
> 
> Here mapping != null, but mapping.getName() == null.
> And I don't
> really know why.
> 
> Another interesting gotcha is that FormTag removes
> Constants.BEAN_KEY
> from page context, therefore implicit references to
> outer form will
> not work after inner form closes. I would suggest
> not to put one
> html:form into another. But this should not be the
> reason for
> Caroline's bug.
> 
> On 6/29/06, David Friedman <[EMAIL PROTECTED]>
> wrote:
> > 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:
> >
> >  > property="selectedUsers[${idx.index}].selected" />
> >
> > I've mixed fields from different beans inside of
> the same single form before
> > using the name=".." attribute without any problems
> (as long as my beans were
> > already instantiated). For fields from the default
> form (the one used by the
> > html:form action attribute) I didn't put the
> name="..." because it is
> > assumed but I did add name="..." when I wanted to
> "insert" other bean field
> > values into my JSP.
> >
> > Regards,
> > David
> >
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 Validator you are using?

There was a Javascript error when the client side validation tried to
set focus on a CSS hidden field, which was fixed in Commons Validator
1.3.0

http://issues.apache.org/jira/browse/VALIDATOR-81

Niall


Thank you very much.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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());

   if (formBeanConfig == null) {
   JspException e = null;

   if (mapping.getName() == null) {
   e = new
JspException(messages.getMessage("formTag.name", calcAction));
   } else {
   e = new JspException(messages.getMessage("formTag.formBean",
   mapping.getName(), calcAction));
   }

   pageContext.setAttribute(Globals.EXCEPTION_KEY, e,
   PageContext.REQUEST_SCOPE);
   throw e;
   }
=== cut here ===

Here mapping != null, but mapping.getName() == null. And I don't
really know why.

Another interesting gotcha is that FormTag removes Constants.BEAN_KEY
from page context, therefore implicit references to outer form will
not work after inner form closes. I would suggest not to put one
html:form into another. But this should not be the reason for
Caroline's bug.

On 6/29/06, David Friedman <[EMAIL PROTECTED]> wrote:

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 single form before
using the name=".." attribute without any problems (as long as my beans were
already instantiated). For fields from the default form (the one used by the
html:form action attribute) I didn't put the name="..." because it is
assumed but I did add name="..." when I wanted to "insert" other bean field
values into my JSP.

Regards,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 single form before
using the name=".." attribute without any problems (as long as my beans were
already instantiated). For fields from the default form (the one used by the
html:form action attribute) I didn't put the name="..." because it is
assumed but I did add name="..." when I wanted to "insert" other bean field
values into my JSP.

Regards,
David


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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, June 29, 2006 7:47 AM
To: user@struts.apache.org
Subject: Validation does not verify the hidden controls?


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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:



 
 
 
 














   



   





--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> 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"
> >
> > --Caroline
> >
> > --- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> >
> > > 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
> inside
> > > the
> > > >  and also in the action mapping.
> > > >
> > > > This time, I got another kind of JSP runtime
> > > error:
> > > > "cannot retrieve definition for form bean null
> on
> > > > action /admin/selectUsers.do"
> > > >
> > > > --Caroline
> > > >
> > > >
> > > > --- Ed Griebel <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > 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  > > action="/admin/selectUsers.do">
> > > > > before the
> > > > >  and change the  to
> > > > >  followed by
> > > > > 
> > > > >
> > > > > HTH,
> > > > > -ed
> > > > >
> > > > > On 6/29/06, Caroline Jen
> <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > 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
> > > > > >  > > > > >
> > > property="selectedUsers[${idx.index}].selected"
> > > > > />.
> > > > > > The getter method for
> > > selectedUsers[0].selected
> > > > > can no
> > > > > > longer be recognized.
> > > > > >
> > > > > > I need help because I really do not
> understand
> > > why
> > > > > it
> > > > > > happens this way.
> > > > > >
> > > > > > [code].
> > > > > > <%@ page
> import="..common.pojo.user.User"
> > > %>
> > > > > > ..
> > > > > > ..
> > > > > > 
> > > > > >  > > > > value="${requestScope.Users}" />
> > > > > > 
> > > > > >
> > > > > >
>  > > > > > action="/admin/findUsers.do">
> > > > > >   
> //
> > > many
> > > > > > textfields and a submit button
> > > > > >
> > > 
> > > > > >
> > > > > > 
> > > > > > ..
> > > > > > ..
> > > > > >  
> > > > > >  > > > > items="${userRows}"
> > > > > > varStatus="idx">
> > > > > > 
> > > > >   > > > > > align="center">
> > > > > >  > > > > >
> > > property="selectedUsers[${idx.index}].selected"
> />
> > > > > >  > > > > > property="selectedUsers[${idx.index}].id"
> > > > > > value="${user.id}"/>
> > > > > > 
> > > > > > 
> > > > > > ..
> > > > > > ..
> > > > > >
> > > > > >
> > > > > >  align="left">
> > > > > >  > > > > action="/admin/selectUsers.do">Edit
> > > > > > Selected Users
> > > > > > 
> > > > > >
> > > > > > 
> > > > > > ..
> > > > > > 
> > > > > > ..
> > > > > > ..
> > > > > > [/code]
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> __
> > > > > > Do You Yahoo!?
> > > > > > Tired of spam?  Yahoo! Mail has the best
> spam
> > > > > protection around
> > > > > > http://mail.yahoo.com
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
-

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 trying to do:
http://www2.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292383

Regards,
David

-Original Message-
From: Mississippi John Hurt [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 2:10 PM
To: Struts Users Mailing List
Subject: Tiles 1.29 and XML definition


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 via typed-in-url without having to go through an
actionservlet-->forward-->tiles-render? /webapp/login.jsp no longer works,
neither does /webapp/login. What if my user is just going to the login page
directly? If I use /webapp/login.

My struts-config.xml already has an action for Login.do thats gets directed
there by jsps...


 
 


but what do I have to do so that someone can type in a URL /webapp/login and
get to what once was the login.jsp page? How would I make an action that
would trigger rendering the login page, and what would the URL the user
would need to use now to get to a login page. Sure I can make an action that
maps from servlet to the login page, but how to handle going directly to
login page from a URL typed into the browser?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
> > file with this in it:
> >
> I've found that this isn't always reliable -- commons-beanutils.jar in
> struts 1.2.9, for example, has 1.6 in the MANIFEST.MF.  So I download
> the source to 1.6, and some classes are missing.  So I download the
> source AND BINARY for commons-beanutils 1.7.  Sure enough, the
> distribution's .jar says 1.6, but the file size of the binary .jar
> matches the filesize of the .jar included in struts 1.2.9.  I conclude
> it must really be 1.7.  SO, after having checked the MANIFEST.MF, I
> would suggest downloading the binary straight from the upstream
> distribution site and comparing file sizes/binaries to double-check.

That was a bug in the BeanUtils 1.6 release, which at the time the
manifest version number needed to be updated manually (and it was
forgotten):

 http://issues.apache.org/jira/browse/BEANUTILS-31

With Struts 1.3.x the dependency jars being distributed are no longer
being re-named, so they indicate the version number in the jar name
(commons-beanutils-1.7.0.jar rather than commons-beanutils.jar) so
hopefully there will be less confusion.


P.S. The Struts user guide lists the dependency versions for each release:

http://struts.apache.org/struts-doc-1.2.9/userGuide/installation.html
http://struts.apache.org/struts-doc-1.2.8/userGuide/installation.html
http://struts.apache.org/struts-doc-1.2.7/userGuide/installation.html
http://struts.apache.org/struts-doc-1.2.4/userGuide/installation.html

Niall


Niall

> - Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 reliable -- commons-beanutils.jar in
struts 1.2.9, for example, has 1.6 in the MANIFEST.MF.  So I download
the source to 1.6, and some classes are missing.  So I download the
source AND BINARY for commons-beanutils 1.7.  Sure enough, the
distribution's .jar says 1.6, but the file size of the binary .jar
matches the filesize of the .jar included in struts 1.2.9.  I conclude
it must really be 1.7.  SO, after having checked the MANIFEST.MF, I
would suggest downloading the binary straight from the upstream
distribution site and comparing file sizes/binaries to double-check.


That was a bug in the BeanUtils 1.6 release, which at the time the
manifest version number needed to be updated manually (and it was
forgotten):

 http://issues.apache.org/jira/browse/BEANUTILS-31

With Struts 1.3.x the dependency jars being distributed are no longer
being re-named, so they indicate the version number in the jar name
(commons-beanutils-1.7.0.jar rather than commons-beanutils.jar) so
hopefully there will be less confusion.

Niall


- Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 like you have debug-level logging turned on for Shale, which is
definitely going to create *lots* of output.  This particular message means
that a value binding expression was being evaluated that included this
particular managed bean name.

I tried to limit the category for the org.apache package in the log4j

configuration file without luck.

log4j.logger.org.apache.shale=OFF  (i would prefer not to quit all, but
for test...)



You'd probably be better off setting the overall Shale logging level to
INFO.  You can then go set the level to debug on particular classes if you
want debug-level logging for investigating a particular area.

some have an answer?


thanks in advance.
drh.



Craig


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 via typed-in-url without having to go through an
actionservlet-->forward-->tiles-render? /webapp/login.jsp no longer works,
neither does /webapp/login. What if my user is just going to the login page
directly? If I use /webapp/login.

My struts-config.xml already has an action for Login.do thats gets directed
there by jsps...

   


   

but what do I have to do so that someone can type in a URL /webapp/login and
get to what once was the login.jsp page? How would I make an action that
would trigger rendering the login page, and what would the URL the user
would need to use now to get to a login page. Sure I can make an action that
maps from servlet to the login page, but how to handle going directly to
login page from a URL typed into the browser?


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 log4j 
configuration file without luck.  

log4j.logger.org.apache.shale=OFF  (i would prefer not to quit all, but for 
test...)

some have an answer?

thanks in advance.
drh.



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, has 1.6 in the MANIFEST.MF.  So I download 
the source to 1.6, and some classes are missing.  So I download the 
source AND BINARY for commons-beanutils 1.7.  Sure enough, the 
distribution's .jar says 1.6, but the file size of the binary .jar 
matches the filesize of the .jar included in struts 1.2.9.  I conclude 
it must really be 1.7.  SO, after having checked the MANIFEST.MF, I 
would suggest downloading the binary straight from the upstream 
distribution site and comparing file sizes/binaries to double-check.


- Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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) other Commons developers wanted a more significant version
number change. From memory, one issue in Validator 1.2.0 caused
problems with compatibility with older validator DTD versions, so I
would defintely recommend 1.3.0, rather than 1.2.0.

The reason Struts 1.2.9 didn't ship with Validator 1.2.0 at the time
was because there was a new feature (variables in resource bundles) in
Validator 1.2.0 which Struts 1.2.9 didn't support. Struts 1.3.x does
support it and will ship with Validator 1.3.0

http://wiki.apache.org/jakarta-commons/ValidatorVersion120

Niall

On 6/29/06, Adam Gordon <[EMAIL PROTECTED]> wrote:

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
version 1.1.4 of the validator.  This begs the question as to why there's
versions 1.2.0 and 1.3.0 of the validator when Struts isn't using it.  Are
there other uses for the validator framework besides struts?

I'm still looking for an answer to the second half of my question (about any
ramifications of throwing validator 1.3.0 into Struts 1.2.9) if anyone
knows.

Thanks,

-Adam

-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Thursday, 29 June 2006 09:05
To: user@struts.apache.org
Subject: Quick Struts/Validator version question

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 one
that comes with validator 1.3.0?

I hope that was clear.  Thanks in advance.

-Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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"

--Caroline

--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> 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 inside
> the
> >  and also in the action mapping.
> >
> > This time, I got another kind of JSP runtime
> error:
> > "cannot retrieve definition for form bean null on
> > action /admin/selectUsers.do"
> >
> > --Caroline
> >
> >
> > --- Ed Griebel <[EMAIL PROTECTED]> wrote:
> >
> > > 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  action="/admin/selectUsers.do">
> > > before the
> > >  and change the  to
> > >  followed by
> > > 
> > >
> > > HTH,
> > > -ed
> > >
> > > On 6/29/06, Caroline Jen <[EMAIL PROTECTED]>
> > > wrote:
> > > > 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
> > > >  > > >
> property="selectedUsers[${idx.index}].selected"
> > > />.
> > > > The getter method for
> selectedUsers[0].selected
> > > can no
> > > > longer be recognized.
> > > >
> > > > I need help because I really do not understand
> why
> > > it
> > > > happens this way.
> > > >
> > > > [code].
> > > > <%@ page import="..common.pojo.user.User"
> %>
> > > > ..
> > > > ..
> > > > 
> > > >  > > value="${requestScope.Users}" />
> > > > 
> > > >
> > > >  > > > action="/admin/findUsers.do">
> > > >//
> many
> > > > textfields and a submit button
> > > >
> 
> > > >
> > > > 
> > > > ..
> > > > ..
> > > >  
> > > >  > > items="${userRows}"
> > > > varStatus="idx">
> > > > 
> > >   > > > align="center">
> > > >  > > >
> property="selectedUsers[${idx.index}].selected" />
> > > >  > > > property="selectedUsers[${idx.index}].id"
> > > > value="${user.id}"/>
> > > > 
> > > > 
> > > > ..
> > > > ..
> > > >
> > > >
> > > > 
> > > >  > > action="/admin/selectUsers.do">Edit
> > > > Selected Users
> > > > 
> > > >
> > > > 
> > > > ..
> > > > 
> > > > ..
> > > > ..
> > > > [/code]
> > > >
> > > >
> > > >
> > > >
> __
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
-
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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... maybe you have one? or can implement an how to look like in
mailreader?

stephan

2006/6/29, Craig McClanahan <[EMAIL PROTECTED]>:

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' Struts MailReader application, recast to use the
new Java Persistence Architecture for talkng to the database.  One nice
thing about it (courtesy of Java EE 5) is you get dependency injection of
things like the entity managers into your managed beans (including the view
controllers behind each page).  This will get included (eventually) as a
formal Shale example later on.

An application that used Hibernate for persistence woud be virtually
identical in overall structure ... the concepts behind Hibernate and JPA are
pretty similar for this kind of usage, although many of the details
definitely differ.

stephan


Craig




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 is fine.)"
>
>(The whole post is included below if you're interested) 
>
>This makes sense if a ViewController is our in-memory object
>representation of a page, since a page only lasts for one request.
>
>Well, I was looking at the Shale samples and in the rolodex example, the
>ViewController (backing bean) for the rolodex is stored in session
>scope.
>
>  
>
>   View controller for the JSP view rolodex usecase
>
>rolodex
>
>  org.apache.shale.usecases.rolodex.Rolodex
>
>session
>  
>
>I understand that samples don't have to reflect best-practices, but I'm
>curious as to what the best-practice would be.
>

The rolodex example doesn't use any of the view controller callback methods but 
the full html and xml template views assume the default "managed-bean-name" 
symbol 
is the name of the view controller.  In these usecase apps we tried to isolate 
the features demonstrated.


But, you are right, this is not the best practice use.

>Should your ViewController object be in request scope, and get injected
>with a non-view-Controller that could live in any scope.  The
>non-view-Controller can have model objects injected into it.  This way
>the ViewController can handle all view related methods, and pass through
>to the non-view-Controller for business methods which then get passed on
>to the model objects.
>
>Should your ViewController object live in request scope, and just get
>variously scoped model objects injected, and after that just work as
>both a View and non-view Controller.
>

The problem you run into with the view controller in session scope is when you 
have a post back and then navigation to the same page.  In this scenario, the 
callback methods are invoked twice on the same instance since it's session 
scoped.
The symbols example would be a better example 
(http://svn.apache.org/viewvc/struts/shale/trunk/shale-apps/shale-clay-usecases/src/main/java/org/apache/shale/usecases/symbols/RegistrationForm.java?view=markup)

>Shoud you do something else completely different from either of those
>two scenarios?
>
>
>JB

Gary

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 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 inside
> the
> >  and also in the action mapping.
> >
> > This time, I got another kind of JSP runtime
> error:
> > "cannot retrieve definition for form bean null on
> > action /admin/selectUsers.do"
> >
> > --Caroline
> >
> >
> > --- Ed Griebel <[EMAIL PROTECTED]> wrote:
> >
> > > 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  action="/admin/selectUsers.do">
> > > before the
> > >  and change the  to
> > >  followed by
> > > 
> > >
> > > HTH,
> > > -ed
> > >
> > > On 6/29/06, Caroline Jen <[EMAIL PROTECTED]>
> > > wrote:
> > > > 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
> > > >  > > >
> property="selectedUsers[${idx.index}].selected"
> > > />.
> > > > The getter method for
> selectedUsers[0].selected
> > > can no
> > > > longer be recognized.
> > > >
> > > > I need help because I really do not understand
> why
> > > it
> > > > happens this way.
> > > >
> > > > [code].
> > > > <%@ page import="..common.pojo.user.User"
> %>
> > > > ..
> > > > ..
> > > > 
> > > >  > > value="${requestScope.Users}" />
> > > > 
> > > >
> > > >  > > > action="/admin/findUsers.do">
> > > >//
> many
> > > > textfields and a submit button
> > > >
> 
> > > >
> > > > 
> > > > ..
> > > > ..
> > > >  
> > > >  > > items="${userRows}"
> > > > varStatus="idx">
> > > > 
> > >   > > > align="center">
> > > >  > > >
> property="selectedUsers[${idx.index}].selected" />
> > > >  > > > property="selectedUsers[${idx.index}].id"
> > > > value="${user.id}"/>
> > > > 
> > > > 
> > > > ..
> > > > ..
> > > >
> > > >
> > > > 
> > > >  > > action="/admin/selectUsers.do">Edit
> > > > Selected Users
> > > > 
> > > >
> > > > 
> > > > ..
> > > > 
> > > > ..
> > > > ..
> > > > [/code]
> > > >
> > > >
> > > >
> > > >
> __
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
-
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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' Struts MailReader application, recast to use the
new Java Persistence Architecture for talkng to the database.  One nice
thing about it (courtesy of Java EE 5) is you get dependency injection of
things like the entity managers into your managed beans (including the view
controllers behind each page).  This will get included (eventually) as a
formal Shale example later on.

An application that used Hibernate for persistence woud be virtually
identical in overall structure ... the concepts behind Hibernate and JPA are
pretty similar for this kind of usage, although many of the details
definitely differ.

stephan


Craig


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 beans in session scope to save state across sessions is fine.)"

(The whole post is included below if you're interested)

This makes sense if a ViewController is our in-memory object
representation of a page, since a page only lasts for one request.

Well, I was looking at the Shale samples and in the rolodex example, the
ViewController (backing bean) for the rolodex is stored in session
scope.

  

   View controller for the JSP view rolodex usecase

rolodex

  org.apache.shale.usecases.rolodex.Rolodex

session
  

I understand that samples don't have to reflect best-practices, but I'm
curious as to what the best-practice would be.



Good catch  :-).  I suspect the use case here was maintaining some view
state information across requests -- right, Gary?

Should your ViewController object be in request scope, and get injected

with a non-view-Controller that could live in any scope.  The
non-view-Controller can have model objects injected into it.  This way
the ViewController can handle all view related methods, and pass through
to the non-view-Controller for business methods which then get passed on
to the model objects.



That's the way I'd probably do it, especially if I had prebuilt model and
business logic objects.  A benefit of this is that your non-VC beans don't
have to have any API dependency on the web tier at all ... making it much
easier to unit test in isolation, or reuse in other  application
environments.  If these non-VC objects are managed beans, you can also use
the setter dependency injection mechanisms to configure *them* as well.

Should your ViewController object live in request scope, and just get

variously scoped model objects injected, and after that just work as
both a View and non-view Controller.



This works ok for simple apps, but can lead you down a "mixing of concerns"
path that makes life more complicated in larger scenarios.  The
corresponding question for Struts 1.x would be "do I put my business logic
directly into my Actions, or do I abstract it out into separate classes?"
The general wisdom is that you *should* separate things, but you'll often
see small (and sometimes not so small) apps that mix.

Shoud you do something else completely different from either of those

two scenarios?


JB



Craig


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, "Callisto is coming in 1 day."  I use Eclipse for my 
day-to-day work.  I haven't used Netbeans in awhile.  Anyway, the 
Eclipse Web Tools Platform works well enough for me in that it supports 
autocompletion of taglibs, and has some javascript support in addition 
to XML and HTML features.  I use ANT to build my projects and reload 
Tomcat Contexts.  I've also tried the Maven 2 plugin for Eclipse and 
it's kind of nice in that it pulls in dependencies and attachs the 
source for things like javadoc support and ctrl-clicking into API calls 
(among other things).  I opted against using the Maven 2 plugin for 
right now, though, because it seems a bit unintuitive in its current state.



-Dave

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
better integrated and has a nice JSP and struts-config.xml editor. I
probably use the JSP and XML editors the most, and I've found the
"AppXRay" feature isn't terribly useful except for very simple apps.

I've been meaning to fire up eclipse's WTP, I hear it does struts and/or JSP.

-ed

On 6/29/06, Wilson, Scott <[EMAIL PROTECTED]> wrote:

 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 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 any benefits (speed, new
features, better possible stability, etc.).

Regards,
David

-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 12:17 PM
To: Struts List
Subject: Eclipse plugin

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 in
order to help me to develop Struts projects in Eclipse.

Do u know another plugin? what is the best?

Thanks in advance..

Greetings from Peru


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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: [EMAIL PROTECTED]



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 inside the
 and also in the action mapping.

This time, I got another kind of JSP runtime error:
"cannot retrieve definition for form bean null on
action /admin/selectUsers.do"

--Caroline


--- Ed Griebel <[EMAIL PROTECTED]> wrote:

> 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 change the  to
>  followed by
> 
>
> HTH,
> -ed
>
> On 6/29/06, Caroline Jen <[EMAIL PROTECTED]>
> wrote:
> > 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
> >  > property="selectedUsers[${idx.index}].selected"
> />.
> > The getter method for selectedUsers[0].selected
> can no
> > longer be recognized.
> >
> > I need help because I really do not understand why
> it
> > happens this way.
> >
> > [code].
> > <%@ page import="..common.pojo.user.User" %>
> > ..
> > ..
> > 
> >  value="${requestScope.Users}" />
> > 
> >
> >  > action="/admin/findUsers.do">
> >// many
> > textfields and a submit button
> > 
> >
> > 
> > ..
> > ..
> >  
> >  items="${userRows}"
> > varStatus="idx">
> > 
>   > align="center">
> >  > property="selectedUsers[${idx.index}].selected" />
> >  > property="selectedUsers[${idx.index}].id"
> > value="${user.id}"/>
> > 
> > 
> > ..
> > ..
> >
> >
> > 
> >  action="/admin/selectUsers.do">Edit
> > Selected Users
> > 
> >
> > 
> > ..
> > 
> > ..
> > ..
> > [/code]
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 report
http://jakarta.apache.org/commons/validator/changes-report.html.  But, my
guess is this:

> Upgrade dependency versions to  Commons BeanUtils  1.7.0,
> Commons Digester  1.6 and  Commons Logging  1.0.4.
> Remove dependency on  Commons Collections  (BeanUtils
> 1.7.0 has removed its dependency on Collections by
> including the few Collections classes required in its
> distribution).

That is a lot of jar version changes to run through tests.  But if you are
feeling daring, it couldn't hurt to try them out and let us know. :)  I'm
sure Niall(P) or some other committer will post soon with a definitive
answer.

Regards,
David

-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 12:29 PM
To: Struts Users Mailing List
Subject: Re: Quick Struts/Validator version question

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 null on
action /admin/selectUsers.do"

--Caroline


--- Ed Griebel <[EMAIL PROTECTED]> wrote:

> 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 change the  to
>  followed by
> 
> 
> HTH,
> -ed
> 
> On 6/29/06, Caroline Jen <[EMAIL PROTECTED]>
> wrote:
> > 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
> >  > property="selectedUsers[${idx.index}].selected"
> />.
> > The getter method for selectedUsers[0].selected
> can no
> > longer be recognized.
> >
> > I need help because I really do not understand why
> it
> > happens this way.
> >
> > [code].
> > <%@ page import="..common.pojo.user.User" %>
> > ..
> > ..
> > 
> >  value="${requestScope.Users}" />
> > 
> >
> >  > action="/admin/findUsers.do">
> >// many
> > textfields and a submit button
> > 
> >
> > 
> > ..
> > ..
> >  
> >  items="${userRows}"
> > varStatus="idx">
> >   
>   > align="center">
> >  > property="selectedUsers[${idx.index}].selected" />
> >  > property="selectedUsers[${idx.index}].id"
> > value="${user.id}"/>
> > 
> > 
> > ..
> > ..
> >
> >
> > 
> >  action="/admin/selectUsers.do">Edit
> > Selected Users
> > 
> >
> > 
> > ..
> > 
> > ..
> > ..
> > [/code]
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 (principally transaction management, IMO) that EJB's
provide.

In pictures, I suggest going from

-- Presentation Layer --
-- Business Layer --

to

-- Presentation Layer --
-- Business Delegate --
-- EJB Remote Interface & Service Locator --
-- EJB Session Facade --
-- Business Layer --

You can even do this for only part of your Business API.  I've done that
where only part of the API needed the transaction services.

I'm not fond of Entity beans, but if you use a DAO interface, you can do
the same thing between the Business Layer and the Persistence Layer to
substitute Entity beans instead of some other DAO such as JDBC.

  Hope this helps,
George Dinwiddie
http://www.idiacomputing.com/

> -Original Message-
> From: Tejas Bavishi [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, June 29, 2006 6:09 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Ejb
> 
> 
> 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 not using 
> EJBs and instead using different approaches. There is a book 
> called "J2EE without EJBs" by Rod Johnson that talks a lot 
> about building applications without using EJBs.
> 
> Thanks & regards
> Tejas
> 
> 
> -Original Message-
> From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 29, 2006 3:08 PM
> To: Struts Mailing list
> Subject: Ejb
> 
> 
> 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
> 
> 
http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to whom
this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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 any benefits (speed, new
features, better possible stability, etc.).

Regards,
David

-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 12:17 PM
To: Struts List
Subject: Eclipse plugin

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 in
order to help me to develop Struts projects in Eclipse.

Do u know another plugin? what is the best?

Thanks in advance..

Greetings from Peru


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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:

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.commons.validator
Build-Jdk: 1.4.2_05
Extension-Name: commons-validator
Specification-Title: Commons Validator
Specification-Vendor: The Apache Software Foundation
Implementation-Title: org.apache.commons.validator
Implementation-Vendor: The Apache Software Foundation
Implementation-Version: 1.1.4
^^
There you go, the validator is version v1.1.4 in struts-1.2.9-bin.zip!

Regards,
David

-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 11:36 AM
To: Struts Users Mailing List
Subject: RE: Quick Struts/Validator version question

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
version 1.1.4 of the validator.  This begs the question as to why there's
versions 1.2.0 and 1.3.0 of the validator when Struts isn't using it.  Are
there other uses for the validator framework besides struts?

I'm still looking for an answer to the second half of my question (about any
ramifications of throwing validator 1.3.0 into Struts 1.2.9) if anyone
knows.

Thanks,

-Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 any benefits (speed, new
features, better possible stability, etc.).

Regards,
David

-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 12:17 PM
To: Struts List
Subject: Eclipse plugin

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 in
order to help me to develop Struts projects in Eclipse.

Do u know another plugin? what is the best?

Thanks in advance..

Greetings from Peru


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 in
order to help me to develop Struts projects in Eclipse.

Do u know another plugin? what is the best?

Thanks in advance..

Greetings from Peru

--
Rafael Taboada
Software Engineer

Cell : +511-97753290

"No creo en el destino pues no me gusta tener la idea de controlar mi vida"


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.commons.validator
Build-Jdk: 1.4.2_05
Extension-Name: commons-validator
Specification-Title: Commons Validator
Specification-Vendor: The Apache Software Foundation
Implementation-Title: org.apache.commons.validator
Implementation-Vendor: The Apache Software Foundation
Implementation-Version: 1.1.4
^^
There you go, the validator is version v1.1.4 in struts-1.2.9-bin.zip!

Regards,
David

-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 11:36 AM
To: Struts Users Mailing List
Subject: RE: Quick Struts/Validator version question

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
version 1.1.4 of the validator.  This begs the question as to why there's
versions 1.2.0 and 1.3.0 of the validator when Struts isn't using it.  Are
there other uses for the validator framework besides struts?

I'm still looking for an answer to the second half of my question (about any
ramifications of throwing validator 1.3.0 into Struts 1.2.9) if anyone
knows.

Thanks,

-Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
version 1.1.4 of the validator.  This begs the question as to why there's
versions 1.2.0 and 1.3.0 of the validator when Struts isn't using it.  Are
there other uses for the validator framework besides struts?

I'm still looking for an answer to the second half of my question (about any
ramifications of throwing validator 1.3.0 into Struts 1.2.9) if anyone
knows.

Thanks,

-Adam

-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 29 June 2006 09:05
To: user@struts.apache.org
Subject: Quick Struts/Validator version question

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 one 
that comes with validator 1.3.0?

I hope that was clear.  Thanks in advance.

-Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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 change the  to  followed by


HTH,
-ed

On 6/29/06, Caroline Jen <[EMAIL PROTECTED]> wrote:

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 really do not understand why it
happens this way.

[code].
<%@ page import="..common.pojo.user.User" %>
..
..





   // many
textfields and a submit button



..
..
 

   
 




..
..
   
   

Edit
Selected Users

   

..

..
..
[/code]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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: How to take care of session mgmt


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 has any
standard way of handling this issue.


Thanks in advance for all your help.


Regards,
Vinodh









The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.


WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.


www.wipro.com


The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[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 fine.)"

(The whole post is included below if you're interested) 

This makes sense if a ViewController is our in-memory object
representation of a page, since a page only lasts for one request.

Well, I was looking at the Shale samples and in the rolodex example, the
ViewController (backing bean) for the rolodex is stored in session
scope.

  

   View controller for the JSP view rolodex usecase

rolodex

  org.apache.shale.usecases.rolodex.Rolodex

session
  

I understand that samples don't have to reflect best-practices, but I'm
curious as to what the best-practice would be.

Should your ViewController object be in request scope, and get injected
with a non-view-Controller that could live in any scope.  The
non-view-Controller can have model objects injected into it.  This way
the ViewController can handle all view related methods, and pass through
to the non-view-Controller for business methods which then get passed on
to the model objects.

Should your ViewController object live in request scope, and just get
variously scoped model objects injected, and after that just work as
both a View and non-view Controller.

Shoud you do something else completely different from either of those
two scenarios?


JB

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig
McClanahan
Sent: Tuesday, June 20, 2006 1:03 AM
To: Struts Users Mailing List
Subject: Re: [shale] Problems with View controller

On 6/19/06, Marty Phee <[EMAIL PROTECTED]> wrote:
>
> Ok, I've got most everything working.  Combination of things mostly me

> not know how to configure everything.
>
> There is a problem though if you use tiger and subview.  Only init() 
> will be called if the bean is marked session.  If you mark it request 
> init and destroy will be called.  The problem is in 
> org.apache.shale.component.SubView.  Not really a problem per-say, but

> tiger needs to implement something for subviews.


Hmm ... I'll bet it's not just subviews ... I'll bet any ViewController
you put in session scope  will have the same problem.  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 fine.)

It ends up failling here after I set the id to a valid managed (by
> tiger) bean that has the @View anotation.  Since it's trying to cast 
> it to a ViewController it fails.


What bit of code is trying to cast it?  If you are talking about the
ViewControllerCallbacks implementation, that gets specifically replaced
by a Tiger version that uses reflection to call the method marked with
an annotation instead, when you add shale-tiger.jar to your webapp

  After I added extends
> AbstractViewController all the events were filed.  Like wise if I 
> didn't use tiger it worked fine.


Those caess make sense, because even the Tiger version will recognize
beans that implement the ViewController interface ... essentially it
just pretends that the four callback methods were annotated.

// Construct and initialize a new ViewController, if any is
associated
> String expr = "#{" + name + "}";
> try {
> vc = (ViewController) context.getApplication().
>  createValueBinding(expr).getValue(context);
> if (vc == null) {
> log.debug(messages.getMessage("subview.noBean",
>   new Object[] { getId()
}));
> return null;
> }


Where specifically is this code?  If it's in the subview handler, that
will definitely have problems with the Tiger stuff, and will need to be
updated.

Craig

Craig McClanahan wrote:
> > On 6/19/06, Marty Phee <[EMAIL PROTECTED]> wrote:
> >>
> >> I'm using: shale, tiger, tiles.
> >
> >
> > Nothing like trying *all* the new stuff all at once :-).
> >
> > How recent is the Shale build you are using?  I ask because there 
> > were recent (after 1.0.2) changes in how init and destroy get called

> > such
> that
> > they should *always* happen.  To cause the other callbacks to occur,

> > you'll need to use  tags around your  tags.

> > Also, I haven't tested this particular combination, so if that fails

> > on a
> current
> > build, then it's a bug we'll need to take a look at.
> >
> > Craig
> >
> > I have a layout with one of the tiles being AdminContent.jsp.
> >> 
> >>  >> path="/admin/layouts/mainLayout.jsp">
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >>
> >> I have a backing bean bean.AdminContent which is also declared a

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 has any
standard way of handling this issue.

Thanks in advance for all your help.

Regards,
Vinodh






The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

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 one 
that comes with validator 1.3.0?


I hope that was clear.  Thanks in advance.

-Adam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 really do not understand why it
happens this way.

[code].
<%@ page import="..common.pojo.user.User" %>
..
..





   // many
textfields and a submit button



..
.. 
 







..
..  
   
   

Edit
Selected Users

   

..

..
..
[/code]



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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" 
Subject: RE: JSP files cached in NetBeans ???
Date: Thu, 29 Jun 2006 10:06:59 +0530

IDE is innocent .Blame it on your container cache or browser cache

-Original Message-
From: A. Lotfi [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 10:04 AM
To: Struts Users Mailing List
Subject: JSP files cached in NetBeans ???


Hi,
I am using Neatbeans 5 in windows XP, when I change a jsp file and I run 
the project the change never take effect, always the first JSPs appear, 
could you please tell me how to deal with this problem ?

Thanks, your help is appreciated.


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great 

rates starting at 1?min.

Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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" ?

Cheers,

Manos



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 clear the MessageResources
out of my cache so that it would be reloaded the next time I go anywhere
on my site.

Thanks in advance.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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



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="boolean" ?

Cheers,

Manos



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 

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 not using EJBs and
instead using different approaches. There is a book called "J2EE without
EJBs" by Rod Johnson that talks a lot about building applications without
using EJBs.

Thanks & regards
Tejas


-Original Message-
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 29, 2006 3:08 PM
To: Struts Mailing list
Subject: Ejb


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


http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at [EMAIL PROTECTED] and delete this mail. 
_

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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 decision to use or not to use ejbs. Its
not struts releated in any sense.
Leon




Regards,
Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Mobile : +91 9819510090




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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-conf.xml





  

  

  

Any help appreciated.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]