how to show data on jsp from bean

2005-09-16 Thread rahul
Hi all,

I am  new to struts and have a basic question regarding bean

I am collecting some data(its a plain java bean) in an 'Action' 
from database and want to show that data on a jsp page from where 
it can be edited and submitted to some other 'Action' in the form 
of 'ActionForm'

I want to know what is the best approach of doing this


any suggestions?

  --RahulJoshi
  


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



recv failed

2005-09-16 Thread Murray Collingwood
Hello

My Struts app appears to be working quite well, however I'm occassionally 
getting the 
following error in the log file:

NotifyUtil::java.net.SocketException: Software caused connection abort: recv 
failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:760)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:711)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:725)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.jav
a:635)
at 
org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUtil.java:
248)

Anybody have any idea what might be causing this?

What should I be checking?
Is there other information I can provide which might help?

I'm running on XP Pro, NetBeans 4.1, Tomcat (as bundled with NetBeans) 5.5.7
Struts 1.2.7 (I think, not sure how to tell), JDK 1.4, Servlets 2.4, IE 6.

Kind regards
mc



FOCUS Computing
Mob: 0415 24 26 24
[EMAIL PROTECTED]
http://www.focus-computing.com.au



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 14/09/2005


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



Re: Struts ActionForms and DWR/AJAX

2005-09-16 Thread Frank W. Zammetti

Thanks for the props Martin! :)

Greg... one common misconception about AJAX is that it needs to involve 
XML.  It doesn't (ok, it probably shouldn't be called AJAX in that case, 
AJA? perhaps...)


Note that there is nothing special about a form being submitted to a 
Struts Action... The Struts HTML taglib hides some of the details from 
you, but underneath it's a perfectly ordinary HTML form that results in 
a perfectly ordinary HTTP POST request.  On the server, the parameters 
are retrieved and the ActionForm populated, if applicable, and your 
Action called.


XMLHttpRequest does exactly the same thing when you get right down to 
it: it's just an ordinary HTTP request too.


The pertinent point is that you can specify the method to use (GET or 
POST) for the object.  Take a look here:


http://www.devx.com/DevX/Tip/17500

This is a quick tip that shows how to POST with XMLHttpRequest.  If you 
were to use this example and target an Action mapping, you should find 
that the ActionForm does get populated, and Struts works exactly as it 
always does.  Well, except for what's returned of course... there has to 
be some client-side script that knows how to interpret whatever the 
Action (or JSP) returns.  But as far as Struts is concerned, it's 
business as usual.


Further, I'm almost positive if you were to simply do a GET to an Action 
mapping with XMLHttpRequest, assuming the parameters you include in the 
query string match what would be POSTed from a form, it should work the 
same (never tried that... anyone else know differently?).


But regardless of that... I have no experience with DWR, so I can't give 
you specifics...  But, assuming you can make it do as the above link 
demonstrates, then as far as Struts is concerned, an AJAX request is no 
different from a "normal" request.  You can have your auto-population of 
ActionForm and DWR too.


Alternatively, you might consider AjaxTags in Java Web Parts:

http://javawebparts.sourceforge.net/javadocs/index.html

It's definitely not the same as DWR and might not fit your requirements, 
but you can't expect me to not plug my own creation, can you?!? :)


Frank

Martin Gainty wrote:

Greg-
check out Frank Zammetti's tutorial for Asynchronous JavaScript with XML
http://www.omnytex.com/articles/xhrstruts/
A most excellent primer..
HTH,
Martin
- Original Message - From: "Greg Pelly" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Friday, September 16, 2005 8:39 PM
Subject: Struts ActionForms and DWR/AJAX


I am thinking about migrating an application using Struts and
ActionForms to use the DWR implementation of AJAX.  I stood up a simple
DWR sample and I'm realizing that it may not be possible to integrate
DWR with ActionForms -- DWR makes requests through the "backdoor" (ie,
XMLHttpRequest), rather than by submitting a form created by
, so the Struts ActionForm does not get populated.  In fact,
request.getParameterNames() returns an 0-element enumeration, which
makes me think it may not be possible at all.

Does anyone have experience with ActionForms and AJAX? I did a quick
Google search and found this article:

http://getahead.ltd.uk/dwr/server/struts

Any help would be appreciated.

Greg

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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


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



Re: internal error while merging PDs: type mismatch between read and write methods

2005-09-16 Thread Laurie Harper

Stephen Hartley wrote:
I have a run-time problem with a struts-based JSP. 
Interesting thing is that this code has been working

for more than a year with no problems, but now errors
with HTTP 500 and JspException: "PropertyDescriptor: 
internal error while merging PDs: type mismatch

between read and write methods".  See full stack trace
below.

I've been searching around the list archives and note
Brian McClung has posted the same problem (see
postings on 2004-03-24 21:58:11 GMT and 2004-03-23
21:50:43 GMT) but as far as I can see there doesn't
seem to be an answer for this one.  Likewise on the
Sun Java forum - see
http://forum.java.sun.com/thread.jspa?threadID=632668&tstart=90


The difference between JDK 1.3 and 1.4 is a change in the reflection 
semantics; in 1.3 you could make a property both read-only and 
write-only, which clearly doesn't make sense but worked anyway. 1.4 
changed the introspection behaviour in this case, which might be what 
you're seeing (assuming, since you referenced that URL, that you're 
talking about a difference in your code's behaviour between the two JVMs).



I've checked that the setter and getter accept and
return the correct types OK.  This is to be expected
really, because the code used to work and I haven't
changed it [intentionally!]!


Bear in mind that this might be caused by changes elsewhere, such as a 
super-class or, more likely, a related BeanInfo class. Without seeing 
your Javabean and related BeanInfo classes I can't say anything 
definitive, but check that *everything* affecting the property 
descriptors, including BeanInfo classes, is as it should be.


L.



Can anyone give me some helpful pointers on this one?

Many thanks,

Steve





javax.servlet.jsp.JspException: Exception forwarding
for name loginSecured: 
javax.servlet.ServletException: Exception accessing

property userAccountVO.
forcePwdChange for bean userSession: java.lang.Error:
PropertyDescriptor: 
internal error while merging PDs: type mismatch

between read and write methods

at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173)

at _index._jspService(index.jsp:5)

[/index.jsp]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com



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



Re: new Struts tools for layout other than Tiles

2005-09-16 Thread Craig McClanahan
On 9/16/05, 梁炳場 <[EMAIL PROTECTED]> wrote:
> 
> Because from the webpage of http://www.lifl.fr/~dumoulin/tiles/
> No new element is added after 2002.
> I wonder if it stops moving.
> 
> If it is alive, I can devote my effort to it.


It is definitely alive ... 2002 is when Cedric moved active development of 
Tiles into Struts, where it lives today.

Indeed, there is a current effort to make Tiles a stand-alone deliverable 
(as a subproject of the Struts project), to make it easier for other 
frameworks to integrate it. At the same time, I would like to see the APIs 
of Tiles remodelled so that Tiles could easily be used in a portlet (JSR-168 
compliant) environment, not just in servlets. So there's plenty of work to 
do, and any support you'd like to offer would be very much appreciated.

Thank you all.


Craig


2005/9/16, Wendy Smoak <[EMAIL PROTECTED]>:
> > From: <[EMAIL PROTECTED]>
> >
> > > on the web page Tiles developer,
> > > http://www.lifl.fr/~dumoulin/tiles/
> > > It stopped development after 2002.
> >
> > As Christian noted, Tiles is alive and well as a Struts sub-project.
> >
> > There's also an effort under way (Standalone Tiles, currently in the 
> Struts
> > Sandbox,) to remove its dependencies on Struts and Servlets so that 
> Tiles
> > can be used with (among other things) JSF and Portlets:
> > http://svn.apache.org/viewcvs.cgi/struts/sandbox/trunk/tiles/
> > http://wiki.apache.org/struts/StandaloneTiles
> >
> > --
> > Wendy Smoak
> >
> >
> > -
> > 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: new Struts tools for layout other than Tiles

2005-09-16 Thread 梁炳場
Because from the webpage of http://www.lifl.fr/~dumoulin/tiles/
No new element is added after 2002.
I wonder if it stops moving.

If it is alive, I can devote my effort to it.

Thank you all.


2005/9/16, Wendy Smoak <[EMAIL PROTECTED]>:
> From:  <[EMAIL PROTECTED]>
> 
> > on the web page Tiles developer,
> > http://www.lifl.fr/~dumoulin/tiles/
> > It stopped development after 2002.
> 
> As Christian noted, Tiles is alive and well as a Struts sub-project.
> 
> There's also an effort under way (Standalone Tiles, currently in the Struts
> Sandbox,) to remove its dependencies on Struts and Servlets so that Tiles
> can be used with (among other things) JSF and Portlets:
> http://svn.apache.org/viewcvs.cgi/struts/sandbox/trunk/tiles/
> http://wiki.apache.org/struts/StandaloneTiles
> 
> --
> Wendy Smoak
> 
> 
> -
> 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]



Cannot find ActionMappings or ActionFormBeans

2005-09-16 Thread T West
I'm developing a Struts application that lets a user query a database
using a JSP page and then returns it in a JSP page. I'm using Struts
1.2.4 on Tomcat 5.0.28. Whenever I try to start the Struts program,
however, I receive this error:
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.index_jsp._jspService(index_jsp.java:78)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)



root cause javax.servlet.jsp.JspException: Cannot find ActionMappings
or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:711)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:419)
org.apache.jsp.index_jsp._jspx_meth_html_form_0(index_jsp.java:94)
org.apache.jsp.index_jsp._jspService(index_jsp.java:67)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
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)

I've searched Google for any information about this error, and I've
found some documentation on this error. I've followed the suggestions
(such as validating that web.xml and struts-config.xml are correct),
and I still get the error. Is there something I'm doing wrong, and if
so, could someone point me to where I should look.
My web.xml file is: 

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
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4">
  
   action
   
 org.apache.struts.action.ActionServlet

   
 config

 /struts-config.xml
 
 
host
localhost
 
 

port
8080
 
 2
  
  
  freemarker

  freemarker.ext.servlet.FreemarkerServlet
  
  
TemplatePath
/
  
  

NoCache
true
  
  
ContentType
text/html
  


  
  
template_update_delay
0 
  
  
default_encoding

ISO-8859-1
  
  
number_format
0.##
  
  1



   action
   *.do


  freemarker
  *.ftl
 


struts-logic.tld

  struts-logic.tld


struts-html.tld

  struts-html.tld


  

30

  
  

index2.jsp

  


 
and my struts-config.xml file is: 

http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>


   

 
 
 












Thanks for your time.

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



Re: Struts ActionForms and DWR/AJAX

2005-09-16 Thread Martin Gainty

Greg-
check out Frank Zammetti's tutorial for Asynchronous JavaScript with XML
http://www.omnytex.com/articles/xhrstruts/
A most excellent primer..
HTH,
Martin
- Original Message - 
From: "Greg Pelly" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Friday, September 16, 2005 8:39 PM
Subject: Struts ActionForms and DWR/AJAX


I am thinking about migrating an application using Struts and
ActionForms to use the DWR implementation of AJAX.  I stood up a simple
DWR sample and I'm realizing that it may not be possible to integrate
DWR with ActionForms -- DWR makes requests through the "backdoor" (ie,
XMLHttpRequest), rather than by submitting a form created by
, so the Struts ActionForm does not get populated.  In fact,
request.getParameterNames() returns an 0-element enumeration, which
makes me think it may not be possible at all.

Does anyone have experience with ActionForms and AJAX? I did a quick
Google search and found this article:

http://getahead.ltd.uk/dwr/server/struts

Any help would be appreciated.

Greg

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



Struts ActionForms and DWR/AJAX

2005-09-16 Thread Greg Pelly
I am thinking about migrating an application using Struts and
ActionForms to use the DWR implementation of AJAX.  I stood up a simple
DWR sample and I'm realizing that it may not be possible to integrate
DWR with ActionForms -- DWR makes requests through the "backdoor" (ie,
XMLHttpRequest), rather than by submitting a form created by
, so the Struts ActionForm does not get populated.  In fact,
request.getParameterNames() returns an 0-element enumeration, which
makes me think it may not be possible at all.

Does anyone have experience with ActionForms and AJAX? I did a quick
Google search and found this article:

http://getahead.ltd.uk/dwr/server/struts

Any help would be appreciated.

Greg

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



Re: How to pass Session variable to different Webapplication?

2005-09-16 Thread Wendy Smoak

From: "Martin Burkert" <[EMAIL PROTECTED]>


I would like to pass a session variable (user credentials) from
application "homebase" to application "test".


How are the users logging in?  You need some form of 'single sign on,' but 
how to go about it depends on where the credentials are coming from.


--
Wendy Smoak 




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



Re: How to pass Session variable to different Webapplication?

2005-09-16 Thread Craig McClanahan
On 9/16/05, Martin Burkert <[EMAIL PROTECTED]> wrote:
> 
> Hi!
> 
> I would like to pass a session variable (user credentials) from
> application "homebase" to application "test". Both applications were
> deployed on the same tomcat-server and crosscontext=true for both
> Applications.


You are going to have problems with this, not the least of which is that it 
violates the servlet spec :-). Each web application has its own unique set 
of sessions, so a cross-context request that uses sessions will create a 
session instance in each webapp.

Even if this were not prohibited by spec, you'll have technical problems as 
well ... the class loader hierarchies for the two webapps are independent of 
each other. Thus, if the object you use to represent user credentials were 
defined in web app A, trying to reference such an instance in web app B 
would get a class not found exception.

Craig


How to pass Session variable to different Webapplication?

2005-09-16 Thread Martin Burkert
Hi!

I would like to pass a session variable (user credentials) from
application "homebase" to application "test". Both applications were
deployed on the same tomcat-server and crosscontext=true for both
Applications.
For example I was setting up a session variable in my request, and
forwarded the request with a RequestDispatcher to "test".
After forwarding, the jsp in the test-application was shown with the
information of the request.

My problem is, that the URL in my browser is still showing
http://localhost:8080/HomeBase/LOGIN/userLogin.do - so my active
Webapplication seems to be the application "Homebase", not the
application "test". 
However, it is not possible to map a struts-action with the
submit-button of the success.jsp. 
(Of course the struts-action-mapping is possible after calling the
success.jsp withing the "test"-content [...8080:/test/success.jsp]) 

How is it possible to change/forward/link to another webapplication
without loosing the session variables? 

(When I'm forwarding with struts [context relativ, redirect], the
URL is localhost:8080/test., but the session variables are gone). 

thx for any help

greetings Martin


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



internal error while merging PDs: type mismatch between read and write methods

2005-09-16 Thread Stephen Hartley
I have a run-time problem with a struts-based JSP. 
Interesting thing is that this code has been working
for more than a year with no problems, but now errors
with HTTP 500 and JspException: "PropertyDescriptor: 
internal error while merging PDs: type mismatch
between read and write methods".  See full stack trace
below.

I've been searching around the list archives and note
Brian McClung has posted the same problem (see
postings on 2004-03-24 21:58:11 GMT and 2004-03-23
21:50:43 GMT) but as far as I can see there doesn't
seem to be an answer for this one.  Likewise on the
Sun Java forum - see
http://forum.java.sun.com/thread.jspa?threadID=632668&tstart=90

I've checked that the setter and getter accept and
return the correct types OK.  This is to be expected
really, because the code used to work and I haven't
changed it [intentionally!]!

Can anyone give me some helpful pointers on this one?

Many thanks,

Steve





javax.servlet.jsp.JspException: Exception forwarding
for name loginSecured: 
javax.servlet.ServletException: Exception accessing
property userAccountVO.
forcePwdChange for bean userSession: java.lang.Error:
PropertyDescriptor: 
internal error while merging PDs: type mismatch
between read and write methods

at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:173)

at _index._jspService(index.jsp:5)

[/index.jsp]



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



Re: Missing attribute "wrap" in TextareaTag

2005-09-16 Thread Laurie Harper
Make sure your CSS selectors are correct; try adding a 'color: red' 
style or something so you can see for sure if the CSS rule is actually 
matching what you think it is.


L.

Fleischle, Samuel wrote:

Hi Laurie,

OK you are right. But I tried the CSS solutions without any effect.

Sam

-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 14, 2005 12:42 PM

To: user@struts.apache.org
Subject: Re: Missing attribute "wrap" in TextareaTag

Fleischle, Samuel wrote:


I have a textarea and want to set the attribute wrap="off" to avoid
automatic wrapping of my text.

But I can´t find any attribute with this name in the API for the
TextareaTag. And if I insert this attribute in my code, I get an error.

Is this attribute missing? Is there another way (possible with CSS) to


avoid


text wrapping?



There is no 'wrap' attribute in any offical version of HTML (it was a 
proprietary Netscape extension), so the HTML taglib doesn't support it. 
It's easy to get the same effect with CSS, though: use the 'white-space: 
nowrap' style.


L.


-
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: [OT] SCM stories (war? horror?)

2005-09-16 Thread Martin Gainty

Ed (et al)
VSS Pro:If your client is died in the wool dedicated to Microsoft 
environment and Visual Studio IDE and MS2k,MS2003 servers then VSS makes 
sense
VSS Con: Keep in mind it is a fairly useless code control when ported to 
Unix or Mac..the reliance on NT attributes and file permissions is pervasive


CVS Pro: Works everywhere and supports ssh ..login in once using ssh and you 
can update, delete or whatever..branch and merge work great
CVS Con: The files of a cvs client can be manipulated thru regular shell 
commands e.g. rm -rf  filename.ext removes the file (and cvs loses it as 
well)
(if you're using CVS on a Unix box with lots of admins floating about..be 
safe take a backup every night)


My 2 pennies/HTH
Martin-
- Original Message - 
From: "Ed Griebel" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Friday, September 16, 2005 11:22 AM
Subject: Re: [OT] SCM stories (war? horror?)


VSS- walk away, don't make eye contact :-)
Pros: umm, it does manage versions, close integration with MS VisualStudio
Cons: windows-only administration and probably access too, not
intuitive to use, opaque binary files having no discernable relation
to the actual artifacts themselves, not cheap to buy although most do
not buy a license for every developer. The biggie though, sometimes
the database will get corrupted and you will have to restore your
repository from backup, although this may have been fixed.

CVS-
Pros: simple model for developers to understand how it works, changes
can be made to local version without locking a file (some would
consider this a con, so it can be changed), integrated into almost any
open-source IDE and many OSS applications (such as cruise-control),
trivial to access remote repository from local desktop, repository
artifacts are stored as "regular" files rather than an opaque
binary-format file
Cons: directories not versioned, file moves are not versioned so if
you want to preserve file history you have the hack of copying the
file to the new location in a repository, and binary file versioning
is non-existant--it stores a full copy of each version

No experience with perforce.

By the way, what is your current SCM?
-ed

On 9/16/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:

I'm preparing to make a case for switching to a differenct SCM tool
(source code management).   The options are CVS, Perforce, and VSS.

Anybody have any cogent/credible stories or arguments for choosing one
over the other?

Thanks,
Dennis



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



How to display selected options in color

2005-09-16 Thread spo
In my html form, I need to have some of the drop-down options show up in red 
color, I foudn out that the way to do it in html is like this:
display
My problem is that we are using Struts and a taglib library that extends strtus 
OptionsTag to display the options. And inside the taglib code we're using 
LabelValueBean to create the options. Now, LabelValueBean doesn't provide me a 
way to set the "class" attribute for an option (to redfont) so I'm stuck
Any ideas?




-
http://Struts_User_List.roomity.com";>Roomity.com
roomity.com is broadband internet. ~~1126900186688~~
-


Re: Orbitz-style processing page with Struts

2005-09-16 Thread Randy Shepherd

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

This looks perfect! Thanks!!

On Sep 16, 2005, at 11:57 AM, [EMAIL PROTECTED] wrote:


Hey Randy, take a look at this:

http://wiki.apache.org/struts/StrutsPleaseWait

i haven't read it or implemented it myself, but looks promising..:)
Geeta

Randy Shepherd <[EMAIL PROTECTED]> wrote on 09/16/2005 02:40:11 PM:


Hey Guys..

Pretty basic question here. I am looking for suggestions how to 
display
an orbitz-style processing page while the server process a request. 
The

user is submitting a form with credit card and address information for
a purchase and there are several partner systems which may take up to 
a

few seconds to complete their tasks. While we are waiting, I want to
display some sort of page with an animated gif telling the user to be
patient.

I have accomplished this before in a model 1 architecture using a JS
meta-refresh tag. I am not sure that is the best way in Struts. What 
do

you think?

Thanks,
Randy


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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





CONFIDENTIALITY NOTICE:This email is intended solely for the person
or entity to which it is addressed and may contain confidential
and/or protected health information.  Any duplication,
dissemination, action taken in reliance upon, or other use of this
information by persons or entities other than the intended recipient
is prohibited and may violate applicable laws.  If this email has
been received in error, please notify the sender and delete the
information from your system.  The views expressed in this email are
those of the sender and may not necessarily represent the views of
IntelliCare.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFDKx1QvmgyD0mfSYQRAi+dAJ9hcsZ8G3R/WrcXVUjm0mM3lPKUvACgt2gc
p/XhLVaRUpm8AAvuR5PILII=
=YU8f
-END PGP SIGNATURE-


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



Re: Orbitz-style processing page with Struts

2005-09-16 Thread Frank W. Zammetti
Hi Randy,

There's basically two distinict approaches to solving this problem,
neither is specific to Struts...

(1) The server-based approach.  This is along the lines of your meta
refresh in that you kick off some server process and have the client
periodically poll for a status.  This is more complex to implement but is
probably the more client-friendly approach because (a) it will be more
accessible to more people (i.e., no scripting and things of that nature)
and (b) give you the ability, should you choose to allow it, to let users
go away and come back later.

(2) The client-side approach.  There are multiple ways to do it under this
same umbrella...

  a. Target the form submission to a new window.  Have the target of the
form be the "Processing..." page, and when that returns, in response to
the onLoad event, do the *real* form submission that does the
processing.

  b. Have a hidden layer on your page that has that "Processing..." markup
in it.  When the form is submitted, hide all the contents on the page
and show that hidden layer.

  c. Other permutations of either of the above.

I've had occassion to do both and I can honestly say that unless you have
that need to allow users to come back later, I would go with the
client-side approach.  It winds up being quite a bit simpler to do and
works just about as well.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Fri, September 16, 2005 2:40 pm, Randy Shepherd said:
> Hey Guys..
>
> Pretty basic question here. I am looking for suggestions how to display
> an orbitz-style processing page while the server process a request. The
> user is submitting a form with credit card and address information for
> a purchase and there are several partner systems which may take up to a
> few seconds to complete their tasks. While we are waiting, I want to
> display some sort of page with an animated gif telling the user to be
> patient.
>
> I have accomplished this before in a model 1 architecture using a JS
> meta-refresh tag. I am not sure that is the best way in Struts. What do
> you think?
>
> Thanks,
> Randy
>
>
> -
> 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: Orbitz-style processing page with Struts

2005-09-16 Thread gramani
Hey Randy, take a look at this:

http://wiki.apache.org/struts/StrutsPleaseWait

i haven't read it or implemented it myself, but looks promising..:)
Geeta

Randy Shepherd <[EMAIL PROTECTED]> wrote on 09/16/2005 02:40:11 PM:

> Hey Guys..
> 
> Pretty basic question here. I am looking for suggestions how to display 
> an orbitz-style processing page while the server process a request. The 
> user is submitting a form with credit card and address information for 
> a purchase and there are several partner systems which may take up to a 
> few seconds to complete their tasks. While we are waiting, I want to 
> display some sort of page with an animated gif telling the user to be 
> patient.
> 
> I have accomplished this before in a model 1 architecture using a JS 
> meta-refresh tag. I am not sure that is the best way in Struts. What do 
> you think?
> 
> Thanks,
> Randy
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

> 
> CONFIDENTIALITY NOTICE:This email is intended solely for the person 
> or entity to which it is addressed and may contain confidential 
> and/or protected health information.  Any duplication, 
> dissemination, action taken in reliance upon, or other use of this 
> information by persons or entities other than the intended recipient
> is prohibited and may violate applicable laws.  If this email has 
> been received in error, please notify the sender and delete the 
> information from your system.  The views expressed in this email are
> those of the sender and may not necessarily represent the views of 
> IntelliCare.

Orbitz-style processing page with Struts

2005-09-16 Thread Randy Shepherd

Hey Guys..

Pretty basic question here. I am looking for suggestions how to display 
an orbitz-style processing page while the server process a request. The 
user is submitting a form with credit card and address information for 
a purchase and there are several partner systems which may take up to a 
few seconds to complete their tasks. While we are waiting, I want to 
display some sort of page with an animated gif telling the user to be 
patient.


I have accomplished this before in a model 1 architecture using a JS 
meta-refresh tag. I am not sure that is the best way in Struts. What do 
you think?


Thanks,
Randy


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



AW: struts on jboss

2005-09-16 Thread Marc Ende
Okay... I've removed the struts.jar (and the other related jars of struts)
from
the shared folder and put it in the proposed WEB-INF/lib folder.

Great I've got no trouble with the DynaActionForm! Now I have to restart the
jboss
everytime I redeploy. The server does a lock on the struts.jar so I couldn't
redeploy
without stopping the server. The error will never come back this way :)

Not really the way I liked but very consequent... :( 

> -Ursprüngliche Nachricht-
> Von: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 16. September 2005 19:07
> An: Struts Users Mailing List
> Betreff: Re: struts on jboss
> 
> From: "Marc Ende" <[EMAIL PROTECTED]>
> 
> > In the war are no other classes included than the sources of my 
> > application.
> > The jars of struts are directly in the server/default/lib 
> directory of 
> > jboss.
> 
> I don't know whether it's causing the particular problem 
> you're reporting, but struts.jar should not be placed in any 
> shared location.  At least not for Tomcat, and I doubt the 
> advice changes when JBoss is involved:
> 
> http://struts.apache.org/userGuide/configuration.html#config_add
> 
> --
> Wendy Smoak 
> 
> 
> -
> 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] Is this an ok flow for initial trigger of prerender? (Craig?)

2005-09-16 Thread Rick Reumann

Thanks Craig! You were right on all counts...

I presume that "employeesListBean", "employee", and "searchCriteria" are all 
the names of other managed beans? That would be necessary for this to work 
correctly.


Yes they are.

Also, the navigation rule you define above is not involved in the welcome 
page processing ... but you might need it for other navigation in the app.


Ah, stupid for me to have included that in this e-mail. You are right 
it's being used for other navigation and not at all germane to the topic 
I posted about (although, of course, I thought it was at first:).


Thanks again for looking it over.

--
Rick

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



Re: struts on jboss

2005-09-16 Thread Wendy Smoak

From: "Marc Ende" <[EMAIL PROTECTED]>

In the war are no other classes included than the sources of my 
application.

The jars of struts are directly in the server/default/lib directory of
jboss.


I don't know whether it's causing the particular problem you're reporting, 
but struts.jar should not be placed in any shared location.  At least not 
for Tomcat, and I doubt the advice changes when JBoss is involved:


http://struts.apache.org/userGuide/configuration.html#config_add

--
Wendy Smoak 



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



Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Bob Arnott

[EMAIL PROTECTED] wrote:
I'm preparing to make a case for switching to a differenct SCM tool 
(source code management).   The options are CVS, Perforce, and VSS.


Anybody have any cogent/credible stories or arguments for choosing one 
over the other?


Don't touch Perforce with a barge pole it doesn't integrate very well
with IDE's or Cruise Control etc and is a general pain in the arse. VSS,
are you being serious...? Out of those three I'd take CVS every time,
although you may want to look at Subversion as well.

Cheers,

--
Bob Arnott


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



Re: [Shale] Is this an ok flow for initial trigger of prerender? (Craig?)

2005-09-16 Thread Craig McClanahan
Interspersed.

On 9/16/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> 
> Craig, if you're reading this, sorry to address you specifically in
> the subject, but I believe you commented once on this and said there was
> something wrong (or bad) about doing things this way and I want to make
> sure I'm doing things correct since I'm working on that CRUD
> example/lesson...
> 
> 
> My index.jsp (welcome file):
> 
> 
> 
> 
> Navigation rule:
> -
> 
> 
> employeesSearch
> /employeesSearch.jsp
> 
> 
> 
> 
> A managed Bean for "employeesSearch":
> -
> 
> employeesSearch
> 
> net.reumann.EmployeesSearchAction
> request
> 
> employeesListBean
> #{employeesListBean}
> 
> 
> employee
> #{employee}
> 
> 
> searchCriteria
> #{searchCriteria}
> 
> 


I presume that "employeesListBean", "employee", and "searchCriteria" are all 
the names of other managed beans? That would be necessary for this to work 
correctly.

Also, the navigation rule you define above is not involved in the welcome 
page processing ... but you might need it for other navigation in the app.

Result:
> ---
> EmployeesSearchAction has a prerender() that fires when index.jsp is hit
> and the user is forwarded to the employeesSearch.jsp screen.


To be a little pedantic, the order of events is actually slightly different 
than this:

* The welcome JSP page forwards to the "/employeeSearch.jsp" view
(you are correct to use the ".faces" extension here to trigger the JSF
lifecycle, but the view identifiers inside JSF actually use ".jsp").

* The JSF lifecycle tries to execute Restore View, and notices that
there is no previous state to restore. It creates a new component
tree, and forwards to Render Response phase.

* The init() method of your view controller gets executed the first
time that the corresponding managed bean (employeesSearch)
gets created. *Before* that call, the managed properties will already
have been evaluated and set, by sub-evaluations of the expressions
used to initialize them.

* The prerender() method of your view controller gets fired
(by Shale, in a pre-render-response phase listener).

* The actual Render Response logic causes a RequestDispatcher.forward()
call to the JSP page itself.

* The destroy() method of your view controller gets fired.

Question:
> -
> Is the above the approriate way to handle an etnry point into an
> application when typically you want to go to somewhere different than
> the initial index page and you need a prerender to fire in a backing
> bean in order to setup that resulting page you forward(redirect) to?


Yep, this approach makes sense. Note that it also works in exactly the same 
way if you navigate to the "/employeesSearch.jsp" view from anywhere else in 
the application ... it's not just for the initial welcome screen.

Craig


Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Jesus M. Rodriguez

I would avoid VSS at all costs, its merge capabilities are less than stellar,
which makes it hard for two developers to change the same file.

Perforce works well.  I like the changelist concept and it integrates
well with bug tools like TeamTrack, etc.  Its biggest con is cost.

CVS while very popular and works well, has some issues but those issues
are well known and most projects know how to deal with them.

Currently, we're using SVN on my project.  I love it.  It has great
merge capabilities, the ability to atomically commit a set of files,
it will be pretty familiar to CVS users.  The biggest annoyance
is how svn merge requires you to use URLs to the repository, but that's
pretty small.

If I were going to setup a new project I'd choose SVN.  The price
is right and does a good job as an SCM tool.

Jesus Rodriguez
Senior Software Engineer
Red Hat Network

[EMAIL PROTECTED] wrote:
I'm preparing to make a case for switching to a differenct SCM tool 
(source code management).   The options are CVS, Perforce, and VSS.


Anybody have any cogent/credible stories or arguments for choosing one 
over the other?


Thanks,
Dennis



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



Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Dave Newton

[EMAIL PROTECTED] wrote:

I'm preparing to make a case for switching to a differenct SCM tool 
(source code management).   The options are CVS, Perforce, and VSS.
 

VSS: *hurl* I can' recall a time where I've ever thought "Whew, thank 
goodness I'm using VSS" and horror stories abound.


Perforce: No experience, but one VERY large company I worked for used 
and generally liked it (although I remember them having a LOT of 
problems with the Eclipse Perforce plugin, probably fixed by now).


CVS: Renaming, directories non-trivial/not supported. Didn't care for 
the tagging/branching stuff so much.


Subversion: My current SCM of choice; trivial branching/tagging/merging, 
renaming, directories.


Dave



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



Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Larry Meadors
Seriously consider SVN, too if possible. From what I am hearing, all
Apache projects will be on SVN within the next year.

CVS is getting a bit "long in the tooth" but works well for everything
i have ever needed.

VSS is IMO a waste of digital storage that could have been better used
for something like AOL CDs. :-D

I looked at Perforce recently, but could not make the case for the $$$
over CVS. No added features (beyond VS.NET integration).

Larry


On 9/16/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I'm preparing to make a case for switching to a differenct SCM tool
> (source code management).   The options are CVS, Perforce, and VSS.
> 
> Anybody have any cogent/credible stories or arguments for choosing one
> over the other?
> 
> Thanks,
> Dennis
>

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



AW: struts on jboss

2005-09-16 Thread Marc Ende
Hello Tremal,

> 2005/9/16, mlists <[EMAIL PROTECTED]>:
> > Is this an configuration-issue? (It's not very comfortable 
> to restart 
> > the server everytime after a change).
> 
> what version of Jboss? 
Jboss Version: 4.0.2

> And what the message you are receiving? 
See end of mail :)

> Is your application composed by either a WAR and a JAR? 
The application is composed as an exploded war (so it's just a directory
ending on .war)
In the war are no other classes included than the sources of my application.
The jars of struts are directly in the server/default/lib directory of
jboss.
I've done this to make sure that all apps have the same version and there is
no trouble in redeployment (I've got them sometimes before).

> If that is the case, do you deploy class duplicates in the two files?
There are no duplicates in the directory (all Files are included only once).





The Exception:
--
18:27:41,168 ERROR [RequestUtils] Error creating form bean of class
org.apache.struts.action.DynaActionForm
java.lang.IllegalArgumentException: Invalid property name 'wohnflaeche'
at
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
598)
at
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:412)
at
org.apache.struts.action.DynaActionForm.initialize(DynaActionForm.java:142)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:822)
at
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor
.java:364)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:81)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalVal
ve.java:39)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
ationValve.java:153)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
59)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThre
ad.java:112)
at java.lang.Thread.run(Thread.java:595)
18:27:42,280 ERROR [RequestUtils] Error creating form bean of class
org.apache.struts.action.DynaActionForm
java.lang.IllegalArgumentException: Invalid property name 'wohnflaeche'
at
org.apache.struts.action.DynaActionForm.getDynaProperty(DynaActionForm.java:
598)
at
org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:412)
at
org.apache.struts.action.DynaActionForm.initialize(DynaActionForm.java:142)
at
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:822)
at
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:552)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:520)
at
org.apache.jsp.jsps.admin_objekte_new_jsp._jspx_meth_html_form_0(org.apache.
jsp.jsps.admin_objekte_new_jsp:136)
at
org.apache.jsp.jsps.admin_objekte_new_jsp._jspService(org.apache.jsp.jsps.ad
min_objekte_new_jsp:90)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
22)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.ja

Re: struts on jboss

2005-09-16 Thread Tremal Naik
2005/9/16, mlists <[EMAIL PROTECTED]>:
> Is this an configuration-issue? (It's not very comfortable to restart the
> server everytime after a change).

what version of Jboss? 
And what the message you are receiving? 
Is your application composed by either a WAR and a JAR? 
If that is the case, do you deploy class duplicates in the two files?

-- 
TREMALNAIK

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



Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Michael Jouravlev
On 9/16/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I'm preparing to make a case for switching to a differenct SCM tool
> (source code management).   The options are CVS, Perforce, and VSS.
> 
> Anybody have any cogent/credible stories or arguments for choosing one
> over the other?

Perforce: small, efficient, geeky, takes some getting used to after
StarTeam or VSS. Nice feature - transactional check-in, that is, if
error occurred when checking in a group of files, all group is not
checked in.

VSS: maybe now it is better, but 5 years ago it was very basic.

CVS: Need to take care of CVS directories, if you remove them, then
synchronization can be a problem. Though, I am not a CVS pro. Setting
up a client takes some knowledge in regards to passwords and
protocols. I could not set up WinCVS and installed TortoiseCVS
instead.

StarTeam: this is what we use now. Windows only, but pretty nice. Easy
to see all versions of file, easy to compare versions. This is what I
like about StarTeam: select a file and all its history with dates,
comments are immediately in front of you. Moving Java class is a
semi-manual process, since you need to update package name in the file
too, and StarTeam cannot do this for you. Possible to edit unlocked
file, and to merge later.

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



Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread David Haynes

[EMAIL PROTECTED] wrote:

I'm preparing to make a case for switching to a differenct SCM tool 
(source code management).   The options are CVS, Perforce, and VSS.


Anybody have any cogent/credible stories or arguments for choosing one 
over the other?


Thanks,
Dennis
 

CVS seems to be the de-facto standard for SCM tools that are integrated 
with IDEs.
Subversion (SVN) is becoming more and more prevalent with new OSS 
projects and many IDEs are moving towards integration with it.

If you don't use an IDE, then this will probably not be an issue.

-david-


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



Re: new Struts tools for layout other than Tiles

2005-09-16 Thread Wendy Smoak

From:  <[EMAIL PROTECTED]>


on the web page Tiles developer,
http://www.lifl.fr/~dumoulin/tiles/
It stopped development after 2002.


As Christian noted, Tiles is alive and well as a Struts sub-project.

There's also an effort under way (Standalone Tiles, currently in the Struts 
Sandbox,) to remove its dependencies on Struts and Servlets so that Tiles 
can be used with (among other things) JSF and Portlets:

http://svn.apache.org/viewcvs.cgi/struts/sandbox/trunk/tiles/
http://wiki.apache.org/struts/StandaloneTiles

--
Wendy Smoak 



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



struts on jboss

2005-09-16 Thread mlists
Hi there,
 
I've build (better: I'm currently building) a webapp with struts. JBoss is
the used applicationserver.
In this webapp I'm using DynaActionForms for the Forms. But everytime I
change the entries for
the DynaActionForm in the struts-config.xml I receive an error about an
invalid parameter after redeploy the
war-file. If I'm restarting the whole Applicationserver everything works
fine.
 
Is this an configuration-issue? (It's not very comfortable to restart the
server everytime after a change).
 
yours
 
marc
 


Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Phlip

DGraham wrote:


I'm preparing to make a case for switching to a differenct SCM tool
(source code management).   The options are CVS, Perforce, and VSS.



Anybody have any cogent/credible stories or arguments for choosing one
over the other?


MS themselves do not use VSS, and it is all but a dead project. It has too 
many bugs and too few features to consider.


Add Subversion to the top of your list. It is a re-think of CVS, possibly by 
the same guys.


--
 Phlip
 http://www.greencheese.org/ZeekLand  <-- NOT a blog!!! 



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



Re: [OT] SCM stories (war? horror?)

2005-09-16 Thread Ed Griebel
VSS- walk away, don't make eye contact :-) 
Pros: umm, it does manage versions, close integration with MS VisualStudio
Cons: windows-only administration and probably access too, not
intuitive to use, opaque binary files having no discernable relation
to the actual artifacts themselves, not cheap to buy although most do
not buy a license for every developer. The biggie though, sometimes
the database will get corrupted and you will have to restore your
repository from backup, although this may have been fixed.

CVS- 
Pros: simple model for developers to understand how it works, changes
can be made to local version without locking a file (some would
consider this a con, so it can be changed), integrated into almost any
open-source IDE and many OSS applications (such as cruise-control),
trivial to access remote repository from local desktop, repository
artifacts are stored as "regular" files rather than an opaque
binary-format file
Cons: directories not versioned, file moves are not versioned so if
you want to preserve file history you have the hack of copying the
file to the new location in a repository, and binary file versioning
is non-existant--it stores a full copy of each version

No experience with perforce.

By the way, what is your current SCM?
-ed

On 9/16/05, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I'm preparing to make a case for switching to a differenct SCM tool
> (source code management).   The options are CVS, Perforce, and VSS.
> 
> Anybody have any cogent/credible stories or arguments for choosing one
> over the other?
> 
> Thanks,
> Dennis
>

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



[OT] SCM stories (war? horror?)

2005-09-16 Thread DGraham
I'm preparing to make a case for switching to a differenct SCM tool 
(source code management).   The options are CVS, Perforce, and VSS.

Anybody have any cogent/credible stories or arguments for choosing one 
over the other?

Thanks,
Dennis

Re: new Struts tools for layout other than Tiles

2005-09-16 Thread Christian Bollmeyer

?? What's wrong with Tiles? It's a part of Struts since
then and still under active development.

http://svn.apache.org/viewcvs.cgi/struts/tiles/

-- Ch.

- Original Message - 
From: "???" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Friday, September 16, 2005 4:38 PM
Subject: new Struts tools for layout other than Tiles


on the web page Tiles developer,
http://www.lifl.fr/~dumoulin/tiles/

It stopped development after 2002.

Any new tools of OpenSource which keeps on going?

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




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



[Shale] Is this an ok flow for initial trigger of prerender? (Craig?)

2005-09-16 Thread Rick Reumann

Craig, if you're reading this, sorry to address you specifically in
the subject, but I believe you commented once on this and said there was 
something wrong (or bad) about doing things this way and I want to make 
sure I'm doing things correct since I'm working on that CRUD 
example/lesson...



My index.jsp (welcome file):




Navigation rule:
-


employeesSearch
/employeesSearch.jsp




A managed Bean for "employeesSearch":
-

employeesSearch

net.reumann.EmployeesSearchAction
request

employeesListBean
#{employeesListBean}


employee
#{employee}


searchCriteria
#{searchCriteria}



Result:
---
EmployeesSearchAction has a prerender() that fires when index.jsp is hit 
and the user is forwarded to the employeesSearch.jsp screen.



Question:
-
Is the above the approriate way to handle an etnry point into an 
application when typically you want to go to somewhere different than 
the initial index page and you need a prerender to fire in a backing 
bean in order to setup that resulting page you forward(redirect) to?



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



new Struts tools for layout other than Tiles

2005-09-16 Thread 梁炳場
on the web page Tiles developer,
http://www.lifl.fr/~dumoulin/tiles/

It stopped development after 2002.

Any new tools of OpenSource which keeps on going?

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



i18n on Tiles menu

2005-09-16 Thread 梁炳場
I have a Tiles layout of menu.

It displays values as I put in item value.

But can I make it i18n?
ie. how to use ApplicationResources.properties?

Thanks

  


  
  
  
  
  

  

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



SV: [Shale] NullpointerException when running struts-shale-usecas es

2005-09-16 Thread hermod . opstvedt
Hi 

I will give it a try under 5.5.9, but maybe I should try with another
version of the parser first.

Hermod

-Opprinnelig melding-
Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 10:46
Til: Struts Users Mailing List
Emne: RE: [Shale] NullpointerException when running
struts-shale-usecases


I'm running it under tomcat 5.5.9, and jdk 1.5.0_04.

It seems to be a problem parsing the chain-config.xml by the shale
filter. I'm not sure if this is something introduced after the 6th, or a
problem with the xml parser.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2005 11:33
To: user@struts.apache.org
Subject: SV: [Shale] NullpointerException when running
struts-shale-usecases

Hi

I could not find the 6th distro, so I tried the earliest one I could
find, beeing the 8th. Same problem.

Hermod

-Opprinnelig melding-
Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 09:47
Til: Struts Users Mailing List
Emne: RE: [Shale] NullpointerException when running
struts-shale-usecases


I'm running the version from the 6th without any modifications, and it
runs fine.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2005 10:42
To: user@struts.apache.org
Subject: [Shale] NullpointerException when running struts-shale-usecases

Hi

I tried to run the struts-shale-usecases webapp from the nightly
build(16th), but I get a NullpointerException during startup.

I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and
1.5.0_04.

javax.servlet.ServletException: Error at line 41 char 56: null
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:334)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:225)
...

- Root Cause -
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
19)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
45)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1364)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa
rser.java:160)
at
org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn
it.java:101)
at
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:331)


Anybody had the same problem ?

Hermod

-Opprinnelig melding-
Fra: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 08:59
Til: Struts Users Mailing List
Emne: Re: [Shale]managed beans in request vs. session scope and how to
clean up


On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote:
> 
> Hi Geeta,
> 
> Just to let you know that one of the changes that was made to the JSF
> spec was to integrate the JSTL and JSF, so you could use c:forEach
with
> JSF UI components. So using JSTL is still ok, I do. And I think it
will
> be around for a while.


Ron's comments with respect to JSF 1.2 and JSTL interoperability are
correct 
... but they only address part of the overall issue. If all you care
about 
is *rendering* output based on an iteration over a collection of model
tier 
objects, the JSF 1.2 integration strategy will work fine. If, on the
other 
hand, you want to have *input* fields inside your  tag,
you're 
going to run into more problems. The right answer there is to use an
outer 
"grouping" component (such as, but not limited to, ) that
deals 
with the iteration issues during the postback processing phases (Apply 
Request Values through Process Validations) as well as during rendering.

Solutions based on JSTL *only* work during rendering, because the JSP
page 
itself is *not* involved in actually performing a postback.

Or, if you want a shorter version of the answer, depending on
 is 
still going to limit what you can actually do inside the iterations,
even in 
a JSF 1.2 world. The right answer is smarter components that do

RE: Missing attribute "wrap" in TextareaTag

2005-09-16 Thread Fleischle, Samuel
Hi Laurie,

OK you are right. But I tried the CSS solutions without any effect.

Sam

-Original Message-
From: Laurie Harper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 14, 2005 12:42 PM
To: user@struts.apache.org
Subject: Re: Missing attribute "wrap" in TextareaTag

Fleischle, Samuel wrote:
> I have a textarea and want to set the attribute wrap="off" to avoid
> automatic wrapping of my text.
> 
> But I can´t find any attribute with this name in the API for the
> TextareaTag. And if I insert this attribute in my code, I get an error.
> 
> Is this attribute missing? Is there another way (possible with CSS) to
avoid
> text wrapping?

There is no 'wrap' attribute in any offical version of HTML (it was a 
proprietary Netscape extension), so the HTML taglib doesn't support it. 
It's easy to get the same effect with CSS, though: use the 'white-space: 
nowrap' style.

L.


-
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 name from within a jsp page

2005-09-16 Thread Fredrik Fornwall

Imagine a tiles setup as the following:

   
   
   
   
   
   
   

Is it possible from the menu.jsp or the layout.jsp pages to access the 
definition name for the tile being composed (".layout" and ".help" for 
the example above)?


The reason for this would be to use the definition name as a sort of 
page id used for things such as linking and setting of page titles. We 
are currently doing this by using a property for each page, as in name="pageID" value=".help"/> but would like to skip this and use the 
definition name directly.


Thanks,
Fredrik

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



Re: Struts and DisplayTag CSS?

2005-09-16 Thread 梁炳場
Thank you Wendy.

It is okay to retrieve contextpath.

Thanks


2005/9/16, Wendy Smoak <[EMAIL PROTECTED]>:
> From:  <[EMAIL PROTECTED]>
> 
> > The resulting href becomes the following by display the source page on IE.
> >  > media="screen, print" />
> >
> > It is so strange that both http://localhost:8080/erp/
> > and  http://localhost:8080/erp/addUserProfile.do
> > cannot display with css.
> 
> Not so strange, unless the stylesheet is in the ROOT context (assuming this
> is standalone Tomcat).  That leading slash means the browser is requesting
> http://localhost:8080/css/screen.css.
> 
> > Then I try to get the contextpath, instead of hard code.
> > But fail, the following line return null
> > <% String contextPath=request.getContextPath(); %>
> > 
> >  Why?
> 
> That fails because JSTL cannot "see" scripting variables.  JSTL has an
> implicit pageContext object, though which you can get to the request.
> 
> See if this does what you want:
>   
> 
> I haven't tried it, but it looks like it should work.
> 
> --
> Wendy Smoak
> 
> 
> 
> -
> 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] NullpointerException when running struts-shale-usecases

2005-09-16 Thread Holshausen, Ron
I'm running it under tomcat 5.5.9, and jdk 1.5.0_04.

It seems to be a problem parsing the chain-config.xml by the shale
filter. I'm not sure if this is something introduced after the 6th, or a
problem with the xml parser.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2005 11:33
To: user@struts.apache.org
Subject: SV: [Shale] NullpointerException when running
struts-shale-usecases

Hi

I could not find the 6th distro, so I tried the earliest one I could
find, beeing the 8th. Same problem.

Hermod

-Opprinnelig melding-
Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 09:47
Til: Struts Users Mailing List
Emne: RE: [Shale] NullpointerException when running
struts-shale-usecases


I'm running the version from the 6th without any modifications, and it
runs fine.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2005 10:42
To: user@struts.apache.org
Subject: [Shale] NullpointerException when running struts-shale-usecases

Hi

I tried to run the struts-shale-usecases webapp from the nightly
build(16th), but I get a NullpointerException during startup.

I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and
1.5.0_04.

javax.servlet.ServletException: Error at line 41 char 56: null
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:334)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:225)
...

- Root Cause -
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
19)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
45)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1364)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa
rser.java:160)
at
org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn
it.java:101)
at
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:331)


Anybody had the same problem ?

Hermod

-Opprinnelig melding-
Fra: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 08:59
Til: Struts Users Mailing List
Emne: Re: [Shale]managed beans in request vs. session scope and how to
clean up


On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote:
> 
> Hi Geeta,
> 
> Just to let you know that one of the changes that was made to the JSF
> spec was to integrate the JSTL and JSF, so you could use c:forEach
with
> JSF UI components. So using JSTL is still ok, I do. And I think it
will
> be around for a while.


Ron's comments with respect to JSF 1.2 and JSTL interoperability are
correct 
... but they only address part of the overall issue. If all you care
about 
is *rendering* output based on an iteration over a collection of model
tier 
objects, the JSF 1.2 integration strategy will work fine. If, on the
other 
hand, you want to have *input* fields inside your  tag,
you're 
going to run into more problems. The right answer there is to use an
outer 
"grouping" component (such as, but not limited to, ) that
deals 
with the iteration issues during the postback processing phases (Apply 
Request Values through Process Validations) as well as during rendering.

Solutions based on JSTL *only* work during rendering, because the JSP
page 
itself is *not* involved in actually performing a postback.

Or, if you want a shorter version of the answer, depending on
 is 
still going to limit what you can actually do inside the iterations,
even in 
a JSF 1.2 world. The right answer is smarter components that do
iterations 
for you, not forcing the page developer to manually code iteration
loops.

Craig


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

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 ac

SV: [Shale] NullpointerException when running struts-shale-usecas es

2005-09-16 Thread hermod . opstvedt
Hi

I could not find the 6th distro, so I tried the earliest one I could
find, beeing the 8th. Same problem.

Hermod

-Opprinnelig melding-
Fra: Holshausen, Ron [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 09:47
Til: Struts Users Mailing List
Emne: RE: [Shale] NullpointerException when running
struts-shale-usecases


I'm running the version from the 6th without any modifications, and it
runs fine.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2005 10:42
To: user@struts.apache.org
Subject: [Shale] NullpointerException when running struts-shale-usecases

Hi

I tried to run the struts-shale-usecases webapp from the nightly
build(16th), but I get a NullpointerException during startup.

I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and
1.5.0_04.

javax.servlet.ServletException: Error at line 41 char 56: null
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:334)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:225)
...

- Root Cause -
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
19)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
45)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1364)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa
rser.java:160)
at
org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn
it.java:101)
at
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:331)


Anybody had the same problem ?

Hermod

-Opprinnelig melding-
Fra: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 08:59
Til: Struts Users Mailing List
Emne: Re: [Shale]managed beans in request vs. session scope and how to
clean up


On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote:
> 
> Hi Geeta,
> 
> Just to let you know that one of the changes that was made to the JSF
> spec was to integrate the JSTL and JSF, so you could use c:forEach
with
> JSF UI components. So using JSTL is still ok, I do. And I think it
will
> be around for a while.


Ron's comments with respect to JSF 1.2 and JSTL interoperability are
correct 
... but they only address part of the overall issue. If all you care
about 
is *rendering* output based on an iteration over a collection of model
tier 
objects, the JSF 1.2 integration strategy will work fine. If, on the
other 
hand, you want to have *input* fields inside your  tag,
you're 
going to run into more problems. The right answer there is to use an
outer 
"grouping" component (such as, but not limited to, ) that
deals 
with the iteration issues during the postback processing phases (Apply 
Request Values through Process Validations) as well as during rendering.

Solutions based on JSTL *only* work during rendering, because the JSP
page 
itself is *not* involved in actually performing a postback.

Or, if you want a shorter version of the answer, depending on
 is 
still going to limit what you can actually do inside the iterations,
even in 
a JSF 1.2 world. The right answer is smarter components that do
iterations 
for you, not forcing the page developer to manually code iteration
loops.

Craig


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

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]

RE: [Shale] NullpointerException when running struts-shale-usecases

2005-09-16 Thread Holshausen, Ron
I'm running the version from the 6th without any modifications, and it
runs fine.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 16 September 2005 10:42
To: user@struts.apache.org
Subject: [Shale] NullpointerException when running struts-shale-usecases

Hi

I tried to run the struts-shale-usecases webapp from the nightly
build(16th), but I get a NullpointerException during startup.

I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and
1.5.0_04.

javax.servlet.ServletException: Error at line 41 char 56: null
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:334)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:225)
...

- Root Cause -
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
19)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
45)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1364)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa
rser.java:160)
at
org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn
it.java:101)
at
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:331)


Anybody had the same problem ?

Hermod

-Opprinnelig melding-
Fra: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 08:59
Til: Struts Users Mailing List
Emne: Re: [Shale]managed beans in request vs. session scope and how to
clean up


On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote:
> 
> Hi Geeta,
> 
> Just to let you know that one of the changes that was made to the JSF
> spec was to integrate the JSTL and JSF, so you could use c:forEach
with
> JSF UI components. So using JSTL is still ok, I do. And I think it
will
> be around for a while.


Ron's comments with respect to JSF 1.2 and JSTL interoperability are
correct 
... but they only address part of the overall issue. If all you care
about 
is *rendering* output based on an iteration over a collection of model
tier 
objects, the JSF 1.2 integration strategy will work fine. If, on the
other 
hand, you want to have *input* fields inside your  tag,
you're 
going to run into more problems. The right answer there is to use an
outer 
"grouping" component (such as, but not limited to, ) that
deals 
with the iteration issues during the postback processing phases (Apply 
Request Values through Process Validations) as well as during rendering.

Solutions based on JSTL *only* work during rendering, because the JSP
page 
itself is *not* involved in actually performing a postback.

Or, if you want a shorter version of the answer, depending on
 is 
still going to limit what you can actually do inside the iterations,
even in 
a JSF 1.2 world. The right answer is smarter components that do
iterations 
for you, not forcing the page developer to manually code iteration
loops.

Craig


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

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]
 
E-Mail Disclaimer 
 
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene 
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung 
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. 
Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, 
Veroeffentlichung, Vervielfaelt

[Shale] NullpointerException when running struts-shale-usecases

2005-09-16 Thread hermod . opstvedt
Hi

I tried to run the struts-shale-usecases webapp from the nightly
build(16th), but I get a NullpointerException during startup.

I am running on Tomcat 5.0.30 and have tried both JDK 1.4.2_09 and
1.5.0_04.

javax.servlet.ServletException: Error at line 41 char 56: null
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:334)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:225)
...

- Root Cause -
java.lang.NullPointerException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
19)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:29
45)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1364)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1647)
at
org.apache.shale.dialog.config.ConfigurationParser.parse(ConfigurationPa
rser.java:160)
at
org.apache.shale.dialog.config.ConfigurationInit.execute(ConfigurationIn
it.java:101)
at
org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
at
org.apache.shale.faces.ShaleApplicationFilter.init(ShaleApplicationFilte
r.java:331)


Anybody had the same problem ?

Hermod

-Opprinnelig melding-
Fra: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sendt: 16. september 2005 08:59
Til: Struts Users Mailing List
Emne: Re: [Shale]managed beans in request vs. session scope and how to
clean up


On 9/15/05, Holshausen, Ron <[EMAIL PROTECTED]> wrote:
> 
> Hi Geeta,
> 
> Just to let you know that one of the changes that was made to the JSF
> spec was to integrate the JSTL and JSF, so you could use c:forEach
with
> JSF UI components. So using JSTL is still ok, I do. And I think it
will
> be around for a while.


Ron's comments with respect to JSF 1.2 and JSTL interoperability are
correct 
... but they only address part of the overall issue. If all you care
about 
is *rendering* output based on an iteration over a collection of model
tier 
objects, the JSF 1.2 integration strategy will work fine. If, on the
other 
hand, you want to have *input* fields inside your  tag,
you're 
going to run into more problems. The right answer there is to use an
outer 
"grouping" component (such as, but not limited to, ) that
deals 
with the iteration issues during the postback processing phases (Apply 
Request Values through Process Validations) as well as during rendering.

Solutions based on JSTL *only* work during rendering, because the JSP
page 
itself is *not* involved in actually performing a postback.

Or, if you want a shorter version of the answer, depending on
 is 
still going to limit what you can actually do inside the iterations,
even in 
a JSF 1.2 world. The right answer is smarter components that do
iterations 
for you, not forcing the page developer to manually code iteration
loops.

Craig


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

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]