RE: Path Finder

2003-07-30 Thread Steve Raeburn
Place the  tag in the 'head' section of your JSP. Relative paths
will be then be calculated based on the location of your JSP.

Alternatively, use the  tag to rewrite the value of the URL as
a context-relative path.
  " TYPE="text/css">

Steve

> -Original Message-
> From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:35 PM
> To: 'Struts Users Mailing List'
> Subject: Path Finder
>
>
> Hi,
>
> My Jsp page include the followings;
>
>  HREF="../inc/risk.css" TYPE="text/css">
>SRC="../js/Calendar1-82.js">
>SRC="../js/Validate.js">
>SRC="../js/functions.js">
>
> When i call this JSP page there is no problem,
> http://localhost:8080/engine-struts/jsp/yield/verigirisi-struts.jsp
>
> CSS file applied to this page  but when  an error occurs, it goes
> valition pages (struts forwards it).
>
> http://localhost:8080/engine-struts/hesapla.do
>
> In this validation page i saw that my css file is not applied to that
> page. CSS file  is not applied because it doesn't find "../inc/risk.css"
>
> i try all the combination but i couldn't solve it..
>
> Any idea ?
>
> Regards.
>
>
> -
> 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]



Path Finder

2003-07-30 Thread Altug B. Altintas
Hi, 

My Jsp page include the followings;






When i call this JSP page there is no problem,
http://localhost:8080/engine-struts/jsp/yield/verigirisi-struts.jsp

CSS file applied to this page  but when  an error occurs, it goes
valition pages (struts forwards it).

http://localhost:8080/engine-struts/hesapla.do

In this validation page i saw that my css file is not applied to that
page. CSS file  is not applied because it doesn't find "../inc/risk.css"

i try all the combination but i couldn't solve it.. 

Any idea ? 

Regards.


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



Could one figure out the context path in Servlet.init() method?

2003-07-30 Thread Jing Zhou
Hi,

Maybe I overlook something. We can get context path
from HttpServletRequest.getContextPath() at request time.
But could one get the same path when the servlet is
initialized? Or simply say why we do not have an API like
ServletContext.getContextPath()?

Jing
Netspread Carrier
http://www.netspread.com


RE: How to add action errors from action class's execute method

2003-07-30 Thread Steve Raeburn
If you add an error in your action:
  errors.add("username", new
ActionError("error.username.unique",regform.getUsername()));
  ...
  saveErrors(request, errors); // And don't forget to save them ;-)

You can refer to the error by the property name (e.g. "username") in your
JSP
  



This also works with  but it iterates over the
messages/errors exposing each one as a page scope bean. To actually display
the message you use 

This would be the equivalent to the above  example:
  

  

As the 'message' attribute is not specified and it defaults to false,
messages are obtained using the Action.ERROR_KEY (that constant has now move
to org.apache.struts.Globals by the way). Thus, the ActionErrors collection
is accessed.

The 'message' attribute of the messages tag is documented here:



Steve

> -Original Message-
> From: Prashanth.S [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 10:49 PM
> To: Struts Users Mailing List
> Subject: Re: How to add action errors from action class's execute method
>
>
> Hi stephan,
> Even i too dont know abt that option...Another important thing is
> that in  tag u must use {message=true} attribute
> in order for message to get displayed...That thing is not
> specified in docs...I dont know  why
> HTH
> Prashanth
>
> Stephan Wiesner <[EMAIL PROTECTED]> wrote:
> Hi Prashanth,
> thanks that did indeed help. Though I don't understand, why I should not
> use the actionerrors. There certainly should be a way to display a
> selected one, if I can display all?
>
> Stephan
>
>
> Prashanth.S wrote:
>
> >Hi stephan,
> >For ur problem i recommend that u use action messages not actionerrors..
> >http://jakarta.apache.org/struts/api/org/apache/struts/taglib/htm
> l/package-summary.html#doc.Other.messages
> >hope the above link helps..
> >Thanks
> >Prashanth
> >
> >
> >Stephan Wiesner wrote:
> >Hi Anurag,
> >your proposal works for me, but how can I recall the value? I can get at
> >it with but I want to display it by key, not all stored
> >values?
> >
> >Stephan
> >
> >Anurag Garg wrote:
> >
> >
> >
> >>Hi,
> >>
> >>U can create the ActionError object and add them in the
> ActionErrors class
> >>in the action class.
> >>Now to forward the request to some resource add the actionerrors object
> >>method in the sendError().
> >>
> >>Use saveErrors(request,errors) in the action class.
> >>
> >>where errors is an object of type ActionClass.
> >>
> >>Anurag Garg.
> >>
> >>
> >>-Original Message-
> >>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
> >>Sent: Thursday, July 24, 2003 11:36 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: How to add action errors from action class's execute method
> >>
> >>
> >>Hello all,
> >>
> >>How would you add action errors from an action class's execute method?
> >>
> >>I would like to be able to add errors and forward to another resource
> >>without the need to do it in the validate method of the form bean.
> >>
> >>Thanks,
> >>
> >>Joshua
> >>
> >>
> >>
> >>This communication, including attachments, is for the exclusive use of
> >>addressee and may contain proprietary, confidential or privileged
> >>information. If you are not the intended recipient, any use, copying,
> >>disclosure, dissemination or distribution is strictly prohibited. If
> >>you are not the intended recipient, please notify the sender
> >>immediately by return email and delete this communication and
> destroy all
> >>copies.
> >>
> >>
> >>-
> >>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]
> >
> >
> >
> >-
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free, easy-to-use web site design software
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software



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



Re: Need help for design

2003-07-30 Thread Prashanth.S
Hi,
U can use authenticator classes of whatever server u use...Example is to use 
cauchoauthenticator [if u r using resin web server]...etc
Thnks
Prashanth

Anubhav Kale <[EMAIL PROTECTED]> wrote:
Hello

I want to create a simple JSP page with login and password fields. If i/p is correct 
(verified against a database) I should give user access to some JSP pages. If user 
tries to go to these JSP pages directly without entering correct username and password 
then he should be redirected back to login page.

How do I do all this? (I think i need to create some session id and things like that)

Thanks

Anubhav 



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: SSLEXT

2003-07-30 Thread Nagendra Kumar O V S








  hi amit,
  yes, i tried with method=post  but still it appends...
   
  ---Original Message---
   
  
  From: Struts Users Mailing 
  List
  Date: Thursday, July 
  31, 2003 10:48:42 AM
  To: [EMAIL PROTECTED]
  Subject: RE: 
  SSLEXT
   Does it appends the form parameter values even when 
  Method=POST?Regards,Amit.-Original 
  Message-From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]] Sent: 
  Thursday, July 31, 2003 1:13 PMTo: [EMAIL PROTECTED]Subject: 
  SSLEXThi, SSLEXT really works great for me when i 
  switch from "http" to "https".Well when i am in https mode i submit a 
  form as post methods, howeverthe subsequent page is not secured. 
  Obviously the action redirects tohttp mode, that is ok with me but it 
  appends the form parameter valuesto the URL and it is visible in 
  clients browser address bar. I do notwant to see the form parameter 
  values in the Address bar. Does any one experience the same problem 
  and Any idea to solve this willbe greatly appreciated thanks 
  nagi  Nagendra Kumar O V SMember Technical 
  StaffIkigo India Private Ltd.470-B, Road No. 36,Jubilee 
  Hills,Hyderabad 500033Contact(O): 23544671Cell: 
  98482-41789  
  IncrediMail - Email has finally evolved - Click Here 
  -To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED].





	
	
	
	
	
	
	




  IncrediMail - 
Email has finally evolved - Click 
Here



Need help for design

2003-07-30 Thread Anubhav Kale
Hello

I want to create a simple JSP page with login and password fields. If i/p is correct 
(verified against a database) I should give user access to some JSP pages. If user 
tries to go to these JSP pages directly without entering correct username and password 
then he should be redirected back to login page.

How do I do all this? (I think i need to create some session id and things like that)

Thanks

Anubhav  


Re: How to add action errors from action class's execute method--Got the solution

2003-07-30 Thread Prashanth.S
Hi stephan,
Try looking through the following url
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp
Here they have explained how to use actionerrors...I too didnt knew abt this option...
Hope i havent misleaded u...
Thanks
Prashanth
Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not 
use the actionerrors. There certainly should be a way to display a 
selected one, if I can display all?

Stephan


Prashanth.S wrote:

>Hi stephan,
>For ur problem i recommend that u use action messages not actionerrors..
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
>hope the above link helps..
>Thanks
>Prashanth
>
>
>Stephan Wiesner wrote:
>Hi Anurag,
>your proposal works for me, but how can I recall the value? I can get at
>it with but I want to display it by key, not all stored
>values?
>
>Stephan
>
>Anurag Garg wrote:
>
> 
>
>>Hi,
>>
>>U can create the ActionError object and add them in the ActionErrors class
>>in the action class.
>>Now to forward the request to some resource add the actionerrors object
>>method in the sendError().
>>
>>Use saveErrors(request,errors) in the action class.
>>
>>where errors is an object of type ActionClass.
>>
>>Anurag Garg.
>>
>>
>>-Original Message-
>>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 24, 2003 11:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: How to add action errors from action class's execute method
>>
>>
>>Hello all,
>>
>>How would you add action errors from an action class's execute method?
>>
>>I would like to be able to add errors and forward to another resource
>>without the need to do it in the validate method of the form bean.
>>
>>Thanks,
>>
>>Joshua
>>
>>
>>
>>This communication, including attachments, is for the exclusive use of
>>addressee and may contain proprietary, confidential or privileged
>>information. If you are not the intended recipient, any use, copying,
>>disclosure, dissemination or distribution is strictly prohibited. If
>>you are not the intended recipient, please notify the sender
>>immediately by return email and delete this communication and destroy all
>>copies.
>>
>>
>>-
>>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]
>
>
>
>-
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 
>


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Re: How to add action errors from action class's execute method

2003-07-30 Thread Prashanth.S
Hi stephan,
Even i too dont know abt that option...Another important thing is that in 
 tag u must use {message=true} attribute  in order for message to get 
displayed...That thing is not specified in docs...I dont know  why
HTH
Prashanth

Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not 
use the actionerrors. There certainly should be a way to display a 
selected one, if I can display all?

Stephan


Prashanth.S wrote:

>Hi stephan,
>For ur problem i recommend that u use action messages not actionerrors..
>http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
>hope the above link helps..
>Thanks
>Prashanth
>
>
>Stephan Wiesner wrote:
>Hi Anurag,
>your proposal works for me, but how can I recall the value? I can get at
>it with but I want to display it by key, not all stored
>values?
>
>Stephan
>
>Anurag Garg wrote:
>
> 
>
>>Hi,
>>
>>U can create the ActionError object and add them in the ActionErrors class
>>in the action class.
>>Now to forward the request to some resource add the actionerrors object
>>method in the sendError().
>>
>>Use saveErrors(request,errors) in the action class.
>>
>>where errors is an object of type ActionClass.
>>
>>Anurag Garg.
>>
>>
>>-Original Message-
>>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, July 24, 2003 11:36 PM
>>To: [EMAIL PROTECTED]
>>Subject: How to add action errors from action class's execute method
>>
>>
>>Hello all,
>>
>>How would you add action errors from an action class's execute method?
>>
>>I would like to be able to add errors and forward to another resource
>>without the need to do it in the validate method of the form bean.
>>
>>Thanks,
>>
>>Joshua
>>
>>
>>
>>This communication, including attachments, is for the exclusive use of
>>addressee and may contain proprietary, confidential or privileged
>>information. If you are not the intended recipient, any use, copying,
>>disclosure, dissemination or distribution is strictly prohibited. If
>>you are not the intended recipient, please notify the sender
>>immediately by return email and delete this communication and destroy all
>>copies.
>>
>>
>>-
>>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]
>
>
>
>-
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
> 
>


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



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: IPlanet 6 SP2 and Struts 1.1 with templates TLD

2003-07-30 Thread thirumalai . veeraswamy

> -Original Message-
> From: Philippe Van Der Gucht [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 4:32 PM
> To: Struts Users Mailing List
> Subject: Re: IPlanet 6 SP2 and Struts 1.1 with templates TLD
> 
> Philippe Van Der Gucht wrote:
> > Hello,
> >
> > Another unlucky one trying to get it to work on IPlanet...
> 
> It would seem that the problem is classpath related.
> 
> I can't seem to make struts find the application resources files...
> 
> I get this when I'm trying to write a message:
> ???en_US.test???


See reply from craig - message no 86721


> 
> 
> Thanks to all who tried to help,
> Philippe.


Best Regards
Thiru
This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

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

Missing resources attribute org.apache.struts.action.MESSAGE

2003-07-30 Thread gowri shankar
hi,
when i tried to run my first web application using
struts, i got the following error, i got this example
application from
http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp

i have been trying to fix this error for quite some
time and I would really be glad if someone helps me
out.





type Exception report

message Internal Server Error

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

exception 

javax.servlet.ServletException: Missing resources
attribute org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
at
org.apache.jsp.LoginView$jsp._jspService(LoginView$jsp.java:106)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
at java.lang.Thread.run(Thread.java:484)


root cause 

javax.servlet.jsp.JspException: Missing resources
attribute org.apache.struts.action.MESSAGE
at
org.apache.struts.taglib.MessageTag.doStartTag(MessageTag.java:360)
at
org.apache.jsp.LoginView$jsp._jspService(LoginView$jsp.java:83)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.

Re: How to add action errors from action class's execute method

2003-07-30 Thread Stephan Wiesner
Hi Prashanth,
thanks that did indeed help. Though I don't understand, why I should not 
use the actionerrors. There certainly should be a way to display a 
selected one, if I can display all?

Stephan

Prashanth.S wrote:

Hi stephan,
For ur problem i recommend that u use action messages not actionerrors..
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
hope the above link helps..
Thanks
Prashanth
Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Anurag,
your proposal works for me, but how can I recall the value? I can get at
it with but I want to display it by key, not all stored
values?
Stephan

Anurag Garg wrote:

 

Hi,

U can create the ActionError object and add them in the ActionErrors class
in the action class.
Now to forward the request to some resource add the actionerrors object
method in the sendError().
Use saveErrors(request,errors) in the action class.

where errors is an object of type ActionClass.

Anurag Garg.

-Original Message-
From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 11:36 PM
To: [EMAIL PROTECTED]
Subject: How to add action errors from action class's execute method
Hello all,

How would you add action errors from an action class's execute method?

I would like to be able to add errors and forward to another resource
without the need to do it in the validate method of the form bean.
Thanks,

Joshua



This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.
-
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]


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
 



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


Re: How to add action errors from action class's execute method

2003-07-30 Thread Prashanth.S
Hi stephan,
For ur problem i recommend that u use action messages not actionerrors..
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#doc.Other.messages
hope the above link helps..
Thanks
Prashanth


Stephan Wiesner <[EMAIL PROTECTED]> wrote:
Hi Anurag,
your proposal works for me, but how can I recall the value? I can get at
it with but I want to display it by key, not all stored
values?

Stephan

Anurag Garg wrote:

>Hi,
>
> U can create the ActionError object and add them in the ActionErrors class
>in the action class.
> Now to forward the request to some resource add the actionerrors object
>method in the sendError().
>
> Use saveErrors(request,errors) in the action class.
>
> where errors is an object of type ActionClass.
>
>Anurag Garg.
>
>
>-Original Message-
>From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 24, 2003 11:36 PM
>To: [EMAIL PROTECTED]
>Subject: How to add action errors from action class's execute method
>
>
>Hello all,
>
>How would you add action errors from an action class's execute method?
>
>I would like to be able to add errors and forward to another resource
>without the need to do it in the validate method of the form bean.
>
>Thanks,
>
>Joshua
>
>
>
>This communication, including attachments, is for the exclusive use of
>addressee and may contain proprietary, confidential or privileged
>information. If you are not the intended recipient, any use, copying,
>disclosure, dissemination or distribution is strictly prohibited. If
>you are not the intended recipient, please notify the sender
>immediately by return email and delete this communication and destroy all
>copies.
>
>
>-
>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]



-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

RE: SSLEXT

2003-07-30 Thread Amit Rana
Does it appends the form parameter values even when Method=POST?

Regards,
Amit.

-Original Message-
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 1:13 PM
To: [EMAIL PROTECTED]
Subject: SSLEXT

hi,
 
SSLEXT really works great for me when i switch from "http" to "https".
Well when i am in https mode i submit a form as post methods, however
the subsequent page is not secured. Obviously the action redirects to
http mode, that is ok with me but it appends the form parameter values
to the URL and it is visible in clients browser address bar. I do not
want to see the form parameter values in the Address bar. 
Does any one experience the same problem and Any idea to solve this will
be greatly appreciated 
thanks 
nagi
 
 
Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789





  IncrediMail - Email has finally evolved - Click Here 


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



RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
Well, I managed to get it running but I'm definitely not a convert to
Netbeans :-(

  - In Netbeans, go to the Runtime tab and expand the Explorer view until
you see the 'Internal Tomcat' server.
  - Right click on it and change the IDE Integration Mode from Full to
Minimum.

That seems to get it working. You could also look at the External Tomcat
Server feature as an alternative. There's information in the application
Help.

I think this  is the
cause of the problem. In any case, this issue is with Netbeans integration
of Tomcat and not with Struts.

Related information:
James Mitchell has written a guide to setting up a Struts project in
Netbeans (version 3.4)
. He's using Ant to
build and deploy the web application so that probably gets round the
problems by avoiding the IDE's build/deploy features.

If you have access to WebSphere Studio it is IMHO a *much* more pleasant
experience than Netbeans and importing a WAR is straightforward. I haven't
tried Eclipse (on which Websphere Studio is based) with the Sysdeo plugin
for Tomcat, but that would be a cheaper (free!) option than WS Studio.

Hope this works for you... now where's that uninstall option :-)

Steve

> -Original Message-
> From: Steve Raeburn [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 7:12 PM
> To: Struts Users Mailing List
> Subject: RE: struts-el example app not working?
>
>
> I'll try to take a look at Netbeans sometime, but it may not be for a few
> days. If I have any success I'll post back to the list and copy
> you. If, in
> the meantime you find the problem, do post the result here.
>
> Steve
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 5:51 PM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: struts-el example app not working?
> >
> >
> > Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> > struts-el-exercise-taglib.war through
> > the tomcat manager and no problems.
> > Barry
> >
> > - Original Message -
> > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 4:27 PM
> > Subject: RE: struts-el example app not working?
> >
> >
> > > 4.0.6 works for me. I don't remember the details, but I
> *think* Netbeans
> > has
> > > cropped up as a problem before.
> > > If you can, try it with a standalone version of Tomcat and
> > check the mail
> > > archives for Netbeans issues.
> > >
> > > Steve
> > >
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 4:06 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: struts-el example app not working?
> > > >
> > > >
> > > > I am running Tomcat 4.0xx
> > > > (using netbeans 3.5 with Tomcat bundle)
> > > >
> > > > Barry
> > > >
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > > Subject: RE: struts-el example app not working?
> > > >
> > > >
> > > > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > > > >
> > > > > What container are you running on?
> > > > >
> > > > > Steve
> > > > >
> > > > > > -Original Message-
> > > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > > Sent: July 30, 2003 3:52 PM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: struts-el example app not working?
> > > > > >
> > > > > >
> > > > > > Hello,
> > > > > >
> > > > > > When testing the struts-el example I get the following error.
> > > > > > The problem goes away
> > > > > > if I remove:
> > > > > >
> > > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"
> prefix="html-el" %>
> > > > > >
> > > > > > Of course this is useless because the html-el tags do not
> > function.
> > > > > >
> > > > > > I have even tried incorporating the struts-html-el in my
> > own app and
> > > > > > included all jars from the struts 1.1 release, defined
> > the el tld's
> > in
> > > > my
> > > > > > web.xml and I get the same exact error.  Same partial
> solution if
> > > > > > I remove the
> > > > > >
> > > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"
> prefix="html-el" %>
> > > > > >
> > > > > > the error goes away and the jsp page is displayed and of
> > > > course without
> > > > > > the properly generated html.
> > > > > >
> > > > > > Appreciate any suggestions
> > > > > >
> > > > > > Barry
> > > > > >
> > > > > >
> > > > > > I get the following error:
> > > > > >
> > > > > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > > > > at java.lang.Class.forName0(Native Method)
> > > > > > at java.lang.Class.forName(Class.java:141)
> > > > > > at
> > > > > >
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(

[OT] Problem with html-el and JSTL

2003-07-30 Thread Charles Canning
Hi,

I have a form using html-el and jstl. I have a loop inside the form


 
  
   
  
  

  
 
 
  
  
  
 



The forEach gets the two objects oin the list, but the  tags return
empty strings? Does anyone know what might be causing this. If I do a  it prints the address of a jstl object. I know this is
slightly off-topic, but not sure whereelse to look. Thanks.

Chuck


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



struts 1.0.2 - application deployed in root (/) gives invalid form actions(//) in iPlanet/Sun ONE Web Server

2003-07-30 Thread thirumalai . veeraswamy
Hi,

  In struts 1.0.2, I have deployed an application in the root (/)
instead of virtual folder. In this case my form actions rendered as
//. Because of this the browser assumes I have given some web
site name and navigates to http:// instead of
http:///.





This generates the following html code



When I saw the html:form tag class, the following code does it

protected String getActionMappingURL() {

StringBuffer value = new StringBuffer(request.getContextPath());
// it gives "/"
...
  String actionMapping = getActionMappingName();
  if (servletMapping.startsWith("*.")) {
  value.append(actionMapping); // in struts-config /execute_report,
result is //execute_report.do
  value.append(servletMapping.substring(1));
  } else if (servletMapping.endsWith("/*")) {
 value.append(servletMapping.substring
(0, servletMapping.length() - 2));
 value.append(actionMapping);
 }
  if (queryString != null)
  value.append(queryString);
...
 

  Do I need to change any configuration for this to work? As of now I am
testing in a virtual folder setup.

Best Regards,
Thiru

This e-Mail may contain proprietary and confidential information and is sent for the 
intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you 
are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment 
other than by its intended recipient/s is strictly prohibited.

Visit Us at http://www.polaris.co.in

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

Re: How to add action errors from action class's execute method

2003-07-30 Thread Stephan Wiesner
Hi Anurag,
your proposal works for me, but how can I recall the value? I can get at
it with  but I want to display it by key, not all stored
values?
Stephan

Anurag Garg wrote:

Hi,

U can create the ActionError object and add them in the ActionErrors class
in the action class.
Now to forward the request to some resource add the actionerrors object
method in the sendError().
	Use saveErrors(request,errors) in the action class.

	where errors is an object of type ActionClass.

Anurag Garg.

-Original Message-
From: White, Joshua A (HTSC, CASD) [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 11:36 PM
To: [EMAIL PROTECTED]
Subject: How to add action errors from action class's execute method
Hello all,

How would you add action errors from an action class's execute method?

I would like to be able to add errors and forward to another resource
without the need to do it in the validate method of the form bean.
Thanks,

Joshua



This communication, including attachments, is for the exclusive use of
addressee and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, any use, copying,
disclosure, dissemination or distribution is strictly prohibited. If
you are not the intended recipient, please notify the sender
immediately by return email and delete this communication and destroy all
copies.
-
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]


Struts and Jetspeed

2003-07-30 Thread jakarta-lists
Hello,
   Has anyone successfully use Struts with Jetspeed?  I'm looking into 
the possiblilty of having jetspeed do the authentication, templating and 
layout.. while struts will handle the control of the app. It sounds like 
a good idea to me, but I haven't worked with struts enough yet to know 
for sure and I would like to know about pitfalls if any.

Jay

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


SSLEXT

2003-07-30 Thread Nagendra Kumar O V S





  
  

  hi,
   
  SSLEXT really works great for me when i switch from "http" to 
  "https". Well when i am in https mode i submit a form as post methods, 
  however the subsequent page is not secured. Obviously the action redirects 
  to http mode, that is ok with me but it appends the form parameter values 
  to the URL and it is visible in clients browser address bar. I do not want 
  to see the form parameter values in the Address bar. 
  Does any one experience the same problem and Any idea to solve this 
  will be greatly appreciated 
  thanks nagi
   
   
  Nagendra Kumar O V S
  Member Technical Staff
  Ikigo India Private Ltd.
  470-B, Road No. 36,
  Jubilee Hills,
  Hyderabad 500033
  Contact(O): 23544671
  Cell: 98482-41789
  

  


  
  
    IncrediMail - 
Email has finally evolved - Click 
Here



RE: [OT] Best super-class for context handling.

2003-07-30 Thread Andrew Hill

InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");


Thats fine if your in an action, but down in your business classes you dont
want to be dependant on the servlet api classes.

Obviously the trick is to have some kind of interface (which in my apps I
usually name "IStreamSource") that will provide a stream when passed some
kind of url (or even more abstract key mapped to a url internally) and will
allow the other classes to be independent of whatever environment they are
in (as one would have different implementations for different environments)
when it comes to reading files. (The servlet version would simply wrap a
call to getResourceAsStream on its reference to the servlet context)

One thing Im not sure about is whether it is ok to hang onto a reference to
the servlet context in this streamsource object (so that it can be shared
between requests and not have to be passed in method parameters all over the
place). I dont think that would work too well in a distributed environment
right? So we need to provide a new streamsource instance for each request
and pass it to any class that needs it or that might feel like calling some
other class that might need it (ad infinitum)... (?)

It would be nicer for the classes that need an IStreamSource instance to be
able to get them from somewhere themselves, but how to achieve this without
exposing the servlet api stuff to them?

What is the best practice here?

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, 31 July 2003 00:34
To: Struts Users Mailing List
Subject: Re: [OT] Best super-class for context handling.




On Wed, 30 Jul 2003, Simon Kelly wrote:

> Date: Wed, 30 Jul 2003 15:47:55 +0200
> From: Simon Kelly <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT] Best super-class for context handling.
>
> Ah, right.
>
> Not sure whether that's what I'm after.
>
> Here's a better explination.
>
> I am using files that are contained within the /WEB-INF/ dir within the
web
> application to hold information required by the business logic. These
files
> are not part of the controller or view but are required to generate the
> content data for the action classes. So I need something that will get the
> paths regardless of the enviroment they are in. I have chosen to pass all
> file names within the business logic in the form /WEB-INF/dir/file.x and
> have been using context.getRealPath() [or the correct method if that's
> wrong] to get the path name (which I had thought would be ok as it will
> always return the correct path regardless of where the webapp is
deployed).
>
> Is this wrong, and is there a better way to do it?
>

Assuming you're in an Action, do this:

InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");

It will be portable everywhere, even if you end up running on containers
that don't expand your webapp into an unpacked directory -- in those
environments, getRealPath() will return null.

> Cheers
>
> Simon
>

Craig

-
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: Transaction Token

2003-07-30 Thread manglu
Joshua,

If the token is invalid you tell the User that they might have attempted 
 multiple submissions etc via an error page

Manglu



Joshua White wrote:
And if the token is not valide, do you redirect them to an error page?
 
 

manglu <[EMAIL PROTECTED]> wrote:
The Trans token is fairly SImple
Before a form is sent to the User in your action class make a 
saveToken(request) call. When the form is displayed on the client side 
there is a token attached which is sent along with the form on a submit 
by the Client

When a call is received the token (sent by the Client) is compared with 
it's contents in Session

via the isValidToken() which return true if there is a match else it 
returns false.

In summary

before sending form to user issue saveToken(request)

and before processing issue a isValidToken() to see if the token is valid

HTH

Manglu



-
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: Help needed in Struts deployment on Weblogic 8.1

2003-07-30 Thread souravm
Hi Rajendra,

I'm using ant.

I'm specifying .war properly in application.xml.

I didn't understand which lib you are referring to for specifying the
struts.jar. Might be that is the problem. Could you please explain it
again ?

Regards,
Sourav

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, July 30, 2003 9:10 PM
To: Struts Users Mailing List
Subject: RE: Help needed in Struts deployment on Weblogic 8.1


the ear should know where the war  is.
Are you using ant ?
Where you make your web app... make sure you include struts.jat in   
  com> cc:

   Subject:  RE: Help needed
in Struts deployment on Weblogic 8.1  
  30/07/2003 08:46

  PM

  Please respond to

  "Struts Users

  Mailing List"

 

 





Hi Rajendra,

The problem is - f I only deploy the .war of my application. It works
fine. However, if I deploy the same .war within a .ear file, the error
appears.

Regards,
Sourav

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, July 30, 2003 6:52 PM
To: Struts Users Mailing List
Subject: Re: Help needed in Struts deployment on Weblogic 8.1


This note might help:

Appservers are not meant to make everything deployed on them accessible
to
the classpath of everything else. You still need to tell it where things
lie. I'll assume that the servlet is in a WAR file, and the WAR file, in
turn, is packaged in an EAR file, like this:
 theEar.ear
 |-- theEjb.jar
 |-- theWar.war
 |-- lib/libJar.jar

theWar.war then, in order to find the EJB, needs to have a MANIFEST.MF
file
in it, with a Class-Path entry of theEjb.jar (the packaging as according
to
the relative locations in the EAR file).


If you have a class that doesn't live in either the EJB jar or the WAR
archive, then you should package that up into a jar file, and put it in
the
EAR (like lib/libJar.jar). Then, extend the Class-Path entry for
theWar.war
to include lib/libJar.jar. Likewise, if the EJB jar needs it, extend the
Class-Path entry in it's MANIFEST.MF file.


These issues are covered in the J2EE 1.3 spec, and the Java Extension
Mechanism Spec. (J2EE 1.2 was meant to use this as well, but it was only
implicit, not explicit.)

thanks
-raj





  "Navneet Saraogi"

  <[EMAIL PROTECTED]To:
[EMAIL PROTECTED]

  nfosys.com>   cc:

Subject:  Help needed in
Struts deployment on Weblogic 8.1
  30/07/2003 06:40

  PM

  Please respond to

  "Struts Users

  Mailing List"









Hi,
 We've a application that uses Struts 1.0 & Ejb's... This
application is deployed on Weblogic 8.1 on a Windows XP machine... We've
created an ear for the application and deployed it using the admin
console... The familiar classNotFound issue has been hauting us for some
time... Initially I placed the struts.jar in the WEB-INF\lib of the web
module(web.war) and deployed only the web module... It was working fine
till then... Then I added a ejb module(ejb.jar) and created a app.ear
using these files... This is when the problem started... Initially the
ActionForm class of the struts package was not getiing loaded... We
moved the struts.jar from the web-inf\lib to applib folder of the ear...
This issue was resolved but then the classes present in the .war files
were not getting loaded...
 We've other jar files that were initially present in the
WEB-INF\lib folder which were also not getting loaded... We then moved
all the jar files to the outer most ear... Even then the issue was not
resolved... We added the MANIFEST.MF file to the web.war & ejb.jar
specifying the classpath for the jar files... No solution still... Next
we added the classpath to the MANIFEST.MF file of the ear... Still no
solution... We tried probably every possible permutation & combination
of placing the jar files in the various modules but some classes never
get loaded... What is the solution to this problem??  We are using a
evaluation copy of Weblogic... Is it because of that??? If not, is it an
inherent problem with struts 1.0 (in this case should we use struts
1.1??)

Any help in this matter would be welcomed...

Navneet Saraogi

-
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-el example app not working?

2003-07-30 Thread Steve Raeburn
I'll try to take a look at Netbeans sometime, but it may not be for a few
days. If I have any success I'll post back to the list and copy you. If, in
the meantime you find the problem, do post the result here.

Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 5:51 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: struts-el example app not working?
>
>
> Yep the stand alone (Tomcat 4.1) works fine.  Just install the
> struts-el-exercise-taglib.war through
> the tomcat manager and no problems.
> Barry
>
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 4:27 PM
> Subject: RE: struts-el example app not working?
>
>
> > 4.0.6 works for me. I don't remember the details, but I *think* Netbeans
> has
> > cropped up as a problem before.
> > If you can, try it with a standalone version of Tomcat and
> check the mail
> > archives for Netbeans issues.
> >
> > Steve
> >
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 4:06 PM
> > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > Subject: Re: struts-el example app not working?
> > >
> > >
> > > I am running Tomcat 4.0xx
> > > (using netbeans 3.5 with Tomcat bundle)
> > >
> > > Barry
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, July 30, 2003 4:03 PM
> > > Subject: RE: struts-el example app not working?
> > >
> > >
> > > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > > >
> > > > What container are you running on?
> > > >
> > > > Steve
> > > >
> > > > > -Original Message-
> > > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > > Sent: July 30, 2003 3:52 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: struts-el example app not working?
> > > > >
> > > > >
> > > > > Hello,
> > > > >
> > > > > When testing the struts-el example I get the following error.
> > > > > The problem goes away
> > > > > if I remove:
> > > > >
> > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > > >
> > > > > Of course this is useless because the html-el tags do not
> function.
> > > > >
> > > > > I have even tried incorporating the struts-html-el in my
> own app and
> > > > > included all jars from the struts 1.1 release, defined
> the el tld's
> in
> > > my
> > > > > web.xml and I get the same exact error.  Same partial solution if
> > > > > I remove the
> > > > >
> > > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > > >
> > > > > the error goes away and the jsp page is displayed and of
> > > course without
> > > > > the properly generated html.
> > > > >
> > > > > Appreciate any suggestions
> > > > >
> > > > > Barry
> > > > >
> > > > >
> > > > > I get the following error:
> > > > >
> > > > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > > > at java.lang.Class.forName0(Native Method)
> > > > > at java.lang.Class.forName(Class.java:141)
> > > > > at
> > > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > > > > BeanInfo.java:88)
> > > > > at
> > > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > > > > iptors(ELLinkTagBeanInfo.java:88)
> > > > > at
> > > > >
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > > > > at
> java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > > > > at
> java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > > > > at
> > > > >
> > >
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> > > > > at
> > > > > org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> > > > > r.java:146)
> > > > > at
> > > > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> > > > > enerator(AnalyzerParseEventListener.java:154)
> > > > > at
> > > > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> > > > > leTagBegin(AnalyzerParseEventListener.java:962)
> > > > > at
> > > > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > > > atingListener.java:221)
> > > > > at
> > > > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > > > atingListener.java:216)
> > > > > at
> > > org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > > > > at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > > > > at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > > > > at
> org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > > > > at
> > > > > org.apache.jasper.compiler.ParserController.parse(ParserController
> > > > > .java:214)

RE: Struts Action in Welcome File List

2003-07-30 Thread John Cavacas
Can you deploy and run correctly struts-blank.war? If you can bring up
http://localhost:8080/struts-blank/ then its not a Struts problem.

Check the slash on your action. If your action is defined like so:



Specifying  should also work. I
think...

John



This communication is intended for the use of the individual(s) or entity it
was addressed to and may contain confidential and/or privileged information.
If the reader of this transmission is not the intended recipient, you are
hereby notified that any review, dissemination, distribution or copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this communication
from your system(s) to which it was sent and/or replicated to. (c) 2003
Sapiens Americas Corp.

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



Re: Displaying is easy, capturing is not

2003-07-30 Thread Ajay Patil
Dear Rick,

I had implemented the JSP as follows:
The top part of JSP shows the search form.
The bottom part of JSP shows the results.

The  tag is used to show the results
(the bottom part is not displayed if the Results bean is NULL)

Initially, Results bean is NULL and user will see only the top
part (Search form).

When the user clicks on Search, the Results bean gets initialized,
and the user sees both Search and Results.

When the user clicks on "Reset", the Results bean is set to NULL.
The bottom part will disappear because of the  tag.

I had posted the code as an example yesterday. Please look in the
archives.

I hope that my above explanation is not ambigious.
Ajay

> Hi, guys:

> I have a list for user to select, when user select one
> item from the list, and hit search button, a results
> table will be displayed at the bottom half of the
> page. Now, if user selects another item from the list,
> I want to refresh the table (or page?) and make the
> results table disappear before user hit search button
> again. I have no idea to do this. Can anyone give some
> thoughts on this?

> regards,
> rick


Ajay Patil
Vertex Software Pvt. Ltd.
[EMAIL PROTECTED]
http://www.vertex.co.in




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



Re: [struts-atlanta] New file uploaded to struts-atlanta

2003-07-30 Thread James Mitchell
I also added this to the sourceforge site for easy download.

http://sourceforge.net/projects/struts


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 8:55 PM
Subject: [struts-atlanta] New file uploaded to struts-atlanta


>
> Hello,
>
> This email message is a notification to let you know that
> a file has been uploaded to the Files area of the struts-atlanta
> group.
>
>   File: /jstl-and-struts.PDF
>   Uploaded by : bsiggelkow <[EMAIL PROTECTED]>
>   Description : Bill's JSTL and Struts presentation
>
> You can access this file at the URL
>
> http://groups.yahoo.com/group/struts-atlanta/files/jstl-and-struts.PDF
>
> To learn more about file sharing for your group, please visit
>
> http://help.yahoo.com/help/us/groups/files
>
> Regards,
>
> bsiggelkow <[EMAIL PROTECTED]>
>
>
>
>
>
>
>  Yahoo! Groups Sponsor -~-->
> Free shipping on all inkjet cartridge & refill kit orders to US & Canada.
Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
> http://www.c1tracking.com/l.asp?cid=5510
> http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/nhFolB/TM
> -~->
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>


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



Re: struts-el example app not working?

2003-07-30 Thread struts
Yep the stand alone (Tomcat 4.1) works fine.  Just install the
struts-el-exercise-taglib.war through
the tomcat manager and no problems.
Barry

- Original Message -
From: "Steve Raeburn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 4:27 PM
Subject: RE: struts-el example app not working?


> 4.0.6 works for me. I don't remember the details, but I *think* Netbeans
has
> cropped up as a problem before.
> If you can, try it with a standalone version of Tomcat and check the mail
> archives for Netbeans issues.
>
> Steve
>
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 4:06 PM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: struts-el example app not working?
> >
> >
> > I am running Tomcat 4.0xx
> > (using netbeans 3.5 with Tomcat bundle)
> >
> > Barry
> >
> >
> >
> > - Original Message -
> > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 4:03 PM
> > Subject: RE: struts-el example app not working?
> >
> >
> > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > >
> > > What container are you running on?
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 3:52 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: struts-el example app not working?
> > > >
> > > >
> > > > Hello,
> > > >
> > > > When testing the struts-el example I get the following error.
> > > > The problem goes away
> > > > if I remove:
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > >
> > > > Of course this is useless because the html-el tags do not function.
> > > >
> > > > I have even tried incorporating the struts-html-el in my own app and
> > > > included all jars from the struts 1.1 release, defined the el tld's
in
> > my
> > > > web.xml and I get the same exact error.  Same partial solution if
> > > > I remove the
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > >
> > > > the error goes away and the jsp page is displayed and of
> > course without
> > > > the properly generated html.
> > > >
> > > > Appreciate any suggestions
> > > >
> > > > Barry
> > > >
> > > >
> > > > I get the following error:
> > > >
> > > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:141)
> > > > at
> > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > > > BeanInfo.java:88)
> > > > at
> > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > > > iptors(ELLinkTagBeanInfo.java:88)
> > > > at
> > > > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > > > at
java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > > > at
java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > > > at
> > > >
> >
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> > > > at
> > > > org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> > > > r.java:146)
> > > > at
> > > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> > > > enerator(AnalyzerParseEventListener.java:154)
> > > > at
> > > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> > > > leTagBegin(AnalyzerParseEventListener.java:962)
> > > > at
> > > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > > atingListener.java:221)
> > > > at
> > > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > > atingListener.java:216)
> > > > at
> > org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > > > at
> > > > org.apache.jasper.compiler.ParserController.parse(ParserController
> > > > .java:214)
> > > > at
> > > > org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> > > > JspParserImpl.java:126)
> > > > at
> > > > org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> > > > rserImpl.java:93)
> > > > at
> > > > org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> > > > er(JspDataObject.java:297)
> > > > at
> > > > org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJo
> > > > b(JspCompilerSupport.java:62)
> > > > at
> > > > org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCo
> > > > mpileAction.java:361)
> > > > at
> > > > org.openide.actions.AbstractComp

Re: struts-el example app not working?

2003-07-30 Thread struts
May have to give that a try.

Thanks,
Barry
- Original Message -
From: "Steve Raeburn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 4:27 PM
Subject: RE: struts-el example app not working?


> 4.0.6 works for me. I don't remember the details, but I *think* Netbeans
has
> cropped up as a problem before.
> If you can, try it with a standalone version of Tomcat and check the mail
> archives for Netbeans issues.
>
> Steve
>
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 4:06 PM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: struts-el example app not working?
> >
> >
> > I am running Tomcat 4.0xx
> > (using netbeans 3.5 with Tomcat bundle)
> >
> > Barry
> >
> >
> >
> > - Original Message -
> > From: "Steve Raeburn" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 30, 2003 4:03 PM
> > Subject: RE: struts-el example app not working?
> >
> >
> > > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> > >
> > > What container are you running on?
> > >
> > > Steve
> > >
> > > > -Original Message-
> > > > From: struts [mailto:[EMAIL PROTECTED]
> > > > Sent: July 30, 2003 3:52 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: struts-el example app not working?
> > > >
> > > >
> > > > Hello,
> > > >
> > > > When testing the struts-el example I get the following error.
> > > > The problem goes away
> > > > if I remove:
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > >
> > > > Of course this is useless because the html-el tags do not function.
> > > >
> > > > I have even tried incorporating the struts-html-el in my own app and
> > > > included all jars from the struts 1.1 release, defined the el tld's
in
> > my
> > > > web.xml and I get the same exact error.  Same partial solution if
> > > > I remove the
> > > >
> > > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > > >
> > > > the error goes away and the jsp page is displayed and of
> > course without
> > > > the properly generated html.
> > > >
> > > > Appreciate any suggestions
> > > >
> > > > Barry
> > > >
> > > >
> > > > I get the following error:
> > > >
> > > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > > at java.lang.Class.forName0(Native Method)
> > > > at java.lang.Class.forName(Class.java:141)
> > > > at
> > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > > > BeanInfo.java:88)
> > > > at
> > > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > > > iptors(ELLinkTagBeanInfo.java:88)
> > > > at
> > > > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > > > at
java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > > > at
java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > > > at
> > > >
> >
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> > > > at
> > > > org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> > > > r.java:146)
> > > > at
> > > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> > > > enerator(AnalyzerParseEventListener.java:154)
> > > > at
> > > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> > > > leTagBegin(AnalyzerParseEventListener.java:962)
> > > > at
> > > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > > atingListener.java:221)
> > > > at
> > > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > > atingListener.java:216)
> > > > at
> > org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > > > at
> > > > org.apache.jasper.compiler.ParserController.parse(ParserController
> > > > .java:214)
> > > > at
> > > > org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> > > > JspParserImpl.java:126)
> > > > at
> > > > org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> > > > rserImpl.java:93)
> > > > at
> > > > org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> > > > er(JspDataObject.java:297)
> > > > at
> > > > org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJo
> > > > b(JspCompilerSupport.java:62)
> > > > at
> > > > org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCo
> > > > mpileAction.java:361)
> > > > at
> > > > org.openide.actions.AbstractCompileAction.createJob(AbstractCompil
> > > > eAction.java:198)
> > > > at
> > > > org.openide.

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
4.0.6 works for me. I don't remember the details, but I *think* Netbeans has
cropped up as a problem before.
If you can, try it with a standalone version of Tomcat and check the mail
archives for Netbeans issues.

Steve


> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 4:06 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: struts-el example app not working?
>
>
> I am running Tomcat 4.0xx
> (using netbeans 3.5 with Tomcat bundle)
>
> Barry
>
>
>
> - Original Message -
> From: "Steve Raeburn" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 30, 2003 4:03 PM
> Subject: RE: struts-el example app not working?
>
>
> > Works fine for me with the 1.1 release version on Tomcat 4.1.24.
> >
> > What container are you running on?
> >
> > Steve
> >
> > > -Original Message-
> > > From: struts [mailto:[EMAIL PROTECTED]
> > > Sent: July 30, 2003 3:52 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: struts-el example app not working?
> > >
> > >
> > > Hello,
> > >
> > > When testing the struts-el example I get the following error.
> > > The problem goes away
> > > if I remove:
> > >
> > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > >
> > > Of course this is useless because the html-el tags do not function.
> > >
> > > I have even tried incorporating the struts-html-el in my own app and
> > > included all jars from the struts 1.1 release, defined the el tld's in
> my
> > > web.xml and I get the same exact error.  Same partial solution if
> > > I remove the
> > >
> > > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> > >
> > > the error goes away and the jsp page is displayed and of
> course without
> > > the properly generated html.
> > >
> > > Appreciate any suggestions
> > >
> > > Barry
> > >
> > >
> > > I get the following error:
> > >
> > > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > > at java.lang.Class.forName0(Native Method)
> > > at java.lang.Class.forName(Class.java:141)
> > > at
> > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > > BeanInfo.java:88)
> > > at
> > > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > > iptors(ELLinkTagBeanInfo.java:88)
> > > at
> > > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > > at
> > >
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> > > at
> > > org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> > > r.java:146)
> > > at
> > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> > > enerator(AnalyzerParseEventListener.java:154)
> > > at
> > > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> > > leTagBegin(AnalyzerParseEventListener.java:962)
> > > at
> > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > atingListener.java:221)
> > > at
> > > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > > atingListener.java:216)
> > > at
> org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > > at
> > > org.apache.jasper.compiler.ParserController.parse(ParserController
> > > .java:214)
> > > at
> > > org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> > > JspParserImpl.java:126)
> > > at
> > > org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> > > rserImpl.java:93)
> > > at
> > > org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> > > er(JspDataObject.java:297)
> > > at
> > > org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJo
> > > b(JspCompilerSupport.java:62)
> > > at
> > > org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCo
> > > mpileAction.java:361)
> > > at
> > > org.openide.actions.AbstractCompileAction.createJob(AbstractCompil
> > > eAction.java:198)
> > > at
> > > org.openide.actions.AbstractCompileAction.compile(AbstractCompileA
> > > ction.java:209)
> > > at
> > > org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.pr
> > > ocessRequest(CompileServlet.java:76)
> > > at
> > > org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.do
> > > Get(CompileServlet.java:122)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
>

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
The URI is not the problem, it's exactly the same as mine (as it would be if
the example hasn't been modified :-))

This is mine:
  <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el"  %>

This may also be valid, depending on what (if anything) you've got
configured in web.xml
  <%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html-el"  %>

Steve

> -Original Message-
> From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 4:06 PM
> To: 'Struts Users Mailing List'
> Subject: RE: struts-el example app not working?
>
>
> You uri look suspicious. I think it has to read something along
> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
> prefix="html-el" %>
>
> open up the jar, in META-INF dir there is a bunch of TLDs just read off
> the uris from there.
>
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 30, 2003 6:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts-el example app not working?
> >
> > Hello,
> >
> > When testing the struts-el example I get the following error.   The
> > problem goes away
> > if I remove:
> >
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> >
> > Of course this is useless because the html-el tags do not function.
> >
> > I have even tried incorporating the struts-html-el in my own app and
> > included all jars from the struts 1.1 release, defined the el tld's in
> my
> > web.xml and I get the same exact error.  Same partial solution if
> > I remove the
> >
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> >
> > the error goes away and the jsp page is displayed and of course
> without
> > the properly generated html.
> >
> > Appreciate any suggestions
> >
> > Barry
> >
> >
> > I get the following error:
> >
> > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:141)
> > at
> >
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanIn
> fo
> > .java:88)
> > at
> >
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors
> (E
> > LLinkTagBeanInfo.java:88)
> > at
> > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > at
> >
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116
> )
> > at
> >
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java
> :1
> > 46)
> > at
> >
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerat
> or
> > (AnalyzerParseEventListener.java:154)
> > at
> >
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagB
> eg
> > in(AnalyzerParseEventListener.java:962)
> > at
> >
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingL
> is
> > tener.java:221)
> > at
> >
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingL
> is
> > tener.java:216)
> > at
> org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > at
> >
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:
> 21
> > 4)
> > at
> >
> org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspPar
> se
> > rImpl.java:126)
> > at
> >
> org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserIm
> pl
> > .java:93)
> > at
> >
> org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(Jsp
> Da
> > taObject.java:297)
> > at
> >
> org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspC
> om
> > pilerSupport.java:62)
> > at
> >
> org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileA
> ct
> > ion.java:361)
> > at
> >
> org.openide.actions.AbstractCompileAction.createJob(AbstractCompileActio
> n.
> > java:198)
> > at
> >
> org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.
> ja
> > va:209)
> > at
> >
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processR
> eq
> > uest(CompileServlet.java:76)
> > at
> >
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Co
> mp
> > ileServlet.java:122)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> > at org.apache.tomcat.core.Handler.service(H

Re: struts-el example app not working?

2003-07-30 Thread struts
Yes I just verified,

Basically I unpacked the war and ran it. I did check the
web.xml and struts-config and they look okay out of the
box.

Barry


- Original Message -
From: "Canning, Chuck" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 4:12 PM
Subject: RE: struts-el example app not working?


> Hey Barry,
>
> I didn't read enough of the stack trace, sorry.
>
> Caused by: java.lang.NullPointerException
> at
>
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
> .java:577)
> at
>
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
> 8)
> ... 38 more
> Errors compiling index.
>
> Do you have a resource bundle in your classpath matching the one defined
in
> your web.xml?
>
> chuck
>
> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 5:52 PM
> To: [EMAIL PROTECTED]
> Subject: struts-el example app not working?
>
>
> Hello,
>
> When testing the struts-el example I get the following error.   The
problem
> goes away
> if I remove:
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> Of course this is useless because the html-el tags do not function.
>
> I have even tried incorporating the struts-html-el in my own app and
> included all jars from the struts 1.1 release, defined the el tld's in my
> web.xml and I get the same exact error.  Same partial solution if
> I remove the
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> the error goes away and the jsp page is displayed and of course without
> the properly generated html.
>
> Appreciate any suggestions
>
> Barry
>
>
> I get the following error:
>
> index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:141)
> at
>
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanInfo.j
> ava:88)
> at
>
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors(ELL
> inkTagBeanInfo.java:88)
> at
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> at
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> at
>
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
> )
> at
>
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(A
> nalyzerParseEventListener.java:154)
> at
>
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin
> (AnalyzerParseEventListener.java:962)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java:221)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java:216)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
> at
>
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserI
> mpl.java:126)
> at
>
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.j
> ava:93)
> at
>
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspData
> Object.java:297)
> at
>
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompi
> lerSupport.java:62)
> at
>
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio
> n.java:361)
> at
>
org.openide.actions.AbstractCompileAction.createJob(AbstractCompileAction.ja
> va:198)
> at
>
org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.java
> :209)
> at
>
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processReque
> st(CompileServlet.java:76)
> at
>
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Compil
> eServlet.java:122)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.se

RE: struts-el example app not working?

2003-07-30 Thread Canning, Chuck
Hey Barry,

I didn't read enough of the stack trace, sorry.

Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
8)
... 38 more
Errors compiling index.

Do you have a resource bundle in your classpath matching the one defined in
your web.xml?

chuck

-Original Message-
From: struts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:52 PM
To: [EMAIL PROTECTED]
Subject: struts-el example app not working?


Hello,

When testing the struts-el example I get the following error.   The problem
goes away
if I remove:

<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>

Of course this is useless because the html-el tags do not function.

I have even tried incorporating the struts-html-el in my own app and
included all jars from the struts 1.1 release, defined the el tld's in my
web.xml and I get the same exact error.  Same partial solution if
I remove the 

<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>

the error goes away and the jsp page is displayed and of course without
the properly generated html.

Appreciate any suggestions

Barry


I get the following error:

index.jsp [-1:-1] java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanInfo.j
ava:88)
at
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors(ELL
inkTagBeanInfo.java:88)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
)
at
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(A
nalyzerParseEventListener.java:154)
at
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin
(AnalyzerParseEventListener.java:962)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:221)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:216)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserI
mpl.java:126)
at
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.j
ava:93)
at
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspData
Object.java:297)
at
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompi
lerSupport.java:62)
at
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio
n.java:361)
at
org.openide.actions.AbstractCompileAction.createJob(AbstractCompileAction.ja
va:198)
at
org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.java
:209)
at
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processReque
st(CompileServlet.java:76)
at
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Compil
eServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
8)
... 38 more
Errors compiling index.


RE: struts-el example app not working?

2003-07-30 Thread Alex Shneyderman
You uri look suspicious. I think it has to read something along
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html-el";
prefix="html-el" %>

open up the jar, in META-INF dir there is a bunch of TLDs just read off
the uris from there.


> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 6:52 PM
> To: [EMAIL PROTECTED]
> Subject: struts-el example app not working?
> 
> Hello,
> 
> When testing the struts-el example I get the following error.   The
> problem goes away
> if I remove:
> 
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> 
> Of course this is useless because the html-el tags do not function.
> 
> I have even tried incorporating the struts-html-el in my own app and
> included all jars from the struts 1.1 release, defined the el tld's in
my
> web.xml and I get the same exact error.  Same partial solution if
> I remove the
> 
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> 
> the error goes away and the jsp page is displayed and of course
without
> the properly generated html.
> 
> Appreciate any suggestions
> 
> Barry
> 
> 
> I get the following error:
> 
> index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:141)
> at
>
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanIn
fo
> .java:88)
> at
>
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors
(E
> LLinkTagBeanInfo.java:88)
> at
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> at
>
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116
)
> at
>
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java
:1
> 46)
> at
>
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerat
or
> (AnalyzerParseEventListener.java:154)
> at
>
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagB
eg
> in(AnalyzerParseEventListener.java:962)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingL
is
> tener.java:221)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingL
is
> tener.java:216)
> at
org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
21
> 4)
> at
>
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspPar
se
> rImpl.java:126)
> at
>
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserIm
pl
> .java:93)
> at
>
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(Jsp
Da
> taObject.java:297)
> at
>
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspC
om
> pilerSupport.java:62)
> at
>
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileA
ct
> ion.java:361)
> at
>
org.openide.actions.AbstractCompileAction.createJob(AbstractCompileActio
n.
> java:198)
> at
>
org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.
ja
> va:209)
> at
>
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processR
eq
> uest(CompileServlet.java:76)
> at
>
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Co
mp
> ileServlet.java:122)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:
> 797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
tt
> pConnectionHandler.java:210)
> at
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
)
> at
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49
8)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.NullPointerException
> at
>
org.apache.struts.util.MessageResources.getMessageResources(MessageResou
rc
> es.java:577)
> at
>
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.jav

Re: struts-el example app not working?

2003-07-30 Thread struts
I am running Tomcat 4.0xx
(using netbeans 3.5 with Tomcat bundle)

Barry



- Original Message -
From: "Steve Raeburn" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 4:03 PM
Subject: RE: struts-el example app not working?


> Works fine for me with the 1.1 release version on Tomcat 4.1.24.
>
> What container are you running on?
>
> Steve
>
> > -Original Message-
> > From: struts [mailto:[EMAIL PROTECTED]
> > Sent: July 30, 2003 3:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: struts-el example app not working?
> >
> >
> > Hello,
> >
> > When testing the struts-el example I get the following error.
> > The problem goes away
> > if I remove:
> >
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> >
> > Of course this is useless because the html-el tags do not function.
> >
> > I have even tried incorporating the struts-html-el in my own app and
> > included all jars from the struts 1.1 release, defined the el tld's in
my
> > web.xml and I get the same exact error.  Same partial solution if
> > I remove the
> >
> > <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
> >
> > the error goes away and the jsp page is displayed and of course without
> > the properly generated html.
> >
> > Appreciate any suggestions
> >
> > Barry
> >
> >
> > I get the following error:
> >
> > index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:141)
> > at
> > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> > BeanInfo.java:88)
> > at
> > org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> > iptors(ELLinkTagBeanInfo.java:88)
> > at
> > java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> > at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> > at
> >
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> > at
> > org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> > r.java:146)
> > at
> > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> > enerator(AnalyzerParseEventListener.java:154)
> > at
> > org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> > leTagBegin(AnalyzerParseEventListener.java:962)
> > at
> > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > atingListener.java:221)
> > at
> > org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> > atingListener.java:216)
> > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> > at
> > org.apache.jasper.compiler.ParserController.parse(ParserController
> > .java:214)
> > at
> > org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> > JspParserImpl.java:126)
> > at
> > org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> > rserImpl.java:93)
> > at
> > org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> > er(JspDataObject.java:297)
> > at
> > org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJo
> > b(JspCompilerSupport.java:62)
> > at
> > org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCo
> > mpileAction.java:361)
> > at
> > org.openide.actions.AbstractCompileAction.createJob(AbstractCompil
> > eAction.java:198)
> > at
> > org.openide.actions.AbstractCompileAction.compile(AbstractCompileA
> > ction.java:209)
> > at
> > org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.pr
> > ocessRequest(CompileServlet.java:76)
> > at
> > org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.do
> > Get(CompileServlet.java:122)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> > at org.apache.tomcat.core.Handler.service(Handler.java:286)
> > at
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> > at
> > org.apache.tomcat.core.ContextManager.internalService(ContextManag
> > er.java:797)
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> > at
> > org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> > tion(HttpConnectionHandler.java:210)
> > at
> >
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> > at
> >
org.a

RE: struts-el example app not working?

2003-07-30 Thread Steve Raeburn
Works fine for me with the 1.1 release version on Tomcat 4.1.24.

What container are you running on?

Steve

> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 3:52 PM
> To: [EMAIL PROTECTED]
> Subject: struts-el example app not working?
>
>
> Hello,
>
> When testing the struts-el example I get the following error.
> The problem goes away
> if I remove:
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> Of course this is useless because the html-el tags do not function.
>
> I have even tried incorporating the struts-html-el in my own app and
> included all jars from the struts 1.1 release, defined the el tld's in my
> web.xml and I get the same exact error.  Same partial solution if
> I remove the
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> the error goes away and the jsp page is displayed and of course without
> the properly generated html.
>
> Appreciate any suggestions
>
> Barry
>
>
> I get the following error:
>
> index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:141)
> at
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTag
> BeanInfo.java:88)
> at
> org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescr
> iptors(ELLinkTagBeanInfo.java:88)
> at
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> at
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> at
> org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerato
> r.java:146)
> at
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addG
> enerator(AnalyzerParseEventListener.java:154)
> at
> org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.hand
> leTagBegin(AnalyzerParseEventListener.java:962)
> at
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> atingListener.java:221)
> at
> org.apache.jasper.compiler.DelegatingListener.handleTagBegin(Deleg
> atingListener.java:216)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> at
> org.apache.jasper.compiler.ParserController.parse(ParserController
> .java:214)
> at
> org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(
> JspParserImpl.java:126)
> at
> org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspPa
> rserImpl.java:93)
> at
> org.netbeans.modules.web.core.jsploader.JspDataObject.createCompil
> er(JspDataObject.java:297)
> at
> org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJo
> b(JspCompilerSupport.java:62)
> at
> org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCo
> mpileAction.java:361)
> at
> org.openide.actions.AbstractCompileAction.createJob(AbstractCompil
> eAction.java:198)
> at
> org.openide.actions.AbstractCompileAction.compile(AbstractCompileA
> ction.java:209)
> at
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.pr
> ocessRequest(CompileServlet.java:76)
> at
> org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.do
> Get(CompileServlet.java:122)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpConnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.NullPointerException
> at
> org.apache.struts.util.MessageResources.getMessageResources(Messag
> eResources.java:577)
> at
> org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerT
> ag.java:108)
> ... 38 more
> Errors compiling index.
>



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

Re: struts-el example app not working?

2003-07-30 Thread struts
I did include the struts-el.jar file.



- Original Message -
From: "Canning, Chuck" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 3:58 PM
Subject: RE: struts-el example app not working?


> Hey Barry,
>
> Did you include the struts-el jars from the contrib directory or just the
> standard struts1.1 jars?
>
> Chuck
>
> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 5:52 PM
> To: [EMAIL PROTECTED]
> Subject: struts-el example app not working?
>
>
> Hello,
>
> When testing the struts-el example I get the following error.   The
problem
> goes away
> if I remove:
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> Of course this is useless because the html-el tags do not function.
>
> I have even tried incorporating the struts-html-el in my own app and
> included all jars from the struts 1.1 release, defined the el tld's in my
> web.xml and I get the same exact error.  Same partial solution if
> I remove the
>
> <%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>
>
> the error goes away and the jsp page is displayed and of course without
> the properly generated html.
>
> Appreciate any suggestions
>
> Barry
>
>
> I get the following error:
>
> index.jsp [-1:-1] java.lang.ExceptionInInitializerError
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:141)
> at
>
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanInfo.j
> ava:88)
> at
>
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors(ELL
> inkTagBeanInfo.java:88)
> at
> java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
> at java.beans.Introspector.getBeanInfo(Introspector.java:372)
> at java.beans.Introspector.getBeanInfo(Introspector.java:144)
> at
> org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
> at
>
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
> )
> at
>
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(A
> nalyzerParseEventListener.java:154)
> at
>
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin
> (AnalyzerParseEventListener.java:962)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java:221)
> at
>
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
> ner.java:216)
> at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
> at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
> at
>
org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
> at
>
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserI
> mpl.java:126)
> at
>
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.j
> ava:93)
> at
>
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspData
> Object.java:297)
> at
>
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompi
> lerSupport.java:62)
> at
>
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio
> n.java:361)
> at
>
org.openide.actions.AbstractCompileAction.createJob(AbstractCompileAction.ja
> va:198)
> at
>
org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.java
> :209)
> at
>
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processReque
> st(CompileServlet.java:76)
> at
>
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Compil
> eServlet.java:122)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:534)
> Caused by: java.lang.NullPointerException
> at
>
org.apache.struts.util.MessageResources.getMessageResources(Mess

Re: not displaying the errors?

2003-07-30 Thread James Adams
Thanks for the help.
It turned out I'd added a seperate app.properties file in the init
parameters for the struts Action servlet in the web.xml which didn't contain
the messages I needed.   This caused struts to ignore the app2.properties
that I'd specified in the message-resources tag of struts-config.xml file.


James
www.seventyforty.com





- Original Message -
From: "Bailey, Shane C." <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 3:13 PM
Subject: RE:  not displaying the errors?


>
>
> I forgot to mention that the only time I can remember that happening is
when
> I first when to modules and I tried making my own custom bundle for
messages
> in my module's struts config.
>
> Error messages weren't showing up because of the custom resource bundle
name
> in my modules.  As soon as I got rid of the custom bundle name in the
module
> the errors showed up.
>
>
> -Original Message-
> From: James Adams [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 9:51 AM
> To: [EMAIL PROTECTED]
> Subject:  not displaying the errors?
>
> Hello,
>
> I'm using DynaValidatorForm to check certain form fields are entered as
> required.  The validation is done sucessfully but I've recently added
> somthing that seems to have stopped  from displaying the
> errors?
> Does anyone have any suggestions why this might have happened? is there a
> common mistake that might have caused this? or any tips on how to go about
> debugging it?
>
> regards
>
> James
>
> -
> 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-el example app not working?

2003-07-30 Thread Canning, Chuck
Hey Barry,

Did you include the struts-el jars from the contrib directory or just the
standard struts1.1 jars?

Chuck

-Original Message-
From: struts [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 5:52 PM
To: [EMAIL PROTECTED]
Subject: struts-el example app not working?


Hello,

When testing the struts-el example I get the following error.   The problem
goes away
if I remove:

<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>

Of course this is useless because the html-el tags do not function.

I have even tried incorporating the struts-html-el in my own app and
included all jars from the struts 1.1 release, defined the el tld's in my
web.xml and I get the same exact error.  Same partial solution if
I remove the 

<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>

the error goes away and the jsp page is displayed and of course without
the properly generated html.

Appreciate any suggestions

Barry


I get the following error:

index.jsp [-1:-1] java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanInfo.j
ava:88)
at
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors(ELL
inkTagBeanInfo.java:88)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at
org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146
)
at
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(A
nalyzerParseEventListener.java:154)
at
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin
(AnalyzerParseEventListener.java:962)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:221)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java:216)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserI
mpl.java:126)
at
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.j
ava:93)
at
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspData
Object.java:297)
at
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompi
lerSupport.java:62)
at
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio
n.java:361)
at
org.openide.actions.AbstractCompileAction.createJob(AbstractCompileAction.ja
va:198)
at
org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.java
:209)
at
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processReque
st(CompileServlet.java:76)
at
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Compil
eServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:577)
at
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:10
8)
... 38 more
Errors compiling index.

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



struts-el example app not working?

2003-07-30 Thread struts
Hello,

When testing the struts-el example I get the following error.   The problem goes away
if I remove:

<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>

Of course this is useless because the html-el tags do not function.

I have even tried incorporating the struts-html-el in my own app and
included all jars from the struts 1.1 release, defined the el tld's in my
web.xml and I get the same exact error.  Same partial solution if
I remove the 

<%@ taglib uri="/WEB-INF/struts-html-el.tld"  prefix="html-el" %>

the error goes away and the jsp page is displayed and of course without
the properly generated html.

Appreciate any suggestions

Barry


I get the following error:

index.jsp [-1:-1] java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at 
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.class$(ELLinkTagBeanInfo.java:88)
at 
org.apache.strutsel.taglib.html.ELLinkTagBeanInfo.getPropertyDescriptors(ELLinkTagBeanInfo.java:88)
at java.beans.Introspector.getTargetPropertyInfo(Introspector.java:459)
at java.beans.Introspector.getBeanInfo(Introspector.java:372)
at java.beans.Introspector.getBeanInfo(Introspector.java:144)
at org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116)
at 
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146)
at 
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(AnalyzerParseEventListener.java:154)
at 
org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin(AnalyzerParseEventListener.java:962)
at 
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
at 
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
at 
org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserImpl.java:126)
at 
org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.java:93)
at 
org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspDataObject.java:297)
at 
org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompilerSupport.java:62)
at 
org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileAction.java:361)
at 
org.openide.actions.AbstractCompileAction.createJob(AbstractCompileAction.java:198)
at 
org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.java:209)
at 
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processRequest(CompileServlet.java:76)
at 
org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(CompileServlet.java:122)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.NullPointerException
at 
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:577)
at 
org.apache.struts.taglib.html.BaseHandlerTag.(BaseHandlerTag.java:108)
... 38 more
Errors compiling index.


Re: Validator Framework: Can not evaluate regular expression

2003-07-30 Thread David Graham
Password fields are only run against the "required" validation in the
client side javascript for security purposes.  Password fields are
validated with all rules on the server side though.

David

--- Dirk Behrendt <[EMAIL PROTECTED]> wrote:
> Hi!
>  
> No, I do not have an extra '<' in my code. The regular expression is not
> evaluated.
>  
> Example:
> When I use ^[a]$ the user only should input "a". 
> But in my case you can input anything you want.
>  
> There are some ideas?
>  
> Dirk
>  
>  
>  
> If your code is a direct cut-n-paste, you've got an extra '>' in your
> first regular expression?
>  
>   >^[a-zA-Z0-9_.-]*$
>  
> -jeff
>  
> On Wednesday, July 30, 2003, at 07:14  AM, Dirk Behrendt wrote:
>  
> > >^[a-zA-Z0-9_.-]*$
>  
>  
> Hello!
>  
> I want to check login and password fields.
>  
> If I submit with empty textfields, the errors are shown correct (
> required). But my regular expression was ignored. (see code below).
>  
> What is necessary to check regular expressions?
>  
>  
>  
>  
> Dirk
>  
>  
> Struts-config.xml
> -
>  
> form-bean name="loginForm"
>type="sample.LoginForm"/>
>  
> 
> type="sample.LoginAction"
>name="loginForm"
>scope="session"
>validate="true"
>input="/loginDone.jsp">
> 
>  
>  
> validation.xml
> --
>  
> 
>  property="login"
>depends="required,mask">
>
>   
>
>  mask
>  >^[a-zA-Z0-9_.-]*$
>   
>
>  property="password"
>depends="required,mask">
>
>  
>
>  mask
>  ^[a-zA-Z0-9_.-]*$
>   
>
>
>  
>  
> In my JSP
> ---
>  
> 
>
>
>
>   
>
>
>
>  
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Struts Error Handling Problem

2003-07-30 Thread Yansheng Lin
I didn't finish the first paragraph!!  Sorry.  See [[append]]

---
What do you mean if there is a reason for this?  In the case of an error, you
can output error msg through  [[append]] and all the data entered
will be retained if you return to the original jsp page.
---

Outlook is horrible for editing! But anyways, I guess what I wanted to emphasis
was that you can display errors along with all the form data retained.


-Original Message-
From: Yansheng Lin [mailto:[EMAIL PROTECTED] 
Sent: July 30, 2003 3:10 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Error Handling Problem

What do you mean if there is a reason for this?  In the case of an error, you
can output error msg through 

In your case, you might want to try return back to your input instead of
forwarding it to the .jsp page.  I know they are almost the same, but they is a
mirror difference.  So here comes the harder part.  If you believe that this is
what's supposed to happen, then you found a bug.  You can submit your bug
through bugzilla.apache.org.

Hope this helps!


-Original Message-
From: Rodney Paul [mailto:[EMAIL PROTECTED] 
Sent: July 29, 2003 11:28 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts Error Handling Problem


Hi All,

I am currently using the Struts framework to develop a wizard application.
When using the Struts framework I notice that form data does not get
re-displayed after
issuing ActionErrors. Is there any reason for this?

I use the following code structure for developing the wizard:

OrganisationNameSearch.jsp
OrganisationNameSearchActionForm.java
OrganistaionNameSearchAction.java

and here are the important configuration settings I use to execute code:

---OrganisationNameSearch.jsp---



---Struts Configuration---













Can someone please give me an indication as to why this is happening?

Cheers
Rodney

-
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: Struts Error Handling Problem

2003-07-30 Thread Yansheng Lin

What do you mean if there is a reason for this?  In the case of an error, you
can output error msg through 

In your case, you might want to try return back to your input instead of
forwarding it to the .jsp page.  I know they are almost the same, but they is a
mirror difference.  So here comes the harder part.  If you believe that this is
what's supposed to happen, then you found a bug.  You can submit your bug
through bugzilla.apache.org.

Hope this helps!


-Original Message-
From: Rodney Paul [mailto:[EMAIL PROTECTED] 
Sent: July 29, 2003 11:28 PM
To: Struts Users Mailing List (E-mail)
Subject: Struts Error Handling Problem


Hi All,

I am currently using the Struts framework to develop a wizard application.
When using the Struts framework I notice that form data does not get
re-displayed after
issuing ActionErrors. Is there any reason for this?

I use the following code structure for developing the wizard:

OrganisationNameSearch.jsp
OrganisationNameSearchActionForm.java
OrganistaionNameSearchAction.java

and here are the important configuration settings I use to execute code:

---OrganisationNameSearch.jsp---



---Struts Configuration---













Can someone please give me an indication as to why this is happening?

Cheers
Rodney

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



Object-=>Form-=>Object

2003-07-30 Thread Jim Bruno Goldberg
Hi, Folks!

Can anyone help me with a ActionForm object mapping?
I have a ActionForm with a method setInside(InsideObject a) and I want
o map this object to a SelectBox on a form is JSP (...)
I must maintain the setInside(InsideObject a) in ActionForm because
this is generated with Xdoclet. My question is: how this object is
mapped to JSP Select field? How can I populate the field to it work?
Thanks for any help or docs to read.
-- 
 CUL8R,[]s
 Jim Bruno Goldberg
http://www.md5.com.br

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



Validator Framework: Can not evaluate regular expression

2003-07-30 Thread Dirk Behrendt
Hi!
 
No, I do not have an extra '<' in my code. The regular expression is not
evaluated.
 
Example:
When I use ^[a]$ the user only should input "a". 
But in my case you can input anything you want.
 
There are some ideas?
 
Dirk
 
 
 
If your code is a direct cut-n-paste, you've got an extra '>' in your
first regular expression?
 
  >^[a-zA-Z0-9_.-]*$
 
-jeff
 
On Wednesday, July 30, 2003, at 07:14  AM, Dirk Behrendt wrote:
 
> >^[a-zA-Z0-9_.-]*$
 
 
Hello!
 
I want to check login and password fields.
 
If I submit with empty textfields, the errors are shown correct (
required). But my regular expression was ignored. (see code below).
 
What is necessary to check regular expressions?
 
 
 
 
Dirk
 
 
Struts-config.xml
-
 
form-bean name="loginForm"
   type="sample.LoginForm"/>
 



 
 
validation.xml
--
 

 
   
  
   
 mask
 >^[a-zA-Z0-9_.-]*$
  
   
 
   
 
   
 mask
 ^[a-zA-Z0-9_.-]*$
  
   
   
 
 
In my JSP
---
 

   
   
   
  
   
   
   
 


RE: reset() in my action form is not working

2003-07-30 Thread victor gusz
Thanks, Amit, its working now. 

--- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
> Have you tried 
> request.setAttribute(mapping.getAttribute(), new
> SampleForm()); ?
> Although I do agree with Michael.
> 
> -Original Message-
> From: victor gusz [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 3:32 PM
> To: [EMAIL PROTECTED]
> Subject: reset() in my action form is not working
> 
> 
> Hi,
> 
> I define a reset function and seset every form
> variables to null, since I want to reset all inputs
> to
> null after I hit submit button. I also put the
> following
> line before I return ActionForward in my action
> class:
> 
> request.setAttribute(mapping.getAttribute(),
> sampleForm);
> 
> But its not working, after I hit submit button, old
> values 
> are still there. Am I missing something?
> 
> thanks,
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> This e-mail, including attachments, may include
> confidential and/or
> proprietary information, and may be used only by the
> person or entity to
> which it is addressed. If the reader of this e-mail
> is not the intended
> recipient or his or her authorized agent, the reader
> is hereby notified that
> any dissemination, distribution or copying of this
> e-mail is prohibited. If
> you have received this e-mail in error, please
> notify the sender by replying
> to this message and delete this e-mail immediately.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: reset() in my action form is not working

2003-07-30 Thread victor gusz
Thanks, its working now.

--- Michael Ruppin <[EMAIL PROTECTED]> wrote:
> That's not what the ActionForm.reset() method is
> for. 
> It's called prior to population of your ActionForm
> from the request, to set values for things which may
> not be in the request [but should be], like
> unchecked
> checkboxes.
> 
> What you need is some ActionForm.setEmpty() method
> to
> call before forwarding to whatever code renders your
> HTML.
> 
> m
> 
> --- victor gusz <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > I define a reset function and seset every form
> > variables to null, since I want to reset all
> inputs
> > to
> > null after I hit submit button. I also put the
> > following
> > line before I return ActionForward in my action
> > class:
> > 
> > request.setAttribute(mapping.getAttribute(),
> > sampleForm);
> > 
> > But its not working, after I hit submit button,
> old
> > values 
> > are still there. Am I missing something?
> > 
> > thanks,
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: reset() in my action form is not working

2003-07-30 Thread Amit Kirdatt
Have you tried  request.setAttribute(mapping.getAttribute(), new
SampleForm()); ?
Although I do agree with Michael.

-Original Message-
From: victor gusz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:32 PM
To: [EMAIL PROTECTED]
Subject: reset() in my action form is not working


Hi,

I define a reset function and seset every form
variables to null, since I want to reset all inputs to
null after I hit submit button. I also put the
following
line before I return ActionForward in my action class:

request.setAttribute(mapping.getAttribute(),
sampleForm);

But its not working, after I hit submit button, old
values 
are still there. Am I missing something?

thanks,



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.

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



Re: reset() in my action form is not working

2003-07-30 Thread Michael Ruppin
That's not what the ActionForm.reset() method is for. 
It's called prior to population of your ActionForm
from the request, to set values for things which may
not be in the request [but should be], like unchecked
checkboxes.

What you need is some ActionForm.setEmpty() method to
call before forwarding to whatever code renders your
HTML.

m

--- victor gusz <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I define a reset function and seset every form
> variables to null, since I want to reset all inputs
> to
> null after I hit submit button. I also put the
> following
> line before I return ActionForward in my action
> class:
> 
> request.setAttribute(mapping.getAttribute(),
> sampleForm);
> 
> But its not working, after I hit submit button, old
> values 
> are still there. Am I missing something?
> 
> thanks,
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



reset() in my action form is not working

2003-07-30 Thread victor gusz
Hi,

I define a reset function and seset every form
variables to null, since I want to reset all inputs to
null after I hit submit button. I also put the
following
line before I return ActionForward in my action class:

request.setAttribute(mapping.getAttribute(),
sampleForm);

But its not working, after I hit submit button, old
values 
are still there. Am I missing something?

thanks,



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread Wendy Smoak
>  Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
>  ""/>

If this  element inside the form that belogs with the Action that
uses registrationForm, then you don't need the 'value' attribute at all.
Struts will magically populate the  form element from the value in
the Form bean.



(The snippet above looks like you're trying to put the phone number in the
username field...)

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 


RE: html:select and data refresh

2003-07-30 Thread Rick Col
Thanks, Richard:

The trouble is that I cannot use frameset in my
design.
So, it really gives me headache now :((.

regards,


--- "Yee, Richard K,,DMDCWEST"
<[EMAIL PROTECTED]> wrote:
> Rick,
> Check out using html frameset and frames. Have the
> result of your form go to
> a different results frame.
> 
> Regards,
> 
> Richard
> 
> 
> -Original Message-
> From: Rick Col [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 30, 2003 12:04 PM
> To: Struts Users Mailing List
> Subject: Re: html:select and data refresh
> 
> 
> Thanks,
> 
> Sorry for being naive on this. I am new to both
> javascript and struts. I am already using onchange
> to
> load data. Can I use another attribute, such as
> onblur, or onclick to do the job? And how do I
> reload
> the page to the previous page (that is: with no
> table
> display)?
> 
> regards
> 
> 
> --- Ashish Kulkarni <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > i guess u can try onchange event on select, to
> find
> > out when the user selectes some thing and clear
> the
> > result table displayed below
> > for clearing the table u can use java script or
> will
> > have to reload the page
> > 
> > Ashish
> > --- Rick Col <[EMAIL PROTECTED]> wrote:
> > > Hi, guys:
> > > 
> > > I have a list for user to select, when user
> select
> > > one
> > > item from the list, and hit search button, a
> > results
> > > table will be displayed at the bottom half of
> the
> > > page. Now, if user selects another item from the
> > > list,
> > > I want to refresh the table (or page?) and make
> > the
> > > results table disappear before user hit search
> > > button
> > > again. I have no idea to do this. Can anyone
> give
> > > some
> > > thoughts on this?
> > > 
> > > regards,
> > > 
> > > rick
> > > 
> > > __
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: html:select and data refresh

2003-07-30 Thread Ashish Kulkarni
Here is the thing u can try,
onchange event check if the result table is displayed,
if yes clear it first, and then load the new table

Ashish
--- Rick Col <[EMAIL PROTECTED]> wrote:
> Thanks,
> 
> Sorry for being naive on this. I am new to both
> javascript and struts. I am already using onchange
> to
> load data. Can I use another attribute, such as
> onblur, or onclick to do the job? And how do I
> reload
> the page to the previous page (that is: with no
> table
> display)?
> 
> regards
> 
> 
> --- Ashish Kulkarni <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> > i guess u can try onchange event on select, to
> find
> > out when the user selectes some thing and clear
> the
> > result table displayed below
> > for clearing the table u can use java script or
> will
> > have to reload the page
> > 
> > Ashish
> > --- Rick Col <[EMAIL PROTECTED]> wrote:
> > > Hi, guys:
> > > 
> > > I have a list for user to select, when user
> select
> > > one
> > > item from the list, and hit search button, a
> > results
> > > table will be displayed at the bottom half of
> the
> > > page. Now, if user selects another item from the
> > > list,
> > > I want to refresh the table (or page?) and make
> > the
> > > results table disappear before user hit search
> > > button
> > > again. I have no idea to do this. Can anyone
> give
> > > some
> > > thoughts on this?
> > > 
> > > regards,
> > > 
> > > rick
> > > 
> > > __
> > > Do you Yahoo!?
> > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > http://sbc.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: ActionForm resulting in 'No collection found'

2003-07-30 Thread Sudheesh_Clement





See, what ever you store in the request last only for that request..
That's according to the servlet spec.

The only problem using  session is that, you should clean the session
variables , after use,
If you store too many data in the session and not clean up it can slow your
server down or crash..



|-+--->
| |   "Kukwa, Brian   |
| |   (DeepGreen Bank)"   |
| |   <[EMAIL PROTECTED]|
| |   enBank.com> |
| |   |
| |   07/30/2003 02:38 PM |
| |   Please respond to   |
| |   "Struts Users   |
| |   Mailing List"   |
| |   |
|-+--->
  
>--|
  |
  |
  |   To:   "'Struts Users Mailing List'" <[EMAIL PROTECTED]>  
 |
  |   cc:  
  |
  |   Subject:  RE: ActionForm resulting in 'No collection found'  
  |
  
>--|




Just want to clarify the example given by Struts and your statement. In the
example, the request variable is being set. Is there a reason why the
example and your statement would differ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:12 PM
To: Struts Users Mailing List
Subject: Re: ActionForm resulting in 'No collection found'







I think instead of setting the form in the request you should set at the
seesion,
request variables last only for one single request.

That' s one way the form is available in susequent pages
I hope that will help



|-+--->
| |   "Kukwa, Brian   |
| |   (DeepGreen Bank)"   |
| |   <[EMAIL PROTECTED]|
| |   enBank.com> |
| |   |
| |   07/30/2003 02:06 PM |
| |   Please respond to   |
| |   "Struts Users   |
| |   Mailing List"   |
| |   |
|-+--->

>---

---|
  |
|
  |   To:   "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>  |
  |   cc:
|
  |   Subject:  ActionForm resulting in 'No collection found'
|

>---

---|




 I'm running into a problem retrieving an ActionForm from a JSP
page.
In my derived Action, ListUsersAction, I am instantiating an ActionForm.
This ActionForm, ListUsersForm, is then being set in HTTPServletRequest.
When trying to access the ListUsersForm from the subsequent JSP page, it is
being retrieved as a null value.

 The "No collection found" error is being generated by the
iterate
tag, which I have since removed. This has been removed to find out why the
ListUsersForm is being set to null.

 There are a couple debug points I used to isolate the problem.
The
first verification happens in the ListUsersAction.  This verifies that the
ListUsersForm is not being set to null in HTTPServletRequest.  The second
verification, which fails, is in the JSP page.  This goes through all of
the
Attributes of the Request Object, displays their names and values. The
value
of the listUsersAction attribute is displayed as null. The scope of
ListUsersForm has been set to Request.

 I have included the execute() method and example jsp page that
is
faulty. Any help or added debugging concepts would be appreciated.

--

Brian




public class ListUsersAction extends Action {

public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException

 {
 ActionForward forward = null;
 ServletContext context =
getServlet().getServletContext();
 context.log("ListUsersAction.execute: Entering.");

 ListUsersForm listUsersForm = new ListUsersForm();

 String users[] = new String[3];

 users[0] = "brian";
 

RE: ActionForm resulting in 'No collection found'

2003-07-30 Thread Kukwa, Brian (DeepGreen Bank)
Just want to clarify the example given by Struts and your statement. In the
example, the request variable is being set. Is there a reason why the
example and your statement would differ?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 3:12 PM
To: Struts Users Mailing List
Subject: Re: ActionForm resulting in 'No collection found'







I think instead of setting the form in the request you should set at the
seesion,
request variables last only for one single request.

That' s one way the form is available in susequent pages
I hope that will help



|-+--->
| |   "Kukwa, Brian   |
| |   (DeepGreen Bank)"   |
| |   <[EMAIL PROTECTED]|
| |   enBank.com> |
| |   |
| |   07/30/2003 02:06 PM |
| |   Please respond to   |
| |   "Struts Users   |
| |   Mailing List"   |
| |   |
|-+--->
 
>---
---|
  |
|
  |   To:   "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>  |
  |   cc:
|
  |   Subject:  ActionForm resulting in 'No collection found'
|
 
>---
---|




 I'm running into a problem retrieving an ActionForm from a JSP
page.
In my derived Action, ListUsersAction, I am instantiating an ActionForm.
This ActionForm, ListUsersForm, is then being set in HTTPServletRequest.
When trying to access the ListUsersForm from the subsequent JSP page, it is
being retrieved as a null value.

 The "No collection found" error is being generated by the
iterate
tag, which I have since removed. This has been removed to find out why the
ListUsersForm is being set to null.

 There are a couple debug points I used to isolate the problem.
The
first verification happens in the ListUsersAction.  This verifies that the
ListUsersForm is not being set to null in HTTPServletRequest.  The second
verification, which fails, is in the JSP page.  This goes through all of
the
Attributes of the Request Object, displays their names and values. The
value
of the listUsersAction attribute is displayed as null. The scope of
ListUsersForm has been set to Request.

 I have included the execute() method and example jsp page that
is
faulty. Any help or added debugging concepts would be appreciated.

--

Brian




public class ListUsersAction extends Action {

public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException

 {
 ActionForward forward = null;
 ServletContext context =
getServlet().getServletContext();
 context.log("ListUsersAction.execute: Entering.");

 ListUsersForm listUsersForm = new ListUsersForm();

 String users[] = new String[3];

 users[0] = "brian";
 users[1] = "jim";
 users[2] = "anthony";

 listUsersForm.setUsers(users);

 // Stash the results in request scope
   request.setAttribute("listUsersForm", listUsersForm);
 saveToken(request);

 if( request.getAttribute("listUsersForm") == null
)
 context.log("ListUsersAction.execute:
null value.");
 else
 context.log("ListUsersAction.execute:
no null
value.");

 context.log("ListUsersAction.execute: Exiting.");

 return mapping.findForward("success");

 }//end execute()

}//end ListUsersAction


<%
  String strHeaderName = "";
  for (Enumeration e = request.getAttributeNames(); e.hasMoreElements() ;)
  {
strHeaderName = (String)e.nextElement();
%>

  <%=strHeaderName%>
  <%=request.getHeader(strHeaderName)%>

<%
  }
%>

-
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 

RE: Struts Action in Welcome File List

2003-07-30 Thread Bailey, Shane C.


Are you talking about a person using the same container as you? Because I
know with JRun there isn't any work arounds needed.  So I know that a
physical file does not have to exist for every container.

I'm surprised JRun worked like this since it caused me a problem with
SecurityFilter that Tomcat users don't see.  You just never know what will
work in one container compared to another.  You know they should really
think about standardizing these things, with like, some sort of spec :-)

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 3:26 PM
To: Struts Users Mailing List
Subject: RE: Struts Action in Welcome File List

Well, I haven't tried this, but I did notice someone a while ago saying
that this DOES work, as long as you use a small trick.  The
"welcome-file" does have to specify a file that exists, but that doesn't
mean the web container will actually SERVE that file.  The person who
mentioned this said that they just created the named file and gave it
arbitrary contents (like "This will never be served to the client").
The web container then passed the URL to the controller, which forwarded
to the appropriate action.

> -Original Message-
> From: Suzette Daniel [mailto:[EMAIL PROTECTED]
> 
> Nope this is not supported, the web.xml must map to a file.
> 
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> 
> Can't you just do this:
> 
> 
>/PMTAction.do
> 
> 
> I do it with JRun4.  Not sure if all containers will do an action
instead
> of
> a JSP.
> 
> -Original Message-
> From: Jon Wynacht [mailto:[EMAIL PROTECTED]
> 
> Hmmm...tried that but still blanks out after a while...I'm wondering
if
> there's an issue with my use of sessions...would that come into play
> here?

-
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 Action in Welcome File List

2003-07-30 Thread Karr, David
Well, I haven't tried this, but I did notice someone a while ago saying
that this DOES work, as long as you use a small trick.  The
"welcome-file" does have to specify a file that exists, but that doesn't
mean the web container will actually SERVE that file.  The person who
mentioned this said that they just created the named file and gave it
arbitrary contents (like "This will never be served to the client").
The web container then passed the URL to the controller, which forwarded
to the appropriate action.

> -Original Message-
> From: Suzette Daniel [mailto:[EMAIL PROTECTED]
> 
> Nope this is not supported, the web.xml must map to a file.
> 
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> 
> Can't you just do this:
> 
> 
>/PMTAction.do
> 
> 
> I do it with JRun4.  Not sure if all containers will do an action
instead
> of
> a JSP.
> 
> -Original Message-
> From: Jon Wynacht [mailto:[EMAIL PROTECTED]
> 
> Hmmm...tried that but still blanks out after a while...I'm wondering
if
> there's an issue with my use of sessions...would that come into play
> here?

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



tiles and c:redirect

2003-07-30 Thread Sloan Seaman
I have a .jsp file that is inserted via the tiles:insert tag.

In this file is a c:redirect (much like the logic:redirect) tag that should do a 
redirection.

The redirection is not occurring.

I have checked the path, and even tested a blank page that did nothing but redirect 
and it still does not work.

Is this an issue with tiles?

--
Sloan



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


RE: html:select and data refresh

2003-07-30 Thread Yee, Richard K,,DMDCWEST
Rick,
Check out using html frameset and frames. Have the result of your form go to
a different results frame.

Regards,

Richard


-Original Message-
From: Rick Col [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 12:04 PM
To: Struts Users Mailing List
Subject: Re: html:select and data refresh


Thanks,

Sorry for being naive on this. I am new to both
javascript and struts. I am already using onchange to
load data. Can I use another attribute, such as
onblur, or onclick to do the job? And how do I reload
the page to the previous page (that is: with no table
display)?

regards


--- Ashish Kulkarni <[EMAIL PROTECTED]>
wrote:
> Hi,
> i guess u can try onchange event on select, to find
> out when the user selectes some thing and clear the
> result table displayed below
> for clearing the table u can use java script or will
> have to reload the page
> 
> Ashish
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Hi, guys:
> > 
> > I have a list for user to select, when user select
> > one
> > item from the list, and hit search button, a
> results
> > table will be displayed at the bottom half of the
> > page. Now, if user selects another item from the
> > list,
> > I want to refresh the table (or page?) and make
> the
> > results table disappear before user hit search
> > button
> > again. I have no idea to do this. Can anyone give
> > some
> > thoughts on this?
> > 
> > regards,
> > 
> > rick
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

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



Re: ActionForm resulting in 'No collection found'

2003-07-30 Thread Sudheesh_Clement





I think instead of setting the form in the request you should set at the
seesion,
request variables last only for one single request.

That' s one way the form is available in susequent pages
I hope that will help



|-+--->
| |   "Kukwa, Brian   |
| |   (DeepGreen Bank)"   |
| |   <[EMAIL PROTECTED]|
| |   enBank.com> |
| |   |
| |   07/30/2003 02:06 PM |
| |   Please respond to   |
| |   "Struts Users   |
| |   Mailing List"   |
| |   |
|-+--->
  
>--|
  |
  |
  |   To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>  
|
  |   cc:  
  |
  |   Subject:  ActionForm resulting in 'No collection found'  
  |
  
>--|




 I'm running into a problem retrieving an ActionForm from a JSP
page.
In my derived Action, ListUsersAction, I am instantiating an ActionForm.
This ActionForm, ListUsersForm, is then being set in HTTPServletRequest.
When trying to access the ListUsersForm from the subsequent JSP page, it is
being retrieved as a null value.

 The "No collection found" error is being generated by the
iterate
tag, which I have since removed. This has been removed to find out why the
ListUsersForm is being set to null.

 There are a couple debug points I used to isolate the problem.
The
first verification happens in the ListUsersAction.  This verifies that the
ListUsersForm is not being set to null in HTTPServletRequest.  The second
verification, which fails, is in the JSP page.  This goes through all of
the
Attributes of the Request Object, displays their names and values. The
value
of the listUsersAction attribute is displayed as null. The scope of
ListUsersForm has been set to Request.

 I have included the execute() method and example jsp page that
is
faulty. Any help or added debugging concepts would be appreciated.

--

Brian




public class ListUsersAction extends Action {

public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException

 {
 ActionForward forward = null;
 ServletContext context =
getServlet().getServletContext();
 context.log("ListUsersAction.execute: Entering.");

 ListUsersForm listUsersForm = new ListUsersForm();

 String users[] = new String[3];

 users[0] = "brian";
 users[1] = "jim";
 users[2] = "anthony";

 listUsersForm.setUsers(users);

 // Stash the results in request scope
   request.setAttribute("listUsersForm", listUsersForm);
 saveToken(request);

 if( request.getAttribute("listUsersForm") == null
)
 context.log("ListUsersAction.execute:
null value.");
 else
 context.log("ListUsersAction.execute:
no null
value.");

 context.log("ListUsersAction.execute: Exiting.");

 return mapping.findForward("success");

 }//end execute()

}//end ListUsersAction


<%
  String strHeaderName = "";
  for (Enumeration e = request.getAttributeNames(); e.hasMoreElements() ;)
  {
strHeaderName = (String)e.nextElement();
%>

  <%=strHeaderName%>
  <%=request.getHeader(strHeaderName)%>

<%
  }
%>

-
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: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Bailey, Shane C.

You can do that with the struts tags as well.  But that is only for the
value just like for JSTL.





you could replace the bean:write with hard text too I assume.

I am guessing the Struts tags and JSTL tags are written the same way.
But what was wished for is having any attribute of a tag be specified within
the tag body.  That is different.

I better watch out though if I say something bad about JSTL David will rear
his head and tell me it should be OT. You can't have an opposing opinion, I
guess. 

"Although I recommend using the JSTL's  tag instead because it's
shorter, easier to use, and more powerful."

That is why I got the you should do OT because David is a JSTL Nazi!!

:-)


-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 2:28 PM
To: Struts Users Mailing List
Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is nice

Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> 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]

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



ActionForm resulting in 'No collection found'

2003-07-30 Thread Kukwa, Brian (DeepGreen Bank)
I'm running into a problem retrieving an ActionForm from a JSP page.
In my derived Action, ListUsersAction, I am instantiating an ActionForm.
This ActionForm, ListUsersForm, is then being set in HTTPServletRequest.
When trying to access the ListUsersForm from the subsequent JSP page, it is
being retrieved as a null value. 

The "No collection found" error is being generated by the iterate
tag, which I have since removed. This has been removed to find out why the
ListUsersForm is being set to null.

There are a couple debug points I used to isolate the problem. The
first verification happens in the ListUsersAction.  This verifies that the
ListUsersForm is not being set to null in HTTPServletRequest.  The second
verification, which fails, is in the JSP page.  This goes through all of the
Attributes of the Request Object, displays their names and values. The value
of the listUsersAction attribute is displayed as null. The scope of
ListUsersForm has been set to Request.

I have included the execute() method and example jsp page that is
faulty. Any help or added debugging concepts would be appreciated.

--

Brian




public class ListUsersAction extends Action {

public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws IOException, ServletException
{
ActionForward forward = null;
ServletContext context = getServlet().getServletContext();
context.log("ListUsersAction.execute: Entering.");

ListUsersForm listUsersForm = new ListUsersForm();

String users[] = new String[3];

users[0] = "brian";
users[1] = "jim";
users[2] = "anthony";

listUsersForm.setUsers(users);

// Stash the results in request scope
request.setAttribute("listUsersForm", listUsersForm);
saveToken(request);

if( request.getAttribute("listUsersForm") == null )
context.log("ListUsersAction.execute: null value.");
else
context.log("ListUsersAction.execute: no null
value.");

context.log("ListUsersAction.execute: Exiting.");

return mapping.findForward("success");

}//end execute()

}//end ListUsersAction


<%
  String strHeaderName = "";
  for (Enumeration e = request.getAttributeNames(); e.hasMoreElements() ;)
  {
strHeaderName = (String)e.nextElement();
%>

  <%=strHeaderName%>
  <%=request.getHeader(strHeaderName)%>

<%
  }
%>

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



Re: [OT]http to https shift

2003-07-30 Thread Tim Shadel
In addition, if you want some pages of a single application (either the 
Tomcat one or the WebSphere one) to be specifically HTTP or HTTPS, you 
may want to check out SSLExt (http://sslext.sf.net).  When you make your 
decision, just make sure you know the ramifications of switching from 
HTTPS to HTTP described here:

http://marc.theaimsgroup.com/?l=tomcat-user&m=105181259530393&w=2

and in similar threads on the Tomcat-User list, as well as the 
Struts-User list.

HTH,

Tim

Amit Kirdatt wrote:
Well in that case if you have your site running on https then the form will
automatically be submitted via https. 
Make sure that your login page is being submitted via https
(https://www..com/login.jsp

--Amit

-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:49 AM
To: Struts Users Mailing List
Subject: RE: [OT]http to https shift
Hi,
i have website which works on tomcat or  websphere, it
is dependent on the client to select anyone, so if the
client is using tomcat the form will be on tomcat and
will be submited on tomcat, and same will be for
websphere
Ashish
--- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
So your form resides on Websphere and you want to
post it to the tomcat
server? Or is it vice-versa? 
Can you please explain what exactly you are trying
to do?  

-Original Message-
From: Ashish Kulkarni
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 9:10 AM
To: [EMAIL PROTECTED]
Subject: [OT]http to https shift
Hi,

i have a website running on tomcat and also on
websphere, i want to change some submit to go using
https, like the login page and some sensitive
information,
can anyone point to some resource, where i can get
info about submiting a secured response, on tomcat
and
websphere
Ashish

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site
design software
http://sitebuilder.yahoo.com

-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
This e-mail, including attachments, may include
confidential and/or
proprietary information, and may be used only by the
person or entity to
which it is addressed. If the reader of this e-mail
is not the intended
recipient or his or her authorized agent, the reader
is hereby notified that
any dissemination, distribution or copying of this
e-mail is prohibited. If
you have received this e-mail in error, please
notify the sender by replying
to this message and delete this e-mail immediately.

-

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified that
any dissemination, distribution or copying of this e-mail is prohibited. If
you have received this e-mail in error, please notify the sender by replying
to this message and delete this e-mail immediately.


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


[OT] RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Brendan . Johnston
The JSTL authors decided that the value might need calculation to work it
out,
but that a pattern would not require other tags to determine.

Were they right?
Maybe, maybe not.

If they adopted the approach I suggested,
they would just have some extra busy work supporting nesting for everything,
but they would not have to think about it, and would be 'right' everytime.

The conceptual size of the tag would be smaller than the approach they took,
because I would not need to look up the documentation to see which
attributes could be tags.

If the authors of XML took this approach,
not only would the authors of JSTL not think have about it,
but parsers would be simpler,
and whole paragraphs wasted on what should be an attribute
and what should be tag would be gone from the world.

So my solution is simple, pretend that the authors of XML did take this
approach.

Brendan



-Original Message-
From: Steve Raeburn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 11:28 AM
To: Struts Users Mailing List
Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
nice


Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> 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]

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



Re: html:select and data refresh

2003-07-30 Thread Rick Col
Thanks,

Sorry for being naive on this. I am new to both
javascript and struts. I am already using onchange to
load data. Can I use another attribute, such as
onblur, or onclick to do the job? And how do I reload
the page to the previous page (that is: with no table
display)?

regards


--- Ashish Kulkarni <[EMAIL PROTECTED]>
wrote:
> Hi,
> i guess u can try onchange event on select, to find
> out when the user selectes some thing and clear the
> result table displayed below
> for clearing the table u can use java script or will
> have to reload the page
> 
> Ashish
> --- Rick Col <[EMAIL PROTECTED]> wrote:
> > Hi, guys:
> > 
> > I have a list for user to select, when user select
> > one
> > item from the list, and hit search button, a
> results
> > table will be displayed at the bottom half of the
> > page. Now, if user selects another item from the
> > list,
> > I want to refresh the table (or page?) and make
> the
> > results table disappear before user hit search
> > button
> > again. I have no idea to do this. Can anyone give
> > some
> > thoughts on this?
> > 
> > regards,
> > 
> > rick
> > 
> > __
> > Do you Yahoo!?
> > SBC Yahoo! DSL - Now only $29.95 per month!
> > http://sbc.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: html:select and data refresh

2003-07-30 Thread Ashish Kulkarni
Hi,
i guess u can try onchange event on select, to find
out when the user selectes some thing and clear the
result table displayed below
for clearing the table u can use java script or will
have to reload the page

Ashish
--- Rick Col <[EMAIL PROTECTED]> wrote:
> Hi, guys:
> 
> I have a list for user to select, when user select
> one
> item from the list, and hit search button, a results
> table will be displayed at the bottom half of the
> page. Now, if user selects another item from the
> list,
> I want to refresh the table (or page?) and make the
> results table disappear before user hit search
> button
> again. I have no idea to do this. Can anyone give
> some
> thoughts on this?
> 
> regards,
> 
> rick
> 
> __
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



html:select and data refresh

2003-07-30 Thread Rick Col
Hi, guys:

I have a list for user to select, when user select one
item from the list, and hit search button, a results
table will be displayed at the bottom half of the
page. Now, if user selects another item from the list,
I want to refresh the table (or page?) and make the
results table disappear before user hit search button
again. I have no idea to do this. Can anyone give some
thoughts on this?

regards,

rick

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Displaying is easy, capturing is not..

2003-07-30 Thread Yee, Richard K,,DMDCWEST
Mona,
You might consider first displaying the values and providing an edit button
next to the values. If the user presses the edit button, then the row is
displayed as editable fields.
Another solution might be to use check boxes to select which rows should be
edited and then present only those rows (limiting it to a reasonable number)
on the next page to edit. Look at how a web mail application works.

Regards,

Richard


-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 11:36 AM
To: 'Struts Users Mailing List'
Subject: RE: Displaying is easy, capturing is not..


Thank you - I am definately considering that. I'll probably limit the user.

-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 2:04 PM
To: 'Struts Users Mailing List'
Subject: RE: Displaying is easy, capturing is not..


Mona,
I don't think the user's browser will handle many more than 50 (a guess)
much less 600 text input elements on a single page. I think you should
re-think the UI so that fewer input elements are needed. Handling 600 input
fields on the server side will take a long time (several seconds to a few
minutes).

-Richard

-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:50 AM
To: Struts Users Mailing List
Subject: Re: Displaying is easy, capturing is not..


Hello Mona,

is ABC is bean that has six properties that you need to show? and then you
have a collection of ABC objects in a List or Vector? if so, you can use the
indexed properties to capture all the changes done on the page.

and yes, usually one submit button is enough for six hundred values!!!

ATTA

- Original Message - 
From: "Alawadhi, Mona" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 10:32 AM
Subject: Displaying is easy, capturing is not..


> Hello Everyone,
>
> I wonder if someone can help me with this problem. I would appreciate
> any smart suggestion.
>
> I have a JSP that displays a collection (ValueObject fields) Let's
> call
the
> collection ABC - it consists of 6 items. I might have more than one
> ABC collections to display. This can be done by setting a Vector which
consists
> of a number of ABC collections, and simply I can iterate through the
Vector
> in my JSP and display all the ABC collections I have using textboxes.
>
> When the user tries to change any of those textboxes, I should be able
> to capture them. I have one submit button that I am using, and if, for
example,
> I have two ABC's there, I should be able to capture all 12 items.
> (note
that
> I might have 100 ABCs, in which case I have to capture 600 items.)
>
> How can I do that using one submit button?
>
> Thank you in advance,
>
> Mona
>
>
>
>
>

*
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by
> anyone
else
> is unauthorized.
>
> If you are not the intended recipient, any disclosure, copying,
distribution
> or any action taken or omitted to be taken in reliance on it, is
prohibited
> and may be unlawful. When addressed to our clients any opinions or
> advice contained in this email are subject to the terms and conditions 
> expressed
in
> the governing KPMG client engagement letter.
>

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



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 

*


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

-
To uns

RE: Displaying is easy, capturing is not..

2003-07-30 Thread Alawadhi, Mona
Thank you - I am definately considering that. I'll probably limit the user.

-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 2:04 PM
To: 'Struts Users Mailing List'
Subject: RE: Displaying is easy, capturing is not..


Mona,
I don't think the user's browser will handle many more than 50 (a guess)
much less 600 text input elements on a single page. I think you should
re-think the UI so that fewer input elements are needed. Handling 600 input
fields on the server side will take a long time (several seconds to a few
minutes).

-Richard

-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:50 AM
To: Struts Users Mailing List
Subject: Re: Displaying is easy, capturing is not..


Hello Mona,

is ABC is bean that has six properties that you need to show? and then you
have a collection of ABC objects in a List or Vector? if so, you can use the
indexed properties to capture all the changes done on the page.

and yes, usually one submit button is enough for six hundred values!!!

ATTA

- Original Message - 
From: "Alawadhi, Mona" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 10:32 AM
Subject: Displaying is easy, capturing is not..


> Hello Everyone,
>
> I wonder if someone can help me with this problem. I would appreciate 
> any smart suggestion.
>
> I have a JSP that displays a collection (ValueObject fields) Let's 
> call
the
> collection ABC - it consists of 6 items. I might have more than one 
> ABC collections to display. This can be done by setting a Vector which
consists
> of a number of ABC collections, and simply I can iterate through the
Vector
> in my JSP and display all the ABC collections I have using textboxes.
>
> When the user tries to change any of those textboxes, I should be able 
> to capture them. I have one submit button that I am using, and if, for
example,
> I have two ABC's there, I should be able to capture all 12 items. 
> (note
that
> I might have 100 ABCs, in which case I have to capture 600 items.)
>
> How can I do that using one submit button?
>
> Thank you in advance,
>
> Mona
>
>
>
>
>

*
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by 
> anyone
else
> is unauthorized.
>
> If you are not the intended recipient, any disclosure, copying,
distribution
> or any action taken or omitted to be taken in reliance on it, is
prohibited
> and may be unlawful. When addressed to our clients any opinions or 
> advice contained in this email are subject to the terms and conditions 
> expressed
in
> the governing KPMG client engagement letter.
>

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


*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 
*


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



RE: Link/Forward inside error message

2003-07-30 Thread Kat Luna
Ah, good idea.  I keep forgetting about logic:present tags.  I'll give that a
try.

thanks,

Kat
--- "Bailey, Shane C." <[EMAIL PROTECTED]> wrote:
> 
> 
> It makes sense that the struts tags are done being interpreted after the
> error message is displayed so it won't get interpreted if in the error
> message.
> 
> You could do something like (possibly a little modification to determine
> exactly which error is returned):
> 
> Properties file:
> error.password.expired=Your password has expired.
> 
> 
> JSP:
> 
> 
> 
> Please go to Change
> Password and create a new one.
> 
> 
> 
> 
> -Original Message-
> From: Kat Luna [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 30, 2003 1:23 PM
> To: struts
> Subject: Link/Forward inside error message
> 
> Hi all,
> 
> I have an error message in ApplicationResources.properties like this:
> 
> error.password.expired=Your password has expired.  Please go to Change
> Password
> and select a new one.
> 
> However "Change Password" needs to be a link to the Password Management
> page. 
> In the JSP, I would have put:  forward="passwordmanagement">...etc,
> but I don't know how to put put the forward in the ApplicationResources
> file. 
> Is there a syntax for this?  Or can I get the content of the forward inside
> the
> Action and pass it to the error when I create the ActionError?  For testing
> purposes, I put an  tag in the error
> description, but I don't want to have to edit this every time we move the
> ContextPath of the application.
> 
> Any suggestions?
> 
> thanks,
> Kat
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Steve Raeburn
Try JSTL. For example: 

  

is equivalent to:

  
26/12/1968
  

The content of the second example can even be generated by nested tags.

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Sent: July 30, 2003 11:10 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text - Nesting is
> nice
> 
> 
> It would be nice if this:
> 
> 
> 
> Parsed the same as:
> 
> 
>aValue
> 
> 
> 
> Failing that it would be nice if any tags with attribute
> also accepted nested tags with the same name and meaning as an 
> alternative.
> 
> Brendan
> 
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:23 AM
> To: Struts Users Mailing List
> Cc: [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
> 
> 
> 
> 
> On Wed, 30 Jul 2003, James Childers wrote:
> 
> > Date: Wed, 30 Jul 2003 11:35:53 -0500
> > From: James Childers <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>,
> >  [EMAIL PROTECTED]
> > Subject: RE: Prob:Calling a bean:write inside html:text
> >
> >
> > YOU CAN'T NEST TAGS.
> >
> > YOU CAN'T NEST TAGS.
> >
> > You, or anyone else, cannot nest tags. Tags cannot be nested. 
> Nesting tags
> is prohibited. If you nest a tag inside another tag, the page 
> won't compile.
> Nesting tags ist verbotten. Do not nest tags if you want your 
> page to work.
> >
> > The following won't work:
> >
> > " />
> 
> It is true that this won't work, but I would caution you that "nesting
> tags" actually means something different:
> 
>   
> 
> 
>   
> 
> which is perfectly legitimate.  A correct sentence describing what you
> cannot do is "You cannot use one tag to create all or part of the
> attribute value of another tag."
> 
> Craig
> 
> -
> 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: Link/Forward inside error message

2003-07-30 Thread katluna1
Ah, that's a good idea.  I never remember to use the logic:present 
tags.  I'll give it a try.

thanks,

kat

--- In [EMAIL PROTECTED], "Bailey, Shane C." 
<[EMAIL PROTECTED]> wrote:
> 
> 
> It makes sense that the struts tags are done being interpreted 
after the
> error message is displayed so it won't get interpreted if in the 
error
> message.
> 
> You could do something like (possibly a little modification to 
determine
> exactly which error is returned):
> 
> Properties file:
> error.password.expired=Your password has expired.
> 
> 
> JSP:
> 
> 
> 
> Please go to Change
> Password and create a new one.
> 
> 
> 
> 
> -Original Message-
> From: Kat Luna [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 30, 2003 1:23 PM
> To: struts
> Subject: Link/Forward inside error message
> 
> Hi all,
> 
> I have an error message in ApplicationResources.properties like 
this:
> 
> error.password.expired=Your password has expired.  Please go to 
Change
> Password
> and select a new one.
> 
> However "Change Password" needs to be a link to the Password 
Management
> page. 
> In the JSP, I would have put:  forward="passwordmanagement">...etc,
> but I don't know how to put put the forward in the 
ApplicationResources
> file. 
> Is there a syntax for this?  Or can I get the content of the 
forward inside
> the
> Action and pass it to the error when I create the ActionError?  For 
testing
> purposes, I put an  tag in 
the error
> description, but I don't want to have to edit this every time we 
move the
> ContextPath of the application.
> 
> Any suggestions?
> 
> thanks,
> Kat
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: Prob:Calling a bean:write inside html:text - Nesting is nice

2003-07-30 Thread Brendan . Johnston
It would be nice if this:



Parsed the same as:


   aValue



Failing that it would be nice if any tags with attribute
also accepted nested tags with the same name and meaning as an alternative.

Brendan




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 10:23 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: Prob:Calling a bean:write inside html:text




On Wed, 30 Jul 2003, James Childers wrote:

> Date: Wed, 30 Jul 2003 11:35:53 -0500
> From: James Childers <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
>
>
> YOU CAN'T NEST TAGS.
>
> YOU CAN'T NEST TAGS.
>
> You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags
is prohibited. If you nest a tag inside another tag, the page won't compile.
Nesting tags ist verbotten. Do not nest tags if you want your page to work.
>
> The following won't work:
>
> " />

It is true that this won't work, but I would caution you that "nesting
tags" actually means something different:

  


  

which is perfectly legitimate.  A correct sentence describing what you
cannot do is "You cannot use one tag to create all or part of the
attribute value of another tag."

Craig

-
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: Displaying is easy, capturing is not..

2003-07-30 Thread Yee, Richard K,,DMDCWEST
Mona,
I don't think the user's browser will handle many more than 50 (a guess)
much less 600 text input elements on a single page. I think you should
re-think the UI so that fewer input elements are needed. Handling 600 input
fields on the server side will take a long time (several seconds to a few
minutes).

-Richard

-Original Message-
From: atta-ur rehman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 10:50 AM
To: Struts Users Mailing List
Subject: Re: Displaying is easy, capturing is not..


Hello Mona,

is ABC is bean that has six properties that you need to show? and then you
have a collection of ABC objects in a List or Vector? if so, you can use the
indexed properties to capture all the changes done on the page.

and yes, usually one submit button is enough for six hundred values!!!

ATTA

- Original Message - 
From: "Alawadhi, Mona" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 10:32 AM
Subject: Displaying is easy, capturing is not..


> Hello Everyone,
>
> I wonder if someone can help me with this problem. I would appreciate 
> any smart suggestion.
>
> I have a JSP that displays a collection (ValueObject fields) Let's 
> call
the
> collection ABC - it consists of 6 items. I might have more than one 
> ABC collections to display. This can be done by setting a Vector which
consists
> of a number of ABC collections, and simply I can iterate through the
Vector
> in my JSP and display all the ABC collections I have using textboxes.
>
> When the user tries to change any of those textboxes, I should be able 
> to capture them. I have one submit button that I am using, and if, for
example,
> I have two ABC's there, I should be able to capture all 12 items. 
> (note
that
> I might have 100 ABCs, in which case I have to capture 600 items.)
>
> How can I do that using one submit button?
>
> Thank you in advance,
>
> Mona
>
>
>
>
>

*
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by 
> anyone
else
> is unauthorized.
>
> If you are not the intended recipient, any disclosure, copying,
distribution
> or any action taken or omitted to be taken in reliance on it, is
prohibited
> and may be unlawful. When addressed to our clients any opinions or 
> advice contained in this email are subject to the terms and conditions 
> expressed
in
> the governing KPMG client engagement letter.
>

*
>
>
> -
> 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: Displaying is easy, capturing is not..

2003-07-30 Thread Gandle, Panchasheel
Use Map Backed Beans for that...


Panchasheel

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 1:32 PM
To: Struts Users Mailing List
Subject: Displaying is easy, capturing is not..


Hello Everyone,

I wonder if someone can help me with this problem. I would appreciate any
smart suggestion.

I have a JSP that displays a collection (ValueObject fields) Let's call the
collection ABC - it consists of 6 items. I might have more than one ABC
collections to display. This can be done by setting a Vector which consists
of a number of ABC collections, and simply I can iterate through the Vector
in my JSP and display all the ABC collections I have using textboxes.

When the user tries to change any of those textboxes, I should be able to
capture them. I have one submit button that I am using, and if, for example,
I have two ABC's there, I should be able to capture all 12 items. (note that
I might have 100 ABCs, in which case I have to capture 600 items.)

How can I do that using one submit button?

Thank you in advance,

Mona





*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 

*


-
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: Displaying is easy, capturing is not..

2003-07-30 Thread Paananen, Tero
> How can I do that using one submit button?

Yes, see the discussions about indexed properties
this week. That's what they're for.

-TPP

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



Re: Displaying is easy, capturing is not..

2003-07-30 Thread atta-ur rehman
Hello Mona,

is ABC is bean that has six properties that you need to show? and then you
have a collection of ABC objects in a List or Vector? if so, you can use the
indexed properties to capture all the changes done on the page.

and yes, usually one submit button is enough for six hundred values!!!

ATTA

- Original Message - 
From: "Alawadhi, Mona" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 10:32 AM
Subject: Displaying is easy, capturing is not..


> Hello Everyone,
>
> I wonder if someone can help me with this problem. I would appreciate any
> smart suggestion.
>
> I have a JSP that displays a collection (ValueObject fields) Let's call
the
> collection ABC - it consists of 6 items. I might have more than one ABC
> collections to display. This can be done by setting a Vector which
consists
> of a number of ABC collections, and simply I can iterate through the
Vector
> in my JSP and display all the ABC collections I have using textboxes.
>
> When the user tries to change any of those textboxes, I should be able to
> capture them. I have one submit button that I am using, and if, for
example,
> I have two ABC's there, I should be able to capture all 12 items. (note
that
> I might have 100 ABCs, in which case I have to capture 600 items.)
>
> How can I do that using one submit button?
>
> Thank you in advance,
>
> Mona
>
>
>
>
>

*
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by anyone
else
> is unauthorized.
>
> If you are not the intended recipient, any disclosure, copying,
distribution
> or any action taken or omitted to be taken in reliance on it, is
prohibited
> and may be unlawful. When addressed to our clients any opinions or advice
> contained in this email are subject to the terms and conditions expressed
in
> the governing KPMG client engagement letter.
>

*
>
>
> -
> 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: Link/Forward inside error message

2003-07-30 Thread Bailey, Shane C.


It makes sense that the struts tags are done being interpreted after the
error message is displayed so it won't get interpreted if in the error
message.

You could do something like (possibly a little modification to determine
exactly which error is returned):

Properties file:
error.password.expired=Your password has expired.


JSP:



Please go to Change
Password and create a new one.




-Original Message-
From: Kat Luna [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 1:23 PM
To: struts
Subject: Link/Forward inside error message

Hi all,

I have an error message in ApplicationResources.properties like this:

error.password.expired=Your password has expired.  Please go to Change
Password
and select a new one.

However "Change Password" needs to be a link to the Password Management
page. 
In the JSP, I would have put: ...etc,
but I don't know how to put put the forward in the ApplicationResources
file. 
Is there a syntax for this?  Or can I get the content of the forward inside
the
Action and pass it to the error when I create the ActionError?  For testing
purposes, I put an  tag in the error
description, but I don't want to have to edit this every time we move the
ContextPath of the application.

Any suggestions?

thanks,
Kat

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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

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



RE: Help needed in Struts deployment on Weblogic 8.1

2003-07-30 Thread Richard J. Duncan
This looks like a class loading issue. In particular it sounds like your action 
classes are being put into the ejb.jar as well as or instead of in the .war. Make sure 
that:

- War contains web assets + action classes and libs used by the front end (e.g., 
struts.jar and friends)
- EJB jar contains the EJBs and the classes the EJBs depend on
- Note that as per 8.1 spec, common libraries (e.g,. beanutils if you use it in both 
struts and your ejbs go in the .ear file in app-inf/lib).

The WLS classloading scheme makes sure that your war can see anything in the ejb jar 
(but not the other way around) and that both can see the app-inf/lib jars.



Regards,
 
Rich
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 11:40 AM
To: Struts Users Mailing List
Subject: RE: Help needed in Struts deployment on Weblogic 8.1


the ear should know where the war  is.
Are you using ant ?
Where you make your web app... make sure you include struts.jat in   
  com> cc: 

   Subject:  RE: Help needed in Struts 
deployment on Weblogic 8.1  
  30/07/2003 08:46 

  PM   

  Please respond to

  "Struts Users

  Mailing List"

   

   





Hi Rajendra,

The problem is - f I only deploy the .war of my application. It works
fine. However, if I deploy the same .war within a .ear file, the error
appears.

Regards,
Sourav

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, July 30, 2003 6:52 PM
To: Struts Users Mailing List
Subject: Re: Help needed in Struts deployment on Weblogic 8.1


This note might help:

Appservers are not meant to make everything deployed on them accessible
to
the classpath of everything else. You still need to tell it where things
lie. I'll assume that the servlet is in a WAR file, and the WAR file, in
turn, is packaged in an EAR file, like this:
 theEar.ear
 |-- theEjb.jar
 |-- theWar.war
 |-- lib/libJar.jar

theWar.war then, in order to find the EJB, needs to have a MANIFEST.MF
file
in it, with a Class-Path entry of theEjb.jar (the packaging as according
to
the relative locations in the EAR file).


If you have a class that doesn't live in either the EJB jar or the WAR
archive, then you should package that up into a jar file, and put it in
the
EAR (like lib/libJar.jar). Then, extend the Class-Path entry for
theWar.war
to include lib/libJar.jar. Likewise, if the EJB jar needs it, extend the
Class-Path entry in it's MANIFEST.MF file.


These issues are covered in the J2EE 1.3 spec, and the Java Extension
Mechanism Spec. (J2EE 1.2 was meant to use this as well, but it was only
implicit, not explicit.)

thanks
-raj





  "Navneet Saraogi"

  <[EMAIL PROTECTED]To:
[EMAIL PROTECTED]

  nfosys.com>   cc:

Subject:  Help needed in
Struts deployment on Weblogic 8.1
  30/07/2003 06:40

  PM

  Please respond to

  "Struts Users

  Mailing List"









Hi,
 We've a application that uses Struts 1.0 & Ejb's... This
application is deployed on Weblogic 8.1 on a Windows XP machine... We've
created an ear for the application and deployed it using the admin
console... The familiar classNotFound issue has been hauting us for some
time... Initially I placed the struts.jar in the WEB-INF\lib of the web
module(web.war) and deployed only the web module... It was working fine
till then... Then I added a ejb module(ejb.jar) and created a app.ear
using these files... This is when the problem started... Initially the
ActionForm class of the struts package was not getiing loaded... We
moved the struts.jar from the web-inf\lib to applib folder of the ear...
This issue was resolved but then the classes

Displaying is easy, capturing is not..

2003-07-30 Thread Alawadhi, Mona
Hello Everyone,

I wonder if someone can help me with this problem. I would appreciate any
smart suggestion.

I have a JSP that displays a collection (ValueObject fields) Let's call the
collection ABC - it consists of 6 items. I might have more than one ABC
collections to display. This can be done by setting a Vector which consists
of a number of ABC collections, and simply I can iterate through the Vector
in my JSP and display all the ABC collections I have using textboxes.

When the user tries to change any of those textboxes, I should be able to
capture them. I have one submit button that I am using, and if, for example,
I have two ABC's there, I should be able to capture all 12 items. (note that
I might have 100 ABCs, in which case I have to capture 600 items.)

How can I do that using one submit button?

Thank you in advance,

Mona




*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized. 

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter. 
*


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



RE: Problems with Struts 1.1, html-el, and weblogic 6.1

2003-07-30 Thread Brendan . Johnston
I am using WebLogic 6.1 and struts
I have not tried html-el.

There are a few options for where you can put the libraries:

1. I have them in the lib directory under WEB-INF.
2. Another option is to put them in the classpath in startWebLogic.
3. The priority/treatment of classes can be changed by selecting
PreferWebInfClasses="true" in the web application tag in config.xml.

It is likely that the way you compile your JSP's impacts how the class
loaders are structured and therefore what classes can be found.

We use weblogic.jspc to compile the JSP's before deployment.
However JSP's currently recompile in production.

Note also that I have had difficulties with the WebLogic jsp compiler,
depending on service pack.  I have a patch for service pack 5 to address
difficulties.

Here is the 1.1 release code:

/**
 * Return the Class object for the specified fully
qualified
 * class name, from this web application's class loader.
 *
 * @param className Fully qualified class name to be loaded
 * @return Class object
 * @exception ClassNotFoundException if the class cannot be found
 */
public static Class applicationClass(String className) throws
ClassNotFoundException {

// Look up the class loader to be used
ClassLoader classLoader =
Thread.currentThread().getContextClassLoader();
if (classLoader == null) {
classLoader = RequestUtils.class.getClassLoader();
}

// Attempt to load the specified class
return (classLoader.loadClass(className));

}


I wonder if the context class loader is not set in one of the two cases.
You may want to use a debugger, or add some debug logs to find out.

Since it works one way and not the other, you can guess that
WebLogic is doing something different in each case,
which to my mind is unexpected behavoir.

Brendan



-Original Message-
From: Jarrod M. Lugo [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 12:38 PM
To: [EMAIL PROTECTED] Apache. Org
Subject: Problems with Struts 1.1, html-el, and weblogic 6.1


I have been running Struts 1.1 on WebLogic 6.1 with no problems (using both
the html and html-el taglibs), until I tried to use the "precompile" option.

If I have a page that uses the "html" taglib, the compilation works fine.
But if I change the page to use the "html-el" taglib, I get this error.

Any help would be greatly appreciated.

Regards,
Jarrod Lugo



[ERROR] MessageResourcesFactory - -MessageResourcesFactory.createFactory
java.lang.ClassNotFou
ndException: org.apache.struts.util.PropertyMessageResourcesFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at
org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:207)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at
org.apache.struts.util.RequestUtils.(RequestUtils.java:134)
at
org.apache.struts.util.MessageResourcesFactory.createFactory(MessageResource
sFactory.java:192)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:576)
at org.apache.struts.taglib.html.BaseTag.(BaseTag.java:94)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.class$(ELBaseTagBeanInfo.j
ava:81)
at
org.apache.strutsel.taglib.html.ELBaseTagBeanInfo.getPropertyDescriptors(ELB
aseTagBeanInfo.java:81)
at
java.beans.Introspector.getTargetPropertyInfo(Introspector.java:341)
at java.beans.Introspector.getBeanInfo(Introspector.java:291)
at java.beans.Introspector.getBeanInfo(Introspector.java:123)
at
weblogic.servlet.jsp.StandardTagLib.parseTagDD(StandardTagLib.java:1034)
at
weblogic.servlet.jsp.StandardTagLib.parseDD(StandardTagLib.java:972)
at
weblogic.servlet.jsp.StandardTagLib.(StandardTagLib.java:207)
at weblogic.servlet.jsp.JspLexer.loadTagLib(JspLexer.java:150)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE_BODY(JspLexer.java:4596)
at
weblogic.servlet.jsp.JspLexer.mTAGLIB_DIRECTIVE(JspLexer.java:4434)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4281)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2167)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1978)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1860)
at weblogic.servlet.jsp.

Link/Forward inside error message

2003-07-30 Thread Kat Luna
Hi all,

I have an error message in ApplicationResources.properties like this:

error.password.expired=Your password has expired.  Please go to Change Password
and select a new one.

However "Change Password" needs to be a link to the Password Management page. 
In the JSP, I would have put: ...etc,
but I don't know how to put put the forward in the ApplicationResources file. 
Is there a syntax for this?  Or can I get the content of the forward inside the
Action and pass it to the error when I create the ActionError?  For testing
purposes, I put an  tag in the error
description, but I don't want to have to edit this every time we move the
ContextPath of the application.

Any suggestions?

thanks,
Kat

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread Craig R. McClanahan


On Wed, 30 Jul 2003, James Childers wrote:

> Date: Wed, 30 Jul 2003 11:35:53 -0500
> From: James Childers <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> Subject: RE: Prob:Calling a bean:write inside html:text
>
>
> YOU CAN'T NEST TAGS.
>
> YOU CAN'T NEST TAGS.
>
> You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is 
> prohibited. If you nest a tag inside another tag, the page won't compile. Nesting 
> tags ist verbotten. Do not nest tags if you want your page to work.
>
> The following won't work:
>
> " />

It is true that this won't work, but I would caution you that "nesting
tags" actually means something different:

  


  

which is perfectly legitimate.  A correct sentence describing what you
cannot do is "You cannot use one tag to create all or part of the
attribute value of another tag."

Craig

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



Re: Struts console plug-in - Bug - rewrite attribute

2003-07-30 Thread message message
It seems the mistake is in the dowbload application

From: "K.C. Baltz" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Struts console plug-in -  Bug - rewrite attribute
Date: Wed, 30 Jul 2003 09:14:09 -0700
Is it possible you're confusing rewrite with redirect?

K.C.

message message wrote:

To whom it my concern,

I was using the Struts console plug-in Eclipse with the Struts-logon 
application.

the console gives the error message

 "Invalid struts config File
   error on line 44:Attribute "rewrite" is not declared for element 
"forward".
  Validate that the file's DOCTYPE is supported by Struts Console. "

The error message referring to the line below in the struts-config.xml 
file.
 

I think the attribute rewrite  has not been implemented yet.

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

-
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]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail

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


AW: Problem in using Validator Framework with Struts

2003-07-30 Thread Dirk Behrendt
Hi!

No, the code was not cut and paste...

Dirk



If your code is a direct cut-n-paste, you've got an extra '>' in your
first regular expression?

>^[a-zA-Z0-9_.-]*$

-jeff

On Wednesday, July 30, 2003, at 07:14  AM, Dirk Behrendt wrote:

> >^[a-zA-Z0-9_.-]*$


-Ursprüngliche Nachricht-
Von: Dirk Behrendt [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 30. Juli 2003 14:14
An: [EMAIL PROTECTED]
Betreff: AW: Problem in using Validator Framework with Struts

Hello!

I found the problem. I poited to a wrong DTD...

Thanx!

Dirk

-Ursprüngliche Nachricht-
Von: Stephan Wiesner [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 30. Juli 2003 06:58
An: Struts Users Mailing List
Betreff: Re: Problem in using Validator Framework with Struts

Hi Dirk,
did you  activate the plugin in struts-config? Maybe a typo? Struts 1.1 
already contains the activated plugin and there is an example war where 
you might want to copy paste some lines.

Dirk Behrendt wrote:

>Hello!
>
>I have a problem in using the Validator framework with Struts.
>
>I want to check textfields.
>
>When I start Tomcat, I got a lot of parse erros like this:
>
>element type "plug-in" must be declared.
>org.xml.SAXParseException
>
>I looked at other validation examples, but I did the same like in these
>examples. 
>What is the general problem of such errors?
>
>Thanx!
>
>Dirk
>
>
>
>
>struts-config.xml
>-
>
>
> name="loginForm"
>  type="org.apache.struts.webapp.validator.RegistrationForm"/>
>
>
>
>value="/WEB-INF/validator-rules.xml,
>
/WEB-INF/validation.xml"/>
>  
>
>
>validation.xml
>--
>
>
>property="login"
>   depends="required,mask">
>  
>   
> mask
> ^[a-zA-Z0-9_.-]*$
>
>   
>property="password"
>   depends="required,mask">
>  
>   
> mask
> ^[a-zA-Z0-9_.-]*$
>
>   
>  
>
>
>-
>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]



extension + extended path info

2003-07-30 Thread Mainguy, Mike








All,

  I have a question about extended path info.  It seems like
an increasingly common way of passing additional information (action/read/update
type info) to the servlet context.  Is there any move to suggest this (or has
it been suggested) as an improvement to the framework?  It seems it would be
helpful to be able to use extension mapping, but also be able to get the
extended path info (or visa versa) as a way to integrate J2EE security with the
framework.

 

Just a thought, wondering if there is any interest.







This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately.

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

RE: Prob:Calling a bean:write inside html:text

2003-07-30 Thread Witbeck, Shane
hmm...someone on a rant here ;) what you want to do is something like:





-Original Message-
From: James Childers [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 12:36 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: Prob:Calling a bean:write inside html:text



YOU CAN'T NEST TAGS. 

YOU CAN'T NEST TAGS.

You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags
is prohibited. If you nest a tag inside another tag, the page won't compile.
Nesting tags ist verbotten. Do not nest tags if you want your page to work. 

The following won't work:

" />

The above won't work. 

Working pages do not have nested tags. The JSP specification prohibits
nesting tags. If you nest tags, you are supporting terrorists. If you put
one tag inside the attribute of another tag, the page will not compile.

"All work and no play make Homer something something."

-= J


> -Original Message-
> From: guruprasad jakka [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Prob:Calling a bean:write inside html:text
> 
> 
> Hi,
> 
>   Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
> 
>  I tried initializing a textbox from one of the earlier bean's
> property,by nesting the bean:write inside html:text.
> It is giving errors.
> 
>  ""/>
> 
> I tried leaving the quotes but invain.
> 
> Is there a proper syntax for such operation?
> 
> 
> Thanks.
> J G Guru Prasad
> V sem, Information Technology,
> Bachelor of Engineering,
> National Institute of Technology Karnataka, Surathkal.
> ( formerly KREC )
> 
> 
> 
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> -
> 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: Prob:Calling a bean:write inside html:text

2003-07-30 Thread James Childers

YOU CAN'T NEST TAGS. 

YOU CAN'T NEST TAGS.

You, or anyone else, cannot nest tags. Tags cannot be nested. Nesting tags is 
prohibited. If you nest a tag inside another tag, the page won't compile. Nesting tags 
ist verbotten. Do not nest tags if you want your page to work. 

The following won't work:

" />

The above won't work. 

Working pages do not have nested tags. The JSP specification prohibits nesting tags. 
If you nest tags, you are supporting terrorists. If you put one tag inside the 
attribute of another tag, the page will not compile.

"All work and no play make Homer something something."

-= J


> -Original Message-
> From: guruprasad jakka [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 11:21 AM
> To: [EMAIL PROTECTED]
> Subject: Prob:Calling a bean:write inside html:text
> 
> 
> Hi,
> 
>   Even though this is a frequent question,
> I could not get the Exact syntax for doing it.
> 
>  I tried initializing a textbox from one of the earlier bean's
> property,by nesting the bean:write inside html:text.
> It is giving errors.
> 
>  ""/>
> 
> I tried leaving the quotes but invain.
> 
> Is there a proper syntax for such operation?
> 
> 
> Thanks.
> J G Guru Prasad
> V sem, Information Technology,
> Bachelor of Engineering,
> National Institute of Technology Karnataka, Surathkal.
> ( formerly KREC )
> 
> 
> 
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/reg/tag
> 
> -
> 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] Best super-class for context handling.

2003-07-30 Thread Craig R. McClanahan


On Wed, 30 Jul 2003, Simon Kelly wrote:

> Date: Wed, 30 Jul 2003 15:47:55 +0200
> From: Simon Kelly <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [OT] Best super-class for context handling.
>
> Ah, right.
>
> Not sure whether that's what I'm after.
>
> Here's a better explination.
>
> I am using files that are contained within the /WEB-INF/ dir within the web
> application to hold information required by the business logic. These files
> are not part of the controller or view but are required to generate the
> content data for the action classes. So I need something that will get the
> paths regardless of the enviroment they are in. I have chosen to pass all
> file names within the business logic in the form /WEB-INF/dir/file.x and
> have been using context.getRealPath() [or the correct method if that's
> wrong] to get the path name (which I had thought would be ok as it will
> always return the correct path regardless of where the webapp is deployed).
>
> Is this wrong, and is there a better way to do it?
>

Assuming you're in an Action, do this:

InputStream is =
 servlet.getServletContext().getResourceAsStream("/WEB-INF/dir/file.x");

It will be portable everywhere, even if you end up running on containers
that don't expand your webapp into an unpacked directory -- in those
environments, getRealPath() will return null.

> Cheers
>
> Simon
>

Craig

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



newbie-question: validation across multiple pages

2003-07-30 Thread Sebastian F. Martin
Hi all,

I've been studying the mailing list but couldn't find anything that
would help me. I'd be grateful if someone could give me a hint on this:

I am collecting user input across multiple pages and validate it in the
validate() method of the ActionForm. If an input field on the second or
the third page is empty after submit, the framework will take me back to
the first page. How can I make him turn me back to the page where the
input field was left blank?

Greetings
Sebastian



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



Prob:Calling a bean:write inside html:text

2003-07-30 Thread guruprasad jakka
Hi,

  Even though this is a frequent question,
I could not get the Exact syntax for doing it.

 I tried initializing a textbox from one of the earlier bean's
property,by nesting the bean:write inside html:text.
It is giving errors.

"/>

I tried leaving the quotes but invain.

Is there a proper syntax for such operation?


Thanks.
J G Guru Prasad
V sem, Information Technology,
Bachelor of Engineering,
National Institute of Technology Karnataka, Surathkal.
( formerly KREC )



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

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



Re: Struts Action in Welcome File List

2003-07-30 Thread K.C. Baltz
I believe the Servlet 2.3 spec allows for what Shane descibes (virtual 
paths for Welcome files).   Can't wait for Tomcat 5.

K.C.

Suzette Daniel wrote:

Nope this is not supported, the web.xml must map to a file.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 9:51 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Action in Welcome File List





Can't you just do this:


 /PMTAction.do

I do it with JRun4.  Not sure if all containers will do an action instead of
a JSP.




-Original Message-
From: Jon Wynacht [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 12:41 AM
To: Struts Users Mailing List
Subject: Re: Struts Action in Welcome File List

Hmmm...tried that but still blanks out after a while...I'm wondering if 
there's an issue with my use of sessions...would that come into play 
here?

Jon

On Tuesday, July 29, 2003, at 06:56  PM, John Cavacas wrote:

 

Try,



In your index.jsp page. Also, look at sruts-blank.war example
application
for an easy to understand example of this.
John

   

-Original Message-
From: Jon Wynacht [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 29, 2003 9:41 PM
To: [EMAIL PROTECTED]
Subject: Struts Action in Welcome File List
Hi,

I've been using Struts now for some time and enjoy it immensely! 
However, I've recently run into a problem that has me perplexed. 
Usually I can figure these things out and not bother the mail lists 
but this one requires your help ;-)

I've pulled some info from the "Programming Jakarta Struts" book by 
Chuck Cavaness on how to use a Struts action in the welcome file list 
of a web.xml file.

Based on the instructions in the book I have the following welcome
file
entry in my web.xml:

 index.jsp
 
and the following code in my index.jsp:

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


  

  

and the following entry in my struts-config.xml file:

 

So, when I first fire up Tomcat everything forwards fine but after a 
while, if I hit the following URL:

http://localhost:8080/pmt/index.jsp

I get a blank page. No forwarding. Nothing. I've tried every combo 
possible here, including using  but eventually it 
stops forwarding.

Am I doing something subtly wrong or drastically wrong here?

Thanks in advance,

Jon

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

This communication is intended for the use of the individual(s) or
entity it
was addressed to and may contain confidential and/or privileged 
information.
If the reader of this transmission is not the intended recipient, you 
are
hereby notified that any review, dissemination, distribution or 
copying of
this communication is prohibited.  If you receive this communication in
error, please notify the sender immediately and delete this 
communication
from your system(s) to which it was sent and/or replicated to. (c) 2003
Sapiens Americas Corp.

-
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]
-
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 console plug-in - Bug - rewrite attribute

2003-07-30 Thread K.C. Baltz
Is it possible you're confusing rewrite with redirect?

K.C.

message message wrote:

To whom it my concern,

I was using the Struts console plug-in Eclipse with the Struts-logon 
application.

the console gives the error message

 "Invalid struts config File
   error on line 44:Attribute "rewrite" is not declared for element 
"forward".
  Validate that the file's DOCTYPE is supported by Struts Console. "

The error message referring to the line below in the struts-config.xml 
file.
 

I think the attribute rewrite  has not been implemented yet.

_
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

-
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]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi Thanx
Ashish
--- "Mounagurusamy, Jayakumar (HAL)"
<[EMAIL PROTECTED]> wrote:
> 
> You can get full details of how to switch back and
> forth between "https" and
> "http" at following link, as well at the other
> following link you can down
> load the distribution. Hope this helps
> 
> http://jakarta.apache.org/struts/faqs/ssl.html
> 
>
http://sourceforge.net/project/showfiles.php?group_id=59967
> 
> Jay
> 
> 
> -Original Message-
> From: Amit Kirdatt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 8:32 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT]http to https shift
> 
> 
> It works automatically! 
> You don't have to mess with anything if you make
> sure that the user is
> accessing the login.jsp page via https
> 
> -Original Message-
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:24 AM
> To: Struts Users Mailing List
> Subject: RE: [OT]http to https shift
> 
> 
> Hi,
> this is what i need to do
> suppose i have a jsp login.jsp and there is a form
> defined in in like this
> 
> 
> how can i make this request go using https instead
> of
> http
> 
> Ashish
> --- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
> > Well in that case if you have your site running on
> > https then the form will
> > automatically be submitted via https. 
> > Make sure that your login page is being submitted
> > via https
> > (https://www..com/login.jsp
> > 
> > --Amit
> > 
> > -Original Message-
> > From: Ashish Kulkarni
> > [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 30, 2003 9:49 AM
> > To: Struts Users Mailing List
> > Subject: RE: [OT]http to https shift
> > 
> > 
> > Hi,
> > i have website which works on tomcat or 
> websphere,
> > it
> > is dependent on the client to select anyone, so if
> > the
> > client is using tomcat the form will be on tomcat
> > and
> > will be submited on tomcat, and same will be for
> > websphere
> > 
> > Ashish
> > --- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
> > > So your form resides on Websphere and you want
> to
> > > post it to the tomcat
> > > server? Or is it vice-versa? 
> > > Can you please explain what exactly you are
> trying
> > > to do?  
> > > 
> > > -Original Message-
> > > From: Ashish Kulkarni
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 30, 2003 9:10 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [OT]http to https shift
> > > 
> > > 
> > > Hi,
> > > 
> > > i have a website running on tomcat and also on
> > > websphere, i want to change some submit to go
> > using
> > > https, like the login page and some sensitive
> > > information,
> > > can anyone point to some resource, where i can
> get
> > > info about submiting a secured response, on
> tomcat
> > > and
> > > websphere
> > > 
> > > Ashish
> > > 
> > > __
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > > design software
> > > http://sitebuilder.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > > This e-mail, including attachments, may include
> > > confidential and/or
> > > proprietary information, and may be used only by
> > the
> > > person or entity to
> > > which it is addressed. If the reader of this
> > e-mail
> > > is not the intended
> > > recipient or his or her authorized agent, the
> > reader
> > > is hereby notified that
> > > any dissemination, distribution or copying of
> this
> > > e-mail is prohibited. If
> > > you have received this e-mail in error, please
> > > notify the sender by replying
> > > to this message and delete this e-mail
> > immediately.
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> > This e-mail, including attachments, may include
> > confidential and/or
> > proprietary information, and may be used only by
> the
> > person or entity to
> > which it is addressed. If the reader of this
> e-mail
> > is not the intended
> > recipient or his or her authorized agent, the
> reader
> > is hereby notified that
> > any dissemination, distribution or copying of this
> > e-mail is prohibited. If
> > you have received this e-mail in error, please
> > notify the sender by replying
> > to this message and delete this e-mail
> immediately.
> > 
> >
>
-
> > T

RE: [OT]http to https shift

2003-07-30 Thread Ashish Kulkarni
Hi
 I have login.jsp called from http, so need to switch
to https while submiting the request
Ashish
--- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
> It works automatically! 
> You don't have to mess with anything if you make
> sure that the user is
> accessing the login.jsp page via https
> 
> -Original Message-
> From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 30, 2003 10:24 AM
> To: Struts Users Mailing List
> Subject: RE: [OT]http to https shift
> 
> 
> Hi,
> this is what i need to do
> suppose i have a jsp login.jsp and there is a form
> defined in in like this
> 
> 
> how can i make this request go using https instead
> of
> http
> 
> Ashish
> --- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
> > Well in that case if you have your site running on
> > https then the form will
> > automatically be submitted via https. 
> > Make sure that your login page is being submitted
> > via https
> > (https://www..com/login.jsp
> > 
> > --Amit
> > 
> > -Original Message-
> > From: Ashish Kulkarni
> > [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 30, 2003 9:49 AM
> > To: Struts Users Mailing List
> > Subject: RE: [OT]http to https shift
> > 
> > 
> > Hi,
> > i have website which works on tomcat or 
> websphere,
> > it
> > is dependent on the client to select anyone, so if
> > the
> > client is using tomcat the form will be on tomcat
> > and
> > will be submited on tomcat, and same will be for
> > websphere
> > 
> > Ashish
> > --- Amit Kirdatt <[EMAIL PROTECTED]> wrote:
> > > So your form resides on Websphere and you want
> to
> > > post it to the tomcat
> > > server? Or is it vice-versa? 
> > > Can you please explain what exactly you are
> trying
> > > to do?  
> > > 
> > > -Original Message-
> > > From: Ashish Kulkarni
> > > [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 30, 2003 9:10 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [OT]http to https shift
> > > 
> > > 
> > > Hi,
> > > 
> > > i have a website running on tomcat and also on
> > > websphere, i want to change some submit to go
> > using
> > > https, like the login page and some sensitive
> > > information,
> > > can anyone point to some resource, where i can
> get
> > > info about submiting a secured response, on
> tomcat
> > > and
> > > websphere
> > > 
> > > Ashish
> > > 
> > > __
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > > design software
> > > http://sitebuilder.yahoo.com
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > > This e-mail, including attachments, may include
> > > confidential and/or
> > > proprietary information, and may be used only by
> > the
> > > person or entity to
> > > which it is addressed. If the reader of this
> > e-mail
> > > is not the intended
> > > recipient or his or her authorized agent, the
> > reader
> > > is hereby notified that
> > > any dissemination, distribution or copying of
> this
> > > e-mail is prohibited. If
> > > you have received this e-mail in error, please
> > > notify the sender by replying
> > > to this message and delete this e-mail
> > immediately.
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > http://sitebuilder.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> > This e-mail, including attachments, may include
> > confidential and/or
> > proprietary information, and may be used only by
> the
> > person or entity to
> > which it is addressed. If the reader of this
> e-mail
> > is not the intended
> > recipient or his or her authorized agent, the
> reader
> > is hereby notified that
> > any dissemination, distribution or copying of this
> > e-mail is prohibited. If
> > you have received this e-mail in error, please
> > notify the sender by replying
> > to this message and delete this e-mail
> immediately.
> > 
> >
>
-
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> This e-mail, in

Re: request.getSession().invalidate() problem

2003-07-30 Thread Erik Price


Ionel Gardais wrote:
Hi,

I am using the invalidate() method to force logout of the logged client 
but even after a call to this method, clients can navigate to a secured 
content without beeing prompt for their password.

Do you know what the problem is and/or how to solve it ?
This only works if you are doing your own authentication (such as with 
filters etc) by storing authenticated state in the session.

If you use container-managed authentication, you cannot invalidate the 
user's session -- IIRC the best you can do is adjust the session timeout 
value.



Erik

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


Re: Lost form data after form.validate() and issuing error messages

2003-07-30 Thread Tuna Vardar
It works that way, thank you very much for your help.

Pankaj Borgaonkar wrote:

Give jsp name in the input parameter directly ... As if the values are
present in the form bean then it has display ... Provided ur form bean
properties has proper set and get and u r able to see errors using
 tag ... 

-Original Message-
From: Tuna Vardar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 9:00 PM
To: Struts Users Mailing List
Subject: Re: Lost form data after form.validate() and issuing error
messages

yes, it goes to execute method of ShowXAction.

Pankaj Borgaonkar wrote:

 

Did u checked that after validate is the control is going to 
ShowXAction this method ?

-Original Message-
From: Tuna Vardar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 8:45 PM
To: Struts Users Mailing List
Subject: Re: Lost form data after form.validate() and issuing error
messages
Hello again,

I wrote struts-config.xml wrong, the rright one is as follows:

 
 
   
 
 
 
   
 
cheers,
tuna
Tuna Vardar wrote:



   

Hello,

I lose all form data  if validate returns error for the form input. If
  

 



   

action goes through validation without creating of any errors, XAction
  

 



   

works fine. ShowXAction is used to display jsp and jsp posts to
XAction. Any comments?
You can see the code below.
cheers,
tuna
*

ShowXAction.java looks like follows:

public final class ShowXAction extends Action {

 public ActionForward execute(ActionMapping mapping, ActionForm
  

 

form,

   

 HttpServletRequest request, HttpServletResponse response)
 throws Exception{
 // Update form data
 if (form == null) {
 form = new XForm();
 if ("request".equals(mapping.getScope()))
 request.setAttribute(mapping.getAttribute(), form);
 else
 session.setAttribute(mapping.getAttribute(), form);
 }
   XForm f = (XForm)form;
   f.setA("...");
 f.setB("...");
 //ensure, that form is submited only once
 saveToken(request);return 
mapping.findForward("success");

 }

XAction.java looks like:

public final class XAction extends Action {

 public ActionForward execute(ActionMapping mapping, ActionForm
  

 

form,

   

 HttpServletRequest request, HttpServletResponse response)
 throws Exception {
  XForm f = (XForm)form;
 XBean b = new XBean(f.getA(), f.getB());
 b.store();
   //ensure, that form is submited only once
 saveToken(request);return 
mapping.findForward("success");
}

and struts-config.xml is like follows:

 
 
   
 
 
 
   
 
and finally XForm is like follows:

public final class XForm extends ActionForm {

 private String a = null;
   private String b = null;
   public String getA() {
 return this.a;
 }
 public void setA(String a) {
 this.a = a;
 }
   public String getB() {
 return this.b;
 }
   public void setB(String b) {
 this.b = b;
 }
   public void reset(ActionMapping mapping, HttpServletRequest
request) {
   this.a = null;
 this.b = null;
 }

 public ActionErrors validate(ActionMapping mapping,
  HttpServletRequest request) {
 ActionErrors errors = new ActionErrors();
   if ((this.a == null) || (this.a.trim().length() == 0)) {
 errors.add(ActionErrors.GLOBAL_ERROR, new 
ActionError("form.a.missing"));
 }
   if ((this.b == null) || (this.b.trim().length() == 0)) {
 errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError("form.b.missing"));
 }
 return errors;
   }

 public String toString() {
 StringBuffer sb = new StringBuffer("XForm[");
 sb.append("a=").append(this.a);
 sb.append(",b=").append(this.b);
 return sb.toString();
 }
}

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



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


Re: request.getSession().invalidate() problem

2003-07-30 Thread Michael Nascimento Santos
If you are using BASIC authentication, it will never work because of the way
browsers work.

[]s
Michael Nascimento Santos
JSR-207 Expert Group Member
Sun Certified Programmer for the Java 2 Platform
Sun Certified Programmer for the Java 2 Platform 1.4
Sun Certified Web Component Developer for J2EE
Moderador SouJava - www.soujava.org.br

- Original Message - 
From: "Ionel Gardais" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 30, 2003 11:47 AM
Subject: request.getSession().invalidate() problem


> Hi,
>
> I am using the invalidate() method to force logout of the logged client
> but even after a call to this method, clients can navigate to a secured
> content without beeing prompt for their password.
>
> Do you know what the problem is and/or how to solve it ?
>
> thanks,
> ionel
>
>
> -
> 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: Validating fields only in some situations question....

2003-07-30 Thread Paul McCulloch
I asked pretty much the same question a few hours ago. Heres the answer I
got...


Not sure if anybody answered you question or not yet but there are a couple
things you can do...

1. Have many action mappings to one DispatchAction.  
 ... 
 ... 

link to each as "/a.do?subtask=method1" and "/b.do?subtask=method2" and then
do validation per action and not per form.

The other alternative suggested by Robert Taylor, which, once set up, is
pretty slick but involves a little extension to how validator works:
http://marc.theaimsgroup.com/?t=10535260067&r=1&w=2





-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 7:59 AM
To: 'Struts Users Mailing List'
Subject: DispatchActions - using form validation for only some methods

Hi,

I've just moved to using dispatch actions from my own implementation of
something similair to relay actions. One facility my implementation gave me
was to have the form validated when some actions were called, and not
validated for other actions (at the expense of a bloated struts-config.xml).

Using dispatch actions I am now explicitly calling the form's validation for
those methods that require a validated form:

ActionErrors errors = form.validate(mapping, request);
 if(!errors.isEmpty()) {
 saveErrors(request, errors);
 return new ActionForward(mapping.getInput());
}

Is there a better way of achieving this?

thanks,

Paul

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
Sent: 30 July 2003 16:37
To: Struts Users Mailing List
Subject: Validating fields only in some situations question


Hello, I have a question :

I am using Validator framework with Struts. I have a login form on my
web page which is associated
with 3 buttons - Login, to log the user in
 Reset , to reset the form fields
 Register, which brings the user to a new registration page

I use only one Action of the type DispatchAction which determines what
exactly to do.

My question is : how can I tell the Validator framework to perform
validation only when the user presses the Login button
and to ignore the vallidation when the users presses any of the two
other buttons ?

Thanks,
Todor

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


**
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.


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



RE: Validating fields only in some situations question....

2003-07-30 Thread Suzette Daniel
I haven't tried this myself, this is directly from Ted's book Struts in
Action(http://javaboutique.internet.com/resources/books/strutsAction/struts7
_2.html):



Suzette H. Daniel

-Original Message-
From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2003 11:37 AM
To: Struts Users Mailing List
Subject: Validating fields only in some situations question


Hello, I have a question :

I am using Validator framework with Struts. I have a login form on my web
page which is associated with 3 buttons - Login, to log the user in
 Reset , to reset the form fields
 Register, which brings the user to a new registration page

I use only one Action of the type DispatchAction which determines what
exactly to do.

My question is : how can I tell the Validator framework to perform
validation only when the user presses the Login button and to ignore the
vallidation when the users presses any of the two other buttons ?

Thanks,
Todor

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



  1   2   >