Struts + Commons 500 error

2006-07-07 Thread Raghuveer


When session expires in my JSP i am getting following error.

I am using Struts Nested tags and validator framework.
I am always using the collection in my actionform with Present,Empty tags
always in my JSP.





Experts,please share your comments..!!



06/07/08 11:55:24 test: Servlet error
java.lang.IndexOutOfBoundsException: Index: 4, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUt
ilsBean.java:433)
at
org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUt
ilsBean.java:340)
at
org.apache.commons.beanutils.PropertyUtilsBean.getNestedProperty(PropertyUti
lsBean.java:684)
at
org.apache.commons.beanutils.PropertyUtilsBean.getProperty(PropertyUtilsBean
.java:715)
at
org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:88
4)
at
org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:804)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispa
tcher.java:765)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletReq
uestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandle
r.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind[Oracle Application Server Containers for J2EE 10g
(9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableRe
sourcePooledExecutor.java:186)
at java.lang.Thread.run(Unknown Source)


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



Announcement: Strecks (Struts extensions for Java 5) version 1.0 beta 3 released

2006-07-07 Thread Phil Zoio
I'd like to announce the release of Strecks 1.0 beta 3. Strecks is a set 
of extensions to Struts aimed at Java 5 users aimed at streamlining 
development of Struts application with features such as POJO actions, 
interceptors, dependency injections, data binding, etc. For more details 
see http://strecks.sourceforge.net/


Strecks 1.0 beta 3 can be downloaded from 
http://strecks.sourceforge.net/download.php


The main changes in this recent release involve some internal 
refactorings to easily support the Struts 1.3 when it becomes GA 
(General Availability). Users will be able to configure Strecks using 
the Struts 1.3 chain of responsibility request processor (as well as 
continue to use the Struts 1.2 request processor). However, the main 
targeted Struts version will continue to be 1.2 until Struts 1.3 becomes 
GA.


Strecks 1.0 beta 3 involves the following changes:

- refactored processor internals to allow for simpler support of 1.3.x 
and its chain of responsibility-based request processor
- proper packaging of Strecks .tld file in jar. Changed tag URI to 
http://strecks.sourceforge.net/tags
- changed interface of ActionContextFactory to use PropertyDescriptor 
rather than InputSetter


Regards,
Phil Zoio

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



Struts HTML tag library clarification

2006-07-07 Thread Adam Gordon
According to the radio button section of the wiki page 
(http://wiki.apache.org/struts/StrutsWidgets), this is by design but I 
find it a little annoying...


It appears that with the  tag at the top of a JSP, an HTML 
input element gets closed correctly per bug 5518 (back in 2002).  What I 
don't see is this behavior:


If I have:

   Some text

My browser (Firefox) treats the "Some text" text as part of the radio 
button so if I use the onclick attribute, I can click the text and it's 
the same as clicking the radio button (I do not, however, know if some 
browsers treat this differently).


However, if I have:

   Some text

It gets rendered as:

   Some text

And the "Some text" is just that, plain text.  The only way I can see to 
make it clickable is to use an anchor tag.


So, I guess my question is was this behavior by design and if so why?

Thanks

-Adam

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



Re: tomahawk + shale clay - Solution

2006-07-07 Thread stephan opitz

no exception anymore but calendar wont be rendered correct (html code
available but i see nothing there where the cal should be)

2006/7/7, Gary VanMatre <[EMAIL PROTECTED]>:

Your managed bean name is not correct in the binding expression.  The managed 
bean names are *not* case insensitive.

CalendarBean
"#{calendarBean.firstDate}"


Try: "#{CalendarBean.firstDate}"

Gary

-- Original message --
From: "stephan opitz" <[EMAIL PROTECTED]>

> applicationContext.xml
>
>
> > "http://www.springframework.org/dtd/spring-beans.dtd";>
>
>
>
>
>
>
> faces-config.xml
>
> CalendarBean
>
> de.fhb.calendar.CalendarBean
>
> request
>
>
> CalendarBean
> public class CalendarBean implements Serializable {
> /**
> * serial id for serialisation
> */
> private static final long serialVersionUID = 1L;
>
> private Date firstDate;
>
> public Date getFirstDate() {
> return firstDate;
> }
>
> public void setFirstDate(Date firstDate) {
> this.firstDate = firstDate;
> }
>
> public String submitMethod()
> {
> return "submit";
> }
> }
>
> jsp file
>
> > weekRowClass="weekHeader"
> currentDayCellClass="currentDayCell"
> value="#{calendarBean.firstDate}"/>
>
>
> but i found something about this:
>
> http://issues.apache.org/struts/browse/SHALE-192
>
> stephan
>
> 2006/7/7, Gary VanMatre :
> > >From: "stephan opitz"
> >
> > > thx, but how i register them?
> > >
> >
> > To register a managed bean using JSF, look in the /WEB-INF/faces-config.xml.
> Try something like this:
> >
> >
> > calendarBean
> > org.acme.CalendarBean
> > request
> >
> >
> > A few more examples:
> >
> 
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-usecases/src/main/weba
> pp/WEB-INF/faces-config.xml?view=log
> >
> 
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-clay-usecases/src/main
> /webapp/WEB-INF/faces-config.xml?view=log
> >
> > Gary
> >
> >
> > > 2006/7/7, Gary VanMatre :
> > > > >hello,
> > > > >
> > > > >i followed your instructions with the tomahawk-view-config.xml and
> > > > >include it into web.xml
> > > > >also i added tomahawk 1.11 libary into lib folder...
> > > > >
> > > > >now i wanted to use the calendar!
> > > > >
> > > > >i copied CalendarBean from simple example... also i a configured als
> > > > >rules. managed beans etc.
> > > > >
> > > > >already little code like this:
> > > > >
> > > > > > > >weekRowClass="weekHeader"
> > > > > currentDayCellClass="currentDayCell"
> > > > >value="#{calendarBean.firstDate}"/>
> > > > >
> > > > >
> > > > >throws exception:
> > > > >14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw
> exception
> > > > >javax.faces.el.EvaluationException: Cannot get value for expression
> > > > >'> > >weekRowClass="weekHeader"
> > > > > currentDayCellClass="currentDayCell"
> > > > >value="#{calendarBean.firstDate}"/>'
> > > > >
> > > > >Caused by: java.lang.IllegalStateException: No WebApplicationContext
> > > > >found: no ContextLoaderListener registered?
> > > > >at
> > > >
> > >
> 
>org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(
> > > F
> > > > >acesContextUtils.java:78)
> > > > > at
> > > >
> > >
> 
>org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext
> > > (
> > > > >DelegatingVariableResolver.java:134)
> > > > >
> > > > >no final solution found for the
> > > > >No WebApplicationContext found: no ContextLoaderListener registered?
> > > > >
> > > > >problem in this context.
> > > > >
> > > >
> > > > I think the problem is that you have the shale-spring.jar in your
> classpath
> > > but your have not registered any spring beans.
> > > >
> > > >
> > > >
> > > > contextConfigLocation
> > > >
> > > >
> > > >
> > > >
> > > > The "calendarBean", managed bean is not registered in the faces-config 
or
> > > spring config.
> > > >
> > > >
> > > > >stephan
> > > >
> > > > Gary
> > > >
> > >
> > > -
> > > 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]



ActionForm is null when using dynabean

2006-07-07 Thread Yanroy

Hi,
I'm fairly new to struts and I'm having a puzzling problem.  Let me start
with some quick background: I'm attempting to make a highly configurable and
extensible web interface for a statistical analysis engine.  Because of the
large (and arbitrary) number of types of analyses, I opted not to create a
seperate bean and JSP form for each type.  Most of these analyses extend
other analyses, so I have made a JSP for each one that uses an include
directive to bring in the form elements from the base class(es) to prevent
duplicating that code for all the children.  This also entails not having a
specific bean class for each analysis type, so I'm using a LazyDynaBean. 
Keep in mind that I use beans that I actually define as my own classes in
other places in this webapp and it works fine, but I don't use LazyDynaBeans
(or any kind of DynaBean) anywhere else.

I've been assured by many websites that I can specify in my
struts-config.xml a form-bean of type
org.apache.commons.beanutils.LazyDynaBean and it will somehow be wrapped in
some kind of ActionForm automatically.  In an attempt to figure out what
kind of ActionForm subclass this was, I decided to put a System.out in one
of my execute() methods in the strut to tell me via
form.getClass().getName().  To my surprise, I got a null pointer exception,
and after a little more investigation, I found out form was null.  This is
way over my head - like I said, I'm new to struts.  Below, I have what I
believe are relevant excerpts of code and config files...

from struts-config.xml:











... snip...














here's an example of one of the forwards' targets, SumAnalysis.jsp.  The
header includes the appropriate taglibs, and the includes in the table body
contain only ...form stuff  Note that some of them have .html
extensions because tomcat seems to have an issue where it attempts to
compile included JSP's before actually including them (took me hours to
debug that).



<%@ include file="StatsHeader.html" %>







<%@ include file="StatisticalAnalysis.html" %>
<%@ include file="FilteredAnalysis.html" %>


Sum Field

Select the field of the result tables to 
perform the summation on:






<%@ include file="Notification.html" %>



Save






<%@ include file="StatsFooter.jsp" %>

Here's the relevant function from my AnalysisConfig.java strut class (which
extends DispatchAction, hence the method name being "save" instead of
"execute"):

public ActionForward save(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws Exception {
Experiment exp =
(Experiment)request.getSession().getAttribute("Experiment");
if (exp == null) {
request.setAttribute("errorMessage", "Unable to get 
Experiment out of the
session attributes.");
return mapping.findForward("ExperimentManagerError");
}

if (form == null)
System.out.println("form is null!");
else
System.out.println(form.getClass().getName());

// TODO: I'm creating a CountAnalysis for testing, make this 
more
intelligent later
StatisticalAnalysis analysis = new CountAnalysis();

// TODO: configure analysis here

exp.addAnalysis(analysis);

return mapping.findForward("AnalysisConfigReturn");
}

I hope you'll forgive the long post... I just wanted to provide enough
information for someone to spot my error.  I'd greatly appreciate any help
you can give.  Thank you very much for reading this far!

Ryan (aka Yanroy)
-- 
View this message in context: 
http://www.nabble.com/ActionForm-is-null-when-using-dynabean-tf1908060.html#a5222710
Sent from the Struts - User forum at Nabble.com.


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

[OT][ANN] JAVAWUG BOF XX / Oracle City of London / 13th July 2006 @ 7pm / Update

2006-07-07 Thread Peter Pilgrim

Hi All

I would like announce the twentieth birds-of-a-feather (BOF 20) of
the Java Web Users Group. The event will take place at


 Oracle City Of London
 One South Place
 London,
 England
 EC2M 2RB.



The feature speakers:

Emmanuel Okyere
"RIFE: The Petstore Edition"
(Emmanuel has been hard at work converting the (in)famous
PetStore J2EE reference application up-to-date with
the RIFE framework. Find out about RIFE through
these presentation.)


Peter Pilgrim
"Retrofitting Legacy J2EE Architectures with Spring"
(My experiences of bringing Spring Framework
into a legacy Java EE application and environment.
This is also my take on trying to bring some agility
to enterprise a little behind the times.)



Afterwards members can retire to the nearby the ``All Bar One''
pub/restaurant for more in depth discussion dinner, food and drink ...


If you would like to attend, please REGISTER so that you can be added to the 
SECURITY DETAIL


Join the http://groups.google.com/group/javawug JAVAWUG at Google Groups
and ``Send an Email to the list you are attending''

Alternatively send mail to myself at peter dot pilgrim at gmail dot com
and/or duncan dot mills at oracle.com

Here is some relevant travel information:

By Underground: -

 Moorgate: Take the Moorgate East exit, turn right, one block to South
 Place.
 Bank: Take the Northern line to Moorgate.
 Liverpool Street: Take the Broadgate exit, turn right onto South Place


Map: http://www.oracle.com/global/uk/corporate/locations/citymap.html

The venue has graciously been organised by Duncan Mills of Oracle Corp. We all 
appreciate this generous gift.


http://www.javawug.com/

http://jroller.com/page/peter_pilgrim

PS: The presentations will be recorded and I hope to upload them all Google 
Video Site. search against JAVAWUG for the last video uploads.

--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age

On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



Re: Newbie question - JSP text box formatting

2006-07-07 Thread Simons Kevin

Sorry if I'm wrong,
but can't you format numbers using CSS3?

- Original Message - 
From: "Pillay, Kiren KN" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>
Cc: "Struts Users Mailing List" 
Sent: Friday, July 07, 2006 11:17 AM
Subject: RE: Newbie question - JSP text box formatting



Hi Albi,

I actually need to format and  tag's values, where the values
are pulled out of a database. Is this possible?

Regards

-Original Message-
From: Albrecht Leiprecht [mailto:[EMAIL PROTECTED]
Sent: 06 July 2006 06:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie question - JSP text box formatting

You could try something like this

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>

 EUR

Rgds
albi

-Original Message-
From: Pillay, Kiren KN [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 4:33 PM
To: user@struts.apache.org
Subject: Newbie question - JSP text box formatting

Hi

I'm new to struts and I have a question.

I have textboxes that represent currency. I want the data of the JSP to
be formatted to show 2 decimal places after the comma. I don't want to
use locales for the application. Whats the best way to achieve this?

Kiren Pillay
South Africa



__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless
the context clearly indicates otherwise, the property of Standard Bank
Group Limited and/or its subsidiaries ("the Group"). It is confidential,
private and intended for the addressee only. Should you not be the
addressee and receive this e-mail by mistake, kindly notify the sender,
and delete this e-mail, immediately and do not disclose or use same in
any manner whatsoever. Views and opinions expressed in this e-mail are
those of the sender unless clearly stated as those of the Group. The
Group accepts no liability whatsoever for any loss or damages whatsoever
and howsoever incurred, or suffered, resulting, or arising, from the use
of this email or its attachments. The Group does not warrant the
integrity of this e-mail nor that it is free of errors, viruses,
interception or interference. Licensed divisions of the Standard Bank
Group are authorised financial services providers in terms of the
Financial Advisory and Intermediary Services Act, No 37 of
2002 (FAIS).
For information about the Standard Bank Group Limited visit our website
http://www.standardbank.co.za


___


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

__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless 
the context clearly indicates otherwise, the property of Standard Bank 
Group Limited
and/or its subsidiaries ("the Group"). It is confidential, private and 
intended for the addressee only. Should you not be the addressee and 
receive this e-mail by
mistake, kindly notify the sender, and delete this e-mail, immediately and 
do not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as 
those of the Group. The Group accepts no liability whatsoever for any loss 
or
damages whatsoever and howsoever incurred, or suffered, resulting, or 
arising, from the use of this email or its attachments. The Group does not 
warrant the integrity
of this e-mail nor that it is free of errors, viruses, interception or 
interference. Licensed divisions of the Standard Bank Group are authorised 
financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 
2002 (FAIS).
For information about the Standard Bank Group Limited visit our website 
http://www.standardbank.co.za

___

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





--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 4/07/2006






--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.9/382 - Release Date: 4/07/2006


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



Re: tomahawk + shale clay - Solution

2006-07-07 Thread Gary VanMatre
Your managed bean name is not correct in the binding expression.  The managed 
bean names are *not* case insensitive.

CalendarBean
"#{calendarBean.firstDate}"


Try: "#{CalendarBean.firstDate}"

Gary

-- Original message -- 
From: "stephan opitz" <[EMAIL PROTECTED]> 

> applicationContext.xml 
> 
> 
> > "http://www.springframework.org/dtd/spring-beans.dtd";> 
> 
> 
> 
> 
> 
> 
> faces-config.xml 
> 
> CalendarBean 
> 
> de.fhb.calendar.CalendarBean 
> 
> request 
> 
> 
> CalendarBean 
> public class CalendarBean implements Serializable { 
> /** 
> * serial id for serialisation 
> */ 
> private static final long serialVersionUID = 1L; 
> 
> private Date firstDate; 
> 
> public Date getFirstDate() { 
> return firstDate; 
> } 
> 
> public void setFirstDate(Date firstDate) { 
> this.firstDate = firstDate; 
> } 
> 
> public String submitMethod() 
> { 
> return "submit"; 
> } 
> } 
> 
> jsp file 
> 
> > weekRowClass="weekHeader" 
> currentDayCellClass="currentDayCell" 
> value="#{calendarBean.firstDate}"/> 
> 
> 
> but i found something about this: 
> 
> http://issues.apache.org/struts/browse/SHALE-192 
> 
> stephan 
> 
> 2006/7/7, Gary VanMatre : 
> > >From: "stephan opitz" 
> > 
> > > thx, but how i register them? 
> > > 
> > 
> > To register a managed bean using JSF, look in the 
> > /WEB-INF/faces-config.xml. 
> Try something like this: 
> > 
> > 
> > calendarBean 
> > org.acme.CalendarBean 
> > request 
> > 
> > 
> > A few more examples: 
> > 
> http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-usecases/src/main/weba
>  
> pp/WEB-INF/faces-config.xml?view=log 
> > 
> http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-clay-usecases/src/main
>  
> /webapp/WEB-INF/faces-config.xml?view=log 
> > 
> > Gary 
> > 
> > 
> > > 2006/7/7, Gary VanMatre : 
> > > > >hello, 
> > > > > 
> > > > >i followed your instructions with the tomahawk-view-config.xml and 
> > > > >include it into web.xml 
> > > > >also i added tomahawk 1.11 libary into lib folder... 
> > > > > 
> > > > >now i wanted to use the calendar! 
> > > > > 
> > > > >i copied CalendarBean from simple example... also i a configured als 
> > > > >rules. managed beans etc. 
> > > > > 
> > > > >already little code like this: 
> > > > > 
> > > > > > > >weekRowClass="weekHeader" 
> > > > > currentDayCellClass="currentDayCell" 
> > > > >value="#{calendarBean.firstDate}"/> 
> > > > > 
> > > > > 
> > > > >throws exception: 
> > > > >14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw 
> exception 
> > > > >javax.faces.el.EvaluationException: Cannot get value for expression 
> > > > >'> > >weekRowClass="weekHeader" 
> > > > > currentDayCellClass="currentDayCell" 
> > > > >value="#{calendarBean.firstDate}"/>' 
> > > > > 
> > > > >Caused by: java.lang.IllegalStateException: No WebApplicationContext 
> > > > >found: no ContextLoaderListener registered? 
> > > > >at 
> > > > 
> > > 
> >org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(
> > 
> > > F 
> > > > >acesContextUtils.java:78) 
> > > > > at 
> > > > 
> > > 
> >org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext
> > 
> > > ( 
> > > > >DelegatingVariableResolver.java:134) 
> > > > > 
> > > > >no final solution found for the 
> > > > >No WebApplicationContext found: no ContextLoaderListener registered? 
> > > > > 
> > > > >problem in this context. 
> > > > > 
> > > > 
> > > > I think the problem is that you have the shale-spring.jar in your 
> classpath 
> > > but your have not registered any spring beans. 
> > > > 
> > > > 
> > > > 
> > > > contextConfigLocation 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > The "calendarBean", managed bean is not registered in the faces-config 
> > > > or 
> > > spring config. 
> > > > 
> > > > 
> > > > >stephan 
> > > > 
> > > > Gary 
> > > > 
> > > 
> > > - 
> > > 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: tomahawk + shale clay - Solution

2006-07-07 Thread stephan opitz

applicationContext.xml


http://www.springframework.org/dtd/spring-beans.dtd";>

 
   
 


faces-config.xml

CalendarBean

de.fhb.calendar.CalendarBean

request


CalendarBean
public class CalendarBean implements Serializable {
   /**
* serial id for serialisation
*/
   private static final long serialVersionUID = 1L;

   private Date firstDate;

   public Date getFirstDate() {
return firstDate;
}

   public void setFirstDate(Date firstDate) {
this.firstDate = firstDate;
}

public String submitMethod()
   {
   return "submit";
   }
}

jsp file
   
   
   

but i found something about this:

http://issues.apache.org/struts/browse/SHALE-192

stephan

2006/7/7, Gary VanMatre <[EMAIL PROTECTED]>:

>From: "stephan opitz" <[EMAIL PROTECTED]>

> thx, but how i register them?
>

To register a managed bean using JSF, look in the /WEB-INF/faces-config.xml.  
Try something like this:

 
   calendarBean
   org.acme.CalendarBean
   request
 

A few more examples:
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-usecases/src/main/webapp/WEB-INF/faces-config.xml?view=log
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml?view=log

Gary


> 2006/7/7, Gary VanMatre :
> > >hello,
> > >
> > >i followed your instructions with the tomahawk-view-config.xml and
> > >include it into web.xml
> > >also i added tomahawk 1.11 libary into lib folder...
> > >
> > >now i wanted to use the calendar!
> > >
> > >i copied CalendarBean from simple example... also i a configured als
> > >rules. managed beans etc.
> > >
> > >already little code like this:
> > >
> > > > > >weekRowClass="weekHeader"
> > > currentDayCellClass="currentDayCell"
> > >value="#{calendarBean.firstDate}"/>
> > >
> > >
> > >throws exception:
> > >14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw 
exception
> > >javax.faces.el.EvaluationException: Cannot get value for expression
> > >'> > >weekRowClass="weekHeader"
> > > currentDayCellClass="currentDayCell"
> > >value="#{calendarBean.firstDate}"/>'
> > >
> > >Caused by: java.lang.IllegalStateException: No WebApplicationContext
> > >found: no ContextLoaderListener registered?
> > >at
> >
> 
>org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(
> F
> > >acesContextUtils.java:78)
> > > at
> >
> 
>org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext
> (
> > >DelegatingVariableResolver.java:134)
> > >
> > >no final solution found for the
> > >No WebApplicationContext found: no ContextLoaderListener registered?
> > >
> > >problem in this context.
> > >
> >
> > I think the problem is that you have the shale-spring.jar in your classpath
> but your have not registered any spring beans.
> >
> >
> >
> > contextConfigLocation
> >
> >
> >
> >
> > The "calendarBean", managed bean is not registered in the faces-config or
> spring config.
> >
> >
> > >stephan
> >
> > Gary
> >
>
> -
> 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: Tiles: Passing a bean to tiles in a definition file

2006-07-07 Thread Dan Langer


-Original Message-
From: Antonio Petrelli 

I agree with you, I think that this functionality isn't there for 
technical reasons, simply because Tiles definitions, when they are 
loaded, don't know about page scopes, that is needed to resolve beans.
Why don't you open a bug ticket for that?

>> Will do. Thanks for the technical reasons behind it not working.

In fact, I meant that you would put, for example, your bean in request 
scope from your action class and then read it the usual way (with 
,  etc.).

>> I don't think this will do it, as I'm looking to create a reusable
component that will often be used several times on one page. If I
hardcode the bean name in the component (which I would have to do to get
at it with ), then I won't be able to have different instances of
the component reading from different beans. 

Thanks,

Dan

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



Re: tomahawk + shale clay - Solution

2006-07-07 Thread Gary VanMatre
>From: "stephan opitz" <[EMAIL PROTECTED]> 

> thx, but how i register them? 
>

To register a managed bean using JSF, look in the /WEB-INF/faces-config.xml.  
Try something like this:

  
calendarBean
org.acme.CalendarBean
request
  

A few more examples:
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-usecases/src/main/webapp/WEB-INF/faces-config.xml?view=log
http://svn.apache.org/viewvc/shale/trunk/shale-apps/shale-clay-usecases/src/main/webapp/WEB-INF/faces-config.xml?view=log

Gary

 
> 2006/7/7, Gary VanMatre : 
> > >hello, 
> > > 
> > >i followed your instructions with the tomahawk-view-config.xml and 
> > >include it into web.xml 
> > >also i added tomahawk 1.11 libary into lib folder... 
> > > 
> > >now i wanted to use the calendar! 
> > > 
> > >i copied CalendarBean from simple example... also i a configured als 
> > >rules. managed beans etc. 
> > > 
> > >already little code like this: 
> > > 
> > > > > >weekRowClass="weekHeader" 
> > > currentDayCellClass="currentDayCell" 
> > >value="#{calendarBean.firstDate}"/> 
> > > 
> > > 
> > >throws exception: 
> > >14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw 
> > >exception 
> > >javax.faces.el.EvaluationException: Cannot get value for expression 
> > >'> > >weekRowClass="weekHeader" 
> > > currentDayCellClass="currentDayCell" 
> > >value="#{calendarBean.firstDate}"/>' 
> > > 
> > >Caused by: java.lang.IllegalStateException: No WebApplicationContext 
> > >found: no ContextLoaderListener registered? 
> > >at 
> > 
> >org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(
> > 
> F 
> > >acesContextUtils.java:78) 
> > > at 
> > 
> >org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext
> > 
> ( 
> > >DelegatingVariableResolver.java:134) 
> > > 
> > >no final solution found for the 
> > >No WebApplicationContext found: no ContextLoaderListener registered? 
> > > 
> > >problem in this context. 
> > > 
> > 
> > I think the problem is that you have the shale-spring.jar in your classpath 
> but your have not registered any spring beans. 
> > 
> > 
> > 
> > contextConfigLocation 
> > 
> > 
> > 
> > 
> > The "calendarBean", managed bean is not registered in the faces-config or 
> spring config. 
> > 
> > 
> > >stephan 
> > 
> > Gary 
> > 
> 
> - 
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 

Re: tomahawk + shale clay - Solution

2006-07-07 Thread stephan opitz

thx, but how i register them?

2006/7/7, Gary VanMatre <[EMAIL PROTECTED]>:

>hello,
>
>i followed your instructions with the tomahawk-view-config.xml and
>include it into web.xml
>also i added tomahawk 1.11 libary into lib folder...
>
>now i wanted to use the calendar!
>
>i copied CalendarBean from simple example... also i a configured als
>rules. managed beans etc.
>
>already little code like this:
>
>weekRowClass="weekHeader"
>currentDayCellClass="currentDayCell"
>value="#{calendarBean.firstDate}"/>
>
>
>throws exception:
>14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
>javax.faces.el.EvaluationException: Cannot get value for expression
>'weekRowClass="weekHeader"
>currentDayCellClass="currentDayCell"
>value="#{calendarBean.firstDate}"/>'
>
>Caused by: java.lang.IllegalStateException: No WebApplicationContext
>found: no ContextLoaderListener registered?
   >at
>org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(F
>acesContextUtils.java:78)
>   at
>org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext(
>DelegatingVariableResolver.java:134)
>
>no final solution found for the
>No WebApplicationContext found: no ContextLoaderListener registered?
>
>problem in this context.
>

I think the problem is that you have the shale-spring.jar in your classpath but 
your have not registered any spring beans.

 
 
   contextConfigLocation
   
 


The "calendarBean", managed bean  is not registered in the faces-config or 
spring config.


>stephan

Gary



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



Re: tomahawk + shale clay - Solution

2006-07-07 Thread Gary VanMatre
>hello,
>
>i followed your instructions with the tomahawk-view-config.xml and
>include it into web.xml
>also i added tomahawk 1.11 libary into lib folder...
>
>now i wanted to use the calendar!
>
>i copied CalendarBean from simple example... also i a configured als
>rules. managed beans etc.
>
>already little code like this:
>
>weekRowClass="weekHeader"
>currentDayCellClass="currentDayCell"
>value="#{calendarBean.firstDate}"/>
>
>
>throws exception:
>14:04:42,015 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
>javax.faces.el.EvaluationException: Cannot get value for expression
>'weekRowClass="weekHeader"
>currentDayCellClass="currentDayCell"
>value="#{calendarBean.firstDate}"/>'
>
>Caused by: java.lang.IllegalStateException: No WebApplicationContext
>found: no ContextLoaderListener registered?
>at 
>org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(F
>acesContextUtils.java:78)
>   at 
>org.springframework.web.jsf.DelegatingVariableResolver.getWebApplicationContext(
>DelegatingVariableResolver.java:134)
>
>no final solution found for the
>No WebApplicationContext found: no ContextLoaderListener registered?
>
>problem in this context.
>

I think the problem is that you have the shale-spring.jar in your classpath but 
your have not registered any spring beans.

  
  
contextConfigLocation

  


The "calendarBean", managed bean  is not registered in the faces-config or 
spring config.


>stephan

Gary

Form not found for locale 'en_US'

2006-07-07 Thread kumar.vinodh

Hi *,

I am getting the below warning message for each request.


2006-07-07 11:20:12,140 WARN
[org.apache.commons.validator.ValidatorResources] Form 'callcontrolForm'
not found for locale 'en_US'

I m not aware of this warning message. Is there anyway I can control
this.
Plz help me out in this.

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

Re: FW: html:text

2006-07-07 Thread fea jabi


Thanks for your response.
have a table

in one of the columns have . not all rows have the .

need to validate the user entered values in the  using 
validator.xml.


Created an object.java file which holds the row data of the table.  Created 
a list of these row objects and stored as a form property.


Not sure how to proceed now. should I put the List as a property in the 
form-bean?? if I did so how will the user edited  updated to the 
list so that I can do validations?


Using the below the table is filled with the right values but when the user 
entered values i nthe input fields the form property hrs has previous values 
itself and does not validate right as it doesn't have the user entered 
values.


need help with this.

Struts Config:
dynamic="true">

   
.
..



   redirect="false"/>

   

   
   redirect="false"/>
   redirect="false"/>
   redirect="false"/>
   redirect="false"/>

   

JSP:




.

   
  





Validation.xml


   
   
   
   
   
   test
   (*this* >= 0)
   
   
   
   






From: Laurie Harper <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: Re: FW: html:text
Date: Thu, 06 Jul 2006 14:36:27 -0400

Does the 'Form' form bean have a property 'hrs'? How is it declared? What 
is the type and base type (parent class) of the form bean? We really need 
to see the relevant parts of your struts-config.xml (form bean declaration 
and action mappings) to tell what's happening.


L.

fea jabi wrote:

can somene help me with this please?

how to do validation in validator.xml


   
   
   
   
   
   test
   (*this* >= 0)
   
   
   
   

Where hrs is the attribute in the row object of the table. Even when I 
enter string value in the text field I see no error messages.




From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: html:text
Date: Wed, 05 Jul 2006 15:36:47 -0400

In a table in one of the columns there are 

is it required that each input item has a corresponding form-bean 
property?



by using the below does it take all the user entered values in the 
column??


Each row is an object and sessionScope.Form.hrs is the list of these 
objects.


requestURI="PrepareAction.do" >


.

   
  errorStyleClass="errormsg"/>





Thanks.

_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




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



_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



Re: how to create a struts project in eclipse 3.1.2 + WTP ?

2006-07-07 Thread hicham

On 7/7/06, Anil Kumar T <[EMAIL PROTECTED]> wrote:


Hi Hicham,

I'm also having the same problem. But I'm using eclipse 3.1.1.


Hi anil
the basic idea is there
just create a dynamic web project, and then "import from a filsystem"
each folder the necessary files from an existing struts project (
right click the folder in eclipse  , import from filesystem  )
import WEB-INF/.xml files and .tld files
import lib/ struts .jar
import .jsp and so on ...

best regards
hicham

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



Using properties files other than ApplicationProperties

2006-07-07 Thread chamal desilva
Hi,

I want store all messages in a properties file called
MessageProperties.

I added this line to struts config file.


How can I retireve values in properties file from my
action classes in order to display them using
 tag.

Thanking You,
Chamal.

__
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: how to create a struts project in eclipse 3.1.2 + WTP ?

2006-07-07 Thread hicham

On 7/7/06, hicham <[EMAIL PROTECTED]> wrote:

answering my own question : )  ( a silly one )
all I had to do is just import the filsesystem where a struts is
located to a newly created dynamic web project
and you are set

Hicham


ooops sorry
I spoke too soon : )
import a struts project directory to a dynamic web project does not
seem to be enough
may be someone can help here  ?

hicham

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



Re: how to create a struts project in eclipse 3.1.2 + WTP ?

2006-07-07 Thread hicham

answering my own question : )  ( a silly one )
all I had to do is just import the filsesystem where a struts is
located to a newly created dynamic web project
and you are set

Hicham

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



RE: how to create a struts project in eclipse 3.1.2 + WTP ?

2006-07-07 Thread Anil Kumar T

Hi Hicham,

I'm also having the same problem. But I'm using eclipse 3.1.1.

Hi All,
Any help would be appreciated in this regard.

Thanks,
Anil.

-Original Message-
From: hicham [mailto:[EMAIL PROTECTED]
Sent: Friday, July 07, 2006 3:57 PM
To: Struts Users Mailing List
Subject: how to create a struts project in eclipse 3.1.2 + WTP ?

Hello
 a newbie question.
 This seems to be an eclipse question more than a struts one ?
I'm trying to import the struts examples  that comes with the struts
project, into eclipse 3.1.2 and offcourse  using WTP plugin
I've found this example in
"http://struts.apache.org/1.x/faqs/eclipse.html"; but it is an obsolete
example using eclipse 2.0. 1

Thanks
Hicham.

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


Information transmitted by this e-mail is proprietary to Infinite Computer 
Solutions and / or its Customers and is intended for use only by the individual 
or the entity to which it is addressed, and may contain information that is 
privileged, confidential or exempt from disclosure under applicable law. If you 
are not the intended recipient or it appears that this mail has been forwarded 
to you without proper authority, you are notified that any use or dissemination 
of this information in any manner is strictly prohibited. In such cases, please 
notify us immediately at [EMAIL PROTECTED] and delete this email from your 
records.

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



how to create a struts project in eclipse 3.1.2 + WTP ?

2006-07-07 Thread hicham

Hello
a newbie question.
This seems to be an eclipse question more than a struts one ?
I'm trying to import the struts examples  that comes with the struts
project, into eclipse 3.1.2 and offcourse  using WTP plugin
I've found this example in
"http://struts.apache.org/1.x/faqs/eclipse.html"; but it is an obsolete
example using eclipse 2.0. 1

Thanks
Hicham.

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



RE: Newbie question - JSP text box formatting

2006-07-07 Thread Pillay, Kiren KN
Hi Albi,

I actually need to format and  tag's values, where the values
are pulled out of a database. Is this possible? 

Regards

-Original Message-
From: Albrecht Leiprecht [mailto:[EMAIL PROTECTED] 
Sent: 06 July 2006 06:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie question - JSP text box formatting

You could try something like this

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %>

 EUR

Rgds
albi

-Original Message-
From: Pillay, Kiren KN [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 06, 2006 4:33 PM
To: user@struts.apache.org
Subject: Newbie question - JSP text box formatting

Hi

I'm new to struts and I have a question.

I have textboxes that represent currency. I want the data of the JSP to
be formatted to show 2 decimal places after the comma. I don't want to
use locales for the application. Whats the best way to achieve this?

Kiren Pillay
South Africa



__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless
the context clearly indicates otherwise, the property of Standard Bank
Group Limited and/or its subsidiaries ("the Group"). It is confidential,
private and intended for the addressee only. Should you not be the
addressee and receive this e-mail by mistake, kindly notify the sender,
and delete this e-mail, immediately and do not disclose or use same in
any manner whatsoever. Views and opinions expressed in this e-mail are
those of the sender unless clearly stated as those of the Group. The
Group accepts no liability whatsoever for any loss or damages whatsoever
and howsoever incurred, or suffered, resulting, or arising, from the use
of this email or its attachments. The Group does not warrant the
integrity of this e-mail nor that it is free of errors, viruses,
interception or interference. Licensed divisions of the Standard Bank
Group are authorised financial services providers in terms of the
Financial Advisory and Intermediary Services Act, No 37 of
2002 (FAIS).
For information about the Standard Bank Group Limited visit our website
http://www.standardbank.co.za


___


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

__

Standard Bank Disclaimer and Confidentiality Note

This e-mail, its attachments and any rights attaching hereto are, unless the 
context clearly indicates otherwise, the property of Standard Bank Group Limited
and/or its subsidiaries ("the Group"). It is confidential, private and intended 
for the addressee only. Should you not be the addressee and receive this e-mail 
by
mistake, kindly notify the sender, and delete this e-mail, immediately and do 
not disclose or use same in any manner whatsoever. Views and opinions
expressed in this e-mail are those of the sender unless clearly stated as those 
of the Group. The Group accepts no liability whatsoever for any loss or
damages whatsoever and howsoever incurred, or suffered, resulting, or arising, 
from the use of this email or its attachments. The Group does not warrant the 
integrity
of this e-mail nor that it is free of errors, viruses, interception or 
interference. Licensed divisions of the Standard Bank Group are authorised 
financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002 
(FAIS).
For information about the Standard Bank Group Limited visit our website 
http://www.standardbank.co.za
___

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



Re: problem with modules : Cannot retrieve mapping

2006-07-07 Thread niels

Actually  I don't want to switch modules, I want to 'access' an action form
another module

On 7/6/06, Laurie Harper <[EMAIL PROTECTED]> wrote:


niels wrote:
> have 2 modules: moduleA and moduleB
> in struts-config.xml from moduleA:
>
> 
>
> where testA is located on the filesystem in : /moduleA/testA.jsp
>
> in struts-config.xml from moduleB:
> 
>
> path="/searchUserSubmit"
>type="com.lego.user.action.SearchUserAction"
>name="searchUserForm"
>validate="true"
>input="/searchUser.do">
>
>
>
> in testB.jsp & testA.jsp if have:
>
> 
> 
> search
> 
>
>
> whe I call /moduleB/moduleBtest.do --> form is displayed
>
> when I call /moduleA/moduleAtest.do--> error cannot retrieve mapping for
> action /searchUserSubmit
>
> So  how to make module A aware of another module and its action
> mappings?
>
> For the html:link tag there is the attribute : module like:
> to
test
> Is there someting simular for html:form

Hmm, the html:form tag doesn't have a 'module' attribute. I don't use
modules so I'm not sure how to handle this, but you may need to submit
via the SwitchModule action.

L.


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