Re: newbie question!

2003-07-28 Thread Alen Ribic
Hi

I couldn't spot anything wrong below, did you get any runtime exceptions?
If so, show a snippet.

--Alen






Hello,

This question probably might have been asked many a times. But I searched
the archive (though not fully) but could not find this. So, if anybody has a
solution please do let me know.

I have developed a sample application, which takes in an input and based on
that displays either a success page or failure page. The problem am facing
is the servlet is not being called. Below is the sturts.config.xml, b.xml
and index.jsp. Am using jdk1.4.0 and tomcat 4.1.12.

The java class files are under WEB-INF\classes\myapp package.

Thanx for you help.

== index.jsp
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

 
   \First Struts Application
 



 Symbol    
  
  
  
   



==

= web.xml


http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>



 action
 
 org.apache.struts.action.ActionServlet
 
 
 config
 /WEB-INF/struts-config.xml
 
 1





 action
 *.do



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






== struts-config.xml

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






 



 

  
  

 







--
Regards,
Samanth Athrey,
Azikewe Systems,
www.azikewe.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: newbie question!

2003-07-28 Thread Samanth Athrey
Hi,
There are no exceptions at all! Once the
FormBean is executed the control is not passed on to the Servlet!

Regards,
Samanth Athrey

"Alen Ribic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> I couldn't spot anything wrong below, did you get any runtime exceptions?
> If so, show a snippet.
>
> --Alen
>
>
>
>
>
>
> Hello,
>
> This question probably might have been asked many a times. But I searched
> the archive (though not fully) but could not find this. So, if anybody has
a
> solution please do let me know.
>
> I have developed a sample application, which takes in an input and based
on
> that displays either a success page or failure page. The problem am facing
> is the servlet is not being called. Below is the sturts.config.xml, b.xml
> and index.jsp. Am using jdk1.4.0 and tomcat 4.1.12.
>
> The java class files are under WEB-INF\classes\myapp package.
>
> Thanx for you help.
>
> == index.jsp
> <%@ page language="java"%>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
>  
>\First Struts Application
>  
> 
>
>   name="lookupForm"
>  type="myapp.LookupForm">
>  Symbol    
>   
>   
>   
>
> 
> 
> 
> ==
>
> = web.xml
> 
>
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";>
>
> 
> 
>  action
>  
>  org.apache.struts.action.ActionServlet
>  
>  
>  config
>  /WEB-INF/struts-config.xml
>  
>  1
> 
>
>
> 
> 
>  action
>  *.do
> 
>
> 
>  /WEB-INF/struts-html.tld
>  /WEB-INF/struts-html.tld
> 
>
> 
>
> 
>
> == struts-config.xml
> 
>  PUBLIC
> "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
>
> 
>
>   parameter="myapp.ApplicationResources"/>
>
> 
>  
> 
>
> 
> name="lookupForm"
>   type="myapp.LookupAction"
>   input="/index.jsp">
>
>   
>   
>
>  
> 
>
> 
>
> 
>
>
> --
> Regards,
> Samanth Athrey,
> Azikewe Systems,
> www.azikewe.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: newbie question

2003-08-27 Thread Bryce Fischer
> Now I want to call sicpage1.jsp directly without first calling
> sicpage0.jsp.
> 
> But sicpage1.jsp is not getting populated with data since the action
> class is not getting called.

create a global forward to the action, and call the forward.
-- 
Bryce Fischer <[EMAIL PROTECTED]>


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



RE: newbie question

2003-02-07 Thread Mark Galbreath
I haven't used 1.0.2 since last May and don't remember if there was a big
difference in the ActionForm class.  I know that upgrading to 1.1b-1 was a
bitch, though.

As for breaking out of an iteration, take a look at the rest of the 
tag documentation.  I'm sure you will have an "aha" experience (e.g.,
).

Mark

-Original Message-
From: Charles Liu [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 07, 2003 4:59 PM

I am new to struts and I have two questions:
1. how do I break out  loop if certain condition is met?

2. I have html form like this


create
drop


I am thinking create a Map in the form bean, "1234" as key and "create" as
value(I need both information). I know this will work easily in Struts 1.1
beta, but I can only use struts 1.0.2 now. So how should I construct my bean
for struts 1.0.2?



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




RE: Newbie Question

2003-02-10 Thread Jacob Hookom
ArrayList components = (ArrayList) service
 .gatherAccessory(Bean.getContainer());

session.setAttribute("someKey", components);

-or-
request.setAttribute("someKey", components);




 //or request scope
  


-Jacob

| -Original Message-
| From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 12:06 AM
| To: Struts Users Mailing List
| Subject: Newbie Question
| 
| Greetings:
| 
| I am new to struts, and i have a question that has been giving me fits all
| day.
| 
| I have a large application I am attempting to rewrite in struts, with
| several hundred jsp's and servlets.  It currently runs on Tomcat.  I am
| using, don't all of you laugh at once, 1.1-b3.
| 
| I haveured out some of how struts works from reading the samples and
| groping
| throught the code, but i can't seem to figure out how to make
| logic:iterate
| work.  Here are a couple oc code fragments, if someone could point out
| where
| i'm a bonehead, i would appreciate it.
| 
| In the Action class:
| ArrayList components = ( ArrayList ) service.gatherAccessory
|  Bean.getContainer ( ) );
| // Error checking and logging etc
| if ( components != null && components.size ( ) > 0 ) {
| System.out.println ( "Nav: Comp: " + components.size ( ) );
| //txSupport component = new txSupport ( );
| //session.setAttribute ( Constants.COMPONENT_KEY, components.get
| ( 1 ) );
| //session.setAttribute ( Constants.COMPONENTS_KEY,
| components.toArray ( as ) );
| session.setAttribute ( component, components.get ( 0 ) );
| navForm.setComponents ( components );
| }
| 
| I have tried several alternatives as to how to set the id attribute:
| - an empty instance of the Bean that is contained in the collection
| - the first element in the array
| I have tried to set the name property of the iterate to an array
| all with different errors.  The one that worked the best was when
| I pointed the id property of iterate to the first element of the
| Collection.  Here i simply got the iterator to iterate the first
| element.  In the Action class I have iterated the Collection and
| there are three elements in the list.
| 
| In the jsp:
| 
|   
| 
| 
|   
| 
|   
| 
| 
|   
| 
| The navigateForm has a pair of methods get/setComponents that return the
| Collection.  If I put a logic:equal and test a member of the iteration it
| works in all cases.
| 
| I am very perplexed by this situation and any light shed on the problem
| would be appreciated.
| 
| Thanks in advance
| Ray Madigan
| 
| 
| -
| 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: Newbie Question

2003-02-10 Thread Ray Madigan
Here is my new code:

ArrayList components = ( ArrayList ) service.gatherAccessory
 Bean.getContainer ( ) );
request.setAttribute ( "components", components );

the jsp:

  ">

  

  

  


I get the ServletException:
Cannot find bean container in any scope

If I remove the 
It is fine -doesn't fault - doesn't write anything

If I remove the 
It will iterate the list only once.
I have print statements in the Action

Im stumped? Any Ideas

I will try Struts 1.0.2 - Except the examples seem to work :-)

Thanks for your help
Ray Madigan

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 10:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question


ArrayList components = (ArrayList) service
 .gatherAccessory(Bean.getContainer());

session.setAttribute("someKey", components);

-or-
request.setAttribute("someKey", components);




 //or request scope
  


-Jacob

| -Original Message-
| From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 12:06 AM
| To: Struts Users Mailing List
| Subject: Newbie Question
|
| Greetings:
|
| I am new to struts, and i have a question that has been giving me fits all
| day.
|
| I have a large application I am attempting to rewrite in struts, with
| several hundred jsp's and servlets.  It currently runs on Tomcat.  I am
| using, don't all of you laugh at once, 1.1-b3.
|
| I haveured out some of how struts works from reading the samples and
| groping
| throught the code, but i can't seem to figure out how to make
| logic:iterate
| work.  Here are a couple oc code fragments, if someone could point out
| where
| i'm a bonehead, i would appreciate it.
|
| In the Action class:
| ArrayList components = ( ArrayList ) service.gatherAccessory
|  Bean.getContainer ( ) );
| // Error checking and logging etc
| if ( components != null && components.size ( ) > 0 ) {
| System.out.println ( "Nav: Comp: " + components.size ( ) );
| //txSupport component = new txSupport ( );
| //session.setAttribute ( Constants.COMPONENT_KEY, components.get
| ( 1 ) );
| //session.setAttribute ( Constants.COMPONENTS_KEY,
| components.toArray ( as ) );
| session.setAttribute ( component, components.get ( 0 ) );
| navForm.setComponents ( components );
| }
|
| I have tried several alternatives as to how to set the id attribute:
| - an empty instance of the Bean that is contained in the collection
| - the first element in the array
| I have tried to set the name property of the iterate to an array
| all with different errors.  The one that worked the best was when
| I pointed the id property of iterate to the first element of the
| Collection.  Here i simply got the iterator to iterate the first
| element.  In the Action class I have iterated the Collection and
| there are three elements in the list.
|
| In the jsp:
|
|   
|
| 
|   
| 
|   
| 
|
|   
|
| The navigateForm has a pair of methods get/setComponents that return the
| Collection.  If I put a logic:equal and test a member of the iteration it
| works in all cases.
|
| I am very perplexed by this situation and any light shed on the problem
| would be appreciated.
|
| Thanks in advance
| Ray Madigan
|
|
| -
| 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: Newbie Question

2003-02-10 Thread Ray Madigan
Sorry - the ServletException was:
Cannot find bean component in any scope

I was doing another experiment attempting to
iterate containers and got the messages mixed.

Thanks

-Original Message-
From: Ray Madigan [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 11:23 PM
To: Struts Users Mailing List
Subject: RE: Newbie Question


Here is my new code:

ArrayList components = ( ArrayList ) service.gatherAccessory
 Bean.getContainer ( ) );
request.setAttribute ( "components", components );

the jsp:

  ">

  

  

  


I get the ServletException:
Cannot find bean container in any scope
If I remove the 
It is fine -doesn't fault - doesn't write anything

If I remove the 
It will iterate the list only once.
I have print statements in the Action

Im stumped? Any Ideas

I will try Struts 1.0.2 - Except the examples seem to work :-)

Thanks for your help
Ray Madigan

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 10:24 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question


ArrayList components = (ArrayList) service
 .gatherAccessory(Bean.getContainer());

session.setAttribute("someKey", components);

-or-
request.setAttribute("someKey", components);




 //or request scope
  


-Jacob

| -Original Message-
| From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 12:06 AM
| To: Struts Users Mailing List
| Subject: Newbie Question
|
| Greetings:
|
| I am new to struts, and i have a question that has been giving me fits all
| day.
|
| I have a large application I am attempting to rewrite in struts, with
| several hundred jsp's and servlets.  It currently runs on Tomcat.  I am
| using, don't all of you laugh at once, 1.1-b3.
|
| I haveured out some of how struts works from reading the samples and
| groping
| throught the code, but i can't seem to figure out how to make
| logic:iterate
| work.  Here are a couple oc code fragments, if someone could point out
| where
| i'm a bonehead, i would appreciate it.
|
| In the Action class:
| ArrayList components = ( ArrayList ) service.gatherAccessory
|  Bean.getContainer ( ) );
| // Error checking and logging etc
| if ( components != null && components.size ( ) > 0 ) {
| System.out.println ( "Nav: Comp: " + components.size ( ) );
| //txSupport component = new txSupport ( );
| //session.setAttribute ( Constants.COMPONENT_KEY, components.get
| ( 1 ) );
| //session.setAttribute ( Constants.COMPONENTS_KEY,
| components.toArray ( as ) );
| session.setAttribute ( component, components.get ( 0 ) );
| navForm.setComponents ( components );
| }
|
| I have tried several alternatives as to how to set the id attribute:
| - an empty instance of the Bean that is contained in the collection
| - the first element in the array
| I have tried to set the name property of the iterate to an array
| all with different errors.  The one that worked the best was when
| I pointed the id property of iterate to the first element of the
| Collection.  Here i simply got the iterator to iterate the first
| element.  In the Action class I have iterated the Collection and
| there are three elements in the list.
|
| In the jsp:
|
|   
|
| 
|   
| 
|   
| 
|
|   
|
| The navigateForm has a pair of methods get/setComponents that return the
| Collection.  If I put a logic:equal and test a member of the iteration it
| works in all cases.
|
| I am very perplexed by this situation and any light shed on the problem
| would be appreciated.
|
| Thanks in advance
| Ray Madigan
|
|
| -
| 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: Newbie Question

2003-02-10 Thread Jacob Hookom
This is illegal (you can't embed tags as attributes):

">

If you must use logic such as this, do yourself a favor and switch to JSTL
:-)





   




http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

I can't say enough about JSTL.  With Struts and JSTL, the only Struts tags
you should ever use are the html:form tags and possibly bean:message.

-Jacob


| -Original Message-
| From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 1:23 AM
| To: Struts Users Mailing List
| Subject: RE: Newbie Question
| 
| Here is my new code:
| 
| ArrayList components = ( ArrayList ) service.gatherAccessory
|  Bean.getContainer ( ) );
| request.setAttribute ( "components", components );
| 
| the jsp:
| 
|   ">
| 
|   
| 
|   
| 
|   
| 
| 
| I get the ServletException:
| Cannot find bean container in any scope
| 
| If I remove the 
| It is fine -doesn't fault - doesn't write anything
| 
| If I remove the 
| It will iterate the list only once.
| I have print statements in the Action
| 
| Im stumped? Any Ideas
| 
| I will try Struts 1.0.2 - Except the examples seem to work :-)
| 
| Thanks for your help
| Ray Madigan
| 
| -Original Message-
| From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
| Sent: Monday, February 10, 2003 10:24 PM
| To: 'Struts Users Mailing List'
| Subject: RE: Newbie Question
| 
| 
| ArrayList components = (ArrayList) service
| 
| .gatherAccessory(Bean.getContainer());
| 
| session.setAttribute("someKey", components);
| 
| -or-
| request.setAttribute("someKey", components);
| 
| 
| 
| 
|  //or request
| scope
|   
| 
| 
| -Jacob
| 
| | -Original Message-
| | From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| | Sent: Tuesday, February 11, 2003 12:06 AM
| | To: Struts Users Mailing List
| | Subject: Newbie Question
| |
| | Greetings:
| |
| | I am new to struts, and i have a question that has been giving me fits
| all
| | day.
| |
| | I have a large application I am attempting to rewrite in struts, with
| | several hundred jsp's and servlets.  It currently runs on Tomcat.  I am
| | using, don't all of you laugh at once, 1.1-b3.
| |
| | I haveured out some of how struts works from reading the samples and
| | groping
| | throught the code, but i can't seem to figure out how to make
| | logic:iterate
| | work.  Here are a couple oc code fragments, if someone could point out
| | where
| | i'm a bonehead, i would appreciate it.
| |
| | In the Action class:
| | ArrayList components = ( ArrayList ) service.gatherAccessory
| |  Bean.getContainer ( ) );
| | // Error checking and logging etc
| | if ( components != null && components.size ( ) > 0 ) {
| | System.out.println ( "Nav: Comp: " + components.size ( ) );
| | //txSupport component = new txSupport ( );
| | //session.setAttribute ( Constants.COMPONENT_KEY, components.get
| | ( 1 ) );
| | //session.setAttribute ( Constants.COMPONENTS_KEY,
| | components.toArray ( as ) );
| | session.setAttribute ( component, components.get ( 0 ) );
| | navForm.setComponents ( components );
| | }
| |
| | I have tried several alternatives as to how to set the id attribute:
| | - an empty instance of the Bean that is contained in the collection
| | - the first element in the array
| | I have tried to set the name property of the iterate to an array
| | all with different errors.  The one that worked the best was when
| | I pointed the id property of iterate to the first element of the
| | Collection.  Here i simply got the iterator to iterate the first
| | element.  In the Action class I have iterated the Collection and
| | there are three elements in the list.
| |
| | In the jsp:
| |
| |   
| |
| | 
| |   
| | 
| |   
| | 
| |
| |   
| |
| | The navigateForm has a pair of methods get/setComponents that return the
| | Collection.  If I put a logic:equal and test a member of the iteration
| it
| | works in all cases.
| |
| | I am very perplexed by this situation and any light shed on the problem
| | would be appreciated.
| |
| | Thanks in advance
| | Ray Madigan
| |
| |
| | -
| | 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: Newbie Question

2003-02-11 Thread Ray Madigan
Thanks for the advice - i didn't know this stuff existed.

I was just pondering how to implement logic like
if ! A || ( A && B )

And had trouble seeing how to write some reasonable code

Thanks

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 11:50 PM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question


This is illegal (you can't embed tags as attributes):

">

If you must use logic such as this, do yourself a favor and switch to JSTL
:-)





   




http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html

I can't say enough about JSTL.  With Struts and JSTL, the only Struts tags
you should ever use are the html:form tags and possibly bean:message.

-Jacob


| -Original Message-
| From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 11, 2003 1:23 AM
| To: Struts Users Mailing List
| Subject: RE: Newbie Question
|
| Here is my new code:
|
| ArrayList components = ( ArrayList ) service.gatherAccessory
|  Bean.getContainer ( ) );
| request.setAttribute ( "components", components );
|
| the jsp:
| 
|   ">
| 
|   
| 
|   
| 
|   
| 
|
| I get the ServletException:
| Cannot find bean container in any scope
|
| If I remove the 
| It is fine -doesn't fault - doesn't write anything
|
| If I remove the 
| It will iterate the list only once.
| I have print statements in the Action
|
| Im stumped? Any Ideas
|
| I will try Struts 1.0.2 - Except the examples seem to work :-)
|
| Thanks for your help
| Ray Madigan
|
| -Original Message-
| From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
| Sent: Monday, February 10, 2003 10:24 PM
| To: 'Struts Users Mailing List'
| Subject: RE: Newbie Question
|
|
| ArrayList components = (ArrayList) service
|
| .gatherAccessory(Bean.getContainer());
|
| session.setAttribute("someKey", components);
|
| -or-
| request.setAttribute("someKey", components);
|
|
| 
|
|  //or request
| scope
|   
| 
|
| -Jacob
|
| | -Original Message-
| | From: Ray Madigan [mailto:[EMAIL PROTECTED]]
| | Sent: Tuesday, February 11, 2003 12:06 AM
| | To: Struts Users Mailing List
| | Subject: Newbie Question
| |
| | Greetings:
| |
| | I am new to struts, and i have a question that has been giving me fits
| all
| | day.
| |
| | I have a large application I am attempting to rewrite in struts, with
| | several hundred jsp's and servlets.  It currently runs on Tomcat.  I am
| | using, don't all of you laugh at once, 1.1-b3.
| |
| | I haveured out some of how struts works from reading the samples and
| | groping
| | throught the code, but i can't seem to figure out how to make
| | logic:iterate
| | work.  Here are a couple oc code fragments, if someone could point out
| | where
| | i'm a bonehead, i would appreciate it.
| |
| | In the Action class:
| | ArrayList components = ( ArrayList ) service.gatherAccessory
| |  Bean.getContainer ( ) );
| | // Error checking and logging etc
| | if ( components != null && components.size ( ) > 0 ) {
| | System.out.println ( "Nav: Comp: " + components.size ( ) );
| | //txSupport component = new txSupport ( );
| | //session.setAttribute ( Constants.COMPONENT_KEY, components.get
| | ( 1 ) );
| | //session.setAttribute ( Constants.COMPONENTS_KEY,
| | components.toArray ( as ) );
| | session.setAttribute ( component, components.get ( 0 ) );
| | navForm.setComponents ( components );
| | }
| |
| | I have tried several alternatives as to how to set the id attribute:
| | - an empty instance of the Bean that is contained in the collection
| | - the first element in the array
| | I have tried to set the name property of the iterate to an array
| | all with different errors.  The one that worked the best was when
| | I pointed the id property of iterate to the first element of the
| | Collection.  Here i simply got the iterator to iterate the first
| | element.  In the Action class I have iterated the Collection and
| | there are three elements in the list.
| |
| | In the jsp:
| |
| |   
| |
| | 
| |   
| | 
| |   
| | 
| |
| |   
| |
| | The navigateForm has a pair of methods get/setComponents that return the
| | Collection.  If I put a logic:equal and test a member of the iteration
| it
| | works in all cases.
| |
| | I am very perplexed by this situation and any light shed on the problem
| | would be appreciated.
| |
| | Thanks in advance
| | Ray Madigan
| |
| |
| | -
| | To unsubscribe, e-mail: [EMAIL PROTECTED]
| | For additional commands, e-mail: [EMAIL PROTECTED]
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-ma

Re: Newbie Question

2003-02-11 Thread Gemes Tibor
2003. február 11. 09:07 dátummal Ray Madigan ezt írtad:
> Thanks for the advice - i didn't know this stuff existed.
>
> I was just pondering how to implement logic like
> if ! A || ( A && B )

A && !B

Tib

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




Re: Newbie Question

2003-02-11 Thread Sean Dockery
Wouldn't that be...

!A || B


- Original Message -
From: "Gemes Tibor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 11, 2003 01:29
Subject: Re: Newbie Question


2003. február 11. 09:07 dátummal Ray Madigan ezt írtad:
> Thanks for the advice - i didn't know this stuff existed.
>
> I was just pondering how to implement logic like
> if ! A || ( A && B )

A && !B

Tib

-
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: Newbie question

2003-03-11 Thread Jarnot Voytek Contr AU HQ/SC
do a post instead of a get

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: James [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 9:23 AM
> To: [EMAIL PROTECTED]
> Subject: Newbie question
> 
> 
> How can i mask the url in the browser so the user does not 
> see the request
> parameters..?
> 
> ie /localhost/myapp/find?id=3  - is what is currently displayed...
> 
> 
> 
> 
> 
> -
> 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: Newbie question

2003-03-11 Thread Stephen Smithstone
id first pass it to a the action needed then do a redirect to another action 
that would get rid of the url for you maybe

On Tuesday 11 March 2003 3:22 pm, James wrote:
> How can i mask the url in the browser so the user does not see the request
> parameters..?
>
> ie /localhost/myapp/find?id=3  - is what is currently displayed...
>
>
>
>
>
> -
> 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: Newbie question

2003-03-11 Thread Jamesey
I am doing a post...

but the url still shows localhost/myapp/find.do?id=3

"Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
message
news:[EMAIL PROTECTED]
> do a post instead of a get
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -Original Message-
> > From: James [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 11, 2003 9:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Newbie question
> >
> >
> > How can i mask the url in the browser so the user does not
> > see the request
> > parameters..?
> >
> > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> >
> >
> >
> >
> >
> > -
> > 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: Newbie question

2003-03-11 Thread Mark Galbreath
Use HTTP POST instead of GET.

Mark

-Original Message-
From: James [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: Newbie question


How can i mask the url in the browser so the user does not see the request
parameters..?

ie /localhost/myapp/find?id=3  - is what is currently displayed...





-
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: Newbie question

2003-03-11 Thread apachep2
Do you intentionally append id=3 to the url? 

-Original Message-
From: Jamesey [mailto:[EMAIL PROTECTED] 
Sent: March 11, 2003 10:29 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie question

I am doing a post...

but the url still shows localhost/myapp/find.do?id=3

"Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
message
news:[EMAIL PROTECTED]
> do a post instead of a get
>
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
>
>
> > -Original Message-
> > From: James [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 11, 2003 9:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: Newbie question
> >
> >
> > How can i mask the url in the browser so the user does not
> > see the request
> > parameters..?
> >
> > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> >
> >
> >
> >
> >
> >
-
> > 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: Newbie question

2003-03-11 Thread Jamesey
nope.. its just the property's of my Dynabean..

when i sumbit and the form posts that what i get..


"apachep2" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Do you intentionally append id=3 to the url?
>
> -Original Message-
> From: Jamesey [mailto:[EMAIL PROTECTED]
> Sent: March 11, 2003 10:29 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Newbie question
>
> I am doing a post...
>
> but the url still shows localhost/myapp/find.do?id=3
>
> "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> message
> news:[EMAIL PROTECTED]
> > do a post instead of a get
> >
> > --
> > Voytek Jarnot
> > Quidquid latine dictum sit, altum viditur.
> >
> >
> > > -Original Message-
> > > From: James [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Newbie question
> > >
> > >
> > > How can i mask the url in the browser so the user does not
> > > see the request
> > > parameters..?
> > >
> > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > >
> > >
> > >
> > >
> > >
> > >
> -
> > > 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: Newbie question

2003-03-11 Thread Dejan Krsmanovic
What is the method for form? It should be POST, not GET.
Dejan
- Original Message -
From: "Jamesey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 4:34 PM
Subject: Re: Newbie question


> nope.. its just the property's of my Dynabean..
>
> when i sumbit and the form posts that what i get..
>
>
> "apachep2" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Do you intentionally append id=3 to the url?
> >
> > -Original Message-
> > From: Jamesey [mailto:[EMAIL PROTECTED]
> > Sent: March 11, 2003 10:29 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Newbie question
> >
> > I am doing a post...
> >
> > but the url still shows localhost/myapp/find.do?id=3
> >
> > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> > message
> > news:[EMAIL PROTECTED]
> > > do a post instead of a get
> > >
> > > --
> > > Voytek Jarnot
> > > Quidquid latine dictum sit, altum viditur.
> > >
> > >
> > > > -Original Message-
> > > > From: James [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Newbie question
> > > >
> > > >
> > > > How can i mask the url in the browser so the user does not
> > > > see the request
> > > > parameters..?
> > > >
> > > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > -
> > > > 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: Newbie question

2003-03-11 Thread Jamesey
ok... it is POST... all my forms are POSTS..




"Dejan Krsmanovic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What is the method for form? It should be POST, not GET.
> Dejan
> - Original Message -
> From: "Jamesey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 11, 2003 4:34 PM
> Subject: Re: Newbie question
>
>
> > nope.. its just the property's of my Dynabean..
> >
> > when i sumbit and the form posts that what i get..
> >
> >
> > "apachep2" <[EMAIL PROTECTED]> wrote in message
> >
news:[EMAIL PROTECTED]
> > > Do you intentionally append id=3 to the url?
> > >
> > > -Original Message-
> > > From: Jamesey [mailto:[EMAIL PROTECTED]
> > > Sent: March 11, 2003 10:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Newbie question
> > >
> > > I am doing a post...
> > >
> > > but the url still shows localhost/myapp/find.do?id=3
> > >
> > > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> > > message
> > >
news:[EMAIL PROTECTED]
> > > > do a post instead of a get
> > > >
> > > > --
> > > > Voytek Jarnot
> > > > Quidquid latine dictum sit, altum viditur.
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: James [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Newbie question
> > > > >
> > > > >
> > > > > How can i mask the url in the browser so the user does not
> > > > > see the request
> > > > > parameters..?
> > > > >
> > > > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > -
> > > > > 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: Newbie question

2003-03-11 Thread Jamesey
in fact the html:form action='blah blah' defaults to post.. and i'm sure its
doing it cos i've viewed the source.. so now i wondering why the jiminy
blazes i'm still getting parameterized urls...

aaaragh


"Dejan Krsmanovic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What is the method for form? It should be POST, not GET.
> Dejan
> - Original Message -
> From: "Jamesey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 11, 2003 4:34 PM
> Subject: Re: Newbie question
>
>
> > nope.. its just the property's of my Dynabean..
> >
> > when i sumbit and the form posts that what i get..
> >
> >
> > "apachep2" <[EMAIL PROTECTED]> wrote in message
> >
news:[EMAIL PROTECTED]
> > > Do you intentionally append id=3 to the url?
> > >
> > > -Original Message-
> > > From: Jamesey [mailto:[EMAIL PROTECTED]
> > > Sent: March 11, 2003 10:29 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Newbie question
> > >
> > > I am doing a post...
> > >
> > > but the url still shows localhost/myapp/find.do?id=3
> > >
> > > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote in
> > > message
> > >
news:[EMAIL PROTECTED]
> > > > do a post instead of a get
> > > >
> > > > --
> > > > Voytek Jarnot
> > > > Quidquid latine dictum sit, altum viditur.
> > > >
> > > >
> > > > > -Original Message-
> > > > > From: James [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Newbie question
> > > > >
> > > > >
> > > > > How can i mask the url in the browser so the user does not
> > > > > see the request
> > > > > parameters..?
> > > > >
> > > > > ie /localhost/myapp/find?id=3  - is what is currently displayed...
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > -
> > > > > 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: Newbie question

2003-03-11 Thread Dejan Krsmanovic
Then you are probably doing redirection somwere in your action class...
I am just guessing!
Dejan


- Original Message -
From: "Jamesey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 5:03 PM
Subject: Re: Newbie question


> in fact the html:form action='blah blah' defaults to post.. and i'm sure
its
> doing it cos i've viewed the source.. so now i wondering why the jiminy
> blazes i'm still getting parameterized urls...
>
> aaaragh
>
>
> "Dejan Krsmanovic" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > What is the method for form? It should be POST, not GET.
> > Dejan
> > - Original Message -
> > From: "Jamesey" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, March 11, 2003 4:34 PM
> > Subject: Re: Newbie question
> >
> >
> > > nope.. its just the property's of my Dynabean..
> > >
> > > when i sumbit and the form posts that what i get..
> > >
> > >
> > > "apachep2" <[EMAIL PROTECTED]> wrote in message
> > >
> news:[EMAIL PROTECTED]
> > > > Do you intentionally append id=3 to the url?
> > > >
> > > > -Original Message-
> > > > From: Jamesey [mailto:[EMAIL PROTECTED]
> > > > Sent: March 11, 2003 10:29 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: Newbie question
> > > >
> > > > I am doing a post...
> > > >
> > > > but the url still shows localhost/myapp/find.do?id=3
> > > >
> > > > "Jarnot Voytek Contr AU HQ/SC" <[EMAIL PROTECTED]> wrote
in
> > > > message
> > > >
> news:[EMAIL PROTECTED]
> > > > > do a post instead of a get
> > > > >
> > > > > --
> > > > > Voytek Jarnot
> > > > > Quidquid latine dictum sit, altum viditur.
> > > > >
> > > > >
> > > > > > -Original Message-
> > > > > > From: James [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Tuesday, March 11, 2003 9:23 AM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Newbie question
> > > > > >
> > > > > >
> > > > > > How can i mask the url in the browser so the user does not
> > > > > > see the request
> > > > > > parameters..?
> > > > > >
> > > > > > ie /localhost/myapp/find?id=3  - is what is currently
displayed...
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > >
> -
> > > > > > 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: newbie question

2003-01-15 Thread Mark Galbreath
Read Chapter 4, "Programming Jakarta Struts" by Chuck Cavaness (O'Reilly
2003).  It answers most, if not all, your questions.

Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 10:56 AM


Im new to struts. I have been reading struts in action, and Im trying to
develop my first web app. My application is currently quite simple. I have a
welcome which I would like to incorporate a counter on this page. To keep
tabs of the # of people who have hit my site. I have a servlet which needs
to be called when the page is first visited. My question is where do I call
this servlet? I know i need to use the mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: newbie question

2003-01-15 Thread Nicolas De Loof

You can use a bean as a flag "this user has allready been count". Let's call
it "user".

Your welcome page should be a struts URL (welcome.do). Corresponding
WelcomeAction would look for "user" in session.

If not found, it does increment user counter, create user bean and put it in
session, so that next request from this user would not increase counter.

It looks for another bean called "counter" in application scope, and creates
it if needed. "counter" has a "hit" property. WelcomeAction set it to
current counter value. (Notice you should include synchronisation in "hit"
setter if exact counter is needed)

Then, you have to configure struts so that welcome.do forwards to your
"welcome-servlet".

Your welcome JSP just has to get "counter" from application scope and
display "hit" property. As WelcomeAction overwrite "hit" value for every new
user, your counter will be always up to date.




Hope it will help you

Nico.

> Im new to struts. I have been reading struts in action, and Im
> trying to develop my first web app. My application is currently
> quite simple. I have a welcome which I would like to incorporate
> a counter on this page. To keep tabs of the # of people who have
> hit my site. I have a servlet which needs to be called when the page
> is first visited. My question is where do I call this servlet?
> I know i need to use the  present; and
> I need to call an Action class which in turn will call a bean which will
> connect to a database which will keep count of the hits.  Can the
> actionServlet
> directly call an Action since I have no need to call an ActionForm?
>  And I was under the impresion that an Action would need
> to call an ActionForward when it completes its tasks. Would i still need
to
> do this
> if the client remains on the same page?
> Thank you all for your time
>
>


*
>
> This message is intended for the use of the individual or entity to which
> it is addressed and may contain information that is confidential and
> privileged and exempt from disclosure under applicable law.  If the reader
> of this message is not the intended recipient, you are hereby notified
that
> any dissemination, distribution, or copying of this communication is
> strictly prohibited.  If you have received this communication in error,
> please contact the sender immediately and delete it from your system.
> Thank you
>


*
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Newbie question

2003-01-22 Thread Max Cooper
Your lazy (smart!) way #1 is correct. Let Struts instantiate your
ActionForms.

-Max

- Original Message -
From: "Fred Lamuette" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 22, 2003 4:17 PM
Subject: Newbie question


> For editing an article, i use this action, and of course i don't come from
a
> submitted form :
>
> type="com.xxx.ArticleAction"
> name="articleForm"
> scope="request"
> validate="false">
> 
> 
>
> And i use the folowing attributes
> (name="articleForm",scope="request",validate="false") only for not
> instanciating myself an articleForm in my ArticleAction, then i can
populate
> it and render it with article.vm.
> My question is : what is the best practice ?
> 1/ My lazzy way to get an instance of articleForm
> 2/ Put this code before populating the form bean ?
>   if (form == null) {
> form = new ArticleForm();
> if ("request".equals(mapping.getScope()))
> request.setAttribute(mapping.getAttribute(), form);
> else
> session.setAttribute(mapping.getAttribute(), form);
> }
>
> Thank you
> Richard.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: NewBie Question

2003-04-04 Thread Mick . Knutson
Tiles are what you use to put JSP together instead of using @include tags. The files 
you have are still JSP pages, and yes, you can use JS in them just fine. Once the page 
is at the users browser, it is still 1 web page. That is when the JS actually gets 
used anyways.

As far as XSLT, I can't help.. Sorry.

-Original Message-
From: Vangelis Konstantinis [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 1:42 PM
To: [EMAIL PROTECTED]
Subject: NewBie Question


Hi to all,

I am new to Struts-Tiles(1-day),

I am new to this technology, i would to use it in a web-application,

My questions is:

Can the Struts-Tile colloborate Ok with JavaScript and XSLT.

In other words can in a Jsp Page use Java Script & XSLT with Tiles and
work OK?


Thanks in advance.

E.K.






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


Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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



RE: NewBie Question

2003-04-04 Thread Karapiperis Dimitris

 Vangeli,
 
 ta Struts framework den einai tpt allo apo thn efarmogh toy MVC design
pattern. Ta Struts soy prosferoyn enan dynato Controller kai aforoyn th
domi ths efarmoghs. Sto view enapokeitai se esena ti tha
xrhsimopoihseis. Sto .jsp alloste mporeis na exeis JavaScript. XSLT
logika tha mporeis  na xrhsimpopoihses, den vlepo to logo gia to
antitheto.

my warmest regards,
-
Dimitrios Karapiperis
Software Engineer
Metropolis Informatics SA
tel: +30 2310 225815 fax +30 2310 256259



-Original Message-
From: Vangelis Konstantinis [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: NewBie Question


Hi to all,

I am new to Struts-Tiles(1-day),

I am new to this technology, i would to use it in a web-application,

My questions is:

Can the Struts-Tile colloborate Ok with JavaScript and XSLT.

In other words can in a Jsp Page use Java Script & XSLT with Tiles and
work OK?


Thanks in advance.

E.K.






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



RE: NewBie Question

2003-04-04 Thread Tai Nguyen
You took the words right out of my mouth!

-Original Message-
From: Karapiperis Dimitris [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 6:56 AM
To: Struts Users Mailing List
Subject: RE: NewBie Question



 Vangeli,
 
 ta Struts framework den einai tpt allo apo thn efarmogh toy MVC design
pattern. Ta Struts soy prosferoyn enan dynato Controller kai aforoyn th
domi ths efarmoghs. Sto view enapokeitai se esena ti tha
xrhsimopoihseis. Sto .jsp alloste mporeis na exeis JavaScript. XSLT
logika tha mporeis  na xrhsimpopoihses, den vlepo to logo gia to
antitheto.

my warmest regards,
-
Dimitrios Karapiperis
Software Engineer
Metropolis Informatics SA
tel: +30 2310 225815 fax +30 2310 256259



-Original Message-
From: Vangelis Konstantinis [mailto:[EMAIL PROTECTED]
Sent: Friday, April 04, 2003 2:42 PM
To: [EMAIL PROTECTED]
Subject: NewBie Question


Hi to all,

I am new to Struts-Tiles(1-day),

I am new to this technology, i would to use it in a web-application,

My questions is:

Can the Struts-Tile colloborate Ok with JavaScript and XSLT.

In other words can in a Jsp Page use Java Script & XSLT with Tiles and
work OK?


Thanks in advance.

E.K.






-
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: Newbie question

2004-03-03 Thread James Mitchell
>From the main page of Struts (the one you clicked past to subscribe to this
list)

  http://jakarta.apache.org/struts/learning.html




--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]



- Original Message -
From: "Satya Narayan Dash" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 03, 2004 9:31 AM
Subject: Newbie question


Hi,

I am new to struts. I found a number of simple tutorials (with examples) to
understand struts-1.0, but there seems to none for struts-1.1. I have gone
through one struts-1.0 tutorial given at jspfinder.com, which is good.

Can you please recommend for struts-1.1 (with examples)?

Thanks,
Satya





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



Re: Newbie question

2002-10-02 Thread David Graham

http://developer.java.sun.com/developer/restricted/patterns/DataAccessObject.html

That is just the design pattern you should follow, no code.

Dave


>From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: Newbie question
>Date: Wed, 2 Oct 2002 14:51:18 -0400
>
>Total newbie question here: where is a good example of a database-access
>model bean? I have been looking all day on the web site for good bean
>examples.
>
>Thanks,
>Chris
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie question

2002-10-02 Thread Randall, Christopher J,,DMDCWEST

I was looking for something Struts-specific, ideally, a Struts application
with a best-practices demonstration of how to access data from a database in
a Struts application.

Thanks,
Chris

> -Original Message-
> From: David Graham [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, October 02, 2002 12:01 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Newbie question
> 
> http://developer.java.sun.com/developer/restricted/patterns/DataAccessObje
> ct.html
> 
> That is just the design pattern you should follow, no code.
> 
> Dave
> 
> 
> >From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> >Subject: Newbie question
> >Date: Wed, 2 Oct 2002 14:51:18 -0400
> >
> >Total newbie question here: where is a good example of a database-access
> >model bean? I have been looking all day on the web site for good bean
> >examples.
> >
> >Thanks,
> >Chris
> >
> >--
> >To unsubscribe, e-mail:   
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: 
> ><mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

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




Re: Newbie question

2002-10-02 Thread John Owen

Search http://java.sun.com for J2EE Design Patterns. One of them applies to
your needs.
- Original Message -
From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 1:51 PM
Subject: Newbie question


> Total newbie question here: where is a good example of a database-access
> model bean? I have been looking all day on the web site for good bean
> examples.
>
> Thanks,
> Chris
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie question

2002-10-02 Thread David Graham

I don't know of any sample apps that do this.  Here's what I do:
Some Action is executed
it says PersonHelper.getAllPeople()
which calls PersonDao.findAllPeople()
which executes jdbc calls with SQL and returns a List of Person objects

PersonHelper can be a Session EJB or a normal JavaBean.

I think this is following best practices.

Hope this helps,
Dave


>From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Newbie question
>Date: Wed, 2 Oct 2002 15:01:05 -0400
>
>I was looking for something Struts-specific, ideally, a Struts application
>with a best-practices demonstration of how to access data from a database 
>in
>a Struts application.
>
>Thanks,
>Chris
>
> > -Original Message-
> > From:   David Graham [SMTP:[EMAIL PROTECTED]]
> > Sent:   Wednesday, October 02, 2002 12:01 PM
> > To: [EMAIL PROTECTED]
> > Subject:Re: Newbie question
> >
> > 
>http://developer.java.sun.com/developer/restricted/patterns/DataAccessObje
> > ct.html
> >
> > That is just the design pattern you should follow, no code.
> >
> > Dave
> >
> >
> > >From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > >Subject: Newbie question
> > >Date: Wed, 2 Oct 2002 14:51:18 -0400
> > >
> > >Total newbie question here: where is a good example of a 
>database-access
> > >model bean? I have been looking all day on the web site for good bean
> > >examples.
> > >
> > >Thanks,
> > >Chris
> > >
> > >--
> > >To unsubscribe, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > _
> > Chat with friends online, try MSN Messenger: http://messenger.msn.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




RE: Newbie question

2002-10-02 Thread Galbreath, Mark

Chris,

Attached is a DAO I wrote you can modify to your circumstances.  Don't mind
the subclassing (it's just my abstract class); replace it with "implements
Serializable."  It creates a java.util.Properties object (key-value pairs)
based on a database table named CFG_SRVR_PRPTY with a field (column) called
PROPERTY which contains a \n-delimited (newline, not literal) string of
key=value pairs (I'm using PL/SQL Developer and Oracle 9i).

By calling one of the constructors on this class with an Action class and
putting the object into some scope, you can access key=value (i.e., JavaBean
states) saved to a database from your JSPs (or anywhere else).  I did this
to stop the proliferation of individual properties files within my
development group.

Mark

-Original Message-
From: Randall, Christopher J,,DMDCWEST
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 2:51 PM
To: 'Struts Users Mailing List'
Subject: Newbie question


Total newbie question here: where is a good example of a database-access
model bean? I have been looking all day on the web site for good bean
examples.

Thanks,
Chris

--
To unsubscribe, e-mail:

For additional commands, e-mail:





ServerProperties.java
Description: Binary data

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


RE: Newbie question

2002-10-02 Thread David Graham

Mark,
You might want to buy a vowel for your table names ;-).

CONFIG_SERVER_PROPERTY isn't so hard.

Dave


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Newbie question
>Date: Wed, 2 Oct 2002 15:20:06 -0400
>
>Chris,
>
>Attached is a DAO I wrote you can modify to your circumstances.  Don't mind
>the subclassing (it's just my abstract class); replace it with "implements
>Serializable."  It creates a java.util.Properties object (key-value pairs)
>based on a database table named CFG_SRVR_PRPTY with a field (column) called
>PROPERTY which contains a \n-delimited (newline, not literal) string of
>key=value pairs (I'm using PL/SQL Developer and Oracle 9i).
>
>By calling one of the constructors on this class with an Action class and
>putting the object into some scope, you can access key=value (i.e., 
>JavaBean
>states) saved to a database from your JSPs (or anywhere else).  I did this
>to stop the proliferation of individual properties files within my
>development group.
>
>Mark
>
>-Original Message-
>From: Randall, Christopher J,,DMDCWEST
>[mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 02, 2002 2:51 PM
>To: 'Struts Users Mailing List'
>Subject: Newbie question
>
>
>Total newbie question here: where is a good example of a database-access
>model bean? I have been looking all day on the web site for good bean
>examples.
>
>Thanks,
>Chris
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
><< ServerProperties.java >>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




Re: Newbie question

2002-10-02 Thread Eddie Bush

In Mark's defense (?) he left out some consonants too!

David Graham wrote:

> Mark,
> You might want to buy a vowel for your table names ;-).
>
> CONFIG_SERVER_PROPERTY isn't so hard.
>
> Dave 


-- 
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie question

2002-10-02 Thread Galbreath, Mark

You are preaching to the choir, here, boys.  The DBA names the tables and I
think it's a dumbass convention!

Mark

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 4:05 PM
To: Struts Users Mailing List
Subject: Re: Newbie question


In Mark's defense (?) he left out some consonants too!

David Graham wrote:

> Mark,
> You might want to buy a vowel for your table names ;-).
>
> CONFIG_SERVER_PROPERTY isn't so hard.
>
> Dave 


-- 
Eddie Bush




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

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




RE: Newbie question

2002-10-02 Thread David Graham

Yeah, we've got our own dumbass conventions here too.  Inconsistent 
hungarian notation combined with mangled words, for example:

IELECADR == email address

Dave


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Newbie question
>Date: Wed, 2 Oct 2002 16:21:16 -0400
>
>You are preaching to the choir, here, boys.  The DBA names the tables and I
>think it's a dumbass convention!
>
>Mark
>
>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 02, 2002 4:05 PM
>To: Struts Users Mailing List
>Subject: Re: Newbie question
>
>
>In Mark's defense (?) he left out some consonants too!
>
>David Graham wrote:
>
> > Mark,
> > You might want to buy a vowel for your table names ;-).
> >
> > CONFIG_SERVER_PROPERTY isn't so hard.
> >
> > Dave
>
>
>--
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: Newbie question

2002-10-02 Thread Taylor, Jason

You could also try using randomly generated strings-- that way your code
could be *extra* secure since noone else could ever figure out your naming
conventions!  

Looks like you're pretty close already ;)

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 02, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: RE: Newbie question


Yeah, we've got our own dumbass conventions here too.  Inconsistent 
hungarian notation combined with mangled words, for example:

IELECADR == email address

Dave


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Newbie question
>Date: Wed, 2 Oct 2002 16:21:16 -0400
>
>You are preaching to the choir, here, boys.  The DBA names the tables and I
>think it's a dumbass convention!
>
>Mark
>
>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 02, 2002 4:05 PM
>To: Struts Users Mailing List
>Subject: Re: Newbie question
>
>
>In Mark's defense (?) he left out some consonants too!
>
>David Graham wrote:
>
> > Mark,
> > You might want to buy a vowel for your table names ;-).
> >
> > CONFIG_SERVER_PROPERTY isn't so hard.
> >
> > Dave
>
>
>--
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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



Re: Newbie question

2002-10-02 Thread Eddie Bush

Nah - that's easy:  Interface Electronic Address

I'd never have figured it out without the hint though.

Taylor, Jason wrote:

>You could also try using randomly generated strings-- that way your code
>could be *extra* secure since noone else could ever figure out your naming
>conventions!  
>
>Looks like you're pretty close already ;)
>
>-Original Message-
>From: David Graham [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 02, 2002 1:49 PM
>To: [EMAIL PROTECTED]
>Subject: RE: Newbie question
>
>
>Yeah, we've got our own dumbass conventions here too.  Inconsistent 
>hungarian notation combined with mangled words, for example:
>
>IELECADR == email address
>
>Dave
>

-- 
Eddie Bush




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




Re: Newbie question

2002-10-02 Thread David Graham

You're probably close, although I think the "I" means that the field is 
indexed but I'm not sure.  This is especially stupid considering the indexes 
could change.

I have to laugh to myself when I think about the person making the decision 
to call the email field IELECADR.  Now this field will hold an email address 
so if I take out most of the vowels and cut some of the consonants...

Dave


>From: Eddie Bush <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>Subject: Re: Newbie question
>Date: Wed, 02 Oct 2002 16:37:09 -0500
>
>Nah - that's easy:  Interface Electronic Address
>
>I'd never have figured it out without the hint though.
>
>Taylor, Jason wrote:
>
>>You could also try using randomly generated strings-- that way your code
>>could be *extra* secure since noone else could ever figure out your naming
>>conventions!
>>
>>Looks like you're pretty close already ;)
>>
>>-Original Message-----
>>From: David Graham [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, October 02, 2002 1:49 PM
>>To: [EMAIL PROTECTED]
>>Subject: RE: Newbie question
>>
>>
>>Yeah, we've got our own dumbass conventions here too.  Inconsistent 
>>hungarian notation combined with mangled words, for example:
>>
>>IELECADR == email address
>>
>>Dave
>>
>
>--
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: Newbie question

2002-10-02 Thread Charles McClain

Chris:

Two answers:

First,  Artimus, a small demo app written by Ted Husted, demonstrates
simple data access beans working in a Struts app.  Get hold of it at
http://sourceforge.net/project/showfiles.php?group_id=49385 .

Second, as you probably know, Struts does not have a data access
component, and you're free to plug in any data access framework you
want.  I used one called JRF at http://sourceforge.net/projects/jrf/ .
It's not trivial to learn it and use it, but it is very complete and
I've been very happy with it.  Although it has no direct EJB support,
the documentation discusses integrating EJBs as a service layer on top
of the framework, which I am in the process of implementing.  They're
kind enough to include an EJB example with the source, and I had no
trouble figuring it out -- although I'm still figuring out how to
actually deploy the &^%)O## EJBs.

If you decide to look into JRF, I can send you my source code, which
will probably ease your learning curve.

-Original Message-
From: Randall, Christopher J,,DMDCWEST
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, October 02, 2002 2:51 PM
To: 'Struts Users Mailing List'
Subject: Newbie question


Total newbie question here: where is a good example of a database-access
model bean? I have been looking all day on the web site for good bean
examples.

Thanks,
Chris

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Newbie Question

2002-10-18 Thread Eddie Bush
Nope.  It's not.  There are things which can be used on top of Struts 
for this though - at least, I believe there are.  It occurs to me I've 
seen a couple of posts about such a thing recently, but I can't remember 
it's name - and certainly can't speak to how effective it/they are.

Is it really that hard to iterate over a collection and build a table 
though?

CJ Jayaprakash wrote:



Let me start the Forum with a dump question[ Searched the Archives already]

Tags for Grid/Table/Tree: is it part of the struts ?, any pointers ?

- Cheers

 CJ



--
Eddie Bush




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie Question

2002-10-18 Thread CJ Jayaprakash
Thanks for the reply !
well not at all ! 
But I am thinking about all that nice features like [ .net has concept
datagrid], sorting , paging
conditional display of columns [ not through SQl but at the display level],
conditional display of rows.
post backs after changing the cell value etc.

- CJ


-Original Message-
From: Eddie Bush [mailto:ekbush@;swbell.net]
Sent: Thursday, October 17, 2002 6:50 PM
To: Struts Users Mailing List
Subject: Re: Newbie Question


Nope.  It's not.  There are things which can be used on top of Struts 
for this though - at least, I believe there are.  It occurs to me I've 
seen a couple of posts about such a thing recently, but I can't remember 
it's name - and certainly can't speak to how effective it/they are.

Is it really that hard to iterate over a collection and build a table 
though?

CJ Jayaprakash wrote:

> 
>
>Let me start the Forum with a dump question[ Searched the Archives already]
>
>Tags for Grid/Table/Tree: is it part of the struts ?, any pointers ?
>
>- Cheers
>
>  CJ
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




RE: Newbie Question

2002-10-20 Thread Todd Pierce
Sorry about the late reply. Mail problems.

I found http://jsptags.com/tags/navigation/pager/ to be a good start. It
needs a bit of tweaking if you're using global forwards or page templates...
but I'm not going to complain about free resources! 
; )

- Todd

-Original Message-
From: CJ Jayaprakash [mailto:cj.jayaprakash@;aspentech.com]
Sent: Friday, 18 October 2002 8:53 AM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question


Thanks for the reply !
well not at all ! 
But I am thinking about all that nice features like [ .net has concept
datagrid], sorting , paging
conditional display of columns [ not through SQl but at the display level],
conditional display of rows.
post backs after changing the cell value etc.

- CJ


-Original Message-
From: Eddie Bush [mailto:ekbush@;swbell.net]
Sent: Thursday, October 17, 2002 6:50 PM
To: Struts Users Mailing List
Subject: Re: Newbie Question


Nope.  It's not.  There are things which can be used on top of Struts 
for this though - at least, I believe there are.  It occurs to me I've 
seen a couple of posts about such a thing recently, but I can't remember 
it's name - and certainly can't speak to how effective it/they are.

Is it really that hard to iterate over a collection and build a table 
though?

CJ Jayaprakash wrote:

> 
>
>Let me start the Forum with a dump question[ Searched the Archives already]
>
>Tags for Grid/Table/Tree: is it part of the struts ?, any pointers ?
>
>- Cheers
>
>  CJ
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: newbie question

2002-08-30 Thread Craig Tataryn

Hi Anand, you will not be able to run a Struts application directly under 
Apache web server.  You need either do one of two things:

1) Dump Apache web server all together, but Apache is good for serving 
static pages so you may want to take option two:
2) Have Apache running along side of Jakarta Tomcat, to find out how to do 
that, read this: 
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html.  
Basically what it amounts to is you let Apache know about Tomcat and you 
tell it which URL contexts will trigger Apache to pass the request along to 
Tomcat for processing.

So for instance if you might set it up so all requests to 
http://mysite.com/servlet get passed along to Tomcat, or perhaps you will do 
it by extension so that all files ending in .jsp will be handled by Tomcat.

Hope that helps,

Craig.

>From: "anand v" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: newbie question
>Date: Fri, 30 Aug 2002 20:38:25 +
>
>Hi,
>
>I could make the strut example work on my server.. Redhat 7.1
>
>My next goal is to just make this exmple work as it is from
>my site which is say http://mysite.com
>
>How can I do that?? Is that I have to copy all the struts-example
>directory to my site root directory?? I am using Apache webserver.
>
>My root directory for this site is /home/mysite
>
>Thanks
>
>Anand
>
>
>_
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>


Craig W. Tataryn
Programmer/Analyst
Compuware

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Newbie Question

2002-09-19 Thread Will Jaynes

There isn't a plugin for debuggin the JSP pages, at least not in Resin, 
but I debug my code and the java generated classes by using the remote 
debuggin. Here's the FAQ for this:

http://www.eclipse.org/eclipse/faq/eclipse-faq.html#users_18

Note: As a note in the FAQ mentions, be sure to use "server=y" in the 
command line arguments for starting the Resin server.

Edgar Dollin wrote:
> This is a little off topic, my apologies.
> 
> Has anyone gotten Eclipse working so you can debug the JSP and / or the
> Java classes?  On resin?
> 
> Thanks
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie Question

2002-09-20 Thread John Sherlock

> Should all JSP pages be executed through the controller?  Even those that
are external to an application that requires a login?

"Even those that are external to an application that requires a login?"

hmmm, do you mean there are certain parts of your application that require a
user to login in order to access them and certain parts that don't? If this
is the case and all your JSPs are part of the one Struts application then
yes, you should use the controller to routing all your requests. The nature
of the MVC framework is that all requests are routed through the controller
becuase it is the responsibility of the controller to select the next view
for the client. So regardless of whether or not authentication is required
for a user to perform an action, the request should still be routed via the
controller. Even if one JSP simply links to another you can still route the
request throught the controller by using the "ForwardAction" that is
provided with the struts framework. See Chapter 5, page 19 of Chuck
Cavaness' book which is available for download at
http://www.theserverside.com/resources/strutsreview.jsp. As a newbie myself
i would strongly recommend reading this book before attempting to do any
serious Struts development.

Regards,

Jonny :)


John Sherlock

Software Engineer 
Macalla Software Ltd

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie Question

2002-09-20 Thread Vinh Tran

Thanks John.

That was a typo by the way. "...application that do not DO NOT require a
login?"

I will check out the book.

-Original Message-
From: John Sherlock [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 10:27 AM
To: 'Struts Users Mailing List'
Subject: RE: Newbie Question


> Should all JSP pages be executed through the controller?  Even those that
are external to an application that requires a login?

"Even those that are external to an application that requires a login?"

hmmm, do you mean there are certain parts of your application that require a
user to login in order to access them and certain parts that don't? If this
is the case and all your JSPs are part of the one Struts application then
yes, you should use the controller to routing all your requests. The nature
of the MVC framework is that all requests are routed through the controller
becuase it is the responsibility of the controller to select the next view
for the client. So regardless of whether or not authentication is required
for a user to perform an action, the request should still be routed via the
controller. Even if one JSP simply links to another you can still route the
request throught the controller by using the "ForwardAction" that is
provided with the struts framework. See Chapter 5, page 19 of Chuck
Cavaness' book which is available for download at
http://www.theserverside.com/resources/strutsreview.jsp. As a newbie myself
i would strongly recommend reading this book before attempting to do any
serious Struts development.

Regards,

Jonny :)


John Sherlock

Software Engineer
Macalla Software Ltd

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



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




RE: Newbie Question

2002-09-20 Thread Galbreath, Mark

There are always exceptions, but the general rule is, yes, all JSP pages
should be in an Action path.  This maintains MVC integrity.

Mark

-Original Message-
From: Vinh Tran [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 20, 2002 10:00 AM

Should all JSP pages be executed through the controller?  Even those that
are external to an application that requires a login?

For example, if I had a website that has some external pages and a login
page to an application, should the external pages also use action classes?

Thanks.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Newbie question

2002-03-28 Thread phil_hershkowitz

Hi Patrick,

I would suggest that you first install one of the sample applications
distributed with struts to make sure you have your tomcat environment set up
correctly.

Then, there a several excellent struts tutorials available on the web that
take you through the process of creating and deploying a struts application.
(Search for struts tutorials).

The two key xml files that define a struts application are web.xml, which is
part of tomcat and the servlet environment, and struts-config.xml, which is
struts specific. If you take the time to understand what is in these files,
a lot of what is going on in the struts framework will make more sense.

If you are new to web development with jsp and java then you will need to
familiarize yourself with those languages.
Struts and java is a great web development environment - Good Luck!


Regards,
Phil

> -Original Message-
> From: Hairon, Patrick [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 10:37 AM
> To: '[EMAIL PROTECTED]'
> Subject: Newbie question
> 
> 
> Hi,
> 
>   I'm new with Struts and I try to make a sample 
> application, but it
> doesn't work!  I got this error:
> 
> Error: 500 
> Location: /stjco/Index.jsp
> Internal Servlet Error:
> javax.servlet.ServletException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in scope null
>  at
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImp
> l.java:459)
>  at
> _0002fIndex_0002ejspIndex_jsp_4._jspService(_0002fIndex_0002ej
> spIndex_jsp_4.
> java:196)
>  at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:177)
>  at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:318)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>  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(ContextM
> anager.java:79
> 7)
>  at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:210)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
>  at java.lang.Thread.run(Thread.java:484)
>  Root cause: 
> javax.servlet.jsp.JspException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in scope null
>  at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
>  at
> org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFiel
> dTag.java:188)
>  at
> _0002fIndex_0002ejspIndex_jsp_4._jspService(_0002fIndex_0002ej
> spIndex_jsp_4.
> java:114)
>  at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:177)
>  at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:318)
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>  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(ContextM
> anager.java:79
> 7)
>  at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:210)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
>  at java.lang.Thread.run(Thread.java:484)
> 
> Thank you to help me!!!
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie question

2001-07-25 Thread Kevin McLain



What 
steps did you take to get to that point? What web container are you 
using?

  -Original Message-From: Jonathan Yang 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 
  8:35 PMTo: strutsSubject: newbie 
  question
  Hi,all
     
   Why can't correctly run the 
  "struts-example"?
   When I click the url in 
  index.jsp,it throw the a error like 
  following:
  "The requested 
  URL /struts-example/tour.do;jsessionid=5ox6pc4q91 
  was not found on this server."
   
   why? pls help me, thx. 

   
  Regards,Jonathan
   



Re: newbie question

2001-07-25 Thread Jonathan Yang



 The appserver is  tomcat3.2.3.
 can sucessfully show the index.jsp, and when I click the 
url,
 the error appear...
 It seems that it can't know the *.do, how I can resolve 
it?
 
Regards,Jonathan
 

  - Original Message - 
  From: 
  Kevin 
  McLain 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, July 26, 2001 11:37 AM
  Subject: RE: newbie question
  
  What 
  steps did you take to get to that point? What web container are you 
  using?
  
-Original Message-From: Jonathan Yang 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 
8:35 PMTo: strutsSubject: newbie 
question
Hi,all
   
 Why can't correctly run the 
"struts-example"?
 When I click the url in 
index.jsp,it throw the a error like 
following:
"The requested 
URL /struts-example/tour.do;jsessionid=5ox6pc4q91 
was not found on this server."
 
 why? pls help me, thx. 

 
Regards,Jonathan
 



Re: newbie question

2001-07-26 Thread Peter Alfors



In your web.xml, there should be a section that maps the *.do extension
to the action servlet, for example:
    
    
  action
  *.do
    
However, if you are running the example, It should be in there.
Pete
 
Jonathan Yang wrote:

 The appserver is 
tomcat3.2.3. can sucessfully show the index.jsp, and when I click the url,
the error appear... It seems that it can't know the *.do, how I can resolve
it? Regards,
Jonathan

- Original Message -

From:Kevin
McLain

To: [EMAIL PROTECTED]

Sent: Thursday, July 26, 2001 11:37
AM

Subject: RE: newbie question
What
steps did you take to get to that point? What web container are you using?

-Original
Message-
From: Jonathan Yang [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 25,
2001 8:35 PM
To: struts
Subject: newbie question
Hi,all 
Why can't correctly run the "struts-example"? When
I click the url in index.jsp,it throw the a error likefollowing:   
"The requested URL /struts-example/tour.do;jsessionid=5ox6pc4q91   
was not found on this server." 
why? pls help me, thx. Regards,
Jonathan







RE: newbie question

2001-08-09 Thread Rick Hightower

On your form make sure you have


...

Then define the following forward in your struts-config


...

If this does not work, try including your form code so people can help you
better.

Rick Hightower
Director of Development
eBlox, Inc.

Check out our new website!
www.eblox.com

Contact Info:
eBlox Tucson
phone: 520-615-9345 x103
fax: 520-529-5774

Rick's stuff:
http://www.eblox.com/people_detail.php?id=52
http://www.geocities.com/rick_m_hightower/
http://www.brainbench.com/transcript.jsp?pid=2351036


-Original Message-
From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 08, 2001 7:08 PM
To: [EMAIL PROTECTED]
Subject: newbie question


Hi all -

I am facing a weird problem, which I could not solve
in the last couple of hours. I checked up the
mail-archive but could not locate any solution to
this.

The application has a login screen (login.jsp), which
validates a user. There is an ActionForm (LoginForm)
with appropriate get and set methods.

The struts-config.xml looks like :

  




  




 
 

When I execute the application (invoke login.jsp), I
get a 404 error on the page "login.do". I gave
debugging statements and I find that the get methods
of the ActionForm gets executed, but nothing else
happens. It does not even enter the LoginAction class.
But from the Tomcat startup messages, I find that the
mappings have been identified and loaded by Tomcat.

I have struts.jar in WEB-INF/lib. I am really banging
my head over this problem. The other applications like
struts-example etc. are running fine ..

Pls. help.

Regards.

- Debasish

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




RE: newbie question

2001-08-09 Thread Debasish Ghosh

Hi -

I tried these and still no luck ... I am enclosing the
code for the Form.

package com.anshin;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

public class LoginForm extends ActionForm
{
private String password = null;
private String username = null;

public String getPassword()
{
System.out.println( "In getPassword" );
return (this.password);
}

public void setPassword(String password)
{
this.password = password;
}

public String getUsername()
{
System.out.println( "In getUsername" );
return (this.username);
}

public void setUsername(String username)
{
System.out.println( "In setUsername" );
this.username = username;
}

public void reset(ActionMapping mapping,
HttpServletRequest request)
{
System.out.println( "In reset" );
this.password = null;
this.username = null;
}

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) 
{
System.out.println( "In validate" );
ActionErrors errors = new ActionErrors();

if ((username == null) || (username.length() <
1))
{
errors.add("username", new
ActionError("error.username.required"));
}
if ((password == null) || (password.length() <
1))
{
errors.add("password", new
ActionError("error.password.required"));
}
return errors;
}

}

I am only getting the debug prints for "In
getUsername()" and "In getPassword()". Then the 404
error comes up. I have a print in the first line of
the action class, which is NOT getting printed.

Cheers.
- Debasish
--- Rick Hightower <[EMAIL PROTECTED]> wrote:
> On your form make sure you have
> 
> 
> ...
> 
> Then define the following forward in your
> struts-config
> 
> 
> ...
> 
> If this does not work, try including your form code
> so people can help you
> better.
> 
> Rick Hightower
> Director of Development
> eBlox, Inc.
> 
> Check out our new website!
> www.eblox.com
> 
> Contact Info:
> eBlox Tucson
> phone: 520-615-9345 x103
> fax: 520-529-5774
> 
> Rick's stuff:
> http://www.eblox.com/people_detail.php?id=52
> http://www.geocities.com/rick_m_hightower/
> http://www.brainbench.com/transcript.jsp?pid=2351036
> 
> 
> -Original Message-
> From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 7:08 PM
> To: [EMAIL PROTECTED]
> Subject: newbie question
> 
> 
> Hi all -
> 
> I am facing a weird problem, which I could not solve
> in the last couple of hours. I checked up the
> mail-archive but could not locate any solution to
> this.
> 
> The application has a login screen (login.jsp),
> which
> validates a user. There is an ActionForm (LoginForm)
> with appropriate get and set methods.
> 
> The struts-config.xml looks like :
> 
>   
> 
> 
>  type="com.anshin.LoginForm"/>
> 
>   
> 
> 
> type="com.anshin.LoginAction"
>name="loginForm"
>validate="true"
>input="login.jsp">
> 
>   path="/login.jsp"/>
>  
> 
> When I execute the application (invoke login.jsp), I
> get a 404 error on the page "login.do". I gave
> debugging statements and I find that the get methods
> of the ActionForm gets executed, but nothing else
> happens. It does not even enter the LoginAction
> class.
> But from the Tomcat startup messages, I find that
> the
> mappings have been identified and loaded by Tomcat.
> 
> I have struts.jar in WEB-INF/lib. I am really
> banging
> my head over this problem. The other applications
> like
> struts-example etc. are running fine ..
> 
> Pls. help.
> 
> Regards.
> 
> - Debasish
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: newbie question

2001-08-09 Thread Martin Cooper

This is not related to the form. It looks like you may not have extension 
mapping set up for your application. My guess is that if you type this in 
your browser:

http://yourHost/pathToYourApp/login.do

you will also see a 404. That suggests that you need to add something like 
this:

   
   
 action
 *.do
   


to your web.xml file. You might want to take a look at the web.xml file in 
the struts-example app to make sure you've got everything else that you need.

--
Martin Cooper


At 12:07 PM 8/9/01, Debasish Ghosh wrote:
>Hi -
>
>I tried these and still no luck ... I am enclosing the
>code for the Form.
>
>package com.anshin;
>
>import javax.servlet.http.HttpServletRequest;
>import org.apache.struts.action.ActionError;
>import org.apache.struts.action.ActionErrors;
>import org.apache.struts.action.ActionForm;
>import org.apache.struts.action.ActionMapping;
>
>public class LoginForm extends ActionForm
>{
> private String password = null;
> private String username = null;
>
> public String getPassword()
> {
> System.out.println( "In getPassword" );
> return (this.password);
> }
>
> public void setPassword(String password)
> {
> this.password = password;
> }
>
> public String getUsername()
> {
> System.out.println( "In getUsername" );
> return (this.username);
> }
>
> public void setUsername(String username)
> {
> System.out.println( "In setUsername" );
> this.username = username;
> }
>
> public void reset(ActionMapping mapping,
>HttpServletRequest request)
> {
> System.out.println( "In reset" );
> this.password = null;
> this.username = null;
> }
>
> public ActionErrors validate(ActionMapping mapping,
>HttpServletRequest request)
> {
> System.out.println( "In validate" );
> ActionErrors errors = new ActionErrors();
>
> if ((username == null) || (username.length() <
>1))
> {
> errors.add("username", new
>ActionError("error.username.required"));
> }
> if ((password == null) || (password.length() <
>1))
> {
> errors.add("password", new
>ActionError("error.password.required"));
> }
> return errors;
> }
>
>}
>
>I am only getting the debug prints for "In
>getUsername()" and "In getPassword()". Then the 404
>error comes up. I have a print in the first line of
>the action class, which is NOT getting printed.
>
>Cheers.
>- Debasish
>--- Rick Hightower <[EMAIL PROTECTED]> wrote:
> > On your form make sure you have
> >
> > 
> > ...
> >
> > Then define the following forward in your
> > struts-config
> >
> > 
> > ...
> >
> > If this does not work, try including your form code
> > so people can help you
> > better.
> >
> > Rick Hightower
> > Director of Development
> > eBlox, Inc.
> >
> > Check out our new website!
> > www.eblox.com
> >
> > Contact Info:
> > eBlox Tucson
> > phone: 520-615-9345 x103
> > fax: 520-529-5774
> >
> > Rick's stuff:
> > http://www.eblox.com/people_detail.php?id=52
> > http://www.geocities.com/rick_m_hightower/
> > http://www.brainbench.com/transcript.jsp?pid=2351036
> >
> >
> > -Original Message-
> > From: Debasish Ghosh [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 08, 2001 7:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: newbie question
> >
> >
> > Hi all -
> >
> > I am facing a weird problem, which I could not solve
> > in the last couple of hours. I checked up the
> > mail-archive but could not locate any solution to
> > this.
> >
> > The application has a login screen (login.jsp),
> > which
> > validates a user. There is an ActionForm (LoginForm)
> > with appropriate get and set methods.
> >
> > The struts-config.xml looks like :
> >
> >   
> >
> > 
> >  > type="com.anshin.LoginForm"/>
> >
> >   
> >
> > 
> >  >type="com.anshin.LoginAction"
> >name="loginForm"
> >validate="true"
> >input="login.jsp">
> >
> >   > path="/login.jsp"/>
> >  
> >
> > When I execute the application (invoke login.jsp), I
> > get a 404 error on the page "login.do". I gave
> > debugging statements and I find that the get methods
> > of the ActionForm gets executed, but nothing else
> > happens. It does not even enter the LoginAction
> > class.
> > But from the Tomcat startup messages, I find that
> > the
> > mappings have been identified and loaded by Tomcat.
> >
> > I have struts.jar in WEB-INF/lib. I am really
> > banging
> > my head over this problem. The other applications
> > like
> > struts-example etc. are running fine ..
> >
> > Pls. help.
> >
> > Regards.
> >
> > - Debasish
> >
> > 

RE: newbie question

2001-08-09 Thread Debasish Ghosh

Actually I have the extension mapping set up as well.
The following is the web.xml file that I am using from
WEB-INF :



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>





  
  
action
   
org.apache.struts.action.ActionServlet

  application
  ApplicationResources


  config
 
/WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

1
  


  
  
action
*.do
  


  
  
login.jsp
  

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

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

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



--- Martin Cooper <[EMAIL PROTECTED]>
wrote:
> This is not related to the form. It looks like you
> may not have extension 
> mapping set up for your application. My guess is
> that if you type this in 
> your browser:
> 
> http://yourHost/pathToYourApp/login.do
> 
> you will also see a 404. That suggests that you need
> to add something like 
> this:
> 
>
>
>  action
>  *.do
>
> 
> 
> to your web.xml file. You might want to take a look
> at the web.xml file in 
> the struts-example app to make sure you've got
> everything else that you need.
> 
> --
> Martin Cooper
> 
> 
> At 12:07 PM 8/9/01, Debasish Ghosh wrote:
> >Hi -
> >
> >I tried these and still no luck ... I am enclosing
> the
> >code for the Form.
> >
> >package com.anshin;
> >
> >import javax.servlet.http.HttpServletRequest;
> >import org.apache.struts.action.ActionError;
> >import org.apache.struts.action.ActionErrors;
> >import org.apache.struts.action.ActionForm;
> >import org.apache.struts.action.ActionMapping;
> >
> >public class LoginForm extends ActionForm
> >{
> > private String password = null;
> > private String username = null;
> >
> > public String getPassword()
> > {
> > System.out.println( "In
> getPassword" );
> > return (this.password);
> > }
> >
> > public void setPassword(String password)
> > {
> > this.password = password;
> > }
> >
> > public String getUsername()
> > {
> > System.out.println( "In
> getUsername" );
> > return (this.username);
> > }
> >
> > public void setUsername(String username)
> > {
> > System.out.println( "In
> setUsername" );
> > this.username = username;
> > }
> >
> > public void reset(ActionMapping mapping,
> >HttpServletRequest request)
> > {
> > System.out.println( "In reset" );
> > this.password = null;
> > this.username = null;
> > }
> >
> > public ActionErrors validate(ActionMapping
> mapping,
> >HttpServletRequest request)
> > {
> > System.out.println( "In validate"
> );
> > ActionErrors errors = new
> ActionErrors();
> >
> > if ((username == null) ||
> (username.length() <
> >1))
> > {
> > errors.add("username", new
> >ActionError("error.username.required"));
> > }
> > if ((password == null) ||
> (password.length() <
> >1))
> > {
> > errors.add("password", new
> >ActionError("error.password.required"));
> > }
> > return errors;
> > }
> >
> >}
> >
> >I am only getting the debug prints for "In
> >getUsername()" and "In getPassword()". Then the 404
> >error comes up. I have a print in the first line of
> >the action class, which is NOT getting printed.
> >
> >Cheers.
> >- Debasish
> >--- Rick Hightower <[EMAIL PROTECTED]> wrote:
> > > On your form make sure you have
> > >
> > > 
> > > ...
> > >
> > > Then define the following forward in your
> > > struts-config
> > >
> > > 
> > > ...
> > >
> > > If this does not work, try including your form
> code
> > > so people can help you
> > > better.
> > >
> > > Rick Hightower
> > > Director of Development
> > > eBlox, Inc.
> > >
> > > Check out our new website!
> > > www.eblox.com
> > >
> > > Contact Info:
> > > eBlox Tucson
> > > phone: 520-615-9345 x103
> > > fax: 520-529-5774
> > >
> > > Rick's stuff:
> > > http://www.eblox.com/people_detail.php?id=52
> > > http://www.geocities.com/rick_m_hightower/
> > >
> http://www.brainbench.com/transcript.jsp?pid=2351036
> > >
> > >
> > > -Original Message-
> > > From: Debasish Ghosh
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 08, 2001 7:08 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: newbie question
> > >
> > >
> > > Hi all -
> > >
> > > I am facing a weird problem, which I could not
> solve
> > > in the last couple of hours. I checked up the
> > > mail-archive but could not locate any solution
> to
> > > this.
> > >
> > > The application has a login screen (login.jsp),
> > > which
> > > validates a

Re: newbie question

2001-08-09 Thread Rama Krishna



try this.
 
  
    
login.do  

 
 
rama.
  
- Original Message - 
From: "Debasish Ghosh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 09, 2001 1:09 
PM
Subject: RE: newbie question
> Actually I have the extension 
mapping set up as well.> The following is the web.xml file that I am 
using from> WEB-INF :> > > > >   
PUBLIC "-//Sun Microsystems, Inc.//DTD Web> Application 2.2//EN"> 
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">> > > > 
> >   > 
  >     
action> > 
org.apache.struts.action.ActionServlet> 
    >   
application> 
  
ApplicationResources> 
    >     
>   
config> > 
/WEB-INF/struts-config.xml> 
    >     
>   
debug> 
  2> 
    >     
>   
detail> 
  2> 
    >     
>   
validate> 
  
true>     
>     
1>   
> > >   >   >     
action>     
*.do>   
> > >   >   > 
    login.jsp> 
  > >   >   > 
    
/WEB-INF/struts-bean.tld> > 
/WEB-INF/struts-bean.tld> 
  > >   > 
    
/WEB-INF/struts-html.tld> > 
/WEB-INF/struts-html.tld> 
  > >   > 
    
/WEB-INF/struts-logic.tld> > 
/WEB-INF/struts-logic.tld> 
  > > > > --- 
Martin Cooper <[EMAIL PROTECTED]>> wrote:> > This is not related to the form. It 
looks like you> > may not have extension> > mapping set up 
for your application. My guess is> > that if you type this in> 
> your browser:> >> > http://yourHost/pathToYourApp/login.do> >> > you will also see a 404. That suggests that you 
need> > to add something like> > this:> >> 
>    > 
>    > 
>  
action> 
>  
*.do> >    
> >> >> > to your web.xml 
file. You might want to take a look> > at the web.xml file in> 
> the struts-example app to make sure you've got> > everything else 
that you need.> >> > --> > Martin Cooper> 
>> >> > At 12:07 PM 8/9/01, Debasish Ghosh wrote:> 
> >Hi -> > >> > >I tried these and still no luck 
... I am enclosing> > the> > >code for the Form.> 
> >> > >package com.anshin;> > >> > 
>import javax.servlet.http.HttpServletRequest;> > >import 
org.apache.struts.action.ActionError;> > >import 
org.apache.struts.action.ActionErrors;> > >import 
org.apache.struts.action.ActionForm;> > >import 
org.apache.struts.action.ActionMapping;> > >> > 
>public class LoginForm extends ActionForm> > >{> > 
> private String password = 
null;> > > private 
String username = null;> > >> > 
> public String 
getPassword()> > > 
{> > 
> 
System.out.println( "In> > getPassword" );> > 
> 
return (this.password);> > 
> }> > >> 
> > public void 
setPassword(String password)> > 
> {> > 
> 
this.password = password;> > 
> }> > >> 
> > public String 
getUsername()> > > 
{> > 
> 
System.out.println( "In> > getUsername" );> > 
> 
return (this.username);> > 
> }> > >> 
> > public void 
setUsername(String username)> > 
> {> > 
> 
System.out.println( "In> > setUsername" );> > 
> 
this.username = username;> > 
> }> > >> 
> > public void 
reset(ActionMapping mapping,> > >HttpServletRequest 
request)> > > 
{> > 
> 
System.out.println( "In reset" );> > 
> 
this.password = null;> > 
> 
this.username = null;> > 
> }> > >> 
> > public ActionErrors 
validate(ActionMapping> > mapping,> > >HttpServletRequest 
request)> > > 
{> > 
> 
System.out.println( "In validate"> > );> > 
> 
ActionErrors errors = new> > ActionErrors();> > >> 
> 
> if 
((username == null) ||> > (username.length() <> > 
>1))> > 
> 
{> > 
> 
errors.add("username", new> > 
>ActionError("error.username.required"));> > 
> 
}> >

Re: newbie question

2001-08-09 Thread Debasish Ghosh

No ... doesn't work ..

--- Rama Krishna <[EMAIL PROTECTED]> wrote:
> try this.
> 
> 
>   
> login.do
>   
> 
> 
> rama.
>   
> - Original Message - 
> From: "Debasish Ghosh" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, August 09, 2001 1:09 PM
> Subject: RE: newbie question
> 
> 
> > Actually I have the extension mapping set up as
> well.
> > The following is the web.xml file that I am using
> from
> > WEB-INF :
> > 
> > 
> > 
> >  >   PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> > Application 2.2//EN"
> >   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > 
> > 
> > 
> > 
> > 
> >   
> >   
> > action
> > 
> >
>
org.apache.struts.action.ActionServlet
> > 
> >   application
> >  
> ApplicationResources
> > 
> > 
> >   config
> > 
> >
>
/WEB-INF/struts-config.xml
> > 
> > 
> >   debug
> >   2
> > 
> > 
> >   detail
> >   2
> > 
> > 
> >   validate
> >   true
> > 
> > 1
> >   
> > 
> > 
> >   
> >   
> > action
> > *.do
> >   
> > 
> > 
> >   
> >   
> > login.jsp
> >   
> > 
> >   
> >   
> >
> /WEB-INF/struts-bean.tld
> > 
> >
>
/WEB-INF/struts-bean.tld
> >   
> > 
> >   
> >
> /WEB-INF/struts-html.tld
> > 
> >
>
/WEB-INF/struts-html.tld
> >   
> > 
> >   
> >
> /WEB-INF/struts-logic.tld
> > 
> >
>
/WEB-INF/struts-logic.tld
> >   
> > 
> > 
> > 
> > --- Martin Cooper <[EMAIL PROTECTED]>
> > wrote:
> > > This is not related to the form. It looks like
> you
> > > may not have extension
> > > mapping set up for your application. My guess is
> > > that if you type this in
> > > your browser:
> > >
> > > http://yourHost/pathToYourApp/login.do
> > >
> > > you will also see a 404. That suggests that you
> need
> > > to add something like
> > > this:
> > >
> > >
> > >
> > >  action
> > >  *.do
> > >
> > >
> > >
> > > to your web.xml file. You might want to take a
> look
> > > at the web.xml file in
> > > the struts-example app to make sure you've got
> > > everything else that you need.
> > >
> > > --
> > > Martin Cooper
> > >
> > >
> > > At 12:07 PM 8/9/01, Debasish Ghosh wrote:
> > > >Hi -
> > > >
> > > >I tried these and still no luck ... I am
> enclosing
> > > the
> > > >code for the Form.
> > > >
> > > >package com.anshin;
> > > >
> > > >import javax.servlet.http.HttpServletRequest;
> > > >import org.apache.struts.action.ActionError;
> > > >import org.apache.struts.action.ActionErrors;
> > > >import org.apache.struts.action.ActionForm;
> > > >import org.apache.struts.action.ActionMapping;
> > > >
> > > >public class LoginForm extends ActionForm
> > > >{
> > > > private String password = null;
> > > > private String username = null;
> > > >
> > > > public String getPassword()
> > > > {
> > > > System.out.println( "In
> > > getPassword" );
> > > > return (this.password);
> > > > }
> > > >
> > > > public void setPassword(String
> password)
> > > > {
> > > > this.password = password;
> > > > }
> > > >
> > > > public String getUsername()
> > > > {
> > > > System.out.println( "In
> > > getUsername" );
> > > > return (this.username);
> > > > }
> > > >
> > > > public void setUsername(String
> username)
> > > > {
> > > > System.out.println( "In
> > > setUsername" );
> > > > this.username = username;
> > > > }
> > > >
> > > > public void reset(ActionMapping
> mapping,
> > > >HttpServletRequest request)
> > > > {
> > > > System.out.println( "In reset"
> );
> > > > this.password = null;
> > > > this.username = null;
> > > > }
> > > >
> > > > public ActionErrors
> validate(ActionMapping
> 
=== message truncated ===


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: newbie question

2001-08-09 Thread Bill Clinton

Debasish,
 Everyone seems to be focusing on your action or extension mappings, 
but most of my 404s are caused by missing JSP files.  What directory is 
your logon.jsp in?  I keep my JSPs in a /jsp directory in the main 
application directory, so my forward would be:



I think that your forward would be incorrect unless you have your 
logon.jsp in the root application directory.

Bill




Debasish Ghosh wrote:

> Hi all -
> 
> I am facing a weird problem, which I could not solve
> in the last couple of hours. I checked up the
> mail-archive but could not locate any solution to
> this.
> 
> The application has a login screen (login.jsp), which
> validates a user. There is an ActionForm (LoginForm)
> with appropriate get and set methods.
> 
> The struts-config.xml looks like :
> 
>   
> 
> 
>  type="com.anshin.LoginForm"/>
> 
>   
> 
> 
> type="com.anshin.LoginAction"
>name="loginForm"
>validate="true"
>input="login.jsp">
> 
>   path="/login.jsp"/>
>  
> 
> When I execute the application (invoke login.jsp), I
> get a 404 error on the page "login.do". I gave
> debugging statements and I find that the get methods
> of the ActionForm gets executed, but nothing else
> happens. It does not even enter the LoginAction class.
> But from the Tomcat startup messages, I find that the
> mappings have been identified and loaded by Tomcat. 
> 
> I have struts.jar in WEB-INF/lib. I am really banging
> my head over this problem. The other applications like
> struts-example etc. are running fine ..
> 
> Pls. help.
> 
> Regards.
> 
> - Debasish
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/




Re: newbie question

2001-08-09 Thread Debasish Ghosh

Dear All -

There was a problem in the deployment of the
application in the container. I re-deployed the
application by creating a war file, and it worked.
Thanks for all the help.
I am now getting the prompts that u are getting and
which should be the case.

Cheers.

- Debasish
--- Rama Krishna <[EMAIL PROTECTED]> wrote:
> you didnot send me ur source???
> 
> In getUsername
> In getPassword
> In reset
> In setUsername
> In validate
> In action
> In getUsername
> In getPassword
> User = abc Password = abc
> 
> this is what i got in my log file.
> 
> is this what u r expecting or something else???
> 
> i didnot get a 404 but this::
> so i guess it's working fine.
> 
> 500 Internal Server Error
> /dep/login.do:
> 
> java.lang.IllegalArgumentException: URI is missing
> leading slash
> 
> let me know.
> 
> rama.
> 
> 
> - Original Message - 
> From: "Debasish Ghosh" <[EMAIL PROTECTED]>
> To: "Rama Krishna" <[EMAIL PROTECTED]>
> Sent: Thursday, August 09, 2001 2:37 PM
> Subject: Re: newbie question
> 
> 
> > Here's the WAR file ...
> > 
> > --- Rama Krishna <[EMAIL PROTECTED]> wrote:
> > > can u zip u r code and  send me??
> > >
> > >
> > >
> > > - Original Message -
> > > From: "Debasish Ghosh" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Thursday, August 09, 2001 1:44 PM
> > > Subject: Re: newbie question
> > >
> > >
> > > > No ... doesn't work ..
> > > >
> > > > --- Rama Krishna <[EMAIL PROTECTED]>
> wrote:
> > > > > try this.
> > > > >
> > > > > 
> > > > >   
> > > > > login.do
> > > > >   
> > > > >
> > > > >
> > > > > rama.
> > > > >
> > > > > - Original Message -
> > > > > From: "Debasish Ghosh"
> <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Cc: <[EMAIL PROTECTED]>
> > > > > Sent: Thursday, August 09, 2001 1:09 PM
> > > > > Subject: RE: newbie question
> > > > >
> > > > >
> > > > > > Actually I have the extension mapping set
> up
> > > as
> > > > > well.
> > > > > > The following is the web.xml file that I
> am
> > > using
> > > > > from
> > > > > > WEB-INF :
> > > > > >
> > > > > >  encoding="ISO-8859-1"?>
> > > > > >
> > > > > >  > > > > >   PUBLIC "-//Sun Microsystems, Inc.//DTD
> Web
> > > > > > Application 2.2//EN"
> > > > > >
> > > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > > > > >
> > > > > > 
> > > > > >
> > > > > >
> > > > > >
> > > > > >   
> > > > > >   
> > > > > > action
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.struts.action.ActionServlet
> > > > > > 
> > > > > >   application
> > > > > >
> > > > >
> ApplicationResources
> > > > > > 
> > > > > > 
> > > > > >   config
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
/WEB-INF/struts-config.xml
> > > > > > 
> > > > > > 
> > > > > >   debug
> > > > > >   2
> > > > > > 
> > > > > > 
> > > > > >   detail
> > > > > >   2
> > > > > > 
> > > > > > 
> > > > > >   validate
> > > > > >   true
> > > > > > 
> > > > > > 1
> > > > > >   
> > > > > >
> > > > > >
> > > > > >   
> > > > > >   
> > > > > > action
> > > > > > *.do
> > > > > >   
> > > > > >
> > > > > >
> > > > > >   
> > > > > >   
> > > > > > login.jsp
> > > > > >   
> > > > > >
> > > > > >   
> > > > > >   
> > > > > >
> > > > >
> > >
> /WEB-INF/struts-bean.tld
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
/WEB-INF/struts-bean.tld
> > > > > >   
> > > > > >
> > > > > >   
> > > > > >
> > > > >
> > >
> /WEB-INF/struts-html.tld
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
/WEB-INF/struts-html.tld
> > > > > >   
> > > > > >
> > > > > >   
> > > > > >
> > > > >
> > >
> /WEB-INF/struts-logic.tld
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
/WEB-INF/struts-logic.tld
> > > > > >   
> > > > > >
> > > > > > 
> > > > > >
> > > > > > --- Martin Cooper
> > > <[EMAIL PROTECTED]>
> > > > > > wrote:
> 
=== message truncated ===


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: newbie question

2001-09-08 Thread SUHAS G. KULKARNI

if the bean stored as "org.apache.struts.action.MESSAGE" key in the scope
"application" is not found then output the body of the tag ( Errors - App
Resources not found)





-Original Message-
From: Thinh Doan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 08, 2001 2:48 AM
To: Struts-User
Subject: newbie question


Please explain these lines from struts example (index.jsp):


  
ERROR:  Application resources not loaded -- check servlet container
logs for error messages.
  


Thanks.



Re: newbie question

2001-09-10 Thread Chris Heinemann

This is a check to make sure that struts is there and that the
ApplicationResources.properties file is found in the classpath.  If you
don't have that file there when struts loads then the message will show
up.  The file is basically a set of error messages, that is why this
message is hard coded.

Chris Heinemann


Thinh Doan wrote:

> Please explain these lines from struts example (index.jsp):
>
>  scope="application">
>   
> ERROR:  Application resources not loaded -- check servlet container
> logs for error messages.
>   
> 
>
> Thanks.




RE: Newbie question

2001-02-14 Thread Simon Sadedin

Drew,

> I have the struts.jar on the CLASSPATH.

It may be this that is screwing you up.  You have to relearn some things
about classpaths when you start working with j2ee style servlet
containers.  Make sure the struts jar(s) are not in tomcat's lib
directory or your classpath. It should be sufficient to have them in the
WEB-INF/lib directory.

Cheers,

Simon.

-Original Message-
From: Drew Nichols [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 9:22 PM
To: struts
Subject: Newbie question


Hi there,

I have downloaded and installed the struts wars into tomcat/webapps.
When I restart tomcat I get the following error msg:

New org.apache.struts.example.User
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.struts.example.User

When I load the struts-example I get this error:

javax.servlet.ServletException: Missing resources attribute
org.apache.struts.action.MESSAGE

I have the struts.jar on the CLASSPATH.
Have I missed something in the config??
I have followed the instructions carefully.

TIA

Drew




RE: newbie question

2001-03-14 Thread Anderson, Jessica

>From the User Guide:

---

When you configue the controller servlet in the web application deployment
descriptor, one of the things you will need to define in an initialization
parameter is the base name of the resource bundle for the application. In
the case described above, it would be com.mycompany.mypackage.MyResources.

 

action

org.apache.struts.action.ActionServlet



application

com.mycompany.mypackage.MyResources



<.../>



The important thing is for the resource bundle to be found on the class path
for your application.

-Original Message-
From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 9:52 AM
To: Struts User Mailing List (E-mail)
Subject: newbie question



I'm new to struts and I'm trying to create a little sample app, but I'm
getting this error when I try to go my index.jsp


javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE 
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459) 
at
_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.
java:315) 
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) 
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) 
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 
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.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160) 
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:484) 

What does this mean? 

I would think that it means that it can't find the properties file, but I've
got this in my xml: 

 
action 
 
org.apache.struts.action.ActionServlet 
 
application 
BNPriceResources 
 
 
config 
 
/WEB-INF/my-example-config.xml 
 
 
debug 
2 
 
 
validate 
true 
 
1>   
 

BNPriceResources is in my .../WEB-INF/classes folder and I've got
.../WEB-INF/classes in my classpath. 

Any help would be greatly appreciated. 

Thanks, 
Jesse 




RE: newbie question

2001-03-14 Thread Deadman, Hal
Title: newbie question




> BNPriceResources is in my 
.../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath. 

Don't 
put WEB-INF/classes in your classpath and don't put struts.jar in your 
classpath. Any jarfiles in WEB-INF/lib and the WEB-INF/classes directory get 
added to your webapps classpath. Having them in a the classpath for 
the appserver will cause problems.  

  -Original Message-From: Jesse Vitrone 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 
  10:52 AMTo: Struts User Mailing List (E-mail)Subject: 
  newbie question
  I'm new to struts and I'm trying to create a little sample 
  app, but I'm getting this error when I try to go my index.jsp
  javax.servlet.ServletException: Cannot find message resources 
  under key org.apache.struts.action.MESSAGE at 
  org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) 
  at 
  _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) 
  at 
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
  at 
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at 
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) 
  at 
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) 
  at 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 
  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.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) 
  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:484) 
  What does this mean? 
  I would think that it means that it can't find the properties 
  file, but I've got this in my xml: 
           
      action 
      
      org.apache.struts.action.ActionServlet 
      
       
      
      
      application 
      
      
      BNPriceResources 
      
       
      
       
      
      
      config 
      
      
      /WEB-INF/my-example-config.xml 
      
       
      
       
      
      
      debug 
      
      
      2 
      
       
      
       
      
      
      validate 
      
      
      true 
      
       
      
      1>   
       
  BNPriceResources is in my .../WEB-INF/classes folder and I've 
  got .../WEB-INF/classes in my classpath. 
  Any help would be greatly appreciated. 
  Thanks,     
  Jesse 


RE: newbie question

2001-03-14 Thread Jesse Vitrone
Title: newbie question



I took 
WEB-INF classes out of my classpath, as well as struts.jar, and restarted Apache 
and Tomcat, but I still get the same error.
 
It's a 
problem if struts.jar is in my classpath?  How am I expected to 
compile?
 
Do I 
need to have my classes and properties in a package?  Right now, I didn't 
put anything in a package, they're just in my classes 
folder.
 
Thanks,
    Jesse

  -Original Message-From: Deadman, Hal 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 
  11:20 AMTo: [EMAIL PROTECTED]Subject: RE: 
  newbie question
  
  > BNPriceResources is in my 
  .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath. 
  
  Don't put WEB-INF/classes in your classpath and don't put struts.jar in 
  your classpath. Any jarfiles in WEB-INF/lib and the WEB-INF/classes directory 
  get added to your webapps classpath. Having them in a the classpath 
  for the appserver will cause problems.  
  
-Original Message-From: Jesse Vitrone 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 
10:52 AMTo: Struts User Mailing List (E-mail)Subject: 
newbie question
I'm new to struts and I'm trying to create a little sample 
app, but I'm getting this error when I try to go my index.jsp
javax.servlet.ServletException: Cannot find message 
resources under key org.apache.struts.action.MESSAGE at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) 
at 
_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) 
at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) 
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) 
at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 
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.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) 
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:484) 
What does this mean? 
I would think that it means that it can't find the 
properties file, but I've got this in my xml: 
         
    action 
    
    org.apache.struts.action.ActionServlet 
    
     
    
    
    application 
    
    
    BNPriceResources 
    
     
    
     
    
    
    config 
    
    
    /WEB-INF/my-example-config.xml 
    
     
    
     
    
    
    debug 
    
    
    2 
    
     
    
     
    
    
    validate 
    
    
    true 
    
     
    
    1>   
     
BNPriceResources is in my .../WEB-INF/classes folder and 
I've got .../WEB-INF/classes in my classpath. 
Any help would be greatly appreciated. 
Thanks, 
    Jesse 
  


RE: newbie question

2001-03-14 Thread Martijn Spronk
Title: newbie question



Do you 
have your ApplicationResources.properties file in the right 
place?
I have 
it in the same directory my ActionServlet is located. So in your 
case
that 
would be in your org.apache.struts.action folder (which is in your 
jar).
 
I am 
overriding the ActionServlet class so it's in my classes tree. Why don't 
you
try 
moving it around a bit.
 
I 
remember getting a similar error when I didn't have my properties 
file
in the 
right place.
 
Martijn.
 
Martijn Spronk[EMAIL PROTECTED]www.columbusgroup.com604.801.5758 ext. 
248Vancouver + Toronto + 
Seattle 

        
      action 
      
      org.apache.struts.action.ActionServlet 
      
       
      
      
      application 
      
      
      BNPriceResources 
      
       
      
       
      
      
      config 
      
      
      /WEB-INF/my-example-config.xml 
      
       
      
       
      
      
      debug 
      
      
      2 
      
       
      
       
      
      
      validate 
      
      
      true 
      
       
      
      1>   
       
  

  BNPriceResources is in my .../WEB-INF/classes folder and 
  I've got .../WEB-INF/classes in my classpath. 
  Any help would be greatly appreciated. 
  Thanks, 
      Jesse 
  


RE: newbie question

2001-03-14 Thread Craig R. McClanahan



On Wed, 14 Mar 2001, Jesse Vitrone wrote:

> I took WEB-INF classes out of my classpath, as well as struts.jar, and
> restarted Apache and Tomcat, but I still get the same error.
>  
> It's a problem if struts.jar is in my classpath?

Yes, if you have it on your classpath when you start Tomcat.  See the
message archives for lots of messages about what problems this causes.


> How am I expected to
> compile?
>  

Here's a couple of approaches:

* Create a simple shell script that compiles for you with a custom
  class path.  For example, create a "myjava.sh" script (on Unix)
  that says:
javac -classpath /path/to/struts.jar:$CLASSPATH "$@"
  and use this to compile things that need Struts.

* Use the Ant development tool (which is how Struts itself is built).
  There is an "Application Developer's Guide" in the Tomcat documentation
  that talks about how to use Ant to create web applications.


> Do I need to have my classes and properties in a package?  Right now, I
> didn't put anything in a package, they're just in my classes folder.
>  

The servlets will not have any problems with this, but the JSP pages
will.  This happens because a JSP page is compiled into a servlet, and
different servlet containers put the generated servlet into different
packages.  When you try to use  or  with an
unpackaged class name, the servlet container will look for this class in
the same package as the generated servlet.

For portability and correct operation, you should make your bean classes
in packages.

> Thanks,
> Jesse
> 

Craig McClanahan




Re: newbie question

2001-03-15 Thread Anand Raman

hi 
most probably u need a ApplicationResources.properties file in the
WEB-INF/classes/mypackage-dir directory..
Try pasting the ApplicationResources.properties file in the directory
and restart..
I think the problem should go away..

Hope this helps
Anand 
On Wed, Mar 14, 2001 at 10:51:34AM -0500, Jesse Vitrone wrote:
>I'm new to struts and I'm trying to create a little sample app, but I'm
>getting this error when I try to go my index.jsp
>
>
>javax.servlet.ServletException: Cannot find message resources under key
>org.apache.struts.action.MESSAGE
>at
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
>l.java:459)
>at
>_0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.
>java:315)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>at
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
>va:177)
>at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
>at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>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.connector.Ajp13ConnectionHandler.processConnection
>(Ajp13ConnectionHandler.java:160)
>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:484)
>
>What does this mean?
>
>I would think that it means that it can't find the properties file, but I've
>got this in my xml:
>
>   
>   action
>   
>org.apache.struts.action.ActionServlet
>   
>   application
>   BNPriceResources
>   
>   
>   config
>   
>/WEB-INF/my-example-config.xml
>   
>   
>   debug
>   2
>   
>   
>   validate
>   true
>   
>   1>   
>   
>
>BNPriceResources is in my .../WEB-INF/classes folder and I've got
>.../WEB-INF/classes in my classpath.
>
>Any help would be greatly appreciated.
>
>Thanks,
>   Jesse



Re: newbie question

2001-09-19 Thread Craig R. McClanahan

Sorry for the very late response.

Struts is not an acronym - it was meant to remind us of the nearly
invisible pieces that hold up buildings, houses, and bridges.

Craig McClanahan


On Mon, 3 Sep 2001, Jose Correia wrote:

> Date: Mon, 03 Sep 2001 15:16:33 +0200
> From: Jose Correia <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: newbie question
>
> Hi all
>
> Upon starting my project's documentation which uses Struts, I wanted to
> know what does Struts actually stand for or is not an acronym?
>
> Thanks
> Jose
>
> --
>
> \=/, _-===-_-===-_-===-_-===-_-==-_
> |  @___oo  (   )_
>   /\  /\   / (___,,,}_--=)
>  ) /^\) ^\/ _)=_"Positive thinking - a great way  )
>  )   /^\/   _) (_to face life" )
>  )   _ /  / _)  (Jose Correia)
>  /\  )/\/ ||  | )_)  (_[EMAIL PROTECTED])
> <  >  |(,,) )__)   (   [EMAIL PROTECTED])
>  ||  /\)___)\   (__)
>  | \(  )___) )___  -==-___-=-___==
>   \__(___;;; __;;;
>
>
>




RE: Newbie question

2001-10-22 Thread Chris Morin

Antonio,

I imagine you could:

request.setAttribute( "servlet", this );

before forwarding to your jsp page.  You'll need to expose getter
methods to your jsp page to access the object's properties.

But I would recommend just putting the servlet's properties into the
request individually, either with setParameter() or setAttribute().  

A good manual on JSP development can explain in detail methods for
transferring information between servlets and jsps.  Web Developement with
JavaServer Pages by Fields and Kolb is fairly comprehensive and thorough.

.c.

-Original Message-
From: Antonio Vianello [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 9:25 AM
To: Struts-User Mailing List
Subject: Newbie question


Hi to you all.

Sorry if my question could seem quite obvious, but how can I get a reference
to the ActionServlet instance from within a JSP page? I need this to have
access to some custom fields I've defined in the servlet class.

Thanks in advance

Antonio





RE: Newbie question

2001-10-22 Thread martin . cooper

As Chris suggests, directly accessing methods on another servlet is not 
really a good idea. If you have data that needs to be available to JSP 
pages application-wide, then you could consider storing it as an 
application-scope attribute. However, storing it at the most local scope 
possible is best.

If you really, really need to get access to the servlet, the following 
should work, although I've never actually tried it:




I concur with Chris's book recommendation, too. It's definitely worthwhile 
reading to get a good understanding of JSP, and servlets as well.

--
Martin Cooper


At 10:11 AM 10/22/01, Chris Morin wrote:
>Antonio,
>
> I imagine you could:
>
> request.setAttribute( "servlet", this );
>
> before forwarding to your jsp page.  You'll need to expose getter
>methods to your jsp page to access the object's properties.
>
> But I would recommend just putting the servlet's properties into the
>request individually, either with setParameter() or setAttribute().
>
> A good manual on JSP development can explain in detail methods for
>transferring information between servlets and jsps.  Web Developement with
>JavaServer Pages by Fields and Kolb is fairly comprehensive and thorough.
>
>.c.
>
>-Original Message-
>From: Antonio Vianello [mailto:[EMAIL PROTECTED]]
>Sent: Monday, October 22, 2001 9:25 AM
>To: Struts-User Mailing List
>Subject: Newbie question
>
>
>Hi to you all.
>
>Sorry if my question could seem quite obvious, but how can I get a reference
>to the ActionServlet instance from within a JSP page? I need this to have
>access to some custom fields I've defined in the servlet class.
>
>Thanks in advance
>
>Antonio





Re: Newbie question

2002-01-04 Thread Barry L. White

Mark Woon wrote:

>Hello,
>
>I've just started looking at Struts, and I'm trying to figure out how to
>set an action as the default file for the webapp?  For example, I have
>an index.do Action, and I'd like that served by default instead of
>index.htm[l].  Is this possible?
>
>Thanks,
>-Mark
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>
One way is to just use a index.jsp that forwards to an action.
Example from http://www.husted.com/struts/

<%
/**
 * Redirect default requests to Welcome action.
 *
 * @author Ted Husted
 * @version $Revision: 1.2 $ $Date: 2001/04/24 $
*/
%>
<%@ page language="java" %>
<%@ taglib uri="/tags/struts-logic.tld" prefix="logic" %>


have fun,
Barry

(btw great site Ted)



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Newbie Question

2002-06-03 Thread @Basebeans.com

Subject: Re: Newbie Question
From: Vic C <[EMAIL PROTECTED]>
 ===
You have a property in your from bean called getRowCount()

Rajesh Thota wrote:
> This may look silly but my lack of knowledge with struts is making me ask
> this question.
> 
> Let us say I have a HTML form which retrieves  a set of records from
> database depending upon  the number of records the jsp will have to display
> HTML form field elements.  How do i have to design my form bean.  I am not
> sure how I can use automatic validation.  I am not to keen on using
> automatic validation also, if there is a good solution for this problem.
> 
> I want some sample code (jsp, action and action form class with
> struts-config.xml).
> 
> Can someone help me on this ?
> 
> thx.
> -
> RAJESH THOTA
> Indscape Softech
> Bangalore.
> 
> 
> 


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




Re: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof

contextRelative is used to define a forward that is relative to the application 
context and not to the module context
(default).

You cannot redirect to an URL outside your app using struts-config . Use a 
requestDispatcher in your action and
call sendRedirect(), or create a new JSP with a http://www.yahoo.com";> tag

Nico.


- Original Message - 
From: "Mathieu Grimault" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 2:16 PM
Subject: Newbie questionredirect


Hi all !

Sorry, about a such stupid question but I try to have my application redirects to an 
external web site with some
parameters.

Here is an exemple : http://payOnline/$cashAmout/$name

For the moment i'm just try to redirect to an external website like yahoo but the 
search path is always
"/context/http://www.yahoo.fr";. What's wrong ?

Here is a snipet from struts-config.xml :



http://www.yahoo.fr"; contextRelative="false" 
redirect="true"/>





Environment : struts 1.1, tomcat 4.1.27, jdk 1.4.2_02


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



Re: Newbie question....redirect

2003-11-05 Thread Marcella Turner
Nicolas,

I think your reply will help me with my post too -> trying to switch web 
modules - help
but I don't see a sendRedirect() method of the requestDispatcher object.  
How can I call this sendRedirect() - sounds like the solution to my problem!

Thanks


From: "Nicolas De Loof" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Newbie questionredirect
Date: Wed, 5 Nov 2003 14:22:47 +0100
contextRelative is used to define a forward that is relative to the 
application context and not to the module context
(default).

You cannot redirect to an URL outside your app using struts-config 
. Use a requestDispatcher in your action and
call sendRedirect(), or create a new JSP with a http://www.yahoo.com";> tag

Nico.

- Original Message -
From: "Mathieu Grimault" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 2:16 PM
Subject: Newbie questionredirect
Hi all !

Sorry, about a such stupid question but I try to have my application 
redirects to an external web site with some
parameters.

Here is an exemple : http://payOnline/$cashAmout/$name

For the moment i'm just try to redirect to an external website like yahoo 
but the search path is always
"/context/http://www.yahoo.fr";. What's wrong ?

Here is a snipet from struts-config.xml :



type = "BonjourAction"

name = "BonjourForm"

scope = "request"

input = "/index.jsp"

validate = "true"

>

http://www.yahoo.fr"; contextRelative="false" 
redirect="true"/>





Environment : struts 1.1, tomcat 4.1.27, jdk 1.4.2_02

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Is your computer infected with a virus?  Find out with a FREE computer virus 
scan from McAfee.  Take the FreeScan now! 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

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


Re: Newbie question....redirect

2003-11-05 Thread Nicolas De Loof
excuse me for mistake.

You should read "response.sendRedirect()"
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletResponse.html#sendRedirect(java.lang.String)

Nico.

- Original Message - 
From: "Marcella Turner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 4:06 PM
Subject: Re: Newbie questionredirect


> Nicolas,
>
> I think your reply will help me with my post too -> trying to switch web
> modules - help
> but I don't see a sendRedirect() method of the requestDispatcher object.
> How can I call this sendRedirect() - sounds like the solution to my problem!
>
> Thanks
>
>
> >From: "Nicolas De Loof" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Newbie questionredirect
> >Date: Wed, 5 Nov 2003 14:22:47 +0100
> >
> >
> >contextRelative is used to define a forward that is relative to the
> >application context and not to the module context
> >(default).
> >
> >You cannot redirect to an URL outside your app using struts-config
> >. Use a requestDispatcher in your action and
> >call sendRedirect(), or create a new JSP with a  >href="http://www.yahoo.com";> tag
> >
> >Nico.
> >
> >
> >- Original Message -
> >From: "Mathieu Grimault" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, November 05, 2003 2:16 PM
> >Subject: Newbie questionredirect
> >
> >
> >Hi all !
> >
> >Sorry, about a such stupid question but I try to have my application
> >redirects to an external web site with some
> >parameters.
> >
> >Here is an exemple : http://payOnline/$cashAmout/$name
> >
> >For the moment i'm just try to redirect to an external website like yahoo
> >but the search path is always
> >"/context/http://www.yahoo.fr";. What's wrong ?
> >
> >Here is a snipet from struts-config.xml :
> >
> > >
> >type = "BonjourAction"
> >
> >name = "BonjourForm"
> >
> >scope = "request"
> >
> >input = "/index.jsp"
> >
> >validate = "true"
> >
> > >
> >
> > http://www.yahoo.fr"; contextRelative="false"
> >redirect="true"/>
> >
> >
> >
> >
> >
> >Environment : struts 1.1, tomcat 4.1.27, jdk 1.4.2_02
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> _
> Is your computer infected with a virus?  Find out with a FREE computer virus
> scan from McAfee.  Take the FreeScan now!
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> -
> 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: newbie question - usebean

2003-02-10 Thread Nicolas De Loof
Your code doesn't show any  tag. This tag is used by struts to
set the targeted action, and so the associated bean in some scope.

You can use  without  by setting it's "name" attribute
(name="user" in your case). But if your HTML form has to be commited to a
Struts action, you should look at 

Nico.


> I have a jsp page being called by an action that passes a user type in the
> request.
> the jsp has the following code:
>
> 
> : 
> 
> 
> 
> : 
> 
> 
> 
> : 
> 
> 
> 
> : 
> 
> 
>
> My problem is that the only value displaying on the browser is the
username.
> When I write the following scriptlet:
> <% out.println( ((User) request.getAttribute("user")).getFirstName)); %>
> the first name displays.
>
> Any help will be greatly appreciated
>
> Diego.
>
>
> -
> 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: newbie question - usebean

2003-02-10 Thread Diego Bursztyn
I do have  in the code I just did not
included in the email.
I also have the following in my jsp:





thanks,

Diego.

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 7:31 AM
To: Struts Users Mailing List
Subject: Re: newbie question - usebean


Your code doesn't show any  tag. This tag is used by struts to
set the targeted action, and so the associated bean in some scope.

You can use  without  by setting it's "name" attribute
(name="user" in your case). But if your HTML form has to be commited to a
Struts action, you should look at 

Nico.


> I have a jsp page being called by an action that passes a user type in the
> request.
> the jsp has the following code:
>
> 
> : 
> 
> 
> 
> : 
> 
> 
> 
> : 
> 
> 
> 
> : 
> 
> 
>
> My problem is that the only value displaying on the browser is the
username.
> When I write the following scriptlet:
> <% out.println( ((User) request.getAttribute("user")).getFirstName)); %>
> the first name displays.
>
> Any help will be greatly appreciated
>
> Diego.
>
>
> -
> 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: newbie question - usebean

2003-02-10 Thread Nicolas De Loof
> I do have  in the code I just did not
> included in the email.
> I also have the following in my jsp:
>
>  class="com.basf.plasticsportal.data.User">
> 
> 
>
> thanks,
>
> Diego.
>

You don't need  : this jsp tag is used to create a script
variable (named as "id" defines) from a bean in some scope, or create this
bean if not found.

 will look in struts-config.xml for the "action/editUser" action
definition and get associated formbean as default bean for  tags.
This way you doesn't need to set "name" attribute to  tags nested
inside an .


You should have such a definition in your struts-config :

...
 
  

...
  
   
  
...

Using this, struts will know that "/action/editUser" is associated with a
ActionFormBean named "user" in request scope, and will search for / create
it.


And in your JSP :

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







Try with such a minimal JSP code to avoid other JSP / HTML errors.

Nico.


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




RE: newbie question - usebean

2003-02-10 Thread Diego Bursztyn
Thanks Nico, but I had all that in place.
The problem was that I originally started building the app implementing a
model 2 pattern without using struts. When I converted the app to struts, my
UserBO and UserDAO classes worked with the User bean and I had created a
UserForm ActionForm. The mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 9:50 AM
To: Struts Users Mailing List
Subject: Re: newbie question - usebean


> I do have  in the code I just did not
> included in the email.
> I also have the following in my jsp:
>
>  class="com.basf.plasticsportal.data.User">
> 
> 
>
> thanks,
>
> Diego.
>

You don't need  : this jsp tag is used to create a script
variable (named as "id" defines) from a bean in some scope, or create this
bean if not found.

 will look in struts-config.xml for the "action/editUser" action
definition and get associated formbean as default bean for  tags.
This way you doesn't need to set "name" attribute to  tags nested
inside an .


You should have such a definition in your struts-config :

...
 
  

...
  
   
  
...

Using this, struts will know that "/action/editUser" is associated with a
ActionFormBean named "user" in request scope, and will search for / create
it.


And in your JSP :

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







Try with such a minimal JSP code to avoid other JSP / HTML errors.

Nico.


-
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: newbie question - usebean

2003-02-10 Thread Diego Bursztyn
Thanks Nico, but I had all that in place.
The problem was that I originally started building the app implementing a
model 2 pattern without using struts. When I converted the app to struts, my
UserBO and UserDAO classes worked with the User bean and I had created a
UserForm ActionForm. The mailto:[EMAIL PROTECTED]]
Sent: Monday, February 10, 2003 9:50 AM
To: Struts Users Mailing List
Subject: Re: newbie question - usebean


> I do have  in the code I just did not
> included in the email.
> I also have the following in my jsp:
>
>  class="com.basf.plasticsportal.data.User">
> 
> 
>
> thanks,
>
> Diego.
>

You don't need  : this jsp tag is used to create a script
variable (named as "id" defines) from a bean in some scope, or create this
bean if not found.

 will look in struts-config.xml for the "action/editUser" action
definition and get associated formbean as default bean for  tags.
This way you doesn't need to set "name" attribute to  tags nested
inside an .



Try with such a minimal JSP code to avoid other JSP / HTML errors.

Nico.


-
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: Newbie Question: ActionErrors.

2003-02-18 Thread Chen, Gin
the correct way is to define the error in ur properties file.

errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("my.error"));

Message in Application.resources
my.error=my error here

-Tim

-Original Message-
From: James Prance [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 10:31 AM
To: [EMAIL PROTECTED]
Subject: Newbie Question: ActionErrors.


Anyone tell me why the error message specified in the "
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("my error here")); "
code in my Action Servlet doesnt appear on the jsp page. The header and
footer appear, but the error message does not.. what have I missed?

Code in  ActionServlet -
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("my error here"));

Code in JSP -

<%@ page language="java" %>

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

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







  











Messages in Application.resources

errors.header= Validation Error You must
correct the following error(s) before proceeding:

errors.footer=





-
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: Newbie question #1

2001-04-06 Thread Nanduri, Amarnath

yes

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 10:26 AM
To: Struts
Subject: Newbie question #1


Hi, I am porting one of my web apps to the struts infrastructure. I have a
few questions that should get me on the right track. I hope someone out
there can help.

1: I understand that you have a bean associated with a form and the form
populates the bean and is populated by the bean. Lets say your app is in a
wizard fashion and it goes from page one to five. On page five the user can
go back to page one. At that point you would want the page to reflect
anything the user has already entered on that page. Would you specify that
the bean for that page should be of session scope?

Thanks

Alex



RE: Newbie question #2

2001-04-06 Thread Nanduri, Amarnath

check the mailing list. Somebody before has asked the same question and got
a reply back

-Original Message-
From: Alex Colic [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 06, 2001 10:26 AM
To: Struts
Subject: Newbie question #2


Hi, I am porting one of my web apps to the struts infrastructure. I have a
few questions that should get me on the right track. I hope someone out
there can help.

#2 How do you make a text box read-only? I have a form in which the employee
name is read from the bean. I don't want the user to change that so I want
to make that text box read-only.

Regards

Alex Colic, HBA, B. Ed
PopWare Inc. "Driving down the cost of conversions!"
E-Mail: [EMAIL PROTECTED]
Tel: 1-905-777-8171 ext. 104
Fax: 1-905-777-0132



RE: newbie question (again)

2001-06-29 Thread Tim Buchalka

Hi there Tiff,

I'll prefix my recommendations by saying I am far from an expert with the
struts framework, but I have managed to get a simple app up and working, so
hopefully I can help you out a bit.

I think the problem may be that you have not defined any actions for your
application (I could be wrong, but hey it's worth a try).

What I suggest you do is add a " in your jsp as well to ensure the form
bean get's initialised.

If you have no  joy, I'll email my simple app that I setup which consisted
of 2 jsps, 2 form beans, and 1 action.

If you really want to get what you have currently to work, post the contents
of your struts-config.xml file.

Cheers



Tim






-Original Message-
From: Tiffany Dodge [mailto:[EMAIL PROTECTED]]
Sent: Friday, 29 June 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: newbie question (again)


Hello,

I got the struts-example working and have begun trying to implement a small
test app using struts, but have run into a problem.  Below is the exception
I'm receiving ...

Thu Jun 28 17:32:41 PDT 2001:  Root
cause of
 ServletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at
jsp_servlet._createnewperson2._jspService(_createnewperson2.java:108)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:106)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:124)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:907)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:851)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:364)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

>From searching the mailing list, I think it is due to not finding the
ApplicationResources.properties file. Below are the reasons that I found
(from the struts-user mailng list) which could cause the problem ...

- Not having the application element in the web.xml
file.
- Miss typing the path for application's value.  Or
not placing the ApplicationResources.properties file in the correct
directory.
- Not having the  element in the web.xml file.
- Having struts.jar in my CLASSPATH.

>From what I can tell, I don't have any of the above problems.  But I'm
gonna
include everything for review so some new/more experienced eyes can look at
it.

CreateNewPerson2.jsp

<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>


  
<% System.out.println("Before the title tag."); %>


  
  
  



web.xml
===


http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



  
  
action
org.apache.struts.action.ActionServlet

  application

com.ubermind.bumbletrak.ApplicationResources



  config
  /WEB-INF/struts-config.xml


  debug
  2


  detail
  2


  validate
  true

1
  


  
  
action
*.do
  


  
  
CreateNewPerson2.jsp
  

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

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

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




ApplicationResources.properties
===
button.cancel=Cancel
button.confirm=Confirm
button.reset=Reset
button.save=Save
error.fistName.required=First Name is required
error.lastName.required=Last Name is required
CreateNewPerson2.title=BumbleTrak
prompt.firstName=First Name *
prompt.lastName=Last Name *
prompt.middleName=Middle Name
prompt.imHandle=IM Handle
prompt.gender=Gender



(NOTE: I am using WebLogic 5.1 with SP8)

DIRECTORY STRUCTURE
===
CreateNewPerson2.jsp
-WEB-INF
_tmp_war_bumbletrak
-com
-ubermind
-bumbletrak
ApplicationResources.properties
-jsp_servlet
_createnewperson2.class
struts.jar
-classes
-com
-ubermind
-bumbletrak
ApplicationResources.properties
-lib
struts.jar
struts.tld
struts-bean.tld
struts-config.xml
struts-form.tld
struts-html.tld
struts-logic.tld
struts-template.tld
web.xml

Please give me any suggestions or comments.  PLEASE

Thanks,
Tiff





Re: newbie question (again)

2001-06-29 Thread Tiffany Dodge

Hello,

I added a "  Root 
cause of
 ServletException
javax.servlet.ServletException: runtime failure in custom tag 'message'
at 
jsp_servlet._createnewperson2._jspService(_createnewperson2.java:108)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:106)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:124)
at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:907)
at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletCon
textImpl.java:851)
at 
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servlet
ContextManager.java:252)
at 
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.jav
a:364)
at 
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:252)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)



CreateNewPerson2.jsp

<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>


  
<% System.out.println("Before the title."); %>

<% System.out.println("After the title."); %>

  
  


  

  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  
  

  


  

  

  
  

  

  

  

  




web.xml
===
Same as below



ApplicationResources.properties
===
Same as below



struts-config.xml
=


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






  
  




  


  
  

  


  
  





  





PersonForm.java
===
package com.ubermind.bumbletrak;


import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;


public final class PersonForm extends ActionForm  {
//private String action = "Create";
private String firstName = null;
private String middleName = null;
private String lastName = null;
private String gender = null;
private String imHandle = null;

public String getFirstName() {

return (this.firstName);

}

public void setFirstName(String aName) {

this.firstName = aName;

}

public String getMiddleName() {

return (this.middleName);

}

public void setMiddleName(String aName) {

this.middleName = aName;

}

public String getLastName() {

return (this.lastName);

}

public void setLastName(String aName) {

this.lastName = aName;

}

public String getGender() {

return (this.gender);

}

public void setGender(String aGender) {

this.gender = aGender;

}

public String getImHandle() {

return (this.imHandle);

}

public void setImHandle(String aHandle) {

this.imHandle = aHandle;

}

/**
 * Reset all properties to their default values.
 *
 * @param mapping The mapping used to select this instance
 * @param request The servlet request we are processing
 */
public void reset(ActionMapping mapping, HttpServletRequest request) {

//this.action = "Create";
this.firstName = null;
this.middleName = null;
this.lastName = null;
this.gender = null;
this.imHandle = null;

}


/**
 * Validate the properties that have been set from this HTTP request,
 * and return an ActionErrors object that encapsulates any
 * validation errors that have been found.  If no errors are found, 
return
 * null or an ActionErrors object with no
 * recorded error messages.
 *
 * @param mapping The mapping used to select this instance
 * @param request The servlet request we are processing
 */
public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
if ((firstName == null) || (firstName.length() < 1))
errors.add("firstName",
   new ActionError("error.firstName.required"));
if ((lastName == null) || (lastName.length() < 1))
errors.add("lastName",
   new ActionError("err

Re: newbie question - confused

2001-09-06 Thread Erik Hatcher

Look at the generated HTML of logon.jsp you'll see that it submits to
logon.do.   looks up the action mapping to determine which form
bean to use and generates the  tag with the appropriate action .do
extension automatically.

Erik


- Original Message -
From: "Jose Correia" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 7:22 AM
Subject: newbie question - confused


> Hi all
>
> I'm a bit confused with the Struts example (the one that comes with
> struts1.0.jar). I'm trying to determine at which point does the .do come
> in to being.
>
> Facts first:
> 1. index.jsp shows:
>
>  key="index.logon"/>
>
> i.e calls the file logon.jsp
>
> 2. logon.jsp defines an action form:
> 
>
> 3. struts-config.xml defines an action mapping:
> type="org.apache.struts.webapp.example.LogonAction"
>name="logonForm"
>   scope="request"
>   input="/logon.jsp">
> 
>
> Now the tour guide under the heading LogonAction.java says:
> "The initial JSP submits its form to logon.do. If you check the servlet
> mappings in the example's web.xml you will see that requests for *.do
> files are directed to the Struts "action" servlet (an instance of
> ActionServlet). In the example, the ActionServlet refers to
> struts-config.xml for its own mappings  (among other things), which is
> where we find the reference to logon.do:"
>
> To my knowledge the initial jsp (logon.jsp right?) is submitting a form
> to the action servlet which matches the action value in  action="/logon" ...> to the action mapping path  ...> correct? i.e. /logon matches /logon.
>
> I am aware that web.xml defines a servlet-mapping for *.do but thats
> only if the user or the system makes a request for a .do file right? Now
> in the above case a request is being sent first to logon.jsp from
> index.jsp. Then the action form in logon.jsp if there are errors it
> calls: return (new ActionForward(mapping.getInput()));  where the input
> is /logon.jsp as defined above in the action mapping. Otherwise it
> forwards it to mainmenu.jsp.
>
> Now where does the .do come in? Is it internal to struts?
>
> Thanks in advance
> Jose Correia
>
>
>
> Now following the struts example guide tour
>
> --
>
> \=/, _-===-_-===-_-===-_-===-_-==-_
> |  @___oo  (   )_
>   /\  /\   / (___,,,}_--=)
>  ) /^\) ^\/ _)=_"Positive thinking - a great way  )
>  )   /^\/   _) (_to face life" )
>  )   _ /  / _)  (Jose Correia)
>  /\  )/\/ ||  | )_)  (_[EMAIL PROTECTED])
> <  >  |(,,) )__)   (   [EMAIL PROTECTED])
>  ||  /\)___)\   (__)
>  | \(  )___) )___  -==-___-=-___==
>   \__(___;;; __;;;
>
>




Re: Newbie question #3

2001-04-06 Thread Jim Crossley




Alex Colic wrote:
> 
> Hi, I am porting one of my web apps to the struts infrastructure. I have a
> few questions that should get me on the right track. I hope someone out
> there can help.
> 
> On one of my pages I am getting an object that is already in the session
> via:
> 
> 
> 
> The User class has a method getEmployee() that itself has a method
> getDepartment();
> 
> I want to set a text box to the getDepartment() value.
> 
> In a standard case the property value is a String, in this case the property
> I get is an object of type User that I need to call methods on. How do you
> do that in the below tag?
> 
>  maxlength="20" />
> 
> Any help is this case is highly appreciated.
> 
> Regards
> 
> Alex Colic, HBA, B. Ed
> PopWare Inc. "Driving down the cost of conversions!"
> E-Mail: [EMAIL PROTECTED]
> Tel: 1-905-777-8171 ext. 104
> Fax: 1-905-777-0132



Re: Newbie question #2

2001-04-06 Thread Maya Muchnik

Here is the reply from Craig M. for similar question
-
John Hunt wrote:

> 1.What is the normal practice in the case where you
> have two pages, and part of the input entered in the
> first page needs to be displayed in the second page. I
> would say use the same form bean for both the pages.
> Any objections to this?
>

This would also be the normal approach to a multi-page form -- all of
the pages would share the same form bean, whose properties would be all
the fields that appear on *any* of the pages.

The interesting part of this is knowing what to check in your validate()
method, which will be called as each page is submitted.

>
> 2. When displaying readonly contents  on a page where
> the contents were obtained by some processing done by
> the Acton class which forwarded to this page, is it
> advisable to put the output page's bean in session
> scope and have the action class populate it ( or even
> under request scope ). Or is it better to expose many
> beans from the Action class that produced the data and
> let the form bean get populated in the  jsp page ( for
> the readonly attributes )? So these attributes
> actually need not be propagated to the next action
> class. Suggestions???
>

I would not generally use the form bean for read only attributes --
instead, I'd just create request or session attributes (depending on how
long you wish to keep them) and use  to display the
read-only contents of those beans.  This works even when you are not
inside a form, and you can have any number of beans accessible to
, but only one form bean per form.

Craig


-
"Nanduri, Amarnath" wrote:

> check the mailing list. Somebody before has asked the same question and got
> a reply back
>
> -Original Message-
> From: Alex Colic [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 10:26 AM
> To: Struts
> Subject: Newbie question #2
>
> Hi, I am porting one of my web apps to the struts infrastructure. I have a
> few questions that should get me on the right track. I hope someone out
> there can help.
>
> #2 How do you make a text box read-only? I have a form in which the employee
> name is read from the bean. I don't want the user to change that so I want
> to make that text box read-only.
>
> Regards
>
> Alex Colic, HBA, B. Ed
> PopWare Inc. "Driving down the cost of conversions!"
> E-Mail: [EMAIL PROTECTED]
> Tel: 1-905-777-8171 ext. 104
> Fax: 1-905-777-0132




RE: Newbie Question on Forms

2003-02-09 Thread Damm, Gary
Yes, when you define the form in your action set the scope to session.
This will put the form bean into the session scope.

Hope this helps,
Gary

-Original Message-
From: Peder Jakobsen [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, February 09, 2003 10:50 PM
To: [EMAIL PROTECTED]
Subject: Newbie Question on Forms

Hi, 

When traversing from page to page, collecting infromation for a single
database UPDATE, is there any way to collect all the data from the
separate pages into one ActionForm?

The only reason I use multiple pages is to avoid overwhelming the user
with a single page form that is too large.

Many thanks,

Peder Jakobsen

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




Re: Newbie Question on Forms

2003-02-09 Thread ajTreece
Hi Peder...

I think all you would have to do is set the scope of the ActionForm to 
"session" and you would be good to go. You would just have to be careful 
about when and how you reset the form for a new collection.


Later, ajTreece



Peder Jakobsen wrote:

Hi, 

When traversing from page to page, collecting infromation for a single database UPDATE, is there any way to collect all the data from the separate pages into one ActionForm?

The only reason I use multiple pages is to avoid overwhelming the user with a single page form that is too large.

Many thanks,

Peder Jakobsen

 




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




RE: Newbie Question on Forms

2003-02-09 Thread Mark Galbreath
You don't have to set the ActionForm to session; its in session scope by
default.

Mark

-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 10, 2003 12:59 AM

Hi Peder...

I think all you would have to do is set the scope of the ActionForm to 
"session" and you would be good to go. You would just have to be careful 
about when and how you reset the form for a new collection.


Later, ajTreece



Peder Jakobsen wrote:

>Hi,
>
>When traversing from page to page, collecting infromation for a single 
>database UPDATE, is there any way to collect all the data from the 
>separate pages into one ActionForm?
>
>The only reason I use multiple pages is to avoid overwhelming the user 
>with a single page form that is too large.
>
>Many thanks,
>
>Peder Jakobsen
>
>  
>



-
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: Newbie Question on Performance

2003-02-09 Thread Craig R. McClanahan


On Mon, 10 Feb 2003, Peder Jakobsen wrote:

> Date: Mon, 10 Feb 2003 00:47:13 -0600
> From: Peder Jakobsen <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Newbie Question on Performance
>
> Hi,
>
> I'm new to Struts, and so far I'm very happy with what I see. But I have
> some suspicion that it'll be dead slow.
>

What leads you to this suspicion?  There's no way to respond to such a
FUD-sounding :-) comment without specifics.

> Has anyone had to abandon struts because it was not performant?  Does
> anyone out there serve A LOT of requests?  (We run 12 load balanced quad
> Xeons and we can barely keep up!  We have about 1 million users on our
> site)
>

You're primarily going to want to focus on the performance characteristics
of the servlet+JSP container you are running on, and most particularly the
quality of the code produced by the JSP page compiler.  With servlet
containers, you also need to evaluate whether to run them standalone or
behind a web server).  Secondarily, on database-driven apps, you'll want
to focus on the quality of your database driver, and (obviously) on how
well you've tuned your database for maximum performance.  Thirdly, you'll
certainly want to run a 1.4 or later JDK -- performance improvements in
each incremental release of Java have been helpful.

These issues are not fundamentally associated with Struts itself, which
generally doesn't have much direct impact on performance (but it sure
helps a lot on maintainability :-).  Fortunately, in the Java worls, you
have a choice of providers for the container functionality.
Unfortunately, that means there are no pat answers for getting the best
performance on *your* applications.

> Currently we use mod_perl, but it's become a Duck-tape patch job that's
> impossible to maintain.  So I'm going to build some apps with struts and
> stress test the hell out of it.  Hopefully I will not be disappointed.
>

Hopefully, you'll report back your results, both positive and negative ...
maximizing performance is very much a FAQ.

> Any thoughts...
>
> Many thanks.
>
> Peder

Craig


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




Re: Newbie Question on Performance

2003-02-10 Thread Davor Cengija
Craig R. McClanahan wrote:

> 
> 
> On Mon, 10 Feb 2003, Peder Jakobsen wrote:
> 
>> Has anyone had to abandon struts because it was not performant?  Does
>> anyone out there serve A LOT of requests?  (We run 12 load balanced quad
>> Xeons and we can barely keep up!  We have about 1 million users on our
>> site)
>>
> 
> You're primarily going to want to focus on the performance characteristics
> of the servlet+JSP container you are running on, and most particularly the
> quality of the code produced by the JSP page compiler.  With servlet
> containers, you also need to evaluate whether to run them standalone or
> behind a web server).  Secondarily, on database-driven apps, you'll want
> to focus on the quality of your database driver, and (obviously) on how
> well you've tuned your database for maximum performance.  Thirdly, you'll
> certainly want to run a 1.4 or later JDK -- performance improvements in
> each incremental release of Java have been helpful.
>

Keeping network traffic low, especially between the appservers and the 
databases, might improve performance as well. Keep the most accessable 
tables near the appservers (or even on the same machine). Also, cache and 
preload the data with high access rate.

All these advices are applicable on any java application. There's even a 
book, Java Performance Tuning.

Regarding Struts, we had no performance issues connected directly to it.

-- 
[EMAIL PROTECTED]


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




Re: Newbie Question on Performance

2003-02-10 Thread Sundar Narasimhan

>> From: Peder Jakobsen <[EMAIL PROTECTED]>
>> I'm new to Struts, and so far I'm very happy with what I see. But I have
>> some suspicion that it'll be dead slow.
>>
>
>What leads you to this suspicion?  There's no way to respond to such a
>FUD-sounding :-) comment without specifics.

Craig: While this is true, I think Peder's question deserves a more
thoughtful response. Struts relies exclusively on reflection, and
someone should do some detailed studies and post them. You have
responded before when I asked about interface vs. implementation
etc. and I must say the arguments don't sound very convincing. There
is definitely code-bloat with all these classes and parsing and
dealing with strings repeatedly at multiple layers (and I know about
the Plan9 argument that it's a small % of cpu time :). While it is
true that logically this should all help with design -- my personal
benchmarks against other technologies such as Zope or ASP vs. struts
indicates that the latter is good but still has a ways to go. The
slowness in terms of productivity etc. may be due to other factors
such as lack of documentation, lack of clarify wrt. life-cycle of
certain objects, lack of good debugging tools for jsps' etc., but if
struts promises elegance, productivity and performance, my thoughts
are it still needs a whole lot of work. The perception I also get
wrt. people like you and others moving onto JSTL and JFaces also does
not give the warm and fuzzies to others seeking to adopt struts.
Don't get me wrong, either struts is "great stuff, and people are
using it for high-volume sites -- go see 'X', 'Y', 'Z'" (which is what
I, (and I suspect Peder) was hoping to hear) or "it's supposed to help
you write web applications with Java and JSP, and it's good for small
apps say with 10's of pages, but if you want to do really complex
things, or high volume sites.. you need to do .." which is it?

Don't get me wrong -- struts does do certain things well, and some of
these like dev. tool support, or performance may be entirely out of
struts' hands (as you point out wrt. database vendor choice,
containers etc.). But I firmly believe in the developer hierarchy.. if
you are a framework guy, you've got to listen to people who drive
applications and people who do OS's -- and your statements carry a lot
of weight -- and presumably you've heard from more users of struts out
there than most, so if you know of high volume sites, please do tell :)

> Has anyone had to abandon struts because it was not performant?  Does
> anyone out there serve A LOT of requests?  (We run 12 load balanced quad
> Xeons and we can barely keep up!  We have about 1 million users on our
> site)


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




RE: Newbie Question on Performance

2003-02-10 Thread Mark Galbreath
We built the T-Mobile ecommerce with Struts 1.0.2 with EJBs and an Oracle 9i
database ( <http://shop.t-mobile.com> http://shop.t-mobile.com) and get
about 15,000 hits/day on a 2-platform multiprocessor cluster of Compaq
servers using BEA WebLogic 6.1SP2.  We have had no problems with overloading
or denial of service.  Perhaps the problem is in your code or implentation?


Mark Galbreath
Principal Consultant, Workflow Process Engineering and System Integration
 <http://www.QAT.com> http://www.QAT.com
410-703-367

"Never attribute to malice that which can be adequately explained by
stupidity."  ~Hanlon's Razor



-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Davor Cengija
Sent: Monday, February 10, 2003 2:53 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Question on Performance


Craig R. McClanahan wrote:

>
>
> On Mon, 10 Feb 2003, Peder Jakobsen wrote:
>
>> Has anyone had to abandon struts because it was not performant?  Does
>> anyone out there serve A LOT of requests?  (We run 12 load balanced
>> quad Xeons and we can barely keep up!  We have about 1 million users
>> on our
>> site)
>>
>
> You're primarily going to want to focus on the performance
> characteristics of the servlet+JSP container you are running on, and
> most particularly the quality of the code produced by the JSP page
> compiler.  With servlet containers, you also need to evaluate whether
> to run them standalone or behind a web server).  Secondarily, on
> database-driven apps, you'll want to focus on the quality of your
> database driver, and (obviously) on how well you've tuned your
> database for maximum performance.  Thirdly, you'll certainly want to
> run a 1.4 or later JDK -- performance improvements in each incremental
> release of Java have been helpful.
>

Keeping network traffic low, especially between the appservers and the
databases, might improve performance as well. Keep the most accessable
tables near the appservers (or even on the same machine). Also, cache and
preload the data with high access rate.

All these advices are applicable on any java application. There's even a
book, Java Performance Tuning.

Regarding Struts, we had no performance issues connected directly to it.

--
[EMAIL PROTECTED]


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






RE: newbie question: HTML Taglib

2002-02-22 Thread Boyalla, Raveendra

Hi,

Please tell me, How to use onBlur event for text Tag

 


Thank you
Raveendra

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: newbie question: HTML Taglib

2002-02-22 Thread Nail, Evan Burke

Lets say you have a script as follows


function testme(){
  alert("you tested me");
}



then your html tag would look like this




Hope this helps.



>  -Original Message-
> From: "Boyalla, Raveendra" <[EMAIL PROTECTED]>@ENRON  
> Sent: Friday, February 22, 2002 2:57 PM
> To:   'Struts Users Mailing List'
> Subject:  RE: newbie question:  HTML Taglib
> 
> Hi,
> 
> Please tell me, How to use onBlur event for text Tag
> 
>  
> 
> 
> Thank you
> Raveendra
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


**
This e-mail is the property of Enron Corp. and/or its relevant affiliate and may 
contain confidential and privileged material for the sole use of the intended 
recipient (s). Any review, use, 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 or reply to Enron Corp. at 
[EMAIL PROTECTED] and delete all copies of the message. This 
e-mail (and any attachments hereto) are not intended to be an offer (or an acceptance) 
and do not create or evidence a binding and enforceable contract between Enron Corp. 
(or any of its affiliates) and the intended recipient or any other party, and may not 
be relied on by anyone as the basis of a contract by estoppel or otherwise. Thank you. 
**


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




  1   2   3   >