Re: [shale] Radio buttons in Clay

2006-01-31 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> 
>
> Gary VanMatre wrote: 

> Interesting options. I decided that for this case it's not incredibly 
> important to have the html mockup so went and created my first ever 
> component in the clay-config.xml. 

Cool.  You should check out the shale tiger extention.  You can register
a component like this:

@FacesComponent ("org.apache.shale.SomeComponent")
class public SomeComponent 

No, XML config.

The whole JSF component is much cleaner that JSP tags.  I think
all of the pieces/layers are good but it's nice to be able to create
a component without a JSP tag and Renderer.

>Came out perfect the first time. I'm 
> amazed at how easy it was to do. Still, it would be nice to have a good 
> way to do this from the pure html file. I'm not sure exactly what that 
> should look like tho. All the spans just look messy and would is quite 
> a bit harder to understand. Why not add an attribute to the 

I was only thinking in terms of *no extra* XML config but the best way would be 
to handle the radio something like this:


HTML:


XML Config:
 
  
 

  
 
   
 

 
  




> like "group"? Then, in my example, rather than name="response" on all 
> the related radio buttons you have group="response". The biggest 
> problem that I can see with that is that it would be impossible to do a 
> single pass through the document to determine what radio buttons make up 
> the same selectOneRadio component. Maybe this would call for a new JSF 
> component or something. I don't know, just throwing some ideas out there. 
> 
I'll try a couple more options but the XML backing is the best here since there 
is not a good HTML to XML mapping.

> As long as we're on the subject,one thing that I really don't like about 
> the SelectOneRadio component in JSF is that the radio buttons need to be 
> right next to each other. So, there's no easy way, for instance, to 
> have a radio button in the far right of each row of a table to allow the 
> user to select the row they want to perform some action on. 

I'm not sure about this one. Maybe thru CSS?

> > 
> >> Thanks, 
> >> Rich 
> >> 

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] 
> 

validation.xml - "Attribute 'indexedProperty' used but not declared" ?

2006-01-31 Thread Josh McDonald
I've inherited an application (again) which supposed works, but on
deployment I get this error. Google isn't being much help, can anybody
shed some light on the subject?
 
Cheers,
-Josh
 
-- 
 
"His comrades fought beside him, Van Owen and the rest...
   But of all the thompson gunners- Roland was the best."
 
Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460
Email: [EMAIL PROTECTED]




***
Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The 
contents of this message are to be used for the intended purpose only and are 
to be kept confidential at all times.
This message may contain privileged information directed only to the intended 
addressee/s. Accidental receipt of this information should be deleted promptly 
and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.




Re: [shale] subview not talking to a backing bean

2006-01-31 Thread Gary VanMatre
>From: Jason Vincent <[EMAIL PROTECTED]> 
>
> Hey there, 
> 
> I have a header.jsp file that is included in all my jsps: 
> 
> 
> 
> 
> 
> or if the including jsp was in a subdirectory... 
> 
> 
> 
> 
> 
> inside the header.jsp I'm trying to call a request scope backing bean 
> to call a method to dynamically build some javascript. 
> 
> 
> 
> Here is my managed bean definition: 
> 
> header 
> 
> com.prenet.cpt.presentation.Header 
> request 
> 
> 
> The problem is that the header.isAdmin() method is not being called. 
> And futhermore the default constructor for the Header.java class isn't 
> being called. the Header class is not a ViewController as it 
> doesn't match the url-to-bean mapping for whatever page I'm on. 
> 
> What could be going on here? Is there something speacial that has to 
> be done in a subview? 
> 

It doesn't sound like the target page is defined as a JSP page.  Since you are
using a jsp include, the target page needs to have the jsp page directive at
the top of the file.   If you are using the older style it would look like this:
<[EMAIL PROTECTED] contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"; %>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"; %>
<%@ taglib prefix="s" uri="http://struts.apache.org/shale/core"; %>

You could try using the include directive which will merge the 
pages into one unit.

<[EMAIL PROTECTED] file="header.jsp"%>


> Thanks, 
> Jason 
> 

Gary

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

Re: [shale] Outputting formatted numbers

2006-01-31 Thread Gary VanMatre
>I'm trying to format the output of some numbers.  Before, the way I 
>would do this was:
>
>
>  
>
>
>I've tried this with the clay-config.xml with:
>
>  
>
>  
>
>  
>
>  
>

You have a couple options:


  

  



or:

   
  
   


But, I missed many of the base converter's.  The defaults are defined in the 
/META-INF/clay-config.xml file in the clay archive.
If you find some missing from the JSF spec., please post your definition in a 
bugzilla ticket and I'll add it to the base clay config (javax.faces.Number is 
missing)

>But that gives me a NPE with the message "The component identified by 
>jsfid convertNumber could not be found."  Was the f:convertNumber 
>component not mapped on purpose or is this a simple oversight?
>
>I tried creating my own mapping using:
>
>  
>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>
>  
> 
>But that throws an exception saying that javax.faces.Number is an 
>undefined component type.  Any ideas what I did wrong?
>
The converter component definition is correct and this one is missing from the 
base clay config file.  If you want to apply this converter to a component, you 
need to nest it under the component as a "converter" node or provide the 
componentType (registered name of the converter) as a converter attribute of 
the target component (see example above).



>Thanks,
>Rich

[shale] Outputting formatted numbers

2006-01-31 Thread Richard Wallace
I'm trying to format the output of some numbers.  Before, the way I 
would do this was:



 


I've tried this with the clay-config.xml with:

 
   
 
   
 
   
 

But that gives me a NPE with the message "The component identified by 
jsfid convertNumber could not be found."  Was the f:convertNumber 
component not mapped on purpose or is this a simple oversight?


I tried creating my own mapping using:

 
   
 
 
 
 
 
 
 
 
 
   
 

But that throws an exception saying that javax.faces.Number is an 
undefined component type.  Any ideas what I did wrong?


Thanks,
Rich

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



[shale] subview not talking to a backing bean

2006-01-31 Thread Jason Vincent
Hey there,

I have a header.jsp file that is included in all my jsps:


  


or if the including jsp was in a subdirectory...


  


inside the header.jsp I'm trying to call a request scope backing bean
to call a method to dynamically build some javascript.



var showAdmin = true;



Here is my managed bean definition:

header

com.prenet.cpt.presentation.Header
request


The problem is that the header.isAdmin() method is not being called. 
And futhermore the default constructor for the Header.java class isn't
being called.the Header class is not a ViewController as it
doesn't match the url-to-bean mapping for whatever page I'm on.

What could be going on here?  Is there something speacial that has to
be done in a subview?

Thanks,
Jason

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



Re: Leading slash on forward causes problem in proxied environments

2006-01-31 Thread Laurie Harper

J T wrote:

We have four environments: dev, int, stg, and prod. Each of these is fronted
by an apache server
that proxies to our weblogic application server.

The URLs to the apps look like this
(dev) http://devserver.com/dev/Application
(int) http://intserver.com/int/Application
(stg) http://stgserver.com/stg/Application
(prod) http://prodserver.com/Application (no directory)


Two of my actions look like this








When my jsp is rendered in the dev environment it looks like this…

...

http://devserver.com/Application/jsp/mainLayout.jsp";>

...


...





...

So when I click submit the POST goes to http://devserver.com/Application/
and not http://devserver.com/dev/Application

I don't want to hard code my struts-config since this needs be
deployed to 4 places.

I have read through the mailing list archives and the only viable
solution that I have seen is to create a base action that strips the
leading slash off of the forwards so that the POST goes back to
the right place.

Is there a better way of doing this?


See:

http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#base
html:base tag, will set up your  element for you so you can use 
relative URLs


http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-html.html#link
html:link tag, helps construct URLs without having to know the 
deployment context path, etc.


Between the two, you should be able to make your application independent 
of the path under which you deploy it.


L.


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



Re: Regarding using HashMap in jsp

2006-01-31 Thread Laurie Harper

Vasumathi wrote:
HI 
 Anyone can tell how to write the properties value of HashMap in  
using 


This sort of question is best asked on the users list; the dev list is 
intended for discussion of the development of the Struts projects rather 
than on how to use them.


To answer your question, you want something similar to the following:

  
key: 
value: 
  

L.


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



Struts-1.1 Tiles exception error page

2006-01-31 Thread Vladislav Pernin

Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be able to 
redirect user on a JSP error page when an errors occurs. I also need to 
send an email, that can be done from the JSP error page or from an 
exception handler.


The global-exceptions declared in the struts-config.xml "catch" the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an error-page 
in the web.xml, the exception thrown from the TableauBord.jsp is not 
caugth and an ugly "A ServletException in /jsp/TableauBord.jsp ..." is 
displayed instead of the content of the TableauBord.jsp inserted by 
 in Template.jsp ; the JSP error page 
error.jsp is not called.


So I try to add a <%@ page errorPage="/jsp/error.jsp" %> in the pages 
Template.jsp and TableauBord.jsp, I got a different behaviour, the 
"ServletException ..." message went out but the JSP error page has still 
not been called. After some testing, I realised that I could put any 
string in the <%@ page errorPage="sdqsdsqdqsdsqd" %>, no change.


I try to use a standard JSP page, I mean without tiles templating, and 
my JSP error page is called with both solutions (error-page in web.xml 
and directive errorPage in JSP).


Maybe the response is commited before the exception is thrown ?

The web gave me some directions, I tried all of them without any 
success. So if you guys have an idea, it would be great.


Regards,
Vladislav Pernin

--_
Template.jsp:_

<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
	





...



...

...

_TableauBord.jsp :
_JSP page where the error occurs


_titles-defs.xml :_

   
   
   
   

  



_struts-config.xml :_
...



...

_web.xml :_

java.lang.Exception
/jsp/error.jsp



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



Re: using requestDispatcher.inlude()

2006-01-31 Thread Michael Jouravlev
On 1/31/06, temp temp <[EMAIL PROTECTED]> wrote:
> Can I include ".do"using jsp include ?

Of course. But if your ".do" forwards to a JSP, then this combination
won't work as you expect ;-) The response will be closed after the
forward, so the rest of your main page will not be rendered:

http://today.java.net/pub/a/today/2005/08/04/jspcomponents.html?page=3#jsp_servlets_compatibility

You may try to use  instead of  I have not tried
it, but Paul Benedict told me that he was able to include Struts
actions with  without problems.

Michael.

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



Re: [shale] Radio buttons in Clay

2006-01-31 Thread Richard Wallace

Gary VanMatre wrote:
From: Richard Wallace <[EMAIL PROTECTED]> 

Hello, 

I'm trying to use radio buttons to do a questionnaire with the questions 
pulled from a backing bean. There are examples of using select menus in 
the use-cases but I don't see anything about how to use radio buttons. 





The radio list "selectOneRadio" is very similar to the "selectOneMenu"
in that both require child "selectItems" component or "selectItem"s 
components.  


So, there is not really any html equivalentcy but you can use a "select"
and supply a jsfid of "selectOneRadio".  But, this won't give you the 
html mockup.


 One
   Two 



Another option would be to use the "void" jsfid and span tags.  

   




So, the first span bound to a "void" jsfid will be removed.  The second will 
represent the radio list.
But, the "selectOneRadio" can not have any whitespace characters.  The html 
parser actually
adds whitespace as a verbatim components.  All of the html template is 
represented by
components.  This is different than how JSP handles the view.  Clay's method is actually much 
simpler than trying to interweave jsp output with component output.  Anyway, the 
selectOneRadio component will not allow a verbatim/outputText child component.


The html "select" has an implicit mapping to the "selectOneMenu" component.  
The builder
knows to strip out html white space nodes under the "select" node.  


I guess this is a bug.  We should handle this for the span node like the select 
node or
allow the html input node to allow children.  The parser assumes that the 
"input"
node is self terminating.  
  

  
But am getting the error "A duplicate component id (response) was found 
within the same naming container (renderId="123" jsfid="selectOneRadio" 



The duplicate id is coming from the fact that you have given all the components
the same html name attribute.  The name or id attribute is mapped to 
the component's id.  You are correct on the "selectOneRadio" mapping.


I think that I've given you a couple options but please file a bug ticket on
this one.

Gary
  
  
Interesting options.  I decided that for this case it's not incredibly 
important to have the html mockup so went and created my first ever 
component in the clay-config.xml.  Came out perfect the first time.  I'm 
amazed at how easy it was to do.  Still, it would be nice to have a good 
way to do this from the pure html file.  I'm not sure exactly what that 
should look like tho.  All the spans just look messy and would is quite 
a bit harder to understand.  Why not add an attribute to the  tag 
like "group"? Then, in my example, rather than name="response" on all 
the related radio buttons you have group="response".  The biggest 
problem that I can see with that is that it would be impossible to do a 
single pass through the document to determine what radio buttons make up 
the same selectOneRadio component.  Maybe this would call for a new JSF 
component or something.  I don't know, just throwing some ideas out there.


As long as we're on the subject,one thing that I really don't like about 
the SelectOneRadio component in JSF is that the radio buttons need to be 
right next to each other.  So, there's no easy way,  for instance, to 
have a radio button in the far right of each row of a table to allow the 
user to select the row they want to perform some action on. 
  
Thanks, 
Rich 

- 
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: Merging tile layouts and extending

2006-01-31 Thread Keith Fetterman

Folks,

I posted the following post yesterday and unfortunately no one replied. 
 Before giving up, maybe someone knows the answer to a more basic 
question about extending tiles.


When extending a layout that contains  tags, do all of the 
 tags have to exist in the base layout?


If no, can you add additional  tags to the extended layout 
and then extend this new layout and override any of the  
tiles.


Thanks for your help,
Keith


Keith Fetterman wrote:


Does all of the tiles:insert statements have to exist in the base layout?

I am trying to use a common, single base layout.  I then want to extend 
this layout and override one of the tiles to create several intermediate 
layouts.  I then want to extend these layouts.  But, I can't figure out 
how to do this and the documentation doesn't show any examples.


Here is an example of what I am talking about.  My base layout will have 
three tiles:insert statements:


header
middle
footer

Now, I want to create an intermediate layout that extends the base 
layout and adds three tiles to the "middle" tile.  I want the following 
layout to override the "middle" tile in the base layout:


left | center | right

The intermediate layout would then look like this:

header
left | center | right
footer

Now I want to extend the intermediate layout and override the "center" 
tile with content.


On some of my pages, I just want to extend the base layout and insert 
content in the "middle" tile.  On others, I want to use the intermediate 
layout described above and insert content into the "center" tile.


Is there a way to combine to layouts (one layout inserted into another 
layout) and then insert content into a tile that part of the inserted 
layout?


Thanks,
Keith




--
-
Keith Fetterman  206-780-5670
Mariner Supply, Inc. [EMAIL PROTECTED]
http://www.go2marine.com

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



Re: [shale] Radio buttons in Clay

2006-01-31 Thread Gary VanMatre
>From: Richard Wallace <[EMAIL PROTECTED]> 
>
> Hello, 
> 
> I'm trying to use radio buttons to do a questionnaire with the questions 
> pulled from a backing bean. There are examples of using select menus in 
> the use-cases but I don't see anything about how to use radio buttons. 
> 


The radio list "selectOneRadio" is very similar to the "selectOneMenu"
in that both require child "selectItems" component or "selectItem"s 
components.  

So, there is not really any html equivalentcy but you can use a "select"
and supply a jsfid of "selectOneRadio".  But, this won't give you the 
html mockup.

 One
   Two 


Another option would be to use the "void" jsfid and span tags.  

   



So, the first span bound to a "void" jsfid will be removed.  The second will 
represent the radio list.
But, the "selectOneRadio" can not have any whitespace characters.  The html 
parser actually
adds whitespace as a verbatim components.  All of the html template is 
represented by
components.  This is different than how JSP handles the view.  Clay's method is 
actually much 
simpler than trying to interweave jsp output with component output.  Anyway, 
the 
selectOneRadio component will not allow a verbatim/outputText child component.

The html "select" has an implicit mapping to the "selectOneMenu" component.  
The builder
knows to strip out html white space nodes under the "select" node.  

I guess this is a bug.  We should handle this for the span node like the select 
node or
allow the html input node to allow children.  The parser assumes that the 
"input"
node is self terminating.  
  

>But am getting the error "A duplicate component id (response) was found 
>within the same naming container (renderId="123" jsfid="selectOneRadio" 

The duplicate id is coming from the fact that you have given all the components
the same html name attribute.  The name or id attribute is mapped to 
the component's id.  You are correct on the "selectOneRadio" mapping.

I think that I've given you a couple options but please file a bug ticket on
this one.

Gary
  

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

Re: using requestDispatcher.inlude()

2006-01-31 Thread temp temp
Can I include ".do"using jsp include ?
  Thanks & Regards

Michael Jouravlev <[EMAIL PROTECTED]> wrote:  On 1/31/06, temp temp  wrote:
>
>
>
>   Can I include multiple .do's using   request  dispathcer  include?

Sure. Be careful with flushing though.

>   or can I have
>
>  
> <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>
>   multiple times.
>
>
>   like
>
>  
> <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>
> added  811
>
>
>
>  
> <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=812").include(request,response);%>
>
>   
>  added  812
>   
>   Thanks & Regards

Don't you like  for some reason?

Michael.

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





-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new 
and used cars.

Re: using requestDispatcher.inlude()

2006-01-31 Thread Michael Jouravlev
On 1/31/06, temp temp <[EMAIL PROTECTED]> wrote:
>
>
>
>   Can I include multiple .do's using   request  dispathcer  include?

Sure. Be careful with flushing though.

>   or can I have
>
>   
> <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>
>   multiple times.
>
>
>   like
>
>
> <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
>
>
> added  811
>
>
>
>
> <%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=812").include(request,response);%>
>
>   
>  added  812
>   
>   Thanks & Regards

Don't you like  for some reason?

Michael.

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



RE: [OT] Re: Waiting for the return value of a JAVA scriptlet

2006-01-31 Thread George.Dinwiddie
Dave Newton pondered:
> Andreas B. Thun wrote:
> > I wrote a JSP to start a JAVA scriptlet.
> > It works fine but now I have the problem
> > to evaluate the return value of my scriptlet
> > to give the user a feedback if the action
> > was successful.
> > getErrorCode() delivers the scriplets return
> > value.
> > I have to wait until the scriplet is finished...
> >
> > Do you have any ideas how this can be done?
> >
> > <%
> > RunWorkflow wf = new RunWorkflow(args);
> > wf.execute();  
> > %>
> <%= getErrorCode() %>
> 
> *shudder*

Yeah, I don't know why such code wouldn't be in the Action, rather than
embedded in the JSP.  Apparently it is spawning a worker thread rather
than blocking (another problematic issue within the container).  My
approach, givent these constraints, would be to add 
wf.waitFor();
and implement a method that doesn't return until the process is
complete.  Of course, this implies that the wf.execute() call should be
synchronous, in the first place.

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



using requestDispatcher.inlude()

2006-01-31 Thread temp temp

  
  
  Can I include multiple .do's using   request  dispathcer  include?
  
  or can I have 
  
  
<%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
  
  
  multiple times.
  
  
  like 
  
   
<%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=811").include(request,response);%>
  
   
added  811
 
   
  
   
<%request.getRequestDispatcher("/action/budgetInformationRead.do?form=ndsp:budget.Information&object.ndsp:sf.budget=812").include(request,response);%>
   
  
 added  812

  Thanks & Regards
   


-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new 
and used cars.

Re: problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread vinicius
i know that is something basic, but i'm working in this problem for days, i'm 
new in struts an i'm dont have success in just change one line in the 
MessageResources.properties file!
 i don't know if i'm exporting correctly the application to the tomcat webapp 
directory or if i have to do something before in eclipse!!

i've got the same error!:


type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

root cause

java.io.FileNotFoundException: /home/vinicius/Projetos/novo 
Portal/workspace/portal/work/org/apache/jsp/index_jsp.java (No such file or 
directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:179)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)


Em Ter 31 Jan 2006 17:34, [EMAIL PROTECTED] escreveu:
> copy tools.jar from jdk directory to {TomcatBaseDir}/common/lib
> to make it work.
>
>
>
>
> vinicius <[EMAIL PROTECTED]>
> 01/31/2006 02:13 PM
> Please respond to "Struts Users Mailing List"
>
>
> To: user@struts.apache.org
> cc:
> Subject:problem struts+tiles+eclipse+tomcat5+j2sdk-sun
>
>
> I change the MessageResources.properties, update the servlet context,
> export
> the files to the webapp directory in tomcat and when view the page i've
> got
> this error:
> (i don't know if this are the correct steps! i'm using linux and the
> sysdeo
> plugin don't start the tomcat for me like many tutorials explain)
>
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
>520)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
>295)
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9)
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) java.lang.reflect.Method.invoke(Method.java:324)
>  org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>  java.security.AccessController.doPrivileged(Native
> Method)
>

RE: Valid When Question

2006-01-31 Thread Kalcevich, Daniel
That worked perfectly.  Thank you!

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 8:26 AM
To: Struts Users Mailing List
Subject: Re: Valid When Question

Maybe something like the following


   
  test
  ((*this* != null) or ((phone2 == null) and (phone3 ==
null)))
   



   
  test
  ((*this* != null) or ((phone1 == null) and (phone3 ==
null)))
   



   
  test
  ((*this* != null) or ((phone1 == null) and (phone2 ==
null)))
   


Niall

- Original Message - 
From: "Kalcevich, Daniel" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 31, 2006 4:06 PM
Subject: Valid When Question


Everyone,



I have a question regarding the Valid When.  I have 3 fields for phone
number (declared as phone1, phone2, phone3).  Now, the field as a whole
is not required, however, if a user enters in some data, I want to make
sure they enter in values for all 3.  So, on a validWhen I would want
the logic to be "its required when data is entered in either of the
other two fields".  Can someone give any advice into how I can declare
this in my validator XML file?  Thanks.



Daniel



-
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: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
I never tried with boolean but try making it a String. It should work with a 
String. 



-
 Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new 
and used cars.

Re: problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread digant . k . joshi
copy tools.jar from jdk directory to {TomcatBaseDir}/common/lib
to make it work.




vinicius <[EMAIL PROTECTED]>
01/31/2006 02:13 PM
Please respond to "Struts Users Mailing List"

 
To: user@struts.apache.org
cc: 
Subject:problem struts+tiles+eclipse+tomcat5+j2sdk-sun


I change the MessageResources.properties, update the servlet context, 
export 
the files to the webapp directory in tomcat and when view the page i've 
got 
this error:
(i don't know if this are the correct steps! i'm using linux and the 
sysdeo 
plugin don't start the tomcat for me like many tutorials explain)


org.apache.jasper.JasperException: Unable to compile class for JSP
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:324)
 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 java.security.AccessController.doPrivileged(Native 
Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

root cause

java.io.FileNotFoundException: /home/vinicius/Projetos/novo 
Portal/workspace/teste/work/org/apache/jsp/index_jsp.java (No such file or 

directory)
 java.io.FileOutputStream.open(Native Method)
 java.io.FileOutputStream.(FileOutputStream.java:179)
 java.io.FileOutputStream.(FileOutputStream.java:70)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:324)
 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
 java.security.AccessController.doPrivileged(Native 
Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)




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





This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

RE: Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I'll try that, but this property is a boolean so I'm actually not
getting a string when the checkbox is submitted, it has no value
attribute.  I'm getting and working with the boolean in the ultimate
form submit Action without any problems.  

Do I HAVE to set a String value attribute to get it do what I want?


-Original Message-
From: kalpesh modi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 1:11 PM
To: Struts Users Mailing List
Subject: RE: Conditionally checking an html:checkbox field

You need to set it to the value that gets submitted when you check a
checkbox and submit the form. 



-
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.

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



RE: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
You need to set it to the value that gets submitted when you check a checkbox 
and submit the form. 



-
Bring words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.

problem struts+tiles+eclipse+tomcat5+j2sdk-sun

2006-01-31 Thread vinicius
I change the MessageResources.properties, update the servlet context, export 
the files to the webapp directory in tomcat and when view the page i've got 
this error:
(i don't know if this are the correct steps! i'm using linux and the sysdeo 
plugin don't start the tomcat for me like many tutorials explain)


org.apache.jasper.JasperException: Unable to compile class for JSP

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:520)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

root cause

java.io.FileNotFoundException: /home/vinicius/Projetos/novo 
Portal/workspace/teste/work/org/apache/jsp/index_jsp.java (No such file or 
directory)
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.(FileOutputStream.java:179)
java.io.FileOutputStream.(FileOutputStream.java:70)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:495)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)




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



RE: Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I think that's what I'm doing, but it isn't working.

Am I doing this wrong? (from my original post):

In my Action:

if (checkTheBox.equals("yes")) {  //config. option, confirmed
working
regForm.setShutoff(true);
}

[Then it immediately forwards to the JSP.]


-Original Message-
From: kalpesh modi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 12:52 PM
To: Struts Users Mailing List
Subject: Re: Conditionally checking an html:checkbox field

Try the check condition in your action class and set/not set the
checkbox and then forward it to the JSP.

Hope this helps.



-
 
 What are the most popular cars? Find out at Yahoo! Autos 

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



Re: Getting handle on application property file in Action class.

2006-01-31 Thread Hubert Rabago
getResources(request) is a method of the Action class.

> > Is there a way to get handle on Application property file handle in action
> > class.

Hubert

On 1/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is getResources part of org.apache.struts.util.MessageResources
> if it does I don't find getResource in it I find getMessageResources which
> is expecting config as parameter.
> What should I supply  as config from Action class ?
>
>
>
>
>
>
>
> Hubert Rabago <[EMAIL PROTECTED]>
> 01/31/2006 11:29 AM
> Please respond to "Struts Users Mailing List"
>
>
> To: Struts Users Mailing List 
> cc:
> Subject:Re: Getting handle on application property file in 
> Action class.
>
>
> Try something like:
>
> String propertyValue = getResources(request).getMessage("propertyName");
>
> Hubert
>
> On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> > Is there a way to get handle on Application property file handle in
> action
> > class.
> > What I mean is if I specify in struts-config.xml
> >
> >  
> > and drop my DICE.properties file in WEB-INF/classes directory
> > Shouldn't I be able to read this property file from my DAO class which
> is
> > called from within DispatchAction class.
> >  Pls. help!
> > I am getting FileNotFoundException when I am trying to read it !
> > Digant
> > This communication is for informational purposes only. It is not
> intended
> > as an offer or solicitation for the purchase or sale of any financial
> > instrument or as an official confirmation of any transaction. All market
> prices,
> > data and other information are not warranted as to completeness or
> accuracy and
> > are subject to change without notice. Any comments or statements made
> herein
> > do not necessarily reflect those of JPMorgan Chase & Co., its
> subsidiaries
> > and affiliates
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market 
> prices,
> data and other information are not warranted as to completeness or accuracy 
> and
> are subject to change without notice. Any comments or statements made herein
> do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates.
>

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



Re: Conditionally checking an html:checkbox field

2006-01-31 Thread kalpesh modi
Try the check condition in your action class and set/not set the checkbox and 
then forward it to the JSP.

Hope this helps.



-
 
 What are the most popular cars? Find out at Yahoo! Autos 

Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I need to conditionally set a checkbox field when presented to the user
depending on application configuration settings.  I'm using an Action to
load the form and attempt to set the checkbox field.  No matter what I
do I cannot get the checkbox state to change from its default, whether
that be true, false or no value (shows false). 

I've Google'ed, searched the list archive and various FAQ's to no avail.



In my ValidatorForm bean:  (This particular field is not validated)

private boolean shutoff;

public boolean getShutoff () {
return shutoff;
}

public void setShutoff (boolean shutoff) {
this.shutoff = shutoff;
}

public void reset(ActionMapping mapping, HttpServletRequest request)
{
this.shutoff = boolean.FALSE;
}

In my Action:

if (checkTheBox.equals("yes")) {  //config. option, confirmed
working
regForm.setShutoff(true);
}

[Then it immediately forwards to the form JSP.]



I also tried setting the value of the checkbox via another property in
the form bean.

I appreciate any corrections or suggestions.

Greg



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



Conditionally checking an html:checkbox field

2006-01-31 Thread Greg Dunn
I need to conditionally set a checkbox field when presented to the user
depending on application configuration settings.  I'm using an Action to
load the form and attempt to set the checkbox field.  No matter what I
do I cannot get the checkbox state to change from its default, whether
that be true, false or no value (shows false). 

I've Google'ed, searched the list archive and various FAQ's to no avail.



In my ValidatorForm bean:  (This particular field is not validated)

private boolean shutoff;

public boolean getShutoff () {
return shutoff;
}

public void setShutoff (boolean shutoff) {
this.shutoff = shutoff;
}

public void reset(ActionMapping mapping, HttpServletRequest request)
{
this.shutoff = boolean.FALSE;
}

In my Action:

if (checkTheBox.equals("yes")) {  //config. option, confirmed
working
regForm.setShutoff(true);
}

[Then it immediately forwards to the form JSP.]



I also tried setting the value of the checkbox via another property in
the form bean.

I appreciate any corrections or suggestions.

Greg



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



[shale] Radio buttons in Clay

2006-01-31 Thread Richard Wallace

Hello,

I'm trying to use radio buttons to do a questionnaire with the questions 
pulled from a backing bean.  There are examples of using select menus in 
the use-cases but I don't see anything about how to use radio buttons.


I tried doing something like this:

 #{question.text}
 
   

 Frequently
   
   
 Sometimes
   
   
 Rarely
   
   class="responses" />
   class="responses" />
   class="responses" />
   class="responses" />
   class="responses" />
   allowBody="false">Mock Error Message

 

But am getting the error "A duplicate component id (response) was found 
within the same naming container (renderId="123" jsfid="selectOneRadio" 
componentType="javax.faces.HtmlSelectOneRadio" extends="selectOneRadio" 
allowBody="null" facetName="null")."  I'm guessing this is because for 
each  that Clay is seeing, it's trying to create a 
 component.  So what do I need to do?  Do I need to 
wrap stuff in a  or something?


Thanks,
Rich

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



Re: File "/jsp/struts-html" not found

2006-01-31 Thread Lothar Krenzien
After playing around and removing some cactus definitions from the web.xml file 
I get now the following error:
2006-01-31 19:07:38,801 [INFO ]Exception initializing TldLocationsCache: XML 
parsing error on file /WEB-INF/web.xml: (line 3, col 9): Document is invalid: 
no grammar found.
2006-01-31 19:07:38,848 [ERROR] [jsp].Servlet.service() for servlet jsp threw 
exception
org.apache.jasper.JasperException: File "/jsp/struts-html" not found
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
at 
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:180)
at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

But my web.xml is now *absolutly* identical with the last working revision from 
CVS. Here's the begin of my web.xml :



http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee web-app_2_4.xsd"
version="2.4">
...



I can't see any error on it. Does anybody know what could be wrong ?

Lothar
P.S. Maybe it's not a struts problem. So I will post it also in the tomcat 
group.

"Lothar Krenzien" <[EMAIL PROTECTED]> schrieb am 31.01.06 17:54:25:
>
> Hi,
>
> I've some really hard trouble with JSP and/or struts and tomcat. Yesterday it 
> worked all fine but after changing a simple jsp (remove a row from a table) I 
> get lots of compile errors when calling a jsp (see my post "can't load any 
> JSP anymore" in users@tomcat.apache.org). Because of that I've tried to 
> install a fresh copy of the latest tomcat version (5.5.19) and copied all the 
> settings and the additionally used libraries from the old installation to the 
> new one ( at least I believe it). But now I can't start my struts application 
> anymore. I get the following error in the browser:
>
> org.apache.jasper.JasperException: File "/jsp/struts-html" not found
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:180)
> org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
> org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
> org.apache.jasper.compiler.Parser.parse(Parser.java:122)
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
> org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
>
> And in the tomcat log file I found the following error:
> 2006-01-31 17:08:07,482 [ERROR] ActionServlet.Unable to initialize Struts 
> ActionServlet due to an unexpected exception or error thrown, so marking the 
> servlet as unavailable. Most likely, this is due to an incorrect or missing 
> library dependency.
> javax.servlet.ServletException: [v.1.2M10 January 5 2006] Global exception.
> at com.sr2.services.InitialisationService.init(InitialisationService.java:43)
> at 
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
>
> How can I figure out which library is missing ? I'm not sure is it related 
> but when I start tomcat I get another error that no JDBC driver was found 
> (see another post of me called "Cannot create JDBC driver" in the tomcat 
> mailing list). I think that can't be true. There is *definitly* the correct 
> jdbc driver in the common/lib directory. Also I'm not sure is it 

Re: [Shale] API Stability vs. V1.0

2006-01-31 Thread Craig McClanahan
On 1/31/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote:
>
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag
> > von Craig
> > McClanahan
> >
> > Shale follows the same version branding policy that the rest
> > of Struts does
> > (along with Tomcat and some other projects).  An "x.y.z"
> > release is first
> > issued with no "quality" metric, and is then voted on as
> > being of alpha,
> > beta, or general availability quality.  The 1.0.0 release was
> > voted to be
> > alpha quality (in spite of the fact that many portions are
> > more stable than
> > that would imply) as a whole.
>
> Ok, thanks!
> So are the following statements right then?
> There will be a 1.0.x version which is voted for general availability
> quality.


Presuming the other developers agree with that quality assessment, yes ...
it's not just up to me.

But in this general availability quality 1.0.x release there might be a few
> "developing" APIs as well.


Yes, that can be expected.

Of course right now it's not possible to tell which release it is or when
> this is.


Not really at this point ... but feedback on that topic, as well as general
usage comments, is welcome.  At what feature set would users consider it
complete enough to use?  Would you want to wait for one or more particular
features to reach "evolving" stability rankings first?

Benrhard


Craig

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


Re: Getting handle on application property file in Action class.

2006-01-31 Thread digant . k . joshi
Is getResources part of org.apache.struts.util.MessageResources
if it does I don't find getResource in it I find getMessageResources which 
is expecting config as parameter.
What should I supply  as config from Action class ?







Hubert Rabago <[EMAIL PROTECTED]>
01/31/2006 11:29 AM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List 
cc: 
Subject:Re: Getting handle on application property file in 
Action class.


Try something like:

String propertyValue = getResources(request).getMessage("propertyName");

Hubert

On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
> Is there a way to get handle on Application property file handle in 
action
> class.
> What I mean is if I specify in struts-config.xml
>
>  
> and drop my DICE.properties file in WEB-INF/classes directory
> Shouldn't I be able to read this property file from my DAO class which 
is
> called from within DispatchAction class.
>  Pls. help!
> I am getting FileNotFoundException when I am trying to read it !
> Digant
> This communication is for informational purposes only. It is not 
intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market 
prices,
> data and other information are not warranted as to completeness or 
accuracy and
> are subject to change without notice. Any comments or statements made 
herein
> do not necessarily reflect those of JPMorgan Chase & Co., its 
subsidiaries
> and affiliates
>
>
>

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





This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread digant . k . joshi
To start with I want to keep in session, 
Once functionality is tested ! I want to make it better by writing BaseDAO 
to get connection from DB /Q





Dave Newton <[EMAIL PROTECTED]>
01/31/2006 11:27 AM
Please respond to "Struts Users Mailing List"

 
To: Struts Users Mailing List 
cc: 
Subject:Re: Plug-In sample for creating and keeping DB and Q 
connection.


[EMAIL PROTECTED] wrote:
> Hi!
> In our app we need to communicate to our application server 
using 
> DB connection and Sonic MQ.
> As per one of earlier suggestion I am trying to write Plug-In 
for 
> creating DB and Q connection and keep for the session life.
> So any request made by user can use same DB and/or Q connection.
> 
You're going to keep a DB connection in session for each user? That
strikes me as being a Really Bad Idea.

Why not use a connection pool?

Dave



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




This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates



Re: Getting handle on application property file in Action class.

2006-01-31 Thread Hubert Rabago
Try something like:

String propertyValue = getResources(request).getMessage("propertyName");

Hubert

On 1/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is there a way to get handle on Application property file handle in action
> class.
> What I mean is if I specify in struts-config.xml
>
>  
> and drop my DICE.properties file in WEB-INF/classes directory
> Shouldn't I be able to read this property file from my DAO class which is
> called from within DispatchAction class.
>  Pls. help!
> I am getting FileNotFoundException when I am trying to read it !
> Digant
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market 
> prices,
> data and other information are not warranted as to completeness or accuracy 
> and
> are subject to change without notice. Any comments or statements made herein
> do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates
>
>
>

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



File "/jsp/struts-html" not found

2006-01-31 Thread Lothar Krenzien
Hi,

I've some really hard trouble with JSP and/or struts and tomcat. Yesterday it 
worked all fine but after changing a simple jsp (remove a row from a table) I 
get lots of compile errors when calling a jsp (see my post "can't load any JSP 
anymore" in users@tomcat.apache.org). Because of that I've tried to install a 
fresh copy of the latest tomcat version (5.5.19)  and copied all the settings 
and the additionally used libraries from the old installation to the new one ( 
at least I believe it). But now I can't start my struts application anymore. I 
get the following error in the browser:

org.apache.jasper.JasperException: File "/jsp/struts-html" not found

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:180)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:354)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:381)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)
org.apache.jasper.compiler.Parser.parse(Parser.java:122)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)

And in the tomcat log file I found the following error:
2006-01-31 17:08:07,482 [ERROR] ActionServlet.Unable to initialize Struts 
ActionServlet due to an unexpected exception or error thrown, so marking the 
servlet as unavailable.  Most likely, this is due to an incorrect or missing 
library dependency.
javax.servlet.ServletException: [v.1.2M10 January 5 2006] Global exception.
at 
com.sr2.services.InitialisationService.init(InitialisationService.java:43)
at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)

How can I figure out which library is missing ? I'm not sure is it related but 
when I start tomcat I get another error that no JDBC driver was found (see 
another post of me called "Cannot create JDBC driver" in the tomcat mailing 
list). I think that can't be true. There is *definitly* the correct jdbc driver 
in the common/lib directory.  Also I'm not sure is it a struts problem or a 
tomcat problem. But because  of the error message I post it here.

Thanks, Lothar

__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Re: [Tiles] Definition with extends and path attributes

2006-01-31 Thread Antonio Petrelli

David G. Friedman ha scritto:

Antonio,

Could you use a Controller class to change the path="..." attribute for 
yourself based upon some criteria or variable
you set in scope (request/session).  With that method, you could have one base 
class instead of using the same name
twice in two different files.  If you are interested in this method, see the 
Tiles Advanced Features PDF.
  


Thanks but no thanks :-P
The power of Dimensions is that the "real" definition is decided AFTER
its name is decided, so that you can use the same name for different
appearances (one for PC with browser, one for PDAs, etc.)
Anyway I don't want to mix up view and controller parts.
Thank you anyway :-)
Antonio



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



RE: Valid When Question

2006-01-31 Thread Kanuri, Chand
Daniel,

use requiredif in your validation.xml 

this should work 






field[0]
phone1


fieldIndexed[0]
true


fieldTest[0]
NOTNULL


field[1]
phone2


fieldIndexed[1]
true


fieldTest[1]
NOTNULL


fieldJoin
AND



Cheers,
Chand.



-Original Message-
From: Kalcevich, Daniel [mailto:[EMAIL PROTECTED]
Sent: 31 January 2006 16:06
To: user@struts.apache.org
Subject: Valid When Question


Everyone,

 

I have a question regarding the Valid When.  I have 3 fields for phone
number (declared as phone1, phone2, phone3).  Now, the field as a whole
is not required, however, if a user enters in some data, I want to make
sure they enter in values for all 3.  So, on a validWhen I would want
the logic to be "its required when data is entered in either of the
other two fields".  Can someone give any advice into how I can declare
this in my validator XML file?  Thanks.

 

Daniel



This e-mail (and any attachments) may contain privileged and/or confidential 
information. If you are not the intended recipient please do not disclose, 
copy, distribute, disseminate or take any action in reliance on it. If you have 
received this message in error please reply and tell us and then delete it. 
Should you wish to communicate with us by e-mail we cannot guarantee the 
security of any data outside our own computer systems. For the protection of 
Legal & General's systems and staff, incoming emails will be automatically 
scanned.

Any information contained in this message may be subject to applicable terms 
and conditions and must not be construed as giving investment advice within or 
outside the United Kingdom.

The following companies are subsidiary companies of the Legal & General Group 
Plc which are authorised and regulated by the Financial Services Authority for 
advising and arranging the products shown: Legal & General Partnership Services 
Limited (insurance and mortgages), Legal & General Insurance Limited 
(insurance), Legal & General Assurance Society Limited 
(life assurance, pensions and investments), Legal & General Unit Trust Managers 
Limited and Legal & General Portfolio Management Services Limited (investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 
4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General Assurance 
Society Limited: 166055 Legal & General (Unit Trust Managers) Limited: 1009418 
Legal & General (Portfolio Management Services) Limited: 2457525 Legal & 
General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers shown. 
You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General Assurance 
Society Limited: 117659 Legal & General (Unit Trust Managers) Limited: 119273 
Legal & General (Portfolio Management Services) Limited: 146786 Legal & General 
Insurance Limited: 202050


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



Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread Dave Newton
[EMAIL PROTECTED] wrote:
> Hi!
> In our app we need to communicate to our application server using 
> DB connection and Sonic MQ.
> As per one of earlier suggestion I am trying to write Plug-In for 
> creating DB and Q connection and keep for the session life.
> So any request made by user can use same DB and/or Q connection.
>   
You're going to keep a DB connection in session for each user? That
strikes me as being a Really Bad Idea.

Why not use a connection pool?

Dave



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



Re: Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread Niall Pemberton
http://wiki.apache.org/struts/StrutsPlugins

Niall

- Original Message - 
From: <[EMAIL PROTECTED]>
Sent: Tuesday, January 31, 2006 4:22 PM


> Hi!
> In our app we need to communicate to our application server using
> DB connection and Sonic MQ.
> As per one of earlier suggestion I am trying to write Plug-In for
> creating DB and Q connection and keep for the session life.
> So any request made by user can use same DB and/or Q connection.
> Is Plug-In good place to do this type of initialization ?
> If so can any one point to good sample which does this type of
> initialization ?
> Thanks.
> Digant



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



Re: Valid When Question

2006-01-31 Thread Niall Pemberton
Maybe something like the following


   
  test
  ((*this* != null) or ((phone2 == null) and (phone3 ==
null)))
   



   
  test
  ((*this* != null) or ((phone1 == null) and (phone3 ==
null)))
   



   
  test
  ((*this* != null) or ((phone1 == null) and (phone2 ==
null)))
   


Niall

- Original Message - 
From: "Kalcevich, Daniel" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 31, 2006 4:06 PM
Subject: Valid When Question


Everyone,



I have a question regarding the Valid When.  I have 3 fields for phone
number (declared as phone1, phone2, phone3).  Now, the field as a whole
is not required, however, if a user enters in some data, I want to make
sure they enter in values for all 3.  So, on a validWhen I would want
the logic to be "its required when data is entered in either of the
other two fields".  Can someone give any advice into how I can declare
this in my validator XML file?  Thanks.



Daniel



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



Plug-In sample for creating and keeping DB and Q connection.

2006-01-31 Thread digant . k . joshi
Hi!
In our app we need to communicate to our application server using 
DB connection and Sonic MQ.
As per one of earlier suggestion I am trying to write Plug-In for 
creating DB and Q connection and keep for the session life.
So any request made by user can use same DB and/or Q connection.
Is Plug-In good place to do this type of initialization ?
If so can any one point to good sample which does this type of 
initialization ?
Thanks.
Digant 


This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates



Re: Nested Tags

2006-01-31 Thread Hubert Rabago
On 1/31/06, rama chandrula <[EMAIL PROTECTED]> wrote:
> I have a list of objects, and each object inturn has a list of another
> object. I want to represent all these objects and the properties of the
> inner object in the UI like
>
> outer[i].inner[j].propertyValue
>
> How can I use nested tags to do this. Or is there any other solution ??

http://www.keyboardmonkey.com/next/index.jsp has tutorials that cover
this.  I personally wouldn't do it any other way.

As for the beans themselves... if you don't have form beans for these
objects yet, take a look at FormDef.  It can handle the form bean
generation, form population, and bean population for you [1].  There's
a sample app that shows using a bean that nests a collection of beans
that nests another bean [2].  Otherwise, take a look at using
commons-collection's lazyList [3].  I think you can also use the
LazyValidatorForm [4] for this.  Search the user list archives on more
about using lazy list and the lazy validator form [5].

Hubert

[1] https://formdef.dev.java.net/
[2] http://www.rabago.net/struts/formdef/downloads.htm
[3] 
http://jakarta.apache.org/commons/collections/api-release/org/apache/commons/collections/list/LazyList.html
[4] 
http://struts.apache.org/struts-action/apidocs/org/apache/struts/validator/LazyValidatorForm.html
[5] http://struts.apache.org/mail.html#Archives

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



Valid When Question

2006-01-31 Thread Kalcevich, Daniel
Everyone,

 

I have a question regarding the Valid When.  I have 3 fields for phone
number (declared as phone1, phone2, phone3).  Now, the field as a whole
is not required, however, if a user enters in some data, I want to make
sure they enter in values for all 3.  So, on a validWhen I would want
the logic to be "its required when data is entered in either of the
other two fields".  Can someone give any advice into how I can declare
this in my validator XML file?  Thanks.

 

Daniel



Re: [OT] Re: design question

2006-01-31 Thread fea jabi

thankyou, for all your valuable responces.



From: Dave Newton <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: [OT] Re: design question
Date: Tue, 31 Jan 2006 10:13:24 -0500

fea jabi wrote:
> you have mentioned that
>
> "You're going to have an object in memory no matter what"
>
> If we are using Resultset how/when is the Object getting created? I
> was under the impression that it will get the data directly from the DB.
Uh... a ResultSet is an object.
>> You're going to have an object in memory no matter what. In most cases
>> DB connections are a more limited resource than memory. Besides, once
>> the ResultSet is translated into a DTO, it is free for GC anyway, so
>> you've really only lost the conversion time, which is worth it IMO.
> what are these DTO, GC and IMO?
Data Transfer Object, Garbage Collection, In My Opinion.
> I do remember reading somewhere that if this approach is used then
> we'll be breaking the MVC architecture.
> any reference links for this?
Nope. I'd bet Google could help you out here, though.

I'm not sure I'd say using a ResultSet directly breaks MVC... while I'm
not sure I'd call a ResultSet a "real" DTO, that aspect of it doesn't
relly enter into the MVC equation. MVC has more to do with separation of
responsibilities between the business model, presentation model, and how
control is delegated. (That was _not_ a good explanation.)

Dave



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



_
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]



RE: [Tiles] Definition with extends and path attributes

2006-01-31 Thread David G. Friedman
Antonio,

Could you use a Controller class to change the path="..." attribute for 
yourself based upon some criteria or variable
you set in scope (request/session).  With that method, you could have one base 
class instead of using the same name
twice in two different files.  If you are interested in this method, see the 
Tiles Advanced Features PDF.

Regards,
David

-Original Message-
From: Antonio Petrelli [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 31, 2006 10:25 AM
To: Struts Users Mailing List
Subject: Re: [Tiles] Definition with extends and path attributes


Greg Reddin ha scritto:
>
> On Jan 31, 2006, at 8:09 AM, Antonio Petrelli wrote:
>
>> Does a definition such as this have sense?
>>
>> 
>
> I've personally never had a situation like this where I extend a tile
> and redefine the path at the same time.  I've always extended a tile
> definition and overridden only the attributes.

Me too, this is because I asked you this.

> To make sure I have this straight: You have "page.index" defined twice
> in 2 different files?

Right

> Why not do something like this?
> ...
> 2nd file:
>  extends="page.index" />
>
> Is it a requirement that you always reference "page.index" but get
> different definitions in different contexts or can you reference
> "page.index.bug" when you want the 3 row layout?
I need to use always page.index, because which "page.index" is decided
at runtime. In particular, the "base" page.index is displayed for HTML
devices, the "extended" page.index is displayed for PDAs (as usual I am
referring to Dimensions).
>
>> When I use XmlDefinitionSet.extend method, the "page.index"
>> definition has both the "extends" (in fact "inherit") and "path"
>> attributes! After doing "resolveInheritances" it does not solve the
>> problem.
>> I think the (possible) bug is in XmlDefinition.overload, where the
>> attributes are simply copied and not checked.
>
> That's definitely a possibility.  Can you verify it?

In XmlDefinitionsSet.extend I find this code:


  XmlDefinition childInstance = (XmlDefinition)i.next();
  XmlDefinition parentInstance =
getDefinition(childInstance.getName() );
  if( parentInstance != null )
{
parentInstance.overload( childInstance );
}
   else
putDefinition( childInstance );


So, if there is no parent definition, it is simply put, otherwise it is
"overloaded".
The "overload" method is:


  public void overload( XmlDefinition child )
{
if( child.getPath() != null )
  {
  path = child.getPath();
  }
if( child.getExtends() != null )
  {
  inherit = child.getExtends();
  }
if( child.getRole() != null )
  {
  role = child.getRole();
  }
if( child.getController()!=null )
  {
  controller = child.getController();
  controllerType =  child.getControllerType();
  }
  // put all child attributes in parent.
attributes.putAll( child.getAttributes());
}
}


That is, for each property of "child", if it is not null, it is copied,
without modifying the original. IMHO if the "inherit" property of
"child" is not null, the "path" attribute
of the original definition must be set to null (if child.path is null)
or it should match child.path.
So the code could be:


  public void overload( XmlDefinition child )
{
if( child.getExtends() != null )
  {
  inherit = child.getExtends();
  path = child.getPath(); //It's ok even if it is null
  }
else if( child.getPath() != null )
  {
  path = child.getPath();
  }
...


Obviously, after all XmlDefinitionsSet.resolveInheritances must be called.
What do you think?
>
> Thanks,
Thanks to you :-)
> Greg
Antonio


-
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: Need some advice

2006-01-31 Thread Hubert Rabago
You should name the fields in a way that allows Struts (BeanUtils,
actually) to get to the correct property, such as "address.street".

Also, make sure your accessor for the nested bean always returns a
non-null bean, or else you'll get an NPE when the form is submitted.

Hubert

On 1/31/06, Sony Thomas <[EMAIL PROTECTED]> wrote:
> Hi Friends,
>
> I have an ActionForm and this ActionForm contains another ActionForm
> nested in it. Is there is any way to set values to my nested  ActionForm
> when I submit from the JSP. Please give me some suggestions.
>
> Thanks in advance
>
> Sony Thomas
>
> -
> 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: Need some advice

2006-01-31 Thread Garner, Shawn
Why would you need to do this?
Seems like a strange design to me.

Shawn

-Original Message-
From: Sony Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 9:42 AM
To: user@struts.apache.org
Subject: Need some advice

Hi Friends,

I have an ActionForm and this ActionForm contains another ActionForm 
nested in it. Is there is any way to set values to my nested  ActionForm 
when I submit from the JSP. Please give me some suggestions.

Thanks in advance

Sony Thomas

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

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Need some advice

2006-01-31 Thread Sony Thomas

Hi Friends,

I have an ActionForm and this ActionForm contains another ActionForm 
nested in it. Is there is any way to set values to my nested  ActionForm 
when I submit from the JSP. Please give me some suggestions.


Thanks in advance

Sony Thomas

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



Re: [Tiles] Definition with extends and path attributes

2006-01-31 Thread Antonio Petrelli

Greg Reddin ha scritto:


On Jan 31, 2006, at 8:09 AM, Antonio Petrelli wrote:


Does a definition such as this have sense?




I've personally never had a situation like this where I extend a tile 
and redefine the path at the same time.  I've always extended a tile 
definition and overridden only the attributes.


Me too, this is because I asked you this.

To make sure I have this straight: You have "page.index" defined twice 
in 2 different files?


Right


Why not do something like this?
...
2nd file:
extends="page.index" />


Is it a requirement that you always reference "page.index" but get 
different definitions in different contexts or can you reference 
"page.index.bug" when you want the 3 row layout?
I need to use always page.index, because which "page.index" is decided 
at runtime. In particular, the "base" page.index is displayed for HTML 
devices, the "extended" page.index is displayed for PDAs (as usual I am 
referring to Dimensions).


When I use XmlDefinitionSet.extend method, the "page.index" 
definition has both the "extends" (in fact "inherit") and "path" 
attributes! After doing "resolveInheritances" it does not solve the 
problem.
I think the (possible) bug is in XmlDefinition.overload, where the 
attributes are simply copied and not checked.


That's definitely a possibility.  Can you verify it?


In XmlDefinitionsSet.extend I find this code:


 XmlDefinition childInstance = (XmlDefinition)i.next();
 XmlDefinition parentInstance = 
getDefinition(childInstance.getName() );

 if( parentInstance != null )
   {
   parentInstance.overload( childInstance );
   }
  else
   putDefinition( childInstance );


So, if there is no parent definition, it is simply put, otherwise it is 
"overloaded".

The "overload" method is:


 public void overload( XmlDefinition child )
   {
   if( child.getPath() != null )
 {
 path = child.getPath();
 }
   if( child.getExtends() != null )
 {
 inherit = child.getExtends();
 }
   if( child.getRole() != null )
 {
 role = child.getRole();
 }
   if( child.getController()!=null )
 {
 controller = child.getController();
 controllerType =  child.getControllerType();
 }
 // put all child attributes in parent.
   attributes.putAll( child.getAttributes());
   }
}


That is, for each property of "child", if it is not null, it is copied, 
without modifying the original. IMHO if the "inherit" property of 
"child" is not null, the "path" attribute
of the original definition must be set to null (if child.path is null) 
or it should match child.path.

So the code could be:


 public void overload( XmlDefinition child )
   {
   if( child.getExtends() != null )
 {
 inherit = child.getExtends();
 path = child.getPath(); //It's ok even if it is null
 }
   else if( child.getPath() != null )
 {
 path = child.getPath();
 }
...


Obviously, after all XmlDefinitionsSet.resolveInheritances must be called.
What do you think?


Thanks,

Thanks to you :-)

Greg

Antonio


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



Re: [OT] Re: design question

2006-01-31 Thread Dave Newton
fea jabi wrote:
> you have mentioned that
>
> "You're going to have an object in memory no matter what"
>
> If we are using Resultset how/when is the Object getting created? I
> was under the impression that it will get the data directly from the DB.
Uh... a ResultSet is an object.
>> You're going to have an object in memory no matter what. In most cases
>> DB connections are a more limited resource than memory. Besides, once
>> the ResultSet is translated into a DTO, it is free for GC anyway, so
>> you've really only lost the conversion time, which is worth it IMO.
> what are these DTO, GC and IMO?
Data Transfer Object, Garbage Collection, In My Opinion.
> I do remember reading somewhere that if this approach is used then
> we'll be breaking the MVC architecture.
> any reference links for this?
Nope. I'd bet Google could help you out here, though.

I'm not sure I'd say using a ResultSet directly breaks MVC... while I'm
not sure I'd call a ResultSet a "real" DTO, that aspect of it doesn't
relly enter into the MVC equation. MVC has more to do with separation of
responsibilities between the business model, presentation model, and how
control is delegated. (That was _not_ a good explanation.)

Dave



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



Re: [Tiles] Definition with extends and path attributes

2006-01-31 Thread Greg Reddin


On Jan 31, 2006, at 8:09 AM, Antonio Petrelli wrote:


Does a definition such as this have sense?




I've personally never had a situation like this where I extend a tile  
and redefine the path at the same time.  I've always extended a tile  
definition and overridden only the attributes.  But I can see merit  
to the approach.  If the framework does not currently support it, it  
probably should.



 
   
   
   
 


The second file contains:

 

 
   
   
   
 


To make sure I have this straight: You have "page.index" defined  
twice in 2 different files?  Why not do something like this?


First file:
 
   
   
   
 

2nd file:



Is it a requirement that you always reference "page.index" but get  
different definitions in different contexts or can you reference  
"page.index.bug" when you want the 3 row layout?


When I use XmlDefinitionSet.extend method, the "page.index"  
definition has both the "extends" (in fact "inherit") and "path"  
attributes! After doing "resolveInheritances" it does not solve the  
problem.
I think the (possible) bug is in XmlDefinition.overload, where the  
attributes are simply copied and not checked.


That's definitely a possibility.  Can you verify it?

Thanks,
Greg


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



AW: [Shale] API Stability vs. V1.0

2006-01-31 Thread Bernhard Slominski

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag 
> von Craig
> McClanahan
> 
> Shale follows the same version branding policy that the rest 
> of Struts does
> (along with Tomcat and some other projects).  An "x.y.z" 
> release is first
> issued with no "quality" metric, and is then voted on as 
> being of alpha,
> beta, or general availability quality.  The 1.0.0 release was 
> voted to be
> alpha quality (in spite of the fact that many portions are 
> more stable than
> that would imply) as a whole.

Ok, thanks!
So are the following statements right then?
There will be a 1.0.x version which is voted for general availability
quality.
But in this general availability quality 1.0.x release there might be a few
"developing" APIs as well.
Of course right now it's not possible to tell which release it is or when
this is.

Benrhard

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



Re: [OT] Re: design question

2006-01-31 Thread fea jabi

you have mentioned that

"You're going to have an object in memory no matter what"

If we are using Resultset how/when is the Object getting created? I was 
under the impression that it will get the data directly from the DB.


what are these DTO, GC and IMO?

I do remember reading somewhere that if this approach is used then we'll be 
breaking the MVC architecture.


any reference links for this?

Thanks.



From: Dave Newton <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: Struts Users Mailing List 
Subject: Re: [OT] Re: design question
Date: Mon, 30 Jan 2006 15:56:31 -0500

fea jabi wrote:
> But as I mentioned earliar I am creating an object which I am planning
> to instanciate for each row of data. When I told about this to my team
> they were concerned about the objects being in memory and advised to
> use the resultset directly. In the sessionbean probably we can create
> these rowobjects before it's sent to the webserver.
You're going to have an object in memory no matter what. In most cases
DB connections are a more limited resource than memory. Besides, once
the ResultSet is translated into a DTO, it is free for GC anyway, so
you've really only lost the conversion time, which is worth it IMO.

I think that using a POJO (or POJO+) for the DTO more than pays for the
conversion time with easier code, generally more robust code, etc.

Dave



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



_
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]



[OT] Re: Waiting for the return value of a JAVA scriptlet

2006-01-31 Thread Dave Newton
Andreas B. Thun wrote:
> I wrote a JSP to start a JAVA scriptlet.
> It works fine but now I have the problem
> to evaluate the return value of my scriptlet
> to give the user a feedback if the action
> was successful.
> getErrorCode() delivers the scriplets return
> value.
> I have to wait until the scriplet is finished...
>
> Do you have any ideas how this can be done?
>
> <%
> RunWorkflow wf = new RunWorkflow(args);
> wf.execute();  
> %>
<%= getErrorCode() %>

*shudder*

Dave



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



Re: [Shale] Error in remoting

2006-01-31 Thread Craig McClanahan
On 1/31/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> It is (at least) Firefox that is doing this. What it is sticking in is a
> Norwegian formatted date.


Interesting ... that's not what the HTTP spec[1] says to do.  Per section
3.1, clients should be using one of the supported date formats (preferably
the first one) with the English spellings of day and month abbreviations.



Tomcat should have understood this, getting the locale from the request
> prior to doing this.


Technically, it doesn't have to.  But if it strives to do so, then
understanding the locale of the request, as you state, will be important.

So I thought that may this might have something to do with the remoting
> support in Shale after all. This lead me to the fact that i did not
> haveREQUEST &
> FORWARD defined on my shale filter-mapping. Adding
> them made the error og away.


Under the covers, Shale Remoting is just calling
HttpServletRequest.getDateHeader() ... so it's relying on the container to
interpret these header values.

Hermod


Craig

[1] http://rfc-editor.org/rfc/rfc2616.txt


-Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 30, 2006 8:52 AM
> To: user@struts.apache.org
> Subject: RE: [Shale] Error in remoting
>
>
> Hi
>
> I'll have to figure which of my browsers cause this (IE, Firefox or Opera)
> and report it to them.
>
> Hermod
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
> McClanahan
> Sent: Friday, January 27, 2006 5:58 PM
> To: Struts Users Mailing List
> Subject: Re: [Shale] Error in remoting
>
>
> On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I have noticed the following errors in my Tomcat logs:
> >
> > java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT
> > at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader(
> > CoyoteRequest.java:1887)
> > at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader(
> > CoyoteRequestFacade.java:428)
> > at
> > org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince
> (
> > AbstractResourceProcessor.java:343)
> >
> > Going through the Javadocs, it may lok like it is a Tomcat error, but I
> > wanted to check with you guys first and here what you think.
> >
> > In the javadocs for CoyoteRequest.getDateHeader it does say: Throws:
> > java.lang.IllegalArgumentException - if the specified header
> value
> > cannot be converted to a date
> >
> >
> > Now the question is: How does the "If-Modified-Since" parameter in the
> > request get set?
> > In this case Tomcat does noe understand: "fr, 27 jan 2006 08:45:27 GMT"
>
>
> The "If-Modified-Since" header is set for you by the browser, if you had
> transmitted a "Date" header on the previous version of the same URL, and
> if
> you have configured your browser for caching.  The required format is
> defined in the HTTP spec[1], section 3.3, and your string doesn't match --
> so Tomcat would be correct in reporting an error here.  The day
> abbreviation
> would
>
> Hermod
>
>
> Craig
>
> [1] http://rfc-editor.org/rfc/rfc2616.txt
>
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>
> This email with attachments is solely for the use of the individual or
> entity to whom it is addressed. Please also be aware that the DnB NOR
> Group
> cannot accept any payment orders or other legally binding correspondence
> with
> customers as a part of an email.
>
> This email message has been virus checked by the virus programs used
> in the DnB NOR Group.
>
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
> *
>
>
> -
> 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]
>
>


[Tiles] Definition with extends and path attributes

2006-01-31 Thread Antonio Petrelli

Does a definition such as this have sense?


...



This is just because I have a problem with inheritance between multiple 
files.

Say I have two files, where the second extends the first.
The first definition file contains:

 
   
   
   
 


The second file contains:

 
 
   
   
   
 

When I use XmlDefinitionSet.extend method, the "page.index" definition 
has both the "extends" (in fact "inherit") and "path" attributes! After 
doing "resolveInheritances" it does not solve the problem.
I think the (possible) bug is in XmlDefinition.overload, where the 
attributes are simply copied and not checked.

Thanks in advance
Antonio Petrelli

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



Re: [Shale] API Stability vs. V1.0

2006-01-31 Thread Craig McClanahan
On 1/31/06, Bernhard Slominski <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am a bit confused about the versioning and the API stability.
> So the current Version of Shale is 1.0.1 (according to the API
> documentation), so a 1.0 version.


Shale follows the same version branding policy that the rest of Struts does
(along with Tomcat and some other projects).  An "x.y.z" release is first
issued with no "quality" metric, and is then voted on as being of alpha,
beta, or general availability quality.  The 1.0.0 release was voted to be
alpha quality (in spite of the fact that many portions are more stable than
that would imply) as a whole.

However the API stability
> (http://struts.apache.org/struts-shale/api-stability.html) tell a
> different
> story, from the 32 packages only 7 packages are "evolving" that means
> backwards compatibility is maintained.
> So from the API stability it looks more like a < 0.5 release status.
>
> So my question: In which version can the status "evolving" for all
> packages
> be expected? Or will there be always some packages in the "developing"
> status?
>
> I understand that according to the Struts FAQ there will be no release
> schedules (http://struts.apache.org/helping.html#release), I read it,
> understood it and accepted it, however if someone's got a rough estimate
> I'd
> be happy to hear about it.


I would expect that there will always be *some* amount of new functionality
that is not as API stable as the older portions of the framework.  But, I
would also expect that the majoirty of the existing packages would get
flipped to "Evolving" before a General Availability release was proposed.
On the other hand, don't be surprised at additional intermediate 1.0.x alpha
or beta quality releases that both improve on the existing APIs and flesh
out the functionality of the framework as a whole..

So why not just do that?  It's really simple ... not enough feedback yet
that we have the APIs right.  That means people need to be willing to try
the evolving APIs and tell us where we've got them wrong, so that they can
be fixed *before* committing to backwards compatibility.  For that reason, I
would not necessarily be personally afraid of using APIs in the "Developing"
category -- that's the only way you'll be able to take advantage of recent
trends and featgures, as well as to actually move those APIs forward in
their stability.

Thanks
>
> Bernhard


Craig


RE: design question

2006-01-31 Thread Myatluk Andrey
Hi!

>From here:
http://displaytag.sourceforge.net/11/tut_sources.html

--- cut ---

>From a db?

Displaytag will never support retrieving data from a db directly. Displaytag is 
here to help you in displaying data, not to retrieve them.

Anyway, there are a couple of easy methods to get records from a db and display 
them using displaytag:

--- cut ---

-Original Message-
From: fea jabi [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 7:29 PM
To: user@struts.apache.org
Subject: RE: design question

can anyone help me understand this? Thanks.


>From: "fea jabi" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" 
>To: user@struts.apache.org
>Subject: design question
>Date: Fri, 27 Jan 2006 11:40:20 -0500
>
>For all the tables in the JSP, I am using displaytag.
>
>
>For each row in the table I created an Object.
>
>I am creating instances of this Object and making a List which is getting 
>displayed in the JSP.
>
>I was told that instead of creating Object and creating instances, one can 
>directly use the result set got from the DB and iterate thru it to fill the 
>tables.
>
>Which one is more efficient way to do? Is the second approach better? if so 
>why?
>
>Thanks.
>
>_
>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]
>

_
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]





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



RE: [Shale] Error in remoting

2006-01-31 Thread hermod.opstvedt
Hi

It is (at least) Firefox that is doing this. What it is sticking in is a 
Norwegian formatted date. Tomcat should have understood this, getting the 
locale from the request prior to doing this. So I thought that may this might 
have something to do with the remoting support in Shale after all. This lead me 
to the fact that i did not haveREQUEST & 
FORWARD defined on my shale filter-mapping. Adding 
them made the error og away.

Hermod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 8:52 AM
To: user@struts.apache.org
Subject: RE: [Shale] Error in remoting


Hi

I'll have to figure which of my browsers cause this (IE, Firefox or Opera) and 
report it to them.

Hermod

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Craig
McClanahan
Sent: Friday, January 27, 2006 5:58 PM
To: Struts Users Mailing List
Subject: Re: [Shale] Error in remoting


On 1/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I have noticed the following errors in my Tomcat logs:
>
> java.lang.IllegalArgumentException: fr, 27 jan 2006 08:45:27 GMT
> at org.apache.coyote.tomcat5.CoyoteRequest.getDateHeader(
> CoyoteRequest.java:1887)
> at org.apache.coyote.tomcat5.CoyoteRequestFacade.getDateHeader(
> CoyoteRequestFacade.java:428)
> at
> org.apache.shale.remoting.impl.AbstractResourceProcessor.ifModifiedSince(
> AbstractResourceProcessor.java:343)
>
> Going through the Javadocs, it may lok like it is a Tomcat error, but I
> wanted to check with you guys first and here what you think.
>
> In the javadocs for CoyoteRequest.getDateHeader it does say: Throws:
> java.lang.IllegalArgumentException - if the specified header value
> cannot be converted to a date
>
>
> Now the question is: How does the "If-Modified-Since" parameter in the
> request get set?
> In this case Tomcat does noe understand: "fr, 27 jan 2006 08:45:27 GMT"


The "If-Modified-Since" header is set for you by the browser, if you had
transmitted a "Date" header on the previous version of the same URL, and if
you have configured your browser for caching.  The required format is
defined in the HTTP spec[1], section 3.3, and your string doesn't match --
so Tomcat would be correct in reporting an error here.  The day abbreviation
would

Hermod


Craig

[1] http://rfc-editor.org/rfc/rfc2616.txt


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
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: Possible Bug in struts-el html tag library

2006-01-31 Thread Niall Pemberton
On 1/31/06, Michael Manley <[EMAIL PROTECTED]> wrote:
> Niall Pemberton  gmail.com> writes:
>
> >
> > Thanks for taking the time to debug this. Can you open a bug ticket
> > for this please.
> >
>
> Logged as bug 38461.

Thanks for creating the ticket Mike - its good to reference a bugzilla
ticket # in the commit messages and better IMO if the person who found
it creates the ticket - that way you get properly credited :-)

I have fixed this in the current trunk and 1.2.x branch.

Niall

> Mike

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



RE: [shale] Images and css being rejected

2006-01-31 Thread hermod.opstvedt
Hi

Add javascript (\S*\.js) to that also - as I painfully discovered when my Tree2 
node toggling stopped working.

Hermod

-Original Message-
From: Opstvedt, Hermod 
Sent: Tuesday, January 31, 2006 10:24 AM
To: user@struts.apache.org
Subject: RE: [shale] Images and css being rejected


Hi

Until it is fixed, you also need to add any mapping for that you might want for 
images( gifs,jpg,png) etc.

-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 8:28 PM
To: Struts Users Mailing List
Subject: Re: [shale] Images and css being rejected


>From: Richard Wallace <[EMAIL PROTECTED]> 
>
> That's the obvious workaround. I was hoping for something a bit more 
> definitive tho. I saw bug 37867 on bugzilla, but there doesn't seem to 
> be a solution and it's been quiet for quite a while. I'll comment on it 
> there as well and see what happens. Some additional observations are below. 
> 
> The reason it doesn't show up in the use-cases is that all the images 
> used there are on external URLs, like the struts logo. All the css is 
> inlined within the pages. So there really are no resources that are 
> being loaded by the browser from the webapp itself. 
> 
> What really confuses me is that it still happens even if I remove the 
> filter from the chain configuration, as if Shale is inserting a default 
> filtering chain rule if one doesn't exist. So, maybe the bug is that 
> Shale is inserting it regardless if one exists or not, so the 
> configuration is being overridden by whatever Shale inserts by default. 
> I haven't looked at the code yet, but that's what it looks like from 
> observation. 
> 

I'm pretty sure that your problem is with the Clay file watch dog filter chains 
command.  
It extends the ContextRelativePathFilter.  I was being lazy and thought I could 
reuse the 
includeds patterns stuff.  It looks like it's behaving like the other.

Try adding:


Or, just remove it until it's fixed.

Gary




> Rich 
> 
> [EMAIL PROTECTED] wrote: 
> > Hi 
> > 
> > If you had searched the list, you would have found my posting on this. 
> > Anyway, 
> what you have to do is in the web.xml filtermapping for Shale do this 
> > 
> > comment this: 
> > 
> > 
> > 
> > add this: 
> > 
> > 
> > shale 
> > *.xml 
> > 
> > 
> > 
> > shale 
> > *.html 
> > 
> > 
> > 
> > shale 
> > *.faces 
> > 
> > 
> > Hermod 
> > 
> > -Original Message- 
> > From: Richard Wallace [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, January 27, 2006 6:46 PM 
> > To: Struts Users Mailing List 
> > Subject: [shale] Images and css being rejected 
> > 
> > 
> > I'm having a problem with pages loading images and css files. I turned 
> > up the debugging on log4j and when the css files and images are 
> > requested by the browser nothing is returned. I checked the logs and 
> > they're saying: 
> > 
> > 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:171) - execute(/styles/mpl.css) 
> > 2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:203) - reject(not include) 
> > 2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif) 
> > 2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:203) - reject(not include) 
> > 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif) 
> > 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:203) - reject(not include) 
> > 
> > I looked through all the configuration files and found in the 
> > chain-config.xml: 
> > 
> > > > className="org.apache.shale.application.ContextRelativePathFilter" 
> > 
> > includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp" 
> > excludes="\S*\.jsp,\S*\.jspf"/> 
> > 
> > 
> > I added \S*\.css to the includes with no change. I tried to comment 
> > this out as well, so nothing would get filtered, with no luck. Any 
> > ideas what I'm missing this time? 
> > 
> > Thanks, 
> > Rich 
> > 
> > - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
> > 
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > 
> > This email with attachments is solely for the use of the individual or 
> > entity to whom it is addressed. Please also be aware that the DnB NOR Group 
> > cannot accept any payment orders or other legally binding cor

Re: Possible Bug in struts-el html tag library

2006-01-31 Thread Michael Manley
Paul Benedict  yahoo.com> writes:

> 
> Michael, if you get the time, convert your workaround into a patch and
contribute it.

My original plan was to patch the line in the library and rebuild it to confirm
the problem. However, I've never built struts from source before and my initial
attempt to build from source failed and I didn't have time to figure out why as
I needed to get a fix out to the customer - hence the workaround.

Hopefully I will get time to figure out why struts wasn't building and create a
patch later this week.

Mike



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



Re: Possible Bug in struts-el html tag library

2006-01-31 Thread Michael Manley
Niall Pemberton  gmail.com> writes:

> 
> Thanks for taking the time to debug this. Can you open a bug ticket
> for this please.
> 

Logged as bug 38461.

Mike


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



NullPointer in Resources

2006-01-31 Thread Kristian.L.Petersen
I got this in struts-config.xml

 



 

I also have a lot of other validation that are working fine, but the
earlier mentioned keeps failing.

Med venlig hilsen / Kind regards
Kristian Lind Petersen
Konsulent / Consultant

TietoEnator A/S
Rygaards Alle 131
DK - 2900 Hellerup
Telephone: +45 72 30 60 00
Mobile: +45 25 42 36 56
E-mail: [EMAIL PROTECTED]
 

 

 



RE: NullPointer in Resources

2006-01-31 Thread Rakesh.Bhat
Check you struts-config.xml



 
Kind regards,
 
Rakesh Bhat 
PrimeSourcing(tm) 
The Global IT Services  business from i-flex - "Add Value Reduce Risk"
www.iflexsolutions.com/services/services.asp
i-flex solutions limited - Bangalore
Phone : +91(080) 5759-6873
Email :  Rakesh.Bhat@ iflexsolutions.com
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 3:08 PM
To: user@struts.apache.org
Subject: NullPointer in Resources
Importance: Low

I am getting this NullPointer Exception : 

 

java.lang.NullPointerException

at 
org.apache.struts.validator.Resources.getMessageResources(Resources.java:127)

at 
org.apache.struts.validator.Resources.getActionMessage(Resources.java:349)

at 
org.apache.struts.validator.FieldChecks.validateMask(FieldChecks.java:241)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:543)

at org.apache.commons.validator.Field.validateForRule(Field.java:766)

at org.apache.commons.validator.Field.validate(Field.java:845)

at org.apache.commons.validator.Form.validate(Form.java:290)

at org.apache.commons.validator.Validator.validate(Validator.java:353)

at 
com.tietoenator.dk.lub.utility.PropertyValidator.validate(PropertyValidator.java:189)

 

My validation.xml entry lookes like this : 

 



  







  mask

  ${date}



  



 

I got these in my resourse bundle :

 

errors.courseStatusViewActionForm.date.maskmsg=Gennemført dato er ikke valid.

courseStatusViewActionForm.completedDate=gennemført dato

 

 

Med venlig hilsen / Kind regards

Kristian Lind Petersen

Konsulent / Consultant

 

TietoEnator A/S

Rygaards Alle 131

DK - 2900 Hellerup

Telephone: +45 72 30 60 00

Mobile: +45 25 42 36 56

E-mail: [EMAIL PROTECTED]  

 

 

 

 

 

 

 

 




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



Waiting for the return value of a JAVA scriptlet

2006-01-31 Thread Andreas B. Thun

Hi,

I wrote a JSP to start a JAVA scriptlet.
It works fine but now I have the problem
to evaluate the return value of my scriptlet
to give the user a feedback if the action
was successful.
getErrorCode() delivers the scriplets return
value.
I have to wait until the scriplet is finished...

Do you have any ideas how this can be done?

<%
RunWorkflow wf = new RunWorkflow(args);
wf.execute();   
%>


TIA,
Andi

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



NullPointer in Resources

2006-01-31 Thread Kristian.L.Petersen
I am getting this NullPointer Exception : 

 

java.lang.NullPointerException

at 
org.apache.struts.validator.Resources.getMessageResources(Resources.java:127)

at 
org.apache.struts.validator.Resources.getActionMessage(Resources.java:349)

at 
org.apache.struts.validator.FieldChecks.validateMask(FieldChecks.java:241)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:543)

at org.apache.commons.validator.Field.validateForRule(Field.java:766)

at org.apache.commons.validator.Field.validate(Field.java:845)

at org.apache.commons.validator.Form.validate(Form.java:290)

at org.apache.commons.validator.Validator.validate(Validator.java:353)

at 
com.tietoenator.dk.lub.utility.PropertyValidator.validate(PropertyValidator.java:189)

 

My validation.xml entry lookes like this : 

 



  







  mask

  ${date}



  



 

I got these in my resourse bundle :

 

errors.courseStatusViewActionForm.date.maskmsg=Gennemført dato er ikke valid.

courseStatusViewActionForm.completedDate=gennemført dato

 

 

Med venlig hilsen / Kind regards

Kristian Lind Petersen

Konsulent / Consultant

 

TietoEnator A/S

Rygaards Alle 131

DK - 2900 Hellerup

Telephone: +45 72 30 60 00

Mobile: +45 25 42 36 56

E-mail: [EMAIL PROTECTED]  

 

 

 

 

 

 

 

 



RE: [shale] Images and css being rejected

2006-01-31 Thread hermod.opstvedt
Hi

Until it is fixed, you also need to add any mapping for that you might want for 
images( gifs,jpg,png) etc.

-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30, 2006 8:28 PM
To: Struts Users Mailing List
Subject: Re: [shale] Images and css being rejected


>From: Richard Wallace <[EMAIL PROTECTED]> 
>
> That's the obvious workaround. I was hoping for something a bit more 
> definitive tho. I saw bug 37867 on bugzilla, but there doesn't seem to 
> be a solution and it's been quiet for quite a while. I'll comment on it 
> there as well and see what happens. Some additional observations are below. 
> 
> The reason it doesn't show up in the use-cases is that all the images 
> used there are on external URLs, like the struts logo. All the css is 
> inlined within the pages. So there really are no resources that are 
> being loaded by the browser from the webapp itself. 
> 
> What really confuses me is that it still happens even if I remove the 
> filter from the chain configuration, as if Shale is inserting a default 
> filtering chain rule if one doesn't exist. So, maybe the bug is that 
> Shale is inserting it regardless if one exists or not, so the 
> configuration is being overridden by whatever Shale inserts by default. 
> I haven't looked at the code yet, but that's what it looks like from 
> observation. 
> 

I'm pretty sure that your problem is with the Clay file watch dog filter chains 
command.  
It extends the ContextRelativePathFilter.  I was being lazy and thought I could 
reuse the 
includeds patterns stuff.  It looks like it's behaving like the other.

Try adding:


Or, just remove it until it's fixed.

Gary




> Rich 
> 
> [EMAIL PROTECTED] wrote: 
> > Hi 
> > 
> > If you had searched the list, you would have found my posting on this. 
> > Anyway, 
> what you have to do is in the web.xml filtermapping for Shale do this 
> > 
> > comment this: 
> > 
> > 
> > 
> > add this: 
> > 
> > 
> > shale 
> > *.xml 
> > 
> > 
> > 
> > shale 
> > *.html 
> > 
> > 
> > 
> > shale 
> > *.faces 
> > 
> > 
> > Hermod 
> > 
> > -Original Message- 
> > From: Richard Wallace [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, January 27, 2006 6:46 PM 
> > To: Struts Users Mailing List 
> > Subject: [shale] Images and css being rejected 
> > 
> > 
> > I'm having a problem with pages loading images and css files. I turned 
> > up the debugging on log4j and when the css files and images are 
> > requested by the browser nothing is returned. I checked the logs and 
> > they're saying: 
> > 
> > 2006-01-27 10:31:20,241 54531 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:171) - execute(/styles/mpl.css) 
> > 2006-01-27 10:31:20,242 54532 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:203) - reject(not include) 
> > 2006-01-27 10:31:20,292 54582 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:171) - execute(/images/mpl_logo_large.gif) 
> > 2006-01-27 10:31:20,293 54583 DEBUG [http-8080-Processor24] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:203) - reject(not include) 
> > 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:171) - execute(/images/cc_logo.gif) 
> > 2006-01-27 10:31:20,381 54671 DEBUG [http-8080-Processor25] 
> > org.apache.shale.application.AbstractRegExpFilter 
> > (AbstractRegExpFilter.java:203) - reject(not include) 
> > 
> > I looked through all the configuration files and found in the 
> > chain-config.xml: 
> > 
> > > > className="org.apache.shale.application.ContextRelativePathFilter" 
> > 
> > includes="\S*\.xml,\S*\.faces,\S*\.html,\S*\.gif,\S*\.jpg,/index\.jsp" 
> > excludes="\S*\.jsp,\S*\.jspf"/> 
> > 
> > 
> > I added \S*\.css to the includes with no change. I tried to comment 
> > this out as well, so nothing would get filtered, with no luck. Any 
> > ideas what I'm missing this time? 
> > 
> > Thanks, 
> > Rich 
> > 
> > - 
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> > 
> > 
> > 
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > 
> > This email with attachments is solely for the use of the individual or 
> > entity to whom it is addressed. Please also be aware that the DnB NOR Group 
> > cannot accept any payment orders or other legally binding correspondence 
> > with 
> > customers as a part of an email. 
> > 
> > This email message has been virus checked by the virus programs used 
> > in the DnB NOR Group. 
> > 
> > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> > 
> > 
> > --

[Shale] API Stability vs. V1.0

2006-01-31 Thread Bernhard Slominski
Hi all,

I am a bit confused about the versioning and the API stability.
So the current Version of Shale is 1.0.1 (according to the API
documentation), so a 1.0 version.

However the API stability
(http://struts.apache.org/struts-shale/api-stability.html) tell a different
story, from the 32 packages only 7 packages are "evolving" that means
backwards compatibility is maintained.
So from the API stability it looks more like a < 0.5 release status.

So my question: In which version can the status "evolving" for all packages
be expected? Or will there be always some packages in the "developing"
status? 

I understand that according to the Struts FAQ there will be no release
schedules (http://struts.apache.org/helping.html#release), I read it,
understood it and accepted it, however if someone's got a rough estimate I'd
be happy to hear about it.

Thanks

Bernhard 


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