Html link Action and DynaValidatorForm

2005-09-17 Thread Sagar Naik
Hi,

I would like to have a link which fires an action of
Class DynaValidatorForm
JSP PAGE :-

   


STRUTS FILE



EXCEPTION :-
Request[/joinWorkGroup] does not contain handler
parameter named 'workGroupActionProperty'.  This may
be caused by whitespace in the label text.

I dont know where to specify the
"workGroupActionProperty" in the link so formed.

Can u please tell me .

Thanks






__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



Re: Cannot find bean" error" in any scope / Error

2005-09-17 Thread Murray Collingwood
If the bean "error" doesn't exist in the request or the session then this is 
the error you 
get.

1. either generate the "error" form bean and add it to the scope (any scope 
will do)
or
2. add logic code to test for the presence of the bean before you try using it.


 ...do the error here.


Kind regards
mc

On 17 Sep 2005 at 16:23, Laurie Harper wrote:

> R. Markham wrote:
> > I get following error if I push the submit button. I get following error
> > message
> > 
> > javax.servlet.ServletException: Cannot find bean error in any scope
> >  
> > I have following in my JSP File
> > 
> >   
> > Lastname
> > 
> > 
> >
> >   
> >  
> > 
> > 
> > 
> > I want to produce an error message beside the input field if the input field
> > is empty. If I delete the line  the program
> > works but there is no error message
> 
> Looks right to me... Is that the only place in your JSP that references 
> a bean named 'error'? Is deleting that one line the only difference 
> between getting the error and not?
> 
> What version of Struts are you using? AFAIK, the body of the messages 
> tag should only be evaluated if there are messages to display, and the 
> scripting variable named by 'id' should always be defined. You could try 
> explicitly telling bean:write to look in page scope, though that 
> shouldn't be necessary.
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.25/102 - Release Date: 14/09/2005
> 



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: Persistence on a form bean?

2005-09-17 Thread Murray Collingwood
Hi Jan

Yes, this is what I'm doing.   This solution (including html:hidden for these 
fields) does 
raise the potential for problems, for example, when I now add a new variable to 
my 
databases / form-bean I have to manually check through all of the JSP files 
that use 
this form-bean and ensure that all fields are included.  If I miss one I'm 
liable to get 
some unexpected errors.

What if Struts could include all unused properties when it arrived at the 
, 
there are a number of problems with this solution.   There may be multiple 
getters for a 
single field, one of which may be included in the form already.  There may also 
be 
types in the form-bean for which an html:hidden may not work correctly - my 
experience 
with Timestamp fields is like this.

This leaves the solution of pushing the form-bean into the session.  The 
problem with 
this is that every possible link from the page needs to handle the removal of 
that form-
bean from the session.  Otherwise it can hang around in the session and 
potentially 
cause some other problem that might only appear intermittently - the ones you 
hate the 
most!

What I would really like is for request attirbutes to exist for the life of the 
request.  
Consider the name, "form-bean".  While not limited to an html form this is 
probably the 
original pupose.  It doesn't really matter why I'm writing an html form, in any 
case it is 
always better if the same form-bean I create prior to the user interaction is 
available 
after the user submission.  If some component fails (server-side) validation I 
can simply 
push the form-bean back into the request and send a form back to the user that 
only 
displays the fields that failed (rather than viewing all of the form fields 
again).  If I'm 
writing a multi-page wizard I can use just one form-bean pushing it from 
request to 
request, and if the user decides to quit the wizard by clicking some other menu 
item 
part way through I'm not going to leave anything undue hanging around in the 
session.

And after all of that, it just makes good sense.

Alas, I don't think it's going to happen.  

I don't know if it is part of any specification but if the current 'request' 
were modified to 
do this we would probably cause problems in thousands of existing applications. 
 

We would probably need to implement a new attribute holder like 
'persistingRequest' 
that we could push form beans onto, these form beans would be available from 
the JSP 
page using all of the current access methods.  This form-bean would need to be 
serializable (like a session attribute) and would be restored when the form 
came back 
from the user.  The form-bean would be updated with the values from the user, 
replacing the restored values.  To continue the life of the form-bean it would 
either be 
processed to a database or passed to the next 'persistingRequest', or both.

I've written enough.

mc


On 17 Sep 2005 at 13:53, Jan Fetyko wrote:

> Why not put the ID as a hidden field on the form too, so you SAVE action can 
> read it from the request and update the record with the ID ? It's not hard at 
> all.
> 
> J
> 
> 
> On Mon, 12 Sep 2005 13:48:45 +1000
> "Murray Collingwood" <[EMAIL PROTECTED]> wrote:
> 
> > Hi folks
> > 
> > Getting back to some operational questions...
> > 
> > I want to edit some fields on a record in my database.  I have a form bean 
> > which 
> > contains all of these fields plus a bunch of other fields that I won't be 
> > needing on the 
> > edit form.  One of the fields I don't update is the ID property, it is my 
> > PRIMARY 
KEY 
> > and shouldn't be edited.
> > 
> > So I create my DataEditForm action, my DataEdit.jsp and my DataEditSave 
> > action.
> > 
> > DataEditForm action retrieves the record (by ID, say "27") from the 
> > database and 
> > populates my form bean, saving it as a request attribute.
> > 
> > DataEdit.jsp displays just one text field from this bean (the current value 
> > of the field 
is 
> > displayed in this textbox) and I can edit it quite normally.
> > 
> > DataEditSave action receives the form after editing but fails to update the 
> > record as 
the 
> > ID value now reflects "0" instead of "27".
> > 
> > It seems to me that my DataEdit.jsp is dealing with 2 form beans, a 
> > pre-edit version 
that 
> > contains all of the data and a post-edit version that only contains the 
> > information 
from 
> > the html form.
> > 
> > I know I could create "html:hidden" tags for all of the other fields, 
> > however this does 
> > seem a little arcane.  I'm wondering if there is another option such as the 
> > form bean 
> > being saved pre-edit and restored post-edit and the fields from the html 
> > form then 
being 
> > updated again my form bean before being passed to my DataEditSave action?  
This 
> > would allow all of the unused fields to retain their true values.
> > 
> > I guess pushing the form bean into the session would do this, but session 
> > variables 
for a 
> > request le

Re: Cannot find bean" error" in any scope / Error

2005-09-17 Thread Laurie Harper

R. Markham wrote:

I get following error if I push the submit button. I get following error
message

javax.servlet.ServletException: Cannot find bean error in any scope
 
I have following in my JSP File


  
Lastname


   
  
 



I want to produce an error message beside the input field if the input field
is empty. If I delete the line  the program
works but there is no error message


Looks right to me... Is that the only place in your JSP that references 
a bean named 'error'? Is deleting that one line the only difference 
between getting the error and not?


What version of Struts are you using? AFAIK, the body of the messages 
tag should only be evaluated if there are messages to display, and the 
scripting variable named by 'id' should always be defined. You could try 
explicitly telling bean:write to look in page scope, though that 
shouldn't be necessary.


L.


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



Re: FormDef [was Re: I remember now why I said I usually use my VO in my ActionForm]

2005-09-17 Thread Laurie Harper
No, though to be honest I didn't try very hard; I found another route to 
achieving what I needed and never came back to look further at FormDef.



L.

Ted Husted wrote:

Just curious, Laurie. Did you ever find a way to use FormDef within
your constraints?

On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote:


Hubert Rabago wrote:


On 7/16/05, Laurie Harper <[EMAIL PROTECTED]> wrote:


I then fill the form in using a JSP tag if
necessary (i.e. the first time the form is displayed, I call a tag to
populate it).

So will the techniques described in the article work with this scheme?


It probably won't.  For one thing, the FormDef set/getFormUtils
methods need resources available to the Action object, such as the
ActionMapping.


Damn, that's pretty much a deal-breaker for me, since I have a requirement
to avoid using 'setup' actions in front of my JSPs. I'll take a look at
FormDef anyway and see if there's any way round it, but it sounds like I'm
SOL on this one!...

L.



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



Cannot find bean error in any scope

2005-09-17 Thread R. Markham
I get following error if I push the submit button. 

 

javax.servlet.ServletException: Cannot find bean error in any scope
 
I have following in my JSP File
 

  

Lastname





   

  

 





I want to produce an error message beside the input field if the input field
is empty. If I delete the line  the program
works but there is no error message

 
Any idea?
 
Richard Markham
 

 



Re: AW: AW: Cannot find ActionMappings or ActionFormBeans

2005-09-17 Thread Dave Newton

R. Markham wrote:


If the attribute of the property name does not exists in the Action Mapping
list the program will not work.
 

I believe that you can name a forward anything you want; they are 
arbitrary strings. At least that's what I've been doing.


Dave



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



AW: AW: Cannot find ActionMappings or ActionFormBeans

2005-09-17 Thread R. Markham
Hi Dave,

If the attribute of the property name does not exists in the Action Mapping
list the program will not work.

I use following code










Regards
Richard Markham

-Ursprüngliche Nachricht-
Von: Dave Newton [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 17. September 2005 20:47
An: Struts Users Mailing List
Betreff: Re: AW: Cannot find ActionMappings or ActionFormBeans

R. Markham wrote:

>Hi!
>Look at your config-struts.xml file. Why do you use
>
>
> 
>
>action path="/DatabaseRetrievalAction"
>type="DatabaseRetrievalAction" input="/index2.jsp"
>
>Change "intro" to ="DatabaseRetrievalAction" or vice versa both names
should
>be equal. And the name of "form action" in index.jsp must be the same too.
>  
>
What will changing the name of the forward do?

>Von: T West [mailto:[EMAIL PROTECTED] 
>Whenever I try to start the Struts program,
>however, I receive this error:
>javax.servlet.ServletException: Cannot find ActionMappings or
>ActionFormBeans collection
>  
>
Do you mean that this exception occurs when you start the app server or 
when you visit a page? If the latter, what page are you visiting?

Dave



-
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: Persistence on a form bean?

2005-09-17 Thread Jan Fetyko
Why not put the ID as a hidden field on the form too, so you SAVE action can 
read it from the request and update the record with the ID ? It's not hard at 
all.

J


On Mon, 12 Sep 2005 13:48:45 +1000
"Murray Collingwood" <[EMAIL PROTECTED]> wrote:

> Hi folks
> 
> Getting back to some operational questions...
> 
> I want to edit some fields on a record in my database.  I have a form bean 
> which 
> contains all of these fields plus a bunch of other fields that I won't be 
> needing on the 
> edit form.  One of the fields I don't update is the ID property, it is my 
> PRIMARY KEY 
> and shouldn't be edited.
> 
> So I create my DataEditForm action, my DataEdit.jsp and my DataEditSave 
> action.
> 
> DataEditForm action retrieves the record (by ID, say "27") from the database 
> and 
> populates my form bean, saving it as a request attribute.
> 
> DataEdit.jsp displays just one text field from this bean (the current value 
> of the field is 
> displayed in this textbox) and I can edit it quite normally.
> 
> DataEditSave action receives the form after editing but fails to update the 
> record as the 
> ID value now reflects "0" instead of "27".
> 
> It seems to me that my DataEdit.jsp is dealing with 2 form beans, a pre-edit 
> version that 
> contains all of the data and a post-edit version that only contains the 
> information from 
> the html form.
> 
> I know I could create "html:hidden" tags for all of the other fields, however 
> this does 
> seem a little arcane.  I'm wondering if there is another option such as the 
> form bean 
> being saved pre-edit and restored post-edit and the fields from the html form 
> then being 
> updated again my form bean before being passed to my DataEditSave action?  
> This 
> would allow all of the unused fields to retain their true values.
> 
> I guess pushing the form bean into the session would do this, but session 
> variables for a 
> request level function is probably not recommended.
> 
> Looking forward to learning...
> 
> 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.21/96 - Release Date: 10/09/2005
> 
> 
> -
> 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: AW: How to pass Session variable to different Webapplication?

2005-09-17 Thread Dave Newton

R. Markham wrote:


How about using scope="session" instead of request in the Action Mapping
Eniity in struts-config.xml
 

That won't accomplish what they want; the original poster wanted to 
share session variables across webapps, and I'm not sure that's possible 
(or legal :)


The original poster could use Struts modules or just consolidate configs 
for each logical section of the app into their own files, or as Wendy 
says use J. Random single sign-on method. If you really want to sahre 
actual variables across webapps I'm not sure how you'd go about that 
unless you stick things into a globally-accessible store and figure out 
a way to update session vars in each webapp.


Dave



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



Re: FormDef [was Re: I remember now why I said I usually use my VO in my ActionForm]

2005-09-17 Thread Ted Husted
Just curious, Laurie. Did you ever find a way to use FormDef within
your constraints?

On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Hubert Rabago wrote:
> > On 7/16/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> >>I then fill the form in using a JSP tag if
> >>necessary (i.e. the first time the form is displayed, I call a tag to
> >>populate it).
> >>
> >>So will the techniques described in the article work with this scheme?
> >
> > It probably won't.  For one thing, the FormDef set/getFormUtils
> > methods need resources available to the Action object, such as the
> > ActionMapping.
> 
> Damn, that's pretty much a deal-breaker for me, since I have a requirement
> to avoid using 'setup' actions in front of my JSPs. I'll take a look at
> FormDef anyway and see if there's any way round it, but it sounds like I'm
> SOL on this one!...
> 
> L.

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



Re: AW: Cannot find ActionMappings or ActionFormBeans

2005-09-17 Thread Dave Newton

R. Markham wrote:


Hi!
Look at your config-struts.xml file. Why do you use

   


action path="/DatabaseRetrievalAction"
type="DatabaseRetrievalAction" input="/index2.jsp"

Change "intro" to ="DatabaseRetrievalAction" or vice versa both names should
be equal. And the name of "form action" in index.jsp must be the same too.
 


What will changing the name of the forward do?

Von: T West [mailto:[EMAIL PROTECTED] 
Whenever I try to start the Struts program,

however, I receive this error:
javax.servlet.ServletException: Cannot find ActionMappings or
ActionFormBeans collection
 

Do you mean that this exception occurs when you start the app server or 
when you visit a page? If the latter, what page are you visiting?


Dave



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



Cannot find bean" error" in any scope / Error

2005-09-17 Thread R. Markham
 

I get following error if I push the submit button. I get following error
message

 

javax.servlet.ServletException: Cannot find bean error in any scope
 
I have following in my JSP File
 

  

Lastname





   

  

 





I want to produce an error message beside the input field if the input field
is empty. If I delete the line  the program
works but there is no error message

 
Any idea?
 
Richard Markham
 

 

 

 



AW: Cannot find ActionMappings or ActionFormBeans

2005-09-17 Thread R. Markham


Hi!
Look at your config-struts.xml file. Why do you use


 

action path="/DatabaseRetrievalAction"
type="DatabaseRetrievalAction" input="/index2.jsp"

Change "intro" to ="DatabaseRetrievalAction" or vice versa both names should
be equal. And the name of "form action" in index.jsp must be the same too.

Regards

Richard



-Ursprüngliche Nachricht-
Von: T West [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 17. September 2005 03:04
An: user@struts.apache.org
Betreff: Cannot find ActionMappings or ActionFormBeans

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(PageContextI
mpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.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:3
24)

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:3
24)

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]


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



Re: Struts ActionForms and DWR/AJAX

2005-09-17 Thread Joe Germuska
I've just recently explored DWR for the first time, and I was quite 
impressed.  However, my take was that of the authors of the page you 
cited -- there's really not much rationale that I can see for doing 
anything specifically with Struts and DWR together.


Good practice for a Struts application would be for your Struts 
action classes to contain a minimum of business logic, and to 
primarily concern themselves with converting strings, the only kind 
of request parameters which can be submitted by HTTP, into whatever 
form is appropriate to your Struts-agnostic application layer.


If you have this kind of organization, than DWR fits at the same 
layer as Struts, and given that it has full access to the 
Servlet-level execution context, it shouldn't need anything specific 
from Struts; your remoted object would do the same thing an action 
does, passing values into your business layer.


The ability for DWR to remote beans defined with Spring makes this 
even easier, because you can make it very easy for the remoted object 
to reference these application-layer service beans.  (You could 
always look them up in a ServletContext or something, but the Spring 
bean lookup is much more elegant.)


The one concession to Struts that I made with my implementation (an 
"add to cart" feature) was to subclass the DWR ExecutionContext 
object to expose a Struts ActionContext object (actually, my own 
subclass of ActionContext) - this can easily be made any time a 
request, response, and servlet context are available, and it allows 
me to maintain a consistent guard against access to session and 
request scoped objects, rather than having to spread a bunch of 
references to String constant attribute names through out my code.


As far as I can tell, DWR and Struts will co-exist peacefully 
together, but without much concern for each other.  Is there a 
specific way in which you need DWR to use an ActionForm?  If there 
is, that may be a sign of a place where you should re-organize the 
responsibilities of various classes in your application.


Joe

At 5:39 PM -0700 9/16/05, Greg Pelly wrote:

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]



--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex


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



Re: javax.servlet.UnavailableException: Parsing error processing resource path

2005-09-17 Thread Laurie Harper
I don't see anything obviously wrong with the struts-client.xml you 
posted, and it's valid according to the DTD... It's possible, though, 
that the config file parsing isn't coping properly with it being 
essentially empty. Since it *is* basically empty, why not just not 
include it?


Alternatively, you could try temporarily defining dummy form-bean, 
action-mapping, etc. items and see if that makes any difference. If that 
fixes it, the chances are there's a bug in the 1.1 config file loading. 
The other thing you could try would be upgrading to 1.2.7 to see if you 
get the same problem there.


L.

Kam Lung Leung wrote:

Hi,
   
I have not been able to figure out why I have the following exception 
from tomcat:

StandardContext[/ClientComponentTier]: Servlet /ClientComponentTier threw 
load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml

The struts-config.xml and the struts-config-client.xml files contain
minimum decleration that are listed in this email.

Any help is greagly appreciated.

Kam Lung Leung

  debug information 
 2005-09-17 10:43:40 WebappLoader[/ClientComponentTier]: Deploy JAR 
/WEB-INF/lib/xercesImpl.jar to /usr/local/catalina/webapps/ClientCom
ponentTier/WEB-INF/lib/xercesImpl.jar
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding random 
number generator class java.security.SecureRandom
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding of random 
number generator has been completed
2005-09-17 10:43:42 
StandardWrapper[/ClientComponentTier:AlertClientActionServet]: Marking servlet 
AlertClientActionServet as unavailab
le
2005-09-17 10:43:42 StandardContext[/ClientComponentTier]: Servlet 
/ClientComponentTier threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml
at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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.catalina.startup.Bootstrap.main(Bootstrap.java:203)

*web.xml   

  
  
AlertClientActionServet
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml, 
/WEB-INF/struts-config-client.xml


  debug
  0


  detail
   

AW: How to pass Session variable to different Webapplication?

2005-09-17 Thread R. Markham
How about using scope="session" instead of request in the Action Mapping
Eniity in struts-config.xml

How it will help.

Regards

Richard Markham


-Ursprüngliche Nachricht-
Von: Martin Burkert [mailto:[EMAIL PROTECTED] 
Gesendet: Samstag, 17. September 2005 13:06
An: Struts Users Mailing List
Betreff: Re: How to pass Session variable to different Webapplication?

On Fri, 2005-09-16 at 16:20 -0700, Wendy Smoak wrote:

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

thx for answering!


I'm using JAAS to logon the user. The JAAS-subject is containing the
users name and credentials.

Craig McClanahan wrote, that I would violate the spec. Is there a design
pattern to solve this problem in a nice way without violating the spec?
- or an other question: how is it possible to split up a big struts
application into small pieces?

thx for any hint

greetings
Martin



-
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: Struts ActionForms and DWR/AJAX

2005-09-17 Thread Laurie Harper

Michael Jouravlev wrote:

On 9/17/05, Laurie Harper <[EMAIL PROTECTED]> wrote:

Correct, Struts makes no distinction between GET and POST requests
(other than transparently doing the extra request parsing for a POST).


What do you mean by "extra request parsing for a POST"? Pulling
parameters from request body instead of the parsing URL from the
header?


Exactly.


About POST and GET: if I am not mistaken, user agent is required to
ask for confirmation if result of POST is reloaded. On the other hand,
I am not sure that this is the spec requirement, maybe not, need to
verify.


Yeah, but that's a browser behaviour and doesn't effect how the request 
is actually handled once the browser submits it.



The sure difference is that redirecting from POST to POST requires
confirmation, while redirecting from POST to GET - does not.


Again, that's a browser behaviour thing rather than an issue with how 
the request gets processed. It's good to keep in mind, though :-)


L.


-
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-17 Thread Laurie Harper

No problem, glad you found it :)

Stephen Hartley wrote:

Hi again Laurie

Sorry for wasting your time, I found the problem with
the help of your hint "this might be caused by changes
elsewhere, such as a super-class".

When I read the superclass again *carefully* I saw
that the subclass was overriding a property.  And
guess what, the property type in the sublass was
different to that in the superclass.  No wonder the
struts tag was confused!!

Thank you very much for your help, and sorry to waste
your time again.

Steve


--- Laurie Harper <[EMAIL PROTECTED]> wrote:



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]










___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com



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



javax.servlet.UnavailableException: Parsing error processing resource path

2005-09-17 Thread Kam Lung Leung
Hi,
   
I have not been able to figure out why I have the following exception 
from tomcat:
StandardContext[/ClientComponentTier]: Servlet /ClientComponentTier threw 
load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml

The struts-config.xml and the struts-config-client.xml files contain
minimum decleration that are listed in this email.

Any help is greagly appreciated.

Kam Lung Leung

  debug information 
 2005-09-17 10:43:40 WebappLoader[/ClientComponentTier]: Deploy JAR 
/WEB-INF/lib/xercesImpl.jar to /usr/local/catalina/webapps/ClientCom
ponentTier/WEB-INF/lib/xercesImpl.jar
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding random 
number generator class java.security.SecureRandom
2005-09-17 10:43:41 StandardManager[/ClientComponentTier]: Seeding of random 
number generator has been completed
2005-09-17 10:43:42 
StandardWrapper[/ClientComponentTier:AlertClientActionServet]: Marking servlet 
AlertClientActionServet as unavailab
le
2005-09-17 10:43:42 StandardContext[/ClientComponentTier]: Servlet 
/ClientComponentTier threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path  
/WEB-INF/struts-config-client.xml
at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at 
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:492)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:400)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
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.catalina.startup.Bootstrap.main(Bootstrap.java:203)

*web.xml   

  
  
AlertClientActionServet
org.apache.struts.action.ActionServlet

  config
  /WEB-INF/struts-config.xml, 
/WEB-INF/struts-config-client.xml


  debug
  0


  detail
  0

1
  


  
AlertClientActionServet
*.do
  

 
  
struts-bean
/WEB-INF/tld/struts-bean.tld
  

  
struts-html
/WEB-INF/tld/struts-html.tld
  

  
struts-logic
/WEB-INF/tld/struts-logic.tld
  

  
  
struts-nested
/WEB-INF/tld/struts-nested.tld
  

  
  
struts-tiles
/WEB-INF/tld/struts-tiles.tld
  
 
struts-template.tld
/WEB-INF/tld/struts-template.tld
  
  
  
/ejb/HomeLocalTag
/WEB-INF/tld/ejbTagLib.tld
  

  
  
/ejb/HomeRemoteTag
/WEB-INF/tld/ejbTagLib.tld
  



   struts-config.xml 


http://

AW: AW: struts on jboss

2005-09-17 Thread Marc Ende
Hi Adam,

hmmm... I always had this problem with the struts.jar. So I decided to
put the jar in the shared lib.
The .war I do deploy is an application wich have connections to an existing
ejb
on the same server but there are no ejb's inside this project. There is only
an
webapp.war and an webapp.jar (which includes the relevant ejb's). And these
both 
archives are not packed in an .ear.

Now I'm deploying the war as an packed, not exploded, archive. This way 
is no problem because the war is packed in an temporary location and this
changes
from deployment to deployment. On undeployment the jboss failes to delete
the previous directory (in cause of a locked struts.jar) but this is no real
problem.

marc
 

> -Ursprüngliche Nachricht-
> Von: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Gesendet: Samstag, 17. September 2005 18:56
> An: Struts Users Mailing List
> Betreff: Re: AW: struts on jboss
> 
> Marc,
> I've never had that problem with JBoss locking up the 
> struts.jar. If it just a webapp with no EJB, then basically 
> you are just using tomcat and I can't see what would make it 
> lock the jars.
> 
> Did you remove the struts.jar from the shared lib dir?
> 
> Marc Ende on 16/09/05 18:49, wrote:
> > 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... :(


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



Re: AW: struts on jboss

2005-09-17 Thread Adam Hardy

Marc,
I've never had that problem with JBoss locking up the struts.jar. If it 
just a webapp with no EJB, then basically you are just using tomcat and 
I can't see what would make it lock the jars.


Did you remove the struts.jar from the shared lib dir?

Marc Ende on 16/09/05 18:49, wrote:

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]





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



RE: how to show data on jsp from bean

2005-09-17 Thread Wojciech Ciesielski
And one more thing - get yourself some good book/manual/tutorial on Struts.
There's plenty of them on o'reilly/amazon/direct connect/emule etc...

It's gonna be much easier ;-)




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



RE: how to show data on jsp from bean

2005-09-17 Thread Wojciech Ciesielski
>  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

1. Create actions:
showMyForm.do (ShowMyFormAction class)
updateMyData.do (UpdateMyDataAction class)

2. Create ActionForm - for example MyForm class/form-name - and assign it to
updateMyData.do mapping in request scope

3. in ShowMyFormAction do something like this:
MyForm prefilledForm = new MyForm();
// ... set data from DB here
Request.setAttribute("MyForm","prefilledForm");

4. on page returned by ShowMyForm use struts HTML taglib:



...






-
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-17 Thread Stephen Hartley
Hi again Laurie

Sorry for wasting your time, I found the problem with
the help of your hint "this might be caused by changes
elsewhere, such as a super-class".

When I read the superclass again *carefully* I saw
that the subclass was overriding a property.  And
guess what, the property type in the sublass was
different to that in the superclass.  No wonder the
struts tag was confused!!

Thank you very much for your help, and sorry to waste
your time again.

Steve


--- Laurie Harper <[EMAIL PROTECTED]> wrote:

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






___ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail 
http://uk.messenger.yahoo.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-17 Thread Stephen Hartley
Hi Laurie

Thanks for your help, but I still don't seem to be
making much progress on this...

Just to clear up the confusion - perhaps it wasn't a
good idea for me to include the link to the Sun forum,
as my problem is not related to changing the JVM.  I
am running v 1.4, and always have been, so suspect
that is not the source of the problem.

As for BeanInfo classes, I don't have any!

Could you expand upon your comment "Bear in mind that
this might be caused by changes elsewhere, such as a 
super-class"  - I've looked in all the superclasses of
the bean whose property I'm trying to access and don't
see anything suspicious.  Could you perhaps give an
example of what might cause a problem in a superclass?

Many thanks again for your help

Steve


--- Laurie Harper <[EMAIL PROTECTED]> wrote:

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




___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



Re: How to pass Session variable to different Webapplication?

2005-09-17 Thread Martin Burkert
On Fri, 2005-09-16 at 16:20 -0700, Wendy Smoak wrote:

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

thx for answering!


I'm using JAAS to logon the user. The JAAS-subject is containing the
users name and credentials.

Craig McClanahan wrote, that I would violate the spec. Is there a design
pattern to solve this problem in a nice way without violating the spec?
- or an other question: how is it possible to split up a big struts
application into small pieces?

thx for any hint

greetings
Martin



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



Re: Struts ActionForms and DWR/AJAX

2005-09-17 Thread Michael Jouravlev
On 9/17/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Frank W. Zammetti wrote:
> > 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?).
> 
> Correct, Struts makes no distinction between GET and POST requests
> (other than transparently doing the extra request parsing for a POST).

What do you mean by "extra request parsing for a POST"? Pulling
parameters from request body instead of the parsing URL from the
header?

About POST and GET: if I am not mistaken, user agent is required to
ask for confirmation if result of POST is reloaded. On the other hand,
I am not sure that this is the spec requirement, maybe not, need to
verify.

The sure difference is that redirecting from POST to POST requires
confirmation, while redirecting from POST to GET - does not.

Michael.

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



how to show data on jsp from bean

2005-09-17 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]



Re: Struts ActionForms and DWR/AJAX

2005-09-17 Thread Laurie Harper

Frank W. Zammetti wrote:
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?).


Correct, Struts makes no distinction between GET and POST requests 
(other than transparently doing the extra request parsing for a POST).


L.


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



Re: recv failed

2005-09-17 Thread Laurie Harper
No idea, that's coming from something in Netbeans. Probably whatever 
HTTP resource it's trying to connect to isn't there.


L.

Murray Collingwood wrote:

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






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



Re: Cannot find ActionMappings or ActionFormBeans

2005-09-17 Thread Laurie Harper
Those aren't startup errors, they're from attempting to access and 
index.jsp. The root of the problem is probably something going wrong on 
startup. What's in your Tomcat log files immediately after Tomcat starts 
(before you try to access the web application)?


L.

T West wrote:

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]