RE: bean:message problem !

2003-03-13 Thread du Plessis, Corneil C
bean:define id=localvar1 type=Stringbean:message
key=keyforarg0/bean:define
bean:message key=mykey arg0=%=localvar1%/

-Original Message-
From: Eric Chow [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 08:39
To: Struts Users Mailing List
Subject: bean:message problem !


Hello,

If I want to parse a parameter to the bean:message tag,

I can do it as bean:message key=mykey arg0=my argument0/.

How about if my arg0 also in MessageResource file ?


Best regards,
Eric



==
If you know what you are doing, 
it is not called RESEARCH!
==

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra

My question is perhaps stupid, sorry. 
I would wish to know if it is possible to use struts-menu with
Tiles. 
I for a long time seek an example of horizontal dropdown menu and
the menu used in struts-menu example
coolmenus3 seems to me satisfactory. 
But I use the Tiles components to build my pages. 
Is it possible to use the two technologies? 
Thanks a lot in advance.

Sandra

--- 
As of February 12, 2003 Thomson unifies its email addresses on a worldwide
basis.Please note my new email address: [EMAIL PROTECTED] 

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 



html:form tag and document submit()

2003-03-13 Thread Mohan Radhakrishnan
Hi,
I have a dumb question to ask.

 What does the tag html:form do that document.form.submit() doesn't do
?

If there is a considerable difference between these two methods, then it
might explain some of the things we have been facing here.

Mohan



-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:21 AM
To: Struts Users Mailing List
Subject: Accessing DynaActionForm fields within custom tag


I have a form where the submit button is supposed to say add login or
update login depending on if the user in question (based on field
fkMember) already exists in the login database.  I have tags called HasLogin
and HasNoLogin that take an integer parameter, and return whether or not the
condition is true.

I am using a DynaActionForm to populate the rest of the fields.  The
DynaActionForm is a session scoped bean called loginForm -- the following
code actually works:

!-- form tags and all that above --
tdhtml:submit
jsp:useBean id=loginForm scope=session
class=org.apache.struts.action.DynaActionForm/
app:HasNoLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.addlogin/
/app:HasNoLogin
app:HasLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.updatelogin/
/app:HasLogin
/html:submit/td
!-- rest of page below --

The syntax above offends my sensibilities.  First, I ought to be able to
refer to the bean in question without using a jsp:useBean I think; it's
obviously available to the rest of the form, if the form works (and it
does).  Seconds, casting the get() as a String and doing a parseInt to it to
create a new Integer is silly.

Isn't there a more elegant way to do this?

Ian


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

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



RE: html:form tag and document submit()

2003-03-13 Thread du Plessis, Corneil C
html:form is a JSP Tag library that renders a form tag based on the
struts-config.
document.form.submit() is a JavaScript expression that is going to submit
the specific form.


-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 11:31
To: 'Struts Users Mailing List'
Subject: html:form tag and document submit()


Hi,
I have a dumb question to ask.

 What does the tag html:form do that document.form.submit() doesn't do
?

If there is a considerable difference between these two methods, then it
might explain some of the things we have been facing here.

Mohan



-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:21 AM
To: Struts Users Mailing List
Subject: Accessing DynaActionForm fields within custom tag


I have a form where the submit button is supposed to say add login or
update login depending on if the user in question (based on field
fkMember) already exists in the login database.  I have tags called HasLogin
and HasNoLogin that take an integer parameter, and return whether or not the
condition is true.

I am using a DynaActionForm to populate the rest of the fields.  The
DynaActionForm is a session scoped bean called loginForm -- the following
code actually works:

!-- form tags and all that above --
tdhtml:submit
jsp:useBean id=loginForm scope=session
class=org.apache.struts.action.DynaActionForm/
app:HasNoLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.addlogin/
/app:HasNoLogin
app:HasLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.updatelogin/
/app:HasLogin
/html:submit/td
!-- rest of page below --

The syntax above offends my sensibilities.  First, I ought to be able to
refer to the bean in question without using a jsp:useBean I think; it's
obviously available to the rest of the form, if the form works (and it
does).  Seconds, casting the get() as a String and doing a parseInt to it to
create a new Integer is silly.

Isn't there a more elegant way to do this?

Ian


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited is proprietary to the company. It is confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any other 
content. 
Views and opinions are those of the sender unless clearly stated as being that of 
Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender 
immediately if it has unintentionally reached you and do not read, disclose or use the 
content
in any way. 

Standard Bank can not assure that the integrity of this communication has been 
maintained nor 
that it is free of errors, virus, interception or interference.

__

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



RE: html:form tag and document submit()

2003-03-13 Thread Mohan Radhakrishnan
Hi,
   I might have mislead you. I mean something else.

   In certain cases document.form.submit() doesn't seem to create the form
bean and put it in the scope. Now if we invoke some other action doesn't use
document.form.submit() and go back and use document.form.submit() then it
works.

   Initially I thought of pre-populating our form bean and then use
document.form.submit(). Even that doesn't seem to solve the problem.

   This is what prompted the question.

Mohan

-Original Message-
From: du Plessis, Corneil C [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:08 PM
To: Struts Users Mailing List
Subject: RE: html:form tag and document submit()


html:form is a JSP Tag library that renders a form tag based on the
struts-config.
document.form.submit() is a JavaScript expression that is going to submit
the specific form.


-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]
Sent: 13 March, 2003 11:31
To: 'Struts Users Mailing List'
Subject: html:form tag and document submit()


Hi,
I have a dumb question to ask.

 What does the tag html:form do that document.form.submit() doesn't do
?

If there is a considerable difference between these two methods, then it
might explain some of the things we have been facing here.

Mohan



-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:21 AM
To: Struts Users Mailing List
Subject: Accessing DynaActionForm fields within custom tag


I have a form where the submit button is supposed to say add login or
update login depending on if the user in question (based on field
fkMember) already exists in the login database.  I have tags called HasLogin
and HasNoLogin that take an integer parameter, and return whether or not the
condition is true.

I am using a DynaActionForm to populate the rest of the fields.  The
DynaActionForm is a session scoped bean called loginForm -- the following
code actually works:

!-- form tags and all that above --
tdhtml:submit
jsp:useBean id=loginForm scope=session
class=org.apache.struts.action.DynaActionForm/
app:HasNoLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.addlogin/
/app:HasNoLogin
app:HasLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.updatelogin/
/app:HasLogin
/html:submit/td
!-- rest of page below --

The syntax above offends my sensibilities.  First, I ought to be able to
refer to the bean in question without using a jsp:useBean I think; it's
obviously available to the rest of the form, if the form works (and it
does).  Seconds, casting the get() as a String and doing a parseInt to it to
create a new Integer is silly.

Isn't there a more elegant way to do this?

Ian


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

__

Disclaimer and confidentiality note


Everything in this e-mail and any attachments relating to the official
business of 
Standard Bank Group Limited is proprietary to the company. It is
confidential, legally 
privileged and protected by law. Standard Bank does not own and endorse any
other content. 
Views and opinions are those of the sender unless clearly stated as being
that of Standard Bank. 

The person addressed in the e-mail is the sole authorised recipient. Please
notify the sender 
immediately if it has unintentionally reached you and do not read, disclose
or use the content
in any way. 

Standard Bank can not assure that the integrity of this communication has
been maintained nor 
that it is free of errors, virus, interception or interference.

__

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

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



RE: html:form tag and document submit()

2003-03-13 Thread Jeevan_Sunkersett
The html:form struts tag will render/ create an html page (from your jsp)
which will be, standard html form tag:

form action=XZXZXZ method=post

The value XXZXZ will be taken from the struts-config.xml at runtime/ page
creation time.
Method by default will always be post.

In html u can submit a form either by having a submit button rendered with
input type=submit
Or use javascript to submit it (form.submit())

rgds g1


 -Original Message-
From:   Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 13, 2003 3:01 PM
To: 'Struts Users Mailing List'
Subject:html:form tag and document submit()

Hi,
I have a dumb question to ask.

 What does the tag html:form do that document.form.submit() doesn't do
?

If there is a considerable difference between these two methods, then it
might explain some of the things we have been facing here.

Mohan



-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:21 AM
To: Struts Users Mailing List
Subject: Accessing DynaActionForm fields within custom tag


I have a form where the submit button is supposed to say add login or
update login depending on if the user in question (based on field
fkMember) already exists in the login database.  I have tags called HasLogin
and HasNoLogin that take an integer parameter, and return whether or not the
condition is true.

I am using a DynaActionForm to populate the rest of the fields.  The
DynaActionForm is a session scoped bean called loginForm -- the following
code actually works:

!-- form tags and all that above --
tdhtml:submit
jsp:useBean id=loginForm scope=session
class=org.apache.struts.action.DynaActionForm/
app:HasNoLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.addlogin/
/app:HasNoLogin
app:HasLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.updatelogin/
/app:HasLogin
/html:submit/td
!-- rest of page below --

The syntax above offends my sensibilities.  First, I ought to be able to
refer to the bean in question without using a jsp:useBean I think; it's
obviously available to the rest of the form, if the form works (and it
does).  Seconds, casting the get() as a String and doing a parseInt to it to
create a new Integer is silly.

Isn't there a more elegant way to do this?

Ian


-
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]
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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



mapped propeties problem and need advice

2003-03-13 Thread Jason Long
I have been trying to set up some mapped properties in a form.
It is currently not working.
Would someone please look over what I am trying to do and comment on the
technique?

This was taken from the following:
http://jakarta.apache.org/struts/faqs/indexedprops.html

I modified the code from the faq slightly, but it is essentially the same.

If this works I was hoping to populate the map with the request parameters.
Since I am using XSL to generate the pages, I can easily add bean:write
property=stringMapped() name=bean /
in order to repopulate the fields as the JSP recompiles.

This method seems to solve the problems I am having.  I would appreciate any
advice anyone has.

Thank you for your time,

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering


**
My setup

**

ManagerForm.java

**
public final class ManagerForm
extends ActionForm {
  private HashMap map = new HashMap();

  public ManagerForm() {
map.put(102_price, 578854);
  }

  public Object getStringMapped(String key) {
return (map.get(key));
  }

  public void setStringMapped(String key, Object value) {
map.put(key, value);
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
  }

  public ActionErrors validate(ActionMapping mapping,
   HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
return errors;
  }
}

JSP Code

**
jsp:useBean class=org.apache.struts.webapp.example.ManagerForm id=bean
/
bean:write property=stringMapped(102_price) name=bean /

Error:

**
org.apache.jasper.JasperException: No getter method for property
stringMapped(102_price) of bean bean



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



html:form problem

2003-03-13 Thread Noureddine Bekrar
Hello,
I have a probleme with html:form

when i send data with this tag

html:form action=/validate method=POST enctype=multipart/form-data

the server transform all caracters like éèë... to 

Do you have any idea about this problem?


Thanks


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



RE: Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra
   
Is it possible to do internationalization with struts-menu ?

  
 --- 
 As of February 12, 2003 Thomson unifies its email addresses on a worldwide
 basis.Please note my new email address: [EMAIL PROTECTED] 
 
 Thomson is the leader in solutions and technologies for the entertainment
 and media industries and serves its customers under its four strategic
 brands: Technicolor, Grass Valley, RCA and THOMSON. 
 More about Thomson: http://www.thomson.net/videochain 
 
 Original Message-
 From: Heligon Sandra  
 Sent: 13 March 2003 09:47
 To:   '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject:  Struts-menu with Tiles
 
 
   My question is perhaps stupid, sorry. 
   I would wish to know if it is possible to use struts-menu with
 Tiles. 
   I for a long time seek an example of horizontal dropdown menu and
 the menu used in struts-menu example
   coolmenus3 seems to me satisfactory. 
   But I use the Tiles components to build my pages. 
   Is it possible to use the two technologies? 
   Thanks a lot in advance.
   
   Sandra


Strutsaction on different WebApps

2003-03-13 Thread Kjellaug Johansen
I have two servers running webapps, one for production: www.mycomp.com/WebApp and one 
for testing: www.mycomp.com/test/WebApp

When I work on the production server there are no problems, but when I work on the 
test-server and try to call a Struts-action (i.e. 
www.mycomp.com/test/WebApp/user/saveUser.do), I'm getting redirected to the 
production-server. The 'test' part in the URL for the test-server is ignored and I'm 
getting redirected to www.mycomp.com/WebApp/user/saveUser.do. 

The struts-config on the testserver looks like this:
action path=/user/saveUser
type=com.mycomp.web.user.SaveUserAction
name=user
scope=request
input=/jsp/user/editUser.jsp
 /action

The action call in the jsp file on the testserver looks like this:
... action = /user/saveUser.do

My questions are:
Doesn't Struts manage an extra level (test) between the serverroot (www.mycomp.com) 
and the webapp name (WebApp)? Are there any config-settings I can do to solve this?

PS: This is urgent!

Kjellaug.



[OT] Escape characters

2003-03-13 Thread Guido
I'm using jsp + struts + oracle.

My oracle data contains special characters ', , , etc. that 
cause the JSP not to be well formed.

Where should I escape that chars?  In the query, whit a JSP scriptlet 
(or taglig), in my Action classes?

Is there any package (in some cases i'm using URLEncoder and URLDecoder) 
to do the escape ( - amp; , etc)?

Thank you.

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


Re: Is it possible to change the base tile on the fly

2003-03-13 Thread Cedric Dumoulin
 Hi,

 I have a very simple solution:

   *   Create a struts action that switch to the appropriate layout (a
 jsp), according to the user settings:
   action path=/switchLayout
  type=...
   forward  name=layout1   path=/layouts/layout1.jsp/
   forward  name=layout2   path=/layouts/layout2.jsp/
   forward  name=layout3   path=/layouts/layout3.jsp/
  /action
   *   Then, use this action in the master definition in place of the
 layout (path=switchLayout.do ).
 A better solution would be to be able to do that with a Tiles 
controller: change the layout path in the controller. Unfortunately, the 
current tiles implementation doesn't allow to change the path of a tile 
context. Maybe a future version.

Cedric

Raible, Matt wrote:

The reason I want to do this is to have two totally different skins based on
a user's settings.  How can I change a baseLayout and all children on the
fly?  Is it possible - can I just point to a specific tiles-config.xml after
they login?
I realize this is possible using stylesheets and some fancy CSS, but I'd
like to explore doing this using Tiles.
Thanks,

Matt

 

-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 10:27 AM
To: Struts Users Mailing List
Subject: Re: Is it possible to change the base tile on the fly


 It is possible to change a definition attribute like the 
path on the 
fly, but this will not change all the child definitions has 
you expect.
 This is because in the actual implementation all definitions have 
their own copy of the attributes. There is no lookup to the 
parent value.

Cedric

Raible, Matt wrote:

   

I have the following base tile definition that all my other 
 

definitions
   

extend:

definition name=baseLayout path=/layouts/baseLayout.jsp
put name=title.key/
put name=heading.key/
put name=header value=/common/header.jsp/
put name=footer value=/common/footer.jsp/
/definition
Is it possible to change the path attribute of this 
 

definition on-the-fly
   

- perhaps based on a value received in an Action?  If so, how?

Thanks,

Matt

-
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: mapped propeties problem and need advice

2003-03-13 Thread Jason Long
I found the following:
http://ux-2d01.inf.fh-brs.de:8080/struts-documentation/userGuide/installatio
n.html

Running Struts Applications Under A Security Manager
Many application servers execute web applications under the control of a
Java security manager, with restricted permissions on what classes in the
web application can do. If you utilize form beans with mapped properties,
you may encounter security exceptions unless you add the following
permission to the set of permissions granted to your Struts application's
codebase:

permission java.lang.RuntimePermission accessDeclaredMembers;

I am not sure is this is my problem.

Has anyone seem this or can explain how to add permission in tomcat?

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering

-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:47 AM
To: Struts Users Mailing List
Subject: mapped propeties problem and need advice


I have been trying to set up some mapped properties in a form.
It is currently not working.
Would someone please look over what I am trying to do and comment on the
technique?

This was taken from the following:
http://jakarta.apache.org/struts/faqs/indexedprops.html

I modified the code from the faq slightly, but it is essentially the same.

If this works I was hoping to populate the map with the request parameters.
Since I am using XSL to generate the pages, I can easily add bean:write
property=stringMapped() name=bean /
in order to repopulate the fields as the JSP recompiles.

This method seems to solve the problems I am having.  I would appreciate any
advice anyone has.

Thank you for your time,

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering


**
My setup

**

ManagerForm.java

**
public final class ManagerForm
extends ActionForm {
  private HashMap map = new HashMap();

  public ManagerForm() {
map.put(102_price, 578854);
  }

  public Object getStringMapped(String key) {
return (map.get(key));
  }

  public void setStringMapped(String key, Object value) {
map.put(key, value);
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
  }

  public ActionErrors validate(ActionMapping mapping,
   HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
return errors;
  }
}

JSP Code

**
jsp:useBean class=org.apache.struts.webapp.example.ManagerForm id=bean
/
bean:write property=stringMapped(102_price) name=bean /

Error:

**
org.apache.jasper.JasperException: No getter method for property
stringMapped(102_price) of bean bean



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



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



Re: [OT] Escape characters

2003-03-13 Thread Ludovic Maitre
please read the manual :
http://jakarta.apache.org/struts/api/org/apache/struts/util/ResponseUtils.html#filter(java.lang.String)
Guido wrote:
I'm using jsp + struts + oracle.

My oracle data contains special characters ', , , etc. that 
cause the JSP not to be well formed.

Where should I escape that chars?  In the query, whit a JSP scriptlet 
(or taglig), in my Action classes?

Is there any package (in some cases i'm using URLEncoder and URLDecoder) 
to do the escape ( - amp; , etc)?

Thank you.

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




--
Ludovic Maître
Factory Productions | Tél: (33) 04 93 07 08 00
149, avenue des mimosas | Fax: (33) 04 93 07 04 02
06700 Saint-Laurent-du-Var (France) | Web: http://www.factory.fr


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


When does the servlet reference in the ActionForm get set?

2003-03-13 Thread White, Joshua A (CASD, IT)
I have been trying unsuccessfully to get a reference to the ServletContext
from my BaseForm class which extends ActionForm.  I have attempted to get a
reference to the ActionServlet by calling the inherited getServlet method
as well as referencing the inherited servlet field.  Both are returning
null.  

When does this reference get set?  Should I not be receiving null?

Joshua 








-Original Message-
From: White, Joshua A (CASD, IT) 
Sent: Wednesday, March 12, 2003 6:41 PM
To: 'Sri Sankaran'; Struts Users Mailing List
Subject: RE: servlet reference in form bean in null?


I was actually talking about the servlet member variable of the ActionForm
class.  Is there any difference if I reference the servlet variable or the
getServlet method?  The servlet member variable is null.  I have not dug up
the source yet, but I would imagine the getServlet method returns the local
copy of the servlet field.  Both are protected.  Both are null when I use
them.

Any ideas?

Joshua



-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 4:28 PM
To: Struts Users Mailing List
Subject: RE: servlet reference in form bean in null?


I think he means the getServlet() method of ActionForm.

Sri

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 4:26 PM
To: 'Struts Users Mailing List'
Subject: RE: servlet reference in form bean in null?


Might have if you posted the code to which you are referring.

Mark

-Original Message-
From: White, Joshua A (CASD, IT) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 12, 2003 4:16 PM
To: [EMAIL PROTECTED]
Subject: servlet reference in form bean in null?


Hello all,

I am having trouble determining why the servlet reference in my formbean
is null.  I have created a class BaseForm which extends ActionForm.  Any
ideas?  

Joshua


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


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



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


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



Re: BaseBean questions [was] [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-13 Thread Vic Cekvenich


Rick Reumann wrote:
Thanks vic for the kind words and feedback. I replied to you privately.
Rest of this email is in regard to the BaseBeans stuff I looked it.
Comments below...
On Wed, Mar 12,'03(08:51 PM GMT-0500), Vic wrote:
   

So consider using list/collection based beans. Ex:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/base
Note that I use iBatis.com DAO, a good and fast SQL based DAO.


I've been looking at the classes from the link above and I think
what would really help me is seeing an actual web app implement the
org.apache.scaffoldingLib.base.BaseBean and see it being used for CRUD
operations. I think you had a web app to download on your basebeans.com
site but I'm not sure what to download to see this in action (should I
look at the Portal download?)
I have not release yet, so no download. It does work, but you have to 
CVS out of sf.net or I can e-mail you separate. It's work in progress, 
dispatch is not done yet.
(I am time slicing as is everyone doing open source. As soon as a few 
more things work, I will create a early build for easier download (non-cvs))
You are welcome to use my code, its Apache license, (or develop a module 
you check in to my code, for example user registration, similar to 
employee list above)

For the sake of this discussion lets consider an application that would
allow a user to view Employees, insert an employee, update an employee
etc. (I'm thinking of updating my lessons, with your approval of course,
to incorporate some of these ideas, but I want to make sure I understand
them first:)
Using the List backed BaseBean idea, it appears that all the ActionForm
beans would extend BaseBean. I guess the big difference in this
approach, compared to the others I've seen documented, is your Form
beans are actually responsible for a lot more than just being holders
for simple form field properties.
My design is this: A bean should delegate DAO.
Being list/collection bean is not controversial.
Having zero-copy beans is.
 This lets JSTL, Model 1, SOAP, etc. etc use beans, and it's easy to 
unit test (see my abstract testIt() in bean). Also, my beans are 
seriazable, so server can fail over and recover session beans, or during 
development, you do not have to login.
People have called this approach simpler. When writing a complex 
application, a simpler design is helpfull.

The other design is as intended by developers of Struts, for example:
http://www.eyde.net/eyde/index.do?date=20021021#213801 (a Struts blog)
or variation in Scaffolding in struts.sf.net.
There is a lot of DAO-type code in Action, and copying of fields, and 
being Struts bound.
Advantage is that it can more easily display wrong data in Validation.

Explore both.


So lets take a typical example of where a user wants to update Employee
information on a form.  I take it our EmployeeFormBean would have your
usual firstName, lastName fields, but then rather than pass this bean
off to be converted into a Data Transfer Object and then passed off to a
model layer to be updated, you would instead simply do something like
this in your Action:
(in the execute or dispatch method of an Action called for doing an
update):
EmployeeFormBean emp = (EmployeeFormBean)form;
emp.save(); //
To do this would we need to override the BaseBean's save() method? I
assume you also would need to provide an implementation of the BaseDAO's
update(List l) method? 
I use OO, I am very comfortable leveraging OO, since OO increases re 
usability and productivity. (and I am a certified OO instructor for like 
8 years)
Let me just say: is a/has a, which is even on a Sun Java Cert. 
Developer exam.
Or extends/delegates is the other way. So let me try to explain the 
implementation.
There are things that are in common with beans, like *apples and 
oranges*! If you are trained in functional decomposition, top/down, 
bottom up, or structural design, you look for differences.
But OO is like genetic: Apples and Oranges are trees, grow fruit, you 
can eat it, it can peel, etc. So they are 98% same!

Point is is crate a baseBean, that I extend to create concrete form 
beans. Any code the I find that is common, I put in base (which I call 
programing after design, since even after I created a lot of concrete 
beans, I can add code and they all benefit).

Also, a bean should not do persistence, but should delegate. So I create 
a helper object, a DAOImplementation. ( a DAO also has a base).
One thing is obvoice, a baseBean needs to CRUD, so it makes sense to
baseBean { public void save() { DAO.update(); }}

So each concrete bean has a concrete DAO, since each bean needs it's own 
specific CRUD.
But ... I can also write generic CRUD in base DAO and baseBean, via 
reflection, getMetaData, etc.

All I am saying is extend and delegate.

One more wrinkle. DB access it the slowest part of J2EE architecture, is 
well known. A DAO design that works in development might not stale in 

Re: Accessing bean in JSP but w/in java

2003-03-13 Thread Vic Cekvenich
write a getX() and just do bean.x in JSP

Scott Seong wrote:
Hello,

I have a little problem that I need help from experienced users.

I'm trying to access actionForm value in the JSP inside the java code. Why
would I use Java inside the JSP? I needed to derive options values based on
the value I received from the ActionForm. For example,
ActionForm contains a property, today which will contain a string value --
say 20030312. From this value, I need to generate 5 additional business
days to be provided in the options pick list. In order to generate
additional values, I need to assign a reference to a variable. So, how do I
gain access to the actionForm in the JSP?
Thanks,
Scott


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


JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Johan Wasserman
Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
directories behind WEB-INF so that the images and scripts included on my
JSP's can be accessed from there as well.  It's OK having the JSP's
there to stop external forces from accessing them directly but now they
can still access my images and scripts directly.
 
Regards,
Johan Wasserman


Re: Struts 1.1 modules and logic:forward

2003-03-13 Thread Ken Pelletier
It seems maybe my question wasn't quite clear.

I'm using a welcome-file ( index.jsp ) in each module's directory *to 
do exactly that*: force all access through an action.  Unfortunately, 
it's not practical to expect everybody to know an action URL in advance 
in order to get into your site; this technique seems like a quite 
common way of forcing default URL's into an initial action.  The 
index.jsp's do nothing more than forward to an action.

Since there's no action ( and hence no action controller ) involved in 
the initial bootstrap welcome file, I was really asking whether the 
logic:forward tag could/should be able to infer the appropriate module 
config from it's path.  I presume not, given its behavior.

- Ken

On Thursday, March 13, 2003, at 02:55  AM, Eddie Bush wrote:

Anytime modules are involved, it is imperative that you invoke your 
pages by going through actions (thus, going through the controller).  
It is only by doing this that you trigger a change from one module to 
another.  The controller is rigged to automatically expect you to be 
going to the default module.  By giving it a URL that leads into a 
different module, you cause the configuration for that module to be 
placed into the request.  Most things, failing finding this 
information in the request, will look in a similar spot in application 
scope - the similar spot points to configuration data for the 
default module.

It has always been good practice to preface all of your pages with an 
action.  If you're using modules, this is an absolute necessity.
It has always been good practice to preface all of your pages with an 
action.  If you're using modules, this is an absolute necessity.
It has always been good practice to preface all of your pages with an 
action.  If you're using modules, this is an absolute necessity.
It has always been good practice to preface all of your pages with an 
action.  If you're using modules, this is an absolute necessity.

No, I didn't stutter; nor am I trying to be rude.  I'm just hoping 
that will catch the eye of folks glancing over the email.  This is the 
one problem everyone that has problems with modules seems to have.  If 
you don't go through the controller, you don't have a chance of 
switching modules.

Ken Pelletier wrote:

I have an application with 3 motules, each having it's own struts 
config file (naturally).

Each module has it's own welcome file ( index.jsp ) which forwards to 
an action.

Eg:

/myapp/module1/index.jsp:

logic:forward name=login/
...
The forward tag does not find the global action forward named login 
in the *module's* config file.  However, if I place a global action 
forward by that name in the *default* config file, it finds it there.

Should the forward tag be aware that it's within a module 
subdirectory, and use the module's config, or is this not possible 
since it's not going through the struts action servlet, being a jsp?

What's an alternative that will be module-aware?


--
Eddie Bush




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


example of java.util.Collection in struts logic:iterate

2003-03-13 Thread Jamesey
can it be done?

or must it be a concrete collection such as arraylist or list..





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



Re: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Nicolas De Loof
If I understand your problem, your JSP generates some
img src=...
or script scr=...
and you get 404 broken link or something like this for this
ressources.

Perhaps you use relative path to your images and scripts
(src=../../images/foo.gif).
You should use absolute path with html:rewrite
page=/images/foo.gif
or html:img tags.

They're is no reaseon you cannot access images or scripts from a jsp
in WEB-INF beacause the jsp does'nt try to access anything, the
genrated HTML does. This way relative path is calculated from the URL
shown in browser (/service/foo.do) that has nothing to do with your
JSP path.

Nico.


Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
directories behind WEB-INF so that the images and scripts included on
my
JSP's can be accessed from there as well.  It's OK having the JSP's
there to stop external forces from accessing them directly but now
they
can still access my images and scripts directly.

Regards,
Johan Wasserman


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



RE: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Andrew Hill
Surely the idea would be to have the JSPs behind webinf , but leave the
images  scripts above it so they can be accessed?

-Original Message-
From: Johan Wasserman [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 March 2003 20:03
To: [EMAIL PROTECTED]
Subject: JSP's behind WEB-INF no access to img/scripts


Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
directories behind WEB-INF so that the images and scripts included on my
JSP's can be accessed from there as well.  It's OK having the JSP's
there to stop external forces from accessing them directly but now they
can still access my images and scripts directly.

Regards,
Johan Wasserman


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



Re: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Jose Gonzalez Gomez
   They HAVE to be able to access your images and your scripts. Images 
and scripts are loaded by the browser in a different request when it 
gets the html generated by your JSP, so you shouldn't try to limit 
access to these resources.

   Regards
   Jose
Johan Wasserman wrote:

Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
directories behind WEB-INF so that the images and scripts included on my
JSP's can be accessed from there as well.  It's OK having the JSP's
there to stop external forces from accessing them directly but now they
can still access my images and scripts directly.
Regards,
Johan Wasserman
 



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


RE: One-time initializing in struts

2003-03-13 Thread Brian Lee
You might want to try extending ActionServlet and calling your torque.init 
stuff in your new ActionServlet.init.

Something like this:
MyActionServlet extends ActionServlet{
init(){
super.init;
Torque.init(Torque.properties);
}
}
BAL

From: Andrew Hill [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: One-time initializing in struts
Date: Thu, 13 Mar 2003 14:35:16 +0800
Struts PlugIn might be the best option for that. Check the docs. Dont think
its supported in 1.0 though, just 1.1. (With each 1.1.x version having a
different interface!)
-Original Message-
From: Karl [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 March 2003 14:26
To: Struts Users Mailing List
Subject: One-time initializing in struts
Is there a way to do one-time initialization in struts without having to 
put
check logicn in every action?

I want to use turbine as my persistance back-end but I need to call
Torque.init(Torque.properties); somewhere.
-
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]


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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


Re: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Nicolas De Loof
Sory, I didn't well understand what you're looking for.

You can create a servlet that looks for authentified user's session,
user pathInfo to find the name of a ressource, looks for it in
WEB-INF, and put it's content as binary in the response.

Add a mapping to this servlet like /images/* - servlet

When an authentified user looks for /images/foo/bar.gif your servlet
will have to search for /foo/bar.gif in WEB-INF and send it's binary
content as response (with correct content-type header)

Nico.


 Surely the idea would be to have the JSPs behind webinf , but leave
the
 images  scripts above it so they can be accessed?

 -Original Message-
 From: Johan Wasserman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 13 March 2003 20:03
 To: [EMAIL PROTECTED]
 Subject: JSP's behind WEB-INF no access to img/scripts


 Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
 directories behind WEB-INF so that the images and scripts included
on my
 JSP's can be accessed from there as well.  It's OK having the JSP's
 there to stop external forces from accessing them directly but now
they
 can still access my images and scripts directly.

 Regards,
 Johan Wasserman


 
-
 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: example of java.util.Collection in struts logic:iterate

2003-03-13 Thread Gemes Tibor
Jamesey wrote:

can it be done?

or must it be a concrete collection such as arraylist or list..
 

Its just an interface. It must have a concrete implementation.
You'd better read some basic java book.
Tib



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


RE: JSP's behind WEB-INF no access to img/scripts

2003-03-13 Thread Andrew Hill
Ah , so the scripts should only be accessible by browsers of logged in
users?
If your using Servlet API 2.3 , an alternative to Nicolas' suggestion would
be to create a filter that inctercepts requests to the scripts and images
and only allows through requests that are authenticated. (btw: If your
supporting non-cookie enabled browsers in this scenario be sure to rewrite
the urls for the images and scripts so that sessionId is encoded! (Not
necessary if anyone can access the scripts without authentication))

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 March 2003 20:26
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: JSP's behind WEB-INF no access to img/scripts


Sory, I didn't well understand what you're looking for.

You can create a servlet that looks for authentified user's session,
user pathInfo to find the name of a ressource, looks for it in
WEB-INF, and put it's content as binary in the response.

Add a mapping to this servlet like /images/* - servlet

When an authentified user looks for /images/foo/bar.gif your servlet
will have to search for /foo/bar.gif in WEB-INF and send it's binary
content as response (with correct content-type header)

Nico.


 Surely the idea would be to have the JSPs behind webinf , but leave
the
 images  scripts above it so they can be accessed?

 -Original Message-
 From: Johan Wasserman [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 13 March 2003 20:03
 To: [EMAIL PROTECTED]
 Subject: JSP's behind WEB-INF no access to img/scripts


 Hi, I have my JSP's behind WEB-INF, is there a way of mapping other
 directories behind WEB-INF so that the images and scripts included
on my
 JSP's can be accessed from there as well.  It's OK having the JSP's
 there to stop external forces from accessing them directly but now
they
 can still access my images and scripts directly.

 Regards,
 Johan Wasserman


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


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


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



RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
Absolutely.

Just have one of your tiles be the menu.

Edgar

 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 3:47 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: Struts-menu with Tiles
 
 
 
   My question is perhaps stupid, sorry. 
   I would wish to know if it is possible to use 
 struts-menu with Tiles. 
   I for a long time seek an example of horizontal 
 dropdown menu and the menu used in struts-menu example
   coolmenus3 seems to me satisfactory. 
   But I use the Tiles components to build my pages. 
   Is it possible to use the two technologies? 
   Thanks a lot in advance.
   
   Sandra
 
 --- 
 As of February 12, 2003 Thomson unifies its email addresses 
 on a worldwide basis.Please note my new email address: 
 [EMAIL PROTECTED] 
 
 Thomson is the leader in solutions and technologies for the 
 entertainment and media industries and serves its customers 
 under its four strategic
 brands: Technicolor, Grass Valley, RCA and THOMSON. 
 More about Thomson: http://www.thomson.net/videochain 
 
 

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



Re: example of java.util.Collection in struts logic:iterate

2003-03-13 Thread Kjellaug Johansen
But if you code like this: 
Collection c = new Vector(); 
then it will work!

Kjellaug.

- Original Message - 
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 1:46 PM
Subject: Re: example of java.util.Collection in struts logic:iterate


 Jamesey wrote:
 
 can it be done?
 
 or must it be a concrete collection such as arraylist or list..
   
 
 Its just an interface. It must have a concrete implementation.
 You'd better read some basic java book.
 
 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]



tiles:definitions extends attribute

2003-03-13 Thread Michael Ruppin
For an exercise, I decided to try using a JSP for my
definitions, as opposed to XML.  All went fine until I
tried to implement a definition with an extends
attribute.  It works fine in XML, but in a JSP I
get:javax.servlet.ServletException: Can't get
definitions factory from context.  Both my JSP and XML
tests used the same struts-1.1-rc1 jars, in Tomcat
4.1.18. Can this not be done?  I've never seen an
example, but all the documentation I've found
indicates this is a valid tag attribute.  My war
files:
http://snow.prohosting.com/mruppin/tilesxml.war
http://snow.prohosting.com/mruppin/tilesjsp.war


__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

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



standalone with struts

2003-03-13 Thread santhosh
Hi Folks,

My requirement is as follows.

I have a standalone application which is build using swings.   This application talks 
to server for some of the functionalities to achieve.  In the server side i want to 
use struts framework .  My question is  1)  Can a standalone application talk to 
server which uses struts framework?  2) if yes  how to forward the request to applet 
after processing in the action class?  

It will be very much helpful if i get the answers as soon as possible as i have to 
answer  to our client as soon as possible.

waiting for the reply

Thanx with regds
santhosh hegde A


RE: Re: Specifying comma-delimted Struts Config Files

2003-03-13 Thread Susan Bradeen
Michael, 

Did you get this figured out? I've got four config files in my list, and 
it has worked like a charm from the get-go (with Struts 1.1b3, and now on 
yesterday's nightly). I do not have spaces in my list, as David suggested. 
I am not using Tomcat, but I wonder if your problem lies elsewhere, not in 
your config files list. 

Susan Bradeen

On 03/12/2003 05:23:11 PM Michael Cardon wrote:

 Thanks David, I did, but it still doesn't work. When I start my tomcat
 server I get the following error:
 
 SEVERE: Parsing error processing resource path
 java.lang.NullPointerException
 at
 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
 41)

 
 Any more idea?
 
 
 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 1:51 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Re: Specifying comma-delimted Struts Config Files
 
 
 Try removing the space after the comma.
 
 David
 
 
 
 I've never been able to get the comma config file feature to work, but 
you
 did? If you can tell me how you did it, I would appreciate it. Here is 
my
 sniplet from my web.xml file:
 
  init-param
param-nameconfig/param-name
param-value
  /WEB-INF/struts-config.xml, 
/WEB-INF/struts-config-reports.xml
/param-value
  /init-param
 
 Thanks.
 
 -Original Message-
 From: Chuck Cavaness [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 1:41 PM
 To: Struts Users Mailing List
 Subject: Re: Re: Specifying comma-delimted Struts Config Files
 
 
 As embarassing as it is to admit, the error was a pure operator type 
error.
 There was an action-mappings element missing in the second config 
file. I
 was actually taking one config file apart and splitting it into two to
 demonstrate this feature. Why the error complained about a missing
 /struts-config, I'm not sure.
 
 Anyway, the feature works as expected. Sorry for the distraction. Back 
to
 your regularly scheduled program...
 
 chuck
 
 
  
   From: Rick Reumann [EMAIL PROTECTED]
   Date: 2003/03/12 Wed PM 04:15:53 EST
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Subject: Re: Specifying comma-delimted Struts Config Files
  
   On Wed, 12 Mar 2003 16:00:46 -0500
   Chuck Cavaness [EMAIL PROTECTED] wrote:
  
Is anyone using the feature of the framework where you can specify
multiple configuration files in the web.xml:
  
   Sorry I can't help Chuck, since I'm not using multiple config.xml's.
   I'd like to start using them though, so when you figure what the 
problem
   is could you please post the solution (since I'm sure I'll run 
across it
   as well).
  
  
   Thanks,
  
   --
   Rick Reumann
  
   
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 The new MSN 8: smart spam protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail
 
 
 -
 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: standalone with struts

2003-03-13 Thread Sebastien BRUNOT
What do you mean by forwarding the request to applet ?

S. Brunot

-Message d'origine-
De: santhosh [SMTP:[EMAIL PROTECTED]
Date:   jeudi 13 mars 2003 14:08
A:  'Struts Users Mailing List'
Objet:  standalone  with struts

Hi Folks,

My requirement is as follows.

I have a standalone application which is build using swings.   This 
application talks to server for some of the functionalities to achieve.  In 
the server side i want to use struts framework .  My question is  1)  Can a 
standalone application talk to server which uses struts framework?  2) if 
yes  how to forward the request to applet after processing in the action 
class?

It will be very much helpful if i get the answers as soon as possible as i 
have to answer  to our client as soon as possible.

waiting for the reply

Thanx with regds
santhosh hegde A


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



Re: standalone with struts

2003-03-13 Thread santhosh
Forward means, if we use jsp's then after processing in action class we
forward the control to the view using  findforward() method
 e.g   return (mapping.findForward(forward));.  Like this how to forward
to  standalone applet which actually sent the request.


- Original Message -
From: Sebastien BRUNOT [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 6:51 PM
Subject: RE: standalone with struts


 What do you mean by forwarding the request to applet ?

 S. Brunot

 -Message d'origine-
 De: santhosh [SMTP:[EMAIL PROTECTED]
 Date: jeudi 13 mars 2003 14:08
 A: 'Struts Users Mailing List'
 Objet: standalone  with struts

 Hi Folks,

 My requirement is as follows.

 I have a standalone application which is build using swings.   This
 application talks to server for some of the functionalities to achieve.
In
 the server side i want to use struts framework .  My question is  1)  Can
a
 standalone application talk to server which uses struts framework?  2) if
 yes  how to forward the request to applet after processing in the action
 class?

 It will be very much helpful if i get the answers as soon as possible as i
 have to answer  to our client as soon as possible.

 waiting for the reply

 Thanx with regds
 santhosh hegde A


 -
 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: standalone with struts

2003-03-13 Thread Jeevan_Sunkersett
Hi Santosh,

STRUTS hasa been primarily developed for browser based (web) applications.
On the MVC2 architecture backbone.
The V = view, in your case is SWING / JFC. Struts cannot help u
there.
The C = Controller, is to handle all requests, submitted from the
View (web) and route to the business logic/ model.

Yes a client swing application can talk to an application server (at least
WebLogic over the T3 protocol, I am not sure about others.)
But I don't think you will benefit in any way if the server code uses the
struts framework.

rgds g1
 x 2760, Tara Heights, 
Satyam Pune.

 -Original Message-
From:   santhosh [mailto:[EMAIL PROTECTED] 
Sent:   Thursday, March 13, 2003 6:38 PM
To: 'Struts Users Mailing List'
Subject:standalone  with struts

Hi Folks,

My requirement is as follows.

I have a standalone application which is build using swings.   This
application talks to server for some of the functionalities to achieve.  In
the server side i want to use struts framework .  My question is  1)  Can a
standalone application talk to server which uses struts framework?  2) if
yes  how to forward the request to applet after processing in the action
class?  

It will be very much helpful if i get the answers as soon as possible as i
have to answer  to our client as soon as possible.

waiting for the reply

Thanx with regds
santhosh hegde A
** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**

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



RE: standalone with struts

2003-03-13 Thread NYIMI Jose (BMB)
Give a look to this article, you may find out interesting info.

http://javaboutique.internet.com/tutorials/Swing/


José.

 -Original Message-
 From: santhosh [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 2:08 PM
 To: 'Struts Users Mailing List'
 Subject: standalone with struts
 
 
 Hi Folks,
 
 My requirement is as follows.
 
 I have a standalone application which is build using swings.  
  This application talks to server for some of the 
 functionalities to achieve.  In the server side i want to use 
 struts framework .  My question is  1)  Can a standalone 
 application talk to server which uses struts framework?  2) 
 if yes  how to forward the request to applet after processing 
 in the action class?  
 
 It will be very much helpful if i get the answers as soon as 
 possible as i have to answer  to our client as soon as possible.
 
 waiting for the reply
 
 Thanx with regds
 santhosh hegde A
 


 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is confidential 
and/or protected by intellectual property rights and are intended for the sole use of 
the recipient(s) named above. 
Any use of the information contained herein (including, but not limited to, total or 
partial reproduction, communication or distribution in any form) by other persons than 
the designated recipient(s) is prohibited. 
If you have received this e-mail in error, please notify the sender either by 
telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our website at 
http://www.proximus.be or refer to any Proximus agent.


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



Re: example of java.util.Collection in struts logic:iterate

2003-03-13 Thread Jamesey
you cheeky twat..

i do write java apps you know.. i just happen to be new to struts and web
development in general.. i know collection is an interface..

Gemes Tibor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Jamesey wrote:

 can it be done?
 
 or must it be a concrete collection such as arraylist or list..
 
 
 Its just an interface. It must have a concrete implementation.
 You'd better read some basic java book.

 Tib




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



Re: logic:iterate and html:text

2003-03-13 Thread Mark Lowe
I think that using an old fashioned form bean is better when you're 
looking at generating forms in this manner..

do the nested tag tutorial is does what you are doing but it's not ugly 
as hell. www.keyboardmonkey.com

its what you are after...

Giovedì, 13 mar 2003, alle 08:23 Europe/Rome, Dan Allen ha scritto:

Okay, I finally worked it out, but it is ugly as hell.  Pardon me if
I step on toes or shine my ignorance, but it seems to me like this
problem should be resolved more gracefully.  First of all, I have to
resort to scriptlets and secondly, I have to include the name of the
form in the logic:iterate tag, which means that I have to change it
if I change the name of the form.  I guess that is okay, but it
still doesn't seem right.  I guess it will keep me happy for now.
For those interested:
logic:iterate id=item name=testForm property=items indexId=i
  html:text property=%=items[ + i + ]%/
/logic:iterate
Assuming I had a DynaActionForm with the definition

form-bean name=testForm 
type=org.apache.struts.action.DynaActionForm
  form-property name=items type=java.lang.String[] 
initial={'','','',''}/
/form-bean

It would render

html type=text name=items[0] value=/
html type=text name=items[1] value=/
html type=text name=items[2] value=/
html type=text name=items[3] value=/
Dan

p.s.

It would be easier for some of us if your emails didnt come
through as attachments ;)
My e-mails definitely don't come as attachments, maybe it is just
your e-mail client :)  My e-mails are as plain as plain/text can be,
just as Mutt delivers them.  Perhaps your e-mail client renders text
e-mails as attachments.  Sorry it causes you an inconvenience but I
really don't think it is something I need to change on my part.
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Microsoft is not the answer, it is the question.
The answer is NO!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: html:form tag and document submit()

2003-03-13 Thread Mark Lowe
One is a javascript method that allows you to submit a form, the other 
a jsp tag that renders to an html form when its asociated with a form 
bean..

Or have i miss understood the question?



Giovedì, 13 mar 2003, alle 10:31 Europe/Rome, Mohan Radhakrishnan ha 
scritto:

Hi,
I have a dumb question to ask.
 What does the tag html:form do that document.form.submit() 
doesn't do
?

If there is a considerable difference between these two methods, 
then it
might explain some of the things we have been facing here.

Mohan



-Original Message-
From: Ian Hunter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:21 AM
To: Struts Users Mailing List
Subject: Accessing DynaActionForm fields within custom tag
I have a form where the submit button is supposed to say add login or
update login depending on if the user in question (based on field
fkMember) already exists in the login database.  I have tags called 
HasLogin
and HasNoLogin that take an integer parameter, and return whether or 
not the
condition is true.

I am using a DynaActionForm to populate the rest of the fields.  The
DynaActionForm is a session scoped bean called loginForm -- the 
following
code actually works:

!-- form tags and all that above --
tdhtml:submit
jsp:useBean id=loginForm scope=session
class=org.apache.struts.action.DynaActionForm/
app:HasNoLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.addlogin/
/app:HasNoLogin
app:HasLogin idMember=%=new Integer
(Integer.parseInt((String)loginForm.get(fkMember)))%
bean:message key=button.updatelogin/
/app:HasLogin
/html:submit/td
!-- rest of page below --
The syntax above offends my sensibilities.  First, I ought to be able 
to
refer to the bean in question without using a jsp:useBean I think; 
it's
obviously available to the rest of the form, if the form works (and it
does).  Seconds, casting the get() as a String and doing a parseInt to 
it to
create a new Integer is silly.

Isn't there a more elegant way to do this?

Ian

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


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


RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
There is internationalization built into struts-menu. 

Edgar

 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 5:13 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: RE: Struts-menu with Tiles
 
 

   Is it possible to do internationalization with struts-menu ?
 
   
  ---
  As of February 12, 2003 Thomson unifies its email addresses on a
 worldwide
  basis.Please note my new email address: [EMAIL PROTECTED]
  
  Thomson is the leader in solutions and technologies for the
 entertainment
  and media industries and serves its customers under its 
 four strategic
  brands: Technicolor, Grass Valley, RCA and THOMSON.
  More about Thomson: http://www.thomson.net/videochain 
  
  Original Message-
  From:   Heligon Sandra  
  Sent:   13 March 2003 09:47
  To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
  Subject:Struts-menu with Tiles
  
  
  My question is perhaps stupid, sorry. 
  I would wish to know if it is possible to use 
 struts-menu with Tiles.
  I for a long time seek an example of horizontal dropdown menu
 and
  the menu used in struts-menu example
  coolmenus3 seems to me satisfactory. 
  But I use the Tiles components to build my pages. 
  Is it possible to use the two technologies? 
  Thanks a lot in advance.
  
  Sandra
 

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



Re: standalone with struts

2003-03-13 Thread Jose Gonzalez Gomez
   Why don't you make a business tier with EJBs and call them directly 
from your standalone application? J2EE call this a client application.

   Regards
   Jose
santhosh wrote:

Hi Folks,

My requirement is as follows.

I have a standalone application which is build using swings.   This application talks to server for some of the functionalities to achieve.  In the server side i want to use struts framework .  My question is  1)  Can a standalone application talk to server which uses struts framework?  2) if yes  how to forward the request to applet after processing in the action class?  

It will be very much helpful if i get the answers as soon as possible as i have to answer  to our client as soon as possible.

waiting for the reply

Thanx with regds
santhosh hegde A
 



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


Re: Struts-menu with Tiles

2003-03-13 Thread Jose Gonzalez Gomez
   Edgar,

   Is there support in struts-menu for dynamic menus? I evaluated it 
for one of the applications I'm developing, but I got the impression 
that you can only render menus that are specified in a configuration 
file, and finally I used a javascript menu directly as I needed to 
render a dynamic menu (taken from database).

   Regards
   Jose
Edgar Dollin wrote:

There is internationalization built into struts-menu. 

Edgar

 

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 5:13 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: Struts-menu with Tiles

  
	Is it possible to do internationalization with struts-menu ?

   

---
As of February 12, 2003 Thomson unifies its email addresses on a
 

worldwide
   

basis.Please note my new email address: [EMAIL PROTECTED]

Thomson is the leader in solutions and technologies for the
 

entertainment
   

and media industries and serves its customers under its 
 

four strategic
   

brands: Technicolor, Grass Valley, RCA and THOMSON.
More about Thomson: http://www.thomson.net/videochain 

Original Message-
From: 	Heligon Sandra  
Sent:	13 March 2003 09:47
To:	'[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject:	Struts-menu with Tiles

	My question is perhaps stupid, sorry. 
	I would wish to know if it is possible to use 
 

struts-menu with Tiles.
   

	I for a long time seek an example of horizontal dropdown menu
 

and
   

the menu used in struts-menu example
	coolmenus3 seems to me satisfactory. 
	But I use the Tiles components to build my pages. 
	Is it possible to use the two technologies? 
	Thanks a lot in advance.
	
	Sandra
 

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


 



Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Ian Hunter
Since this isn't as clear as it could be, here's an example for anyone who
cares:

 (this class adds or updates a bulletin on a message board; all data access
 goes through a central service called the DataStore)

 public final class UpdateBulletinAction extends Action {

  public ActionForward execute(ActionMapping mapping, ActionForm form,
 HttpServletRequest request,  HttpServletResponse response)
  throws Exception {

  ActionErrors errors = new ActionErrors();

 DynaActionForm dynaForm = (DynaActionForm) form;
 UserView user =
 (UserView)request.getSession().getAttribute(Constants.USER_KEY);

 if (((String)((DynaActionForm)form).get (id)).equals (0)) { //
 ID = 0 means we're adding a bulletin
 try {
 BulletinView bv = DataStore.getNewBulletinView();
 bv.setAccessLevel ((String)dynaForm.get
 (accessLevel));
 bv.setMessage ((String)dynaForm.get(message));
 DataStore.addBulletinView (bv);
 } catch (ViewRecAddException e) {
 servlet.log(An error occurred while user  +
 user.getName() +  was adding a bulletin:\n +
   e.toString());
 e.printStackTrace();
 errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.databaseerror));
 }
 } else { // Since we have an ID, we're updating a bulletin
 try {
 BulletinView bv =
 DataStore.getBulletinViewById((String)dynaForm.get(id));
 bv.setAccessLevel
((String)dynaForm.get(accessLevel));
 bv.setMessage ((String)dynaForm.get(message));
 DataStore.updateBulletinView (bv);
 } catch (ViewRecLoadException e) {
 servlet.log(An error occurred while trying to get
 bulletin ID= + (String)dynaForm.get(id) +  for update by user  +
 user.getName() +
   :\n + e.toString());
 e.printStackTrace();
 errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.databaseerror));
 } catch (ViewRecUpdateException e) {
 servlet.log(An error occurred while user  +
 user.getName() +  was updating bulletin with ID= +
 (String)dynaForm.get(id) +
   :\n + e.toString());
 e.printStackTrace();
 errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.databaseerror));
 }
 if (!errors.isEmpty()) {
  saveErrors(request, errors);
 return (new ActionForward(mapping.getInput()));
 }

 return (mapping.findForward(success));
 }
 }

 so to refer to a property of a DynaActionForm within an action, you do
 something like

 DynaActionFrom dynaForm = (DynaActionForm) form;
 // variable form comes from method execute's signature

 someVariable = (className)dynaForm.get(propertyName);
 // to get the property; DynaActionForm.get(String property) returns an
Object, so you have to cast it

 dynaForm.set(propertyName, someVariable);
 // to set the property; the class of the second parameter is, again,
Object


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



Need one mnore directory before module-prefix

2003-03-13 Thread Navjot Singh
Hi List,

I am just a newbie to this struts framework.

I am using struts 1.1 and using modules for my app. I have set my dir
structure like this.
/jsp/mod1
/jsp/mod2
/Web-inf/*

All my jsps are accessible using
http://localhost:8080/myapp/jsp/mod1/test.jsp

In struts-mod1.xml,
IF I have a tag action path=/Test forward=/test.jsp/
When i call thru browser http://localhost:8080/myapp/mod1/Test.do, it tried
to locate http://localhost:8080/myapp/mod1/test.jsp

IF I give tag action path=/Test forward=/jsp/mod1/test.jsp/, it
naturally tries to locate http://localhost:8080/myapp/mod1/jsp/mod1/test.jsp

BUT I want the url to be http://localhost:8080/myapp/jsp/mod1/test.jsp

Is it possible to achieve using Struts-Config (may be forwardPattern ?)  or
even if web.xml can be of any help here?
Please help.

regards
Navjot Singh


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



Re: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Kris Schneider
By using BeanUtils.getProperty or PropertyUtils.getProperty you can essentially
ignore whether the form is a DynaActionForm or not.

Quoting Ian Hunter [EMAIL PROTECTED]:

 Since this isn't as clear as it could be, here's an example for anyone who
 cares:
8 snip 8

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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



Re: mapped propeties problem and need advice

2003-03-13 Thread Mark
yes, thats the correct way to reference mapped properties.  what exactly is the 
problem you're having?

*** REPLY SEPARATOR  ***

On 03/13/2003 at 3:47 AM Jason Long wrote:

I have been trying to set up some mapped properties in a form.
It is currently not working.
Would someone please look over what I am trying to do and comment on the
technique?

This was taken from the following:
http://jakarta.apache.org/struts/faqs/indexedprops.html

I modified the code from the faq slightly, but it is essentially the same.

If this works I was hoping to populate the map with the request parameters.
Since I am using XSL to generate the pages, I can easily add bean:write
property=stringMapped() name=bean /
in order to repopulate the fields as the JSP recompiles.

This method seems to solve the problems I am having.  I would appreciate any
advice anyone has.

Thank you for your time,

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering


**
My setup

**

ManagerForm.java

**
public final class ManagerForm
extends ActionForm {
  private HashMap map = new HashMap();

  public ManagerForm() {
map.put(102_price, 578854);
  }

  public Object getStringMapped(String key) {
return (map.get(key));
  }

  public void setStringMapped(String key, Object value) {
map.put(key, value);
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
  }

  public ActionErrors validate(ActionMapping mapping,
   HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
return errors;
  }
}

JSP Code

**
jsp:useBean class=org.apache.struts.webapp.example.ManagerForm id=bean
/
bean:write property=stringMapped(102_price) name=bean /

Error:

**
org.apache.jasper.JasperException: No getter method for property
stringMapped(102_price) of bean bean



-
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: Re: Specifying comma-delimted Struts Config Files

2003-03-13 Thread Chuck Cavaness
I agree with Susan. I would take a very close look at your config files. Try using 
Struts console and loading the multiple configuration files and see if it finds 
something hard to see with the naked eye.

chuck

 
 From: Susan Bradeen [EMAIL PROTECTED]
 Date: 2003/03/13 Thu AM 08:26:18 EST
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Re: Specifying comma-delimted Struts Config Files
 
 Michael, 
 
 Did you get this figured out? I've got four config files in my list, and 
 it has worked like a charm from the get-go (with Struts 1.1b3, and now on 
 yesterday's nightly). I do not have spaces in my list, as David suggested. 
 I am not using Tomcat, but I wonder if your problem lies elsewhere, not in 
 your config files list. 
 
 Susan Bradeen
 
 On 03/12/2003 05:23:11 PM Michael Cardon wrote:
 
  Thanks David, I did, but it still doesn't work. When I start my tomcat
  server I get the following error:
  
  SEVERE: Parsing error processing resource path
  java.lang.NullPointerException
  at
  
 org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:9
  41)
 
  
  Any more idea?
  
  
  -Original Message-
  From: David Graham [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 12, 2003 1:51 PM
  To: [EMAIL PROTECTED]
  Subject: RE: Re: Specifying comma-delimted Struts Config Files
  
  
  Try removing the space after the comma.
  
  David
  
  
  
  I've never been able to get the comma config file feature to work, but 
 you
  did? If you can tell me how you did it, I would appreciate it. Here is 
 my
  sniplet from my web.xml file:
  
   init-param
 param-nameconfig/param-name
 param-value
   /WEB-INF/struts-config.xml, 
 /WEB-INF/struts-config-reports.xml
 /param-value
   /init-param
  
  Thanks.
  
  -Original Message-
  From: Chuck Cavaness [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 12, 2003 1:41 PM
  To: Struts Users Mailing List
  Subject: Re: Re: Specifying comma-delimted Struts Config Files
  
  
  As embarassing as it is to admit, the error was a pure operator type 
 error.
  There was an action-mappings element missing in the second config 
 file. I
  was actually taking one config file apart and splitting it into two to
  demonstrate this feature. Why the error complained about a missing
  /struts-config, I'm not sure.
  
  Anyway, the feature works as expected. Sorry for the distraction. Back 
 to
  your regularly scheduled program...
  
  chuck
  
  
   
From: Rick Reumann [EMAIL PROTECTED]
Date: 2003/03/12 Wed PM 04:15:53 EST
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Specifying comma-delimted Struts Config Files
   
On Wed, 12 Mar 2003 16:00:46 -0500
Chuck Cavaness [EMAIL PROTECTED] wrote:
   
 Is anyone using the feature of the framework where you can specify
 multiple configuration files in the web.xml:
   
Sorry I can't help Chuck, since I'm not using multiple config.xml's.
I'd like to start using them though, so when you figure what the 
 problem
is could you please post the solution (since I'm sure I'll run 
 across it
as well).
   
   
Thanks,
   
--
Rick Reumann
   

 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  _
  The new MSN 8: smart spam protection and 2 months FREE*
  http://join.msn.com/?page=features/junkmail
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Struts-menu with Tiles

2003-03-13 Thread Matt Raible
These types of questions should probably be asked on the
struts-menu-user list.  You can subscribe here:
http://lists.sourceforge.net/lists/listinfo/struts-menu-user
 
Yes, struts-menu integrates with Struts's RecourceBundle for i18n.  It
uses the title attribute as a key, and if the key is not found in
ApplicationResources.properties, then it just uses the title's value.
 
HTH,
 
Matt

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 3:13 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: Struts-menu with Tiles



   
Is it possible to do internationalization with struts-menu ? 


--- 
As of February 12, 2003 Thomson unifies its email addresses on a
worldwide basis.Please note my new email address:
[EMAIL PROTECTED] 

Thomson is the leader in solutions and technologies for the
entertainment and media industries and serves its customers under its
four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. 

More about Thomson: http://www.thomson.net/videochain 

Original Message- 
From:   Heligon Sandra  
Sent:   13 March 2003 09:47 
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' 
Subject:Struts-menu with Tiles 


My question is perhaps stupid, sorry. 
I would wish to know if it is possible to use struts-menu with
Tiles. 
I for a long time seek an example of horizontal dropdown menu
and the menu used in struts-menu example 
coolmenus3 seems to me satisfactory. 
But I use the Tiles components to build my pages. 
Is it possible to use the two technologies? 
Thanks a lot in advance. 

Sandra 



RE: Struts-menu with Tiles

2003-03-13 Thread Matt Raible
I (at one time) used Tiles to build my menu, but found struts-menu to be
much easier to configure.  Out of the box, no, it does not support this.
However, you could contribute a new TilesDisplayer - it is open source
after all ;-)

-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2003 1:47 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Struts-menu with Tiles




My question is perhaps stupid, sorry. 
I would wish to know if it is possible to use struts-menu with
Tiles. 
I for a long time seek an example of horizontal dropdown menu
and the menu used in struts-menu example 
coolmenus3 seems to me satisfactory. 
But I use the Tiles components to build my pages. 
Is it possible to use the two technologies? 
Thanks a lot in advance. 

Sandra 

--- 
As of February 12, 2003 Thomson unifies its email addresses on a
worldwide basis.Please note my new email address:
[EMAIL PROTECTED] 

Thomson is the leader in solutions and technologies for the
entertainment and media industries and serves its customers under its
four strategic brands: Technicolor, Grass Valley, RCA and THOMSON. 

More about Thomson: http://www.thomson.net/videochain 



Re: Need one mnore directory before module-prefix

2003-03-13 Thread Navjot Singh
hi bekrar,

That i can do but i don't want to do. I thought there could be some way out
with forwardPattern stuff.

I am ready to leave action path=/test forward=abc/ (for it doesnot
support forwardPattern)
and SHIFT to

action 
forward /
/action

kind of tag

If this is not possible, can I write my own subclass ForwardAction and do
the job.
Where can I pre-pend /jsp to whatever url i will get from struts (assuming
it will be context-relative).

regards
Navjot Singh

- Original Message -
From: Noureddine Bekrar [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 7:48 PM
Subject: Re: Need one mnore directory before module-prefix


| you can use action path=/Test /
|
| when you write this , it's suppose that tou have an action mapping called
| test in your struts-config file ( redirection to your test action class)
| you can directley call the right forward in your test class with the
| mapping.findForward(testforward);
| the test forward is a forward that you declare in the struts config (it's
a
| redirection to your jsp)
| you can declare it like this:
| /jsp/mod1/test.jsp
|
|
|
|
|
|
|
|
| -
| 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: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Ian Hunter
How does that handle type conversions (e.g. Model bean has ints, booleans,
or Integers, or whatever, and View bean has only strings)?  That's the only
reason I haven't delved into it yet.

- Original Message -
From: Kris Schneider [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 9:17 AM
Subject: Re: Example of accessing DynaActionFrom properties from within an
Action


 By using BeanUtils.getProperty or PropertyUtils.getProperty you can
essentially
 ignore whether the form is a DynaActionForm or not.

 Quoting Ian Hunter [EMAIL PROTECTED]:

  Since this isn't as clear as it could be, here's an example for anyone
who
  cares:
 8 snip 8

 --
 Kris Schneider mailto:[EMAIL PROTECTED]
 D.O.Tech   http://www.dotech.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: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Mark Lowe
I had a headache over all this until i spent a couple fo days using the 
beanutils package..

org.apache.common.beanutils

The dynaaction forms are basically the same..

your means of extracting the stored values from the form look like they 
should work , although i prefer using toString() rather than casting 
the world..

DynaActionForm myForm = (DynaActionForm) form;
String foo = myForm.get(somekey).toString();
So what you are doing works for me...

hope this helps mark

Giovedì, 13 mar 2003, alle 15:03 Europe/Rome, Ian Hunter ha scritto:

Since this isn't as clear as it could be, here's an example for anyone 
who
cares:

(this class adds or updates a bulletin on a message board; all data 
access
goes through a central service called the DataStore)

public final class UpdateBulletinAction extends Action {

 public ActionForward execute(ActionMapping mapping, ActionForm 
form,
HttpServletRequest request,  HttpServletResponse response)
 throws Exception {

 ActionErrors errors = new ActionErrors();

DynaActionForm dynaForm = (DynaActionForm) form;
UserView user =
(UserView)request.getSession().getAttribute(Constants.USER_KEY);
if (((String)((DynaActionForm)form).get (id)).equals (0)) 
{ //
ID = 0 means we're adding a bulletin
try {
BulletinView bv = DataStore.getNewBulletinView();
bv.setAccessLevel ((String)dynaForm.get
(accessLevel));
bv.setMessage ((String)dynaForm.get(message));
DataStore.addBulletinView (bv);
} catch (ViewRecAddException e) {
servlet.log(An error occurred while user  +
user.getName() +  was adding a bulletin:\n +
  e.toString());
e.printStackTrace();
errors.add(ActionErrors.GLOBAL_ERROR,
  new ActionError(error.databaseerror));
}
} else { // Since we have an ID, we're updating a bulletin
try {
BulletinView bv =
DataStore.getBulletinViewById((String)dynaForm.get(id));
bv.setAccessLevel
((String)dynaForm.get(accessLevel));
bv.setMessage ((String)dynaForm.get(message));
DataStore.updateBulletinView (bv);
} catch (ViewRecLoadException e) {
servlet.log(An error occurred while trying to get
bulletin ID= + (String)dynaForm.get(id) +  for update by user  +
user.getName() +
  :\n + e.toString());
e.printStackTrace();
errors.add(ActionErrors.GLOBAL_ERROR,
  new ActionError(error.databaseerror));
} catch (ViewRecUpdateException e) {
servlet.log(An error occurred while user  +
user.getName() +  was updating bulletin with ID= +
(String)dynaForm.get(id) +
  :\n + e.toString());
e.printStackTrace();
errors.add(ActionErrors.GLOBAL_ERROR,
  new ActionError(error.databaseerror));
}
if (!errors.isEmpty()) {
 saveErrors(request, errors);
return (new ActionForward(mapping.getInput()));
}
return (mapping.findForward(success));
}
}
so to refer to a property of a DynaActionForm within an action, you do
something like
DynaActionFrom dynaForm = (DynaActionForm) form;
// variable form comes from method execute's signature
someVariable = (className)dynaForm.get(propertyName);
// to get the property; DynaActionForm.get(String property) returns an
Object, so you have to cast it
dynaForm.set(propertyName, someVariable);
// to set the property; the class of the second parameter is, again,
Object

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


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


Re: Need one mnore directory before module-prefix

2003-03-13 Thread Noureddine Bekrar
you can do that

action path=/test  type=TestAction.java
  forward name=testforward path=/jsp/mod1/test.jsp
  /forward
 /action

and at the end of the execute methode of your
testaction class do this:
mapping.findForward(testforward);


- Original Message -
From: Navjot Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 3:25 PM
Subject: Re: Need one mnore directory before module-prefix


 hi bekrar,

 That i can do but i don't want to do. I thought there could be some way
out
 with forwardPattern stuff.

 I am ready to leave action path=/test forward=abc/ (for it doesnot
 support forwardPattern)
 and SHIFT to

 action 
 forward /
 /action

 kind of tag

 If this is not possible, can I write my own subclass ForwardAction and do
 the job.
 Where can I pre-pend /jsp to whatever url i will get from struts
(assuming
 it will be context-relative).

 regards
 Navjot Singh

 - Original Message -
 From: Noureddine Bekrar [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 7:48 PM
 Subject: Re: Need one mnore directory before module-prefix


 | you can use action path=/Test /
 |
 | when you write this , it's suppose that tou have an action mapping
called
 | test in your struts-config file ( redirection to your test action
class)
 | you can directley call the right forward in your test class with the
 | mapping.findForward(testforward);
 | the test forward is a forward that you declare in the struts config
(it's
 a
 | redirection to your jsp)
 | you can declare it like this:
 | /jsp/mod1/test.jsp
 |
 |
 |
 |
 |
 |
 |
 |
 | -
 | 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: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Ian Hunter

forgot about String Object.toString() method.  Looks a little tidier,
doesn't it?  Anyway, it should literally be calling the same code.  I'm
hoping BeanUtils can somehow handle translations between types like
java.util.Date and String...I'll look into it later.

- Original Message -
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 9:28 AM
Subject: Re: Example of accessing DynaActionFrom properties from within an
Action


I had a headache over all this until i spent a couple fo days using the
beanutils package..


org.apache.common.beanutils

The dynaaction forms are basically the same..

your means of extracting the stored values from the form look like they
should work , although i prefer using toString() rather than casting
the world..

DynaActionForm myForm = (DynaActionForm) form;
String foo = myForm.get(somekey).toString();

So what you are doing works for me...

hope this helps mark

Giovedì, 13 mar 2003, alle 15:03 Europe/Rome, Ian Hunter ha scritto:

 Since this isn't as clear as it could be, here's an example for anyone
 who
 cares:

 (this class adds or updates a bulletin on a message board; all data
 access
 goes through a central service called the DataStore)

 public final class UpdateBulletinAction extends Action {

  public ActionForward execute(ActionMapping mapping, ActionForm
 form,
 HttpServletRequest request,  HttpServletResponse response)
  throws Exception {

  ActionErrors errors = new ActionErrors();

 DynaActionForm dynaForm = (DynaActionForm) form;
 UserView user =
 (UserView)request.getSession().getAttribute(Constants.USER_KEY);

 if (((String)((DynaActionForm)form).get (id)).equals (0))
 { //
 ID = 0 means we're adding a bulletin
 try {
 BulletinView bv = DataStore.getNewBulletinView();
 bv.setAccessLevel ((String)dynaForm.get
 (accessLevel));
 bv.setMessage ((String)dynaForm.get(message));
 DataStore.addBulletinView (bv);
 } catch (ViewRecAddException e) {
 servlet.log(An error occurred while user  +
 user.getName() +  was adding a bulletin:\n +
   e.toString());
 e.printStackTrace();
 errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.databaseerror));
 }
 } else { // Since we have an ID, we're updating a bulletin
 try {
 BulletinView bv =
 DataStore.getBulletinViewById((String)dynaForm.get(id));
 bv.setAccessLevel
 ((String)dynaForm.get(accessLevel));
 bv.setMessage ((String)dynaForm.get(message));
 DataStore.updateBulletinView (bv);
 } catch (ViewRecLoadException e) {
 servlet.log(An error occurred while trying to get
 bulletin ID= + (String)dynaForm.get(id) +  for update by user  +
 user.getName() +
   :\n + e.toString());
 e.printStackTrace();
 errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.databaseerror));
 } catch (ViewRecUpdateException e) {
 servlet.log(An error occurred while user  +
 user.getName() +  was updating bulletin with ID= +
 (String)dynaForm.get(id) +
   :\n + e.toString());
 e.printStackTrace();
 errors.add(ActionErrors.GLOBAL_ERROR,
   new ActionError(error.databaseerror));
 }
 if (!errors.isEmpty()) {
  saveErrors(request, errors);
 return (new ActionForward(mapping.getInput()));
 }

 return (mapping.findForward(success));
 }
 }

 so to refer to a property of a DynaActionForm within an action, you do
 something like

 DynaActionFrom dynaForm = (DynaActionForm) form;
 // variable form comes from method execute's signature

 someVariable = (className)dynaForm.get(propertyName);
 // to get the property; DynaActionForm.get(String property) returns an
 Object, so you have to cast it

 dynaForm.set(propertyName, someVariable);
 // to set the property; the class of the second parameter is, again,
 Object


 -
 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: Opinions on Struts code generator - A zipped version

2003-03-13 Thread james logsdon
Thanks Vic.
All your suggestions sound good.





From: Vic Cekvenich [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Opinions on Struts code generator - A zipped version
Date: Wed, 12 Mar 2003 16:05:54 -0500
It looks good.
Consider making a sourceforge project or using someone elses.
I like that you start from HTML and do JTidy.

Consider a feature request: Make action, sturts-config and formbean 
generation based on custom template, or that it's easy for people to 
change what kind of code gets generated, etc.

.V

james logsdon wrote:
Hopefully this works...





From: Robert McIntosh [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Opinions on Struts code generator
Date: Tue, 11 Mar 2003 17:25:06 -0600
how about zipping it up?

james logsdon wrote:

I was not able to attach my pdf file. The mail server either said that 
it was too big or it just did not attach it.

I created a group on yahoo and added the file there. It can be retrieved 
by following the link:

http://groups.yahoo.com/group/quickStartCodeGenerator/files/QuickStart.doc

but if you do not have a yahoo id you will have to create one. Sorry for 
any inconvenience.
James



From: james logsdon [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Opinions on Struts code generator
Date: Tue, 11 Mar 2003 16:51:58 -0600







From: james logsdon [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Opinions on Struts code generator
Date: Tue, 11 Mar 2003 16:47:47 -0600


Let me try one more time...




From: james logsdon [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List 
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Opinions on Struts code generator
Date: Tue, 11 Mar 2003 15:06:16 -0600



Hello,
  I have built a Struts code generator that converts HTML pages and 
a state diagram into a Struts application. The HTML files are input 
into JTidy to create XHTML (as done in cocoon) and then several XSL 
transformations are done to create the various Struts files. All of 
the code generation is done with an Ant script which creates war file 
from the input files.

If enough people think this is useful I will donate to open source... 
Would appreciate feedback on the utility of the approach take, and if 
their are ways to improve the generated code.

James

PS - Had to break document into two as there is a 100k document size 
limit.



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

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


_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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




_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus

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




_
Protect your PC - get McAfee.com VirusScan Online  
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]


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



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


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


_
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail

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

Re: Struts 1.1 modules and logic:forward

2003-03-13 Thread Eddie Bush
Well, what I said is somewhat applicable.  How can you expect for the 
controller to know which module you're in - based off the contents of 
some file out there - when you haven't gone through it via a URL yet?  I 
do actually see *your* point now, as well, since I've gotten some sleep!

Ok.  Lets sit down and ask some questions:

   - Must our physical (on-disk) structure match our logical 
(URL-based) structure?
   - No, we map our logical addresses to their physical location.

Many folks stuff their JSP pages off under WEB-INF/pages (or some 
similar location) and further organize them based on the module they are 
contained in (or some other secondary sort).  This means that, while 
host.mydomain.com/myContext/ will point to an index file (which will 
boot-strap the user into the application), there may not be other index 
files for other (logical) directories in your application.  You could 
create physical paths to mirror your logical structure, or you could 
just expect the user to use the front door :-)

   - Should our users have multiple entry points to our application?
   - Perhaps, it's up to you.
One thing you have to bear in mind however - as I've reiterated time and 
again - is that the Struts controller works with our logical, URL-based 
structure to determine which module the user would like to operate in. 
All of the Struts machinery depends upon the controller having made 
this analysis and the configuration that goes along with it (placing 
configuration data relevant to the module into the request).  You're 
expecting a taglib to be as intelligent as the controller - based off a 
request for a *physical* (we said the controller worked with *logical* 
paths) path.  How would you suggest it do this?

Probably the way to go about this, if it's a strict requirement, is to 
actually create a physical structure that mirrors your logical structure 
(as it sound you have already done) and then create your index files and 
use a logic:redirect.  Use the href attribute instead of the name or 
forward attributes.  This way, you can (little as any of us may like it) 
hard-code the module path.  You'll basically send the user from 
/module-path/index.jsp to /module-path/index.do.  Do do a redirect 
instead of a forward.  This way, the URL will change.  This will help 
you train your user-based to use a *.do pattern instead of a *.jsp 
pattern.

One of these days :-) when the Struts controller becomes a filter we'll 
be able to do a lot of fancier things - like telling which module a user 
is working out of based off the direct invocation of a JSP.  In the 
mean-time, the controller is a servlet - we have to somehow clue it in 
on where we want it operating from.  Doing a redirect to your logical 
index will accomplish that.

Better?  ;-)

I know there are a ton of examples out there showing the technique 
you're using (actually, I think they cause a redirect instead of a 
forward), but modules really change game-play.  You've got to really be 
thinking about what you're asking the Struts machinery to infer.  Some 
things it can - some it cannot.  The only module you'll be able to 
reference without going through the controller first is the default 
application.  This is why you observed the behavior you did.

I'm sorry I didn't give you the long-winded version to start out with. 
I tend to expect folks to read between the lines more than they do (ie 
read you've got to go through the controller and understand you're 
not accessing the module you want to be accessing).  My appologies for 
the confusion and delay in answering your question.  Hopefully I 
answered you better this time around.  If not, just yell back at us.  My 
schedule is very irradic lately, but I'll be in later - there are many 
other folks well versed on this that could pipe up in my absence too :-)

Regards,

Eddie

Ken Pelletier wrote:

It seems maybe my question wasn't quite clear.

I'm using a welcome-file ( index.jsp ) in each module's directory *to 
do exactly that*: force all access through an action.  Unfortunately, 
it's not practical to expect everybody to know an action URL in 
advance in order to get into your site; this technique seems like a 
quite common way of forcing default URL's into an initial action.  The 
index.jsp's do nothing more than forward to an action.

Since there's no action ( and hence no action controller ) involved in 
the initial bootstrap welcome file, I was really asking whether the 
logic:forward tag could/should be able to infer the appropriate module 
config from it's path.  I presume not, given its behavior.

- Ken

On Thursday, March 13, 2003, at 02:55  AM, Eddie Bush wrote:

Anytime modules are involved, it is imperative that you invoke your 
pages by going through actions (thus, going through the controller).  
It is only by doing this that you trigger a change from one module to 
another.  The controller is rigged to automatically expect you to 
be going to the default module. 

Re: example of java.util.Collection in struts logic:iterate

2003-03-13 Thread Gemes Tibor
Jamesey wrote:

i do write java apps you know.. i just happen to be new to struts and web
development in general.. i know collection is an interface..
Yes, it's possible. But you have tried it already, didn't you?

Tib



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


unable to find mapping

2003-03-13 Thread Navjot Singh
hi guys,

I have a jsp file resding on my machine in /jsp/user/reg.jsp and this is
the form tag

html:form action=/Register.do focus=username method=post
.html tags here
/html:form

and i have struts-user.xml as config for user module with a form-bean and
action mapping set as

form-beans
  form-bean name=UserRegForm  type=myapp.user.form.UserRegForm/
/form-beans
action-mappings
  action name=UserRegForm path=/Register scope=request
input=/jsp/user/reg.jsp type=myapp.user.action.UserRegAction
forward name=success path=/jsp/success.jsp/
  /action
/action-mappings


Now when i call http://localhost/myapp/jsp/user/reg.jsp it throws an error

org.apache.jasper.JasperException: Cannot retrieve mapping for action
/Register

I must be doing something terribly wrong. Please guide me.

-navjot


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



RE: mapped propeties problem and need advice

2003-03-13 Thread apachep2
I am switching from Collection to Map. What I am going to do is,

Before switching

logic:iterate name=myactionform property=myorder id=mylineitem
html:text name=mylineitem property=myitemname/
html:text name=mylineitem property=myorderquantity/
/logic:iterate

After switching

logic:iterate name=myactionform property=myorder id=key
html:text name=key property=value.myitemname/
html:text name=key property=value.myorderquantity/
/logic:iterate

logic:iterate tag doc tells us that However, if you iterate over a Map,
the exposed object is of type Map.Entry that has two properties:.
According to Map.Entry Javadoc, it has getKey and getValue, in my case,
key is my item id and value returns my line item.

Don't know whether it will work but hope the above example give you some
hints.

-Original Message-
From: Jason Long [mailto:[EMAIL PROTECTED] 
Sent: March 13, 2003 4:47 AM
To: Struts Users Mailing List
Subject: mapped propeties problem and need advice

I have been trying to set up some mapped properties in a form.
It is currently not working.
Would someone please look over what I am trying to do and comment on the
technique?

This was taken from the following:
http://jakarta.apache.org/struts/faqs/indexedprops.html

I modified the code from the faq slightly, but it is essentially the
same.

If this works I was hoping to populate the map with the request
parameters.
Since I am using XSL to generate the pages, I can easily add bean:write
property=stringMapped() name=bean /
in order to repopulate the fields as the JSP recompiles.

This method seems to solve the problems I am having.  I would appreciate
any
advice anyone has.

Thank you for your time,

Jason Long - CEO and Chief Software Engineer
Supernova Software - supernovasoftware.com
BS Physics, MS  Chemical Engineering



**
My setup


**

ManagerForm.java


**
public final class ManagerForm
extends ActionForm {
  private HashMap map = new HashMap();

  public ManagerForm() {
map.put(102_price, 578854);
  }

  public Object getStringMapped(String key) {
return (map.get(key));
  }

  public void setStringMapped(String key, Object value) {
map.put(key, value);
  }

  public void reset(ActionMapping mapping, HttpServletRequest request) {
  }

  public ActionErrors validate(ActionMapping mapping,
   HttpServletRequest request) {

ActionErrors errors = new ActionErrors();
return errors;
  }
}

JSP Code


**
jsp:useBean class=org.apache.struts.webapp.example.ManagerForm
id=bean
/
bean:write property=stringMapped(102_price) name=bean /

Error:


**
org.apache.jasper.JasperException: No getter method for property
stringMapped(102_price) of bean bean



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

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



[Tiles] Creating SubTabs (Tabs within Tabs)

2003-03-13 Thread Affan Qureshi
Hi,
I have implemented the TabLayout as described in the examples and works
well. I want to define sub tabs under the main Tabs. So my requirement would
be like having putList elements inside putList elements(which is not
possible in DTD) so that I can define nested lists. How have you implemented
this in your apps?

Looking at the DTD I saw an element putListElements. Where des this fit
in? Can this be helpful in this regard?

Also can I specify the class by
classtype=org.apache.struts.tiles.beans.SimpleMenuItem to something more
sophisticated so that I can add some more info? What will I need to change?

Thanks a lot.

Affan


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



RE: example of java.util.Collection in struts logic:iterate

2003-03-13 Thread apachep2
In your ActionForm, Collection myproperty = new ArrayList() ; then add
elements into myproperty.

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
Sent: March 13, 2003 7:46 AM
To: Struts Users Mailing List
Subject: Re: example of java.util.Collection in struts logic:iterate

Jamesey wrote:

can it be done?

or must it be a concrete collection such as arraylist or list..
  

Its just an interface. It must have a concrete implementation.
You'd better read some basic java book.

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]



Requiredif and Javascript

2003-03-13 Thread Evan Schnell
Has anyone ever enabled javascript validation on a form that included a 
requiredif rule?  

Is it correct to assume that this never should be done?

Because field-test is an illegal variable name in javascript it seems 
to me that this is the case.  

It is time for us to fish or cut bait.  
Evan.



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


Re: Need one mnore directory before module-prefix

2003-03-13 Thread Navjot Singh

so, this is the only way to do it :-(
I thought I have just one static directory to prepend before my module
prefix to solve the problem. But it's not possible.

thanks for the help, bekrar. Bekrar, if you read my second mail with subject
unable to find mapping, you will get an idea what i was trying to do but
now can't do.

-navjot

- Original Message -
From: Noureddine Bekrar [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 8:09 PM
Subject: Re: Need one mnore directory before module-prefix


| you can do that
|
| action path=/test  type=TestAction.java
|   forward name=testforward path=/jsp/mod1/test.jsp
|   /forward
|  /action
|
| and at the end of the execute methode of your
| testaction class do this:
| mapping.findForward(testforward);
|
|
| - Original Message -
| From: Navjot Singh [EMAIL PROTECTED]
| To: Struts Users Mailing List [EMAIL PROTECTED]
| Sent: Thursday, March 13, 2003 3:25 PM
| Subject: Re: Need one mnore directory before module-prefix
|
|
|  hi bekrar,
| 
|  That i can do but i don't want to do. I thought there could be some way
| out
|  with forwardPattern stuff.
| 
|  I am ready to leave action path=/test forward=abc/ (for it doesnot
|  support forwardPattern)
|  and SHIFT to
| 
|  action 
|  forward /
|  /action
| 
|  kind of tag
| 
|  If this is not possible, can I write my own subclass ForwardAction and
do
|  the job.
|  Where can I pre-pend /jsp to whatever url i will get from struts
| (assuming
|  it will be context-relative).
| 
|  regards
|  Navjot Singh
| 
|  - Original Message -
|  From: Noureddine Bekrar [EMAIL PROTECTED]
|  To: Struts Users Mailing List [EMAIL PROTECTED]
|  Sent: Thursday, March 13, 2003 7:48 PM
|  Subject: Re: Need one mnore directory before module-prefix
| 
| 
|  | you can use action path=/Test /
|  |
|  | when you write this , it's suppose that tou have an action mapping
| called
|  | test in your struts-config file ( redirection to your test action
| class)
|  | you can directley call the right forward in your test class with the
|  | mapping.findForward(testforward);
|  | the test forward is a forward that you declare in the struts config
| (it's
|  a
|  | redirection to your jsp)
|  | you can declare it like this:
|  | /jsp/mod1/test.jsp
|  |
|  |
|  |
|  |
|  |
|  |
|  |
|  |
|  | -
|  | To unsubscribe, e-mail: [EMAIL PROTECTED]
|  | For additional commands, e-mail: [EMAIL PROTECTED]
|  |
|  |
| 
| 
|  -
|  To unsubscribe, e-mail: [EMAIL PROTECTED]
|  For additional commands, e-mail: [EMAIL PROTECTED]
| 
| 
|
|
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
|
|


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



RE: Struts-menu with Tiles

2003-03-13 Thread Edgar Dollin
Not directly.

There is a security mechanism which enables or disables individual items and
menu groups.

Edgar

 -Original Message-
 From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 9:00 AM
 To: 'Struts Users Mailing List'
 Subject: Re: Struts-menu with Tiles
 
 
 
 Edgar,
 
 Is there support in struts-menu for dynamic menus? I evaluated it 
 for one of the applications I'm developing, but I got the impression 
 that you can only render menus that are specified in a configuration 
 file, and finally I used a javascript menu directly as I needed to 
 render a dynamic menu (taken from database).
 
 Regards
 Jose
 
 Edgar Dollin wrote:
 
 There is internationalization built into struts-menu.
 
 Edgar
 
   
 
 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 5:13 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: RE: Struts-menu with Tiles
 
 

 Is it possible to do internationalization with struts-menu ?
 
 
 
  
 ---
 As of February 12, 2003 Thomson unifies its email addresses on a
   
 
 worldwide
 
 
 basis.Please note my new email address: [EMAIL PROTECTED]
 
 Thomson is the leader in solutions and technologies for the
   
 
 entertainment
 
 
 and media industries and serves its customers under its
   
 
 four strategic
 
 
 brands: Technicolor, Grass Valley, RCA and THOMSON.
 More about Thomson: http://www.thomson.net/videochain
 
 Original Message-
 From:  Heligon Sandra  
 Sent:  13 March 2003 09:47
 To:'[EMAIL PROTECTED]'; 
 '[EMAIL PROTECTED]'
 Subject:   Struts-menu with Tiles
 
 
My question is perhaps stupid, sorry. 
I would wish to know if it is possible to use
   
 
 struts-menu with Tiles.
 
 
I for a long time seek an example of horizontal dropdown menu
   
 
 and
 
 
 the menu used in struts-menu example
coolmenus3 seems to me satisfactory. 
But I use the Tiles components to build my pages. 
Is it possible to use the two technologies? 
Thanks a lot in advance.

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



nested:form parent scope

2003-03-13 Thread Scott Severtson
I'm using RC1, playing around with nested tag support, and ran into an unexpected 
behavior. I'm not sure if this is by design and I'm using it incorrectly, or a bug.

I'm iterating over a list of users, and want to create a short form for each user, 
containing their username and a submit button. However, I can't seem to refer to the 
bean created by the nested:iterate tag from within the nested:form scope. Jsp source 
code below.

How, from a nested:form, can I refer to a bean in the parent scope? As demonstrated 
below, ../ does not seem to work in this situation. Any suggestions? Workarounds? 
Help?

Thanks in advance,
--Scott Severtson


%@ page language=java %
%@ taglib uri=/WEB-INF/struts-nested.tld prefix=nested %

jsp:useBean id=factory scope=application class=org.edutech.users.Factory/

html
body
table
nested:iterate name=factory property=users
tr
td
!-- Outputs username as expected --
nested:write property=userName/
/td
td
!-- Action references a form-bean named UserEditForm, who's 
implementation contains a userName property and get/setUserName methods --
nested:form action=/user/delete

!--Output is empty, and refers to the UserEditForm, as 
expected --
nested:write  property=userName/

!-- Output is empty, and still seems to refer to the 
UserEditForm --
nested:write property=../userName/

!-- Output produces a JspException when uncommented: --
!--   No getter method for property ../userName of bean 
UserEditForm --
!--nested:write property=../../userName/--

nested:submit property=submit/
/nested:form
/td
/tr
/nested:iterate
/table
/body
/html


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



struts include tag broken?

2003-03-13 Thread Robert Bowen
This is exactly what's tripping me up, I think! I am trying to include a
page, using the struts include tag, of a struts forward, but the included
page is displayed incorrectly; all the accented and strange characters
show up as question marks.

After struggling with the setLocale(), setContentType(), and
setCharacterEndoing() methods of the request and response objects, trying to
use the page directive and meta-tag for content at the jsp level, installing
filters at the web.xml level, defining character set environment variables
for the user that launches Tomcat, and trying every other scrap of code I
found on the net (including
String(request.getParameter().getBytes(8859_1), UTF-8)) I have given up!
Nothing I do changes anything! The included page will NOT display accented
characters. This same page, however, when not included, is displayed
correctly.

So I was looking at the struts source code wondering how the include tag
works (at least in 1.1), when I saw the following line:

InputStreamReader in = new InputStreamReader(is); // FIXME - encoding

It turns out that there 4 constructors for InputStreamReader, one of which
accepts as a parameter a character set! But struts uses the default
constructor which (I imagine) creates an InputStreamReader using the default
character set of either the machine or the session.(BTW, everything works
fine in Windows, it's when I port the app to Linux, which has the american
character set as its default, that I start to have problems ...)

Could this be the answer I am looking for? What especially interests me is
the // FIXME - encoding comment. Does this mean what I think it does, that
someone is aware that this should be changed, that you should be able to
pass the character set parameter?

I hope so! In the mean time I have decided to make the change myself,
compile and create a new struts jar file to see if it works. I don't like
the idea of tinkering with struts source code but I am past desperation!

If anyone knows anything about this issue I would cede you my first born to
know how else it can be resolved. Incidentally, this is NOT a db issue! As I
said, the page generated by the struts forward is displayed correctly, both
dynamic content from the db as well as static content.

I'll keep the list informed of my progress.

Thanks to all,
Bob




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



Mask validation BUG with requiredif

2003-03-13 Thread Greg Hess
Hi All, 
 
I have just started using the requiredif validation rule with a field
that is also being validated with a mask rule. The server side
validation is working fine but the client side JavaScript has errors for
my requiredif form fields. 
My form field requires the feild button2URL only if button2Lbl has been
entered and if button2URL it must pass the mask rule. 
 
When I use my mask without the requiredif rule all is well in client
JavaScript the generated method is as follows:
 
function mask () { 
 this.aa = new Array(button2URL, Button 2 URL must contain a
valid URL. For more information click the help icon., new Function
(varName, this.mask=/^http:\\/\\/|^file:\\/\\/|^mailto:[^ ]*$/;
return this[varName];));
} 
 
When the requiredif rule is added and the JavaScript breaks and the
generated method is:
 
function mask () { 
 this.aa = new Array(button2URL, Button 2 URL must contain a
valid URL. For more information click the help icon., new Function
(varName, this.field-test[0]='NOTNULL'; this.field[0]='button2Lbl';
this.mask=/^http:\\/\\/|^file:\\/\\/|^mailto:[^ ]*$/;  return
this[varName];));
} 
 
Below is my validation def for this form:
 
field property=button2Lbl depends=required
 
arg0 key=wbConfigForm.button2Lbl/
 
/field
 
field property=button2URL depends=requiredif,mask
 
msg name=mask key=error.invalidURL/
 
arg0 key=wbConfigForm.button2URL/
 
var
 
var-namemask/var-name
 
var-value^http:\/\/|^file:\/\/|^mailto:[^ ]*$/var-value
 
/var
 
var
 
var-namefield[0]/var-name
 
var-valuebutton2Lbl/var-value
 
/var
 
var
 
var-namefield-test[0]/var-name
 
var-valueNOTNULL/var-value
 
/var 
 
/field
 
/form
 
I have accepted that for now I will create my own static JavaScript for
the form to handle the requirdif fields but I would still like to use
the other rules and their client side validation with my reqiredif
fields. 
 
Many thanks,
 
Greg
 


RE: Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra
I defined the following entry in the tiles-def.xml.

definition name=site.menu.bar path=/coolmenu2.jsp
/definition

with coolmenu2.jsp:
%@ taglib uri=/WEB-INF/tld/struts-menu.tld prefix=menu%

script language=JavaScript1.2 src=./scripts/coolmenus3.js
/script
script src=./scripts/coolmenu2-config.js 
/script

menu:useMenuDisplayer name=CoolMenu
bundle=org.apache.struts.action.MESSAGE
menu:displayMenu name=MenuHome/
menu:displayMenu name=MenuLogout/
menu:displayMenu name=MenuHelp/
/menu:useMenuDisplayer

I can display a horizontal struts-menu.
But when the user select the command Logout I would like to call a tiles
definition, in this case site.login.page.

definition name=site.login.page extends=site.mainLayout
  put name=title value=Login page /
  put name=body value=login.jsp /
  put name=menu value=/tiles/common/empty.jsp /
  put name=user value=/tiles/common/empty.jsp /
/definition

If in the menu config I write 
Menu  name=MenuLogout  title=menu.label.logout
location=site.login.page 
/Menu

It doesn't work I have the error Unable to open location: Document not
found on server.
To display the login page I must write 
Menu  name=MenuLogout  title=menu.label.logout location=login.jsp 
/Menu

but the page doesn't have the look and feel of the application.




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 

Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED]
Sent: 13 March 2003 14:05
To: 'Struts Users Mailing List'
Subject: RE: Struts-menu with Tiles


Absolutely.

Just have one of your tiles be the menu.

Edgar

 -Original Message-
 From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 3:47 AM
 To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
 Subject: Struts-menu with Tiles
 
 
 
   My question is perhaps stupid, sorry. 
   I would wish to know if it is possible to use 
 struts-menu with Tiles. 
   I for a long time seek an example of horizontal 
 dropdown menu and the menu used in struts-menu example
   coolmenus3 seems to me satisfactory. 
   But I use the Tiles components to build my pages. 
   Is it possible to use the two technologies? 
   Thanks a lot in advance.
   
   Sandra
 
 --- 
 As of February 12, 2003 Thomson unifies its email addresses 
 on a worldwide basis.Please note my new email address: 
 [EMAIL PROTECTED] 
 
 Thomson is the leader in solutions and technologies for the 
 entertainment and media industries and serves its customers 
 under its four strategic
 brands: Technicolor, Grass Valley, RCA and THOMSON. 
 More about Thomson: http://www.thomson.net/videochain 
 
 

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


Re: [Tiles] Creating SubTabs (Tabs within Tabs)

2003-03-13 Thread Cedric Dumoulin


Affan Qureshi wrote:

Hi,
I have implemented the TabLayout as described in the examples and works
well. I want to define sub tabs under the main Tabs. So my requirement would
be like having putList elements inside putList elements(which is not
possible in DTD) so that I can define nested lists. How have you implemented
this in your apps?
 You should define one definition for each subtabs. Such definition use 
the tabsLayout, and define the appropriate list.
 In the parent tabs, specify the subtabs definition name instead of the 
url.
 Also, there exist another tabs layout more adapted to nestedTabs. You 
can download if from here
(http://www.lifl.fr/~dumoulin/howto/nestedTabsLayout.jsp)

Looking at the DTD I saw an element putListElements. Where des this fit
in? Can this be helpful in this regard?
Also can I specify the class by
classtype=org.apache.struts.tiles.beans.SimpleMenuItem to something more
sophisticated so that I can add some more info? What will I need to change?
 Yes, you can. Write your class extending or implementing the MenuItem 
class, specify this class as classtype.
 You need to disable the xml validation or add your entries in the 
tiles dtd to be able to read the config file containing your new 
parameters.

 Cedric

Thanks a lot.

Affan

-
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: Example of accessing DynaActionFrom properties from within an Action

2003-03-13 Thread Kris Schneider
And what happens if myForm.get(somekey) == null? Right, NPE.
BeanUtils.geProperty will convert the property value to a String.
PropertyUtils.getProperty will just return the property value as an Object
without any conversion.

String foo = BeanUtils.geProperty(form, somekey);

http://jakarta.apache.org/commons/beanutils/

Quoting Ian Hunter [EMAIL PROTECTED]:

 
 forgot about String Object.toString() method.  Looks a little tidier,
 doesn't it?  Anyway, it should literally be calling the same code.  I'm
 hoping BeanUtils can somehow handle translations between types like
 java.util.Date and String...I'll look into it later.
 
 - Original Message -
 From: Mark Lowe [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 9:28 AM
 Subject: Re: Example of accessing DynaActionFrom properties from within an
 Action
 
 
 I had a headache over all this until i spent a couple fo days using the
 beanutils package..
 
 
 org.apache.common.beanutils
 
 The dynaaction forms are basically the same..
 
 your means of extracting the stored values from the form look like they
 should work , although i prefer using toString() rather than casting
 the world..
 
 DynaActionForm myForm = (DynaActionForm) form;
 String foo = myForm.get(somekey).toString();
 
 So what you are doing works for me...
 
 hope this helps mark
 
 Giovedì, 13 mar 2003, alle 15:03 Europe/Rome, Ian Hunter ha scritto:
 
  Since this isn't as clear as it could be, here's an example for anyone
  who
  cares:
 
  (this class adds or updates a bulletin on a message board; all data
  access
  goes through a central service called the DataStore)
 
  public final class UpdateBulletinAction extends Action {
 
   public ActionForward execute(ActionMapping mapping, ActionForm
  form,
  HttpServletRequest request,  HttpServletResponse response)
   throws Exception {
 
   ActionErrors errors = new ActionErrors();
 
  DynaActionForm dynaForm = (DynaActionForm) form;
  UserView user =
  (UserView)request.getSession().getAttribute(Constants.USER_KEY);
 
  if (((String)((DynaActionForm)form).get (id)).equals (0))
  { //
  ID = 0 means we're adding a bulletin
  try {
  BulletinView bv = DataStore.getNewBulletinView();
  bv.setAccessLevel ((String)dynaForm.get
  (accessLevel));
  bv.setMessage ((String)dynaForm.get(message));
  DataStore.addBulletinView (bv);
  } catch (ViewRecAddException e) {
  servlet.log(An error occurred while user  +
  user.getName() +  was adding a bulletin:\n +
e.toString());
  e.printStackTrace();
  errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.databaseerror));
  }
  } else { // Since we have an ID, we're updating a bulletin
  try {
  BulletinView bv =
  DataStore.getBulletinViewById((String)dynaForm.get(id));
  bv.setAccessLevel
  ((String)dynaForm.get(accessLevel));
  bv.setMessage ((String)dynaForm.get(message));
  DataStore.updateBulletinView (bv);
  } catch (ViewRecLoadException e) {
  servlet.log(An error occurred while trying to get
  bulletin ID= + (String)dynaForm.get(id) +  for update by user  +
  user.getName() +
:\n + e.toString());
  e.printStackTrace();
  errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.databaseerror));
  } catch (ViewRecUpdateException e) {
  servlet.log(An error occurred while user  +
  user.getName() +  was updating bulletin with ID= +
  (String)dynaForm.get(id) +
:\n + e.toString());
  e.printStackTrace();
  errors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.databaseerror));
  }
  if (!errors.isEmpty()) {
   saveErrors(request, errors);
  return (new ActionForward(mapping.getInput()));
  }
 
  return (mapping.findForward(success));
  }
  }
 
  so to refer to a property of a DynaActionForm within an action, you do
  something like
 
  DynaActionFrom dynaForm = (DynaActionForm) form;
  // variable form comes from method execute's signature
 
  someVariable = (className)dynaForm.get(propertyName);
  // to get the property; DynaActionForm.get(String property) returns an
  Object, so you have to cast it
 
  dynaForm.set(propertyName, someVariable);
  // to set the property; the class of the second parameter is, again,
  Object
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, 

Re: Mask validation BUG with requiredif

2003-03-13 Thread Evan Schnell
Greg Hess wrote:

Hi All, 

I have just started using the requiredif validation rule with a field
that is also being validated with a mask rule. The server side
validation is working fine but the client side JavaScript has errors for
my requiredif form fields. 
 

I cannot seem to get any client-side validation to work when requiredif 
is turned on.  I wrote my own javascript rule that is supposed to always 
return true.  However mozilla's javascript engine (and presumably IE's 
because both give the same end behavior) will not allow a variable to be 
named field-test or field-join.  

Specifically the bug is in:

this.ae = new Array(lastName, Last Name can not be less than 2 
characters., new Function (varName, this.field[0]='firstName'; 
this.field-test[0]='NOTNULL'; this.minlength=2;  return this[varName];));

The only workaround I can see is to follow advice previously posted on 
this list and not attempt client side requiredif,  Then I can hack 
JavascriptValidatorTag.java to support a new jsType called omit which 
will prevent the variable from being included in the javascript at all.

Regards, Evan.



smime.p7s
Description: S/MIME Cryptographic Signature


Re: tiles:definitions extends attribute

2003-03-13 Thread Cedric Dumoulin
 The extends attribute refer to a definition in the factory 
(initialized from the config file). The definitions define directly in a 
jsp page are not stored in the factory, but in a jsp context, so they 
can't be found by the extends attribute. This is certainly something to 
improve, but the ability to define definitions in jsp is not often used. 
It is usually replaced by the use of an xml config file.

 Cedric

Michael Ruppin wrote:

For an exercise, I decided to try using a JSP for my
definitions, as opposed to XML.  All went fine until I
tried to implement a definition with an extends
attribute.  It works fine in XML, but in a JSP I
get:javax.servlet.ServletException: Can't get
definitions factory from context.  Both my JSP and XML
tests used the same struts-1.1-rc1 jars, in Tomcat
4.1.18. Can this not be done?  I've never seen an
example, but all the documentation I've found
indicates this is a valid tag attribute.  My war
files:
http://snow.prohosting.com/mruppin/tilesxml.war
http://snow.prohosting.com/mruppin/tilesjsp.war
__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 



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


RE: Struts-menu with Tiles

2003-03-13 Thread Pascal THIVENT
Quoting Heligon Sandra [EMAIL PROTECTED]:

why not using a custom Action to perform the logout and forward then to the
tiles def ? 

HTH

P.

 I defined the following entry in the tiles-def.xml.
 
 definition name=site.menu.bar path=/coolmenu2.jsp
 /definition
 
 with coolmenu2.jsp:
 %@ taglib uri=/WEB-INF/tld/struts-menu.tld prefix=menu%
 
 script language=JavaScript1.2 src=./scripts/coolmenus3.js
 /script
 script src=./scripts/coolmenu2-config.js 
 /script
 
 menu:useMenuDisplayer name=CoolMenu
 bundle=org.apache.struts.action.MESSAGE
 menu:displayMenu name=MenuHome/
 menu:displayMenu name=MenuLogout/
 menu:displayMenu name=MenuHelp/
 /menu:useMenuDisplayer
 
 I can display a horizontal struts-menu.
 But when the user select the command Logout I would like to call a
 tiles
 definition, in this case site.login.page.
 
 definition name=site.login.page extends=site.mainLayout
   put name=title value=Login page /
   put name=body value=login.jsp /
   put name=menu value=/tiles/common/empty.jsp /
   put name=user value=/tiles/common/empty.jsp /
 /definition
 
 If in the menu config I write 
 Menu  name=MenuLogout  title=menu.label.logout
 location=site.login.page 
 /Menu
 
 It doesn't work I have the error Unable to open location: Document
 not
 found on server.
 To display the login page I must write 
 Menu  name=MenuLogout  title=menu.label.logout
 location=login.jsp 
 /Menu
 
 but the page doesn't have the look and feel of the application.
 
 
 
 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide
 basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 
 Original Message-
 From: Edgar Dollin [mailto:[EMAIL PROTECTED]
 Sent: 13 March 2003 14:05
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-menu with Tiles
 
 
 Absolutely.
 
 Just have one of your tiles be the menu.
 
 Edgar
 
  -Original Message-
  From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 13, 2003 3:47 AM
  To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
  Subject: Struts-menu with Tiles
  
  
  
  My question is perhaps stupid, sorry. 
  I would wish to know if it is possible to use 
  struts-menu with Tiles. 
  I for a long time seek an example of horizontal 
  dropdown menu and the menu used in struts-menu example
  coolmenus3 seems to me satisfactory. 
  But I use the Tiles components to build my pages. 
  Is it possible to use the two technologies? 
  Thanks a lot in advance.
  
  Sandra
  
  --- 
  As of February 12, 2003 Thomson unifies its email addresses 
  on a worldwide basis.Please note my new email address: 
  [EMAIL PROTECTED] 
  
  Thomson is the leader in solutions and technologies for the 
  entertainment and media industries and serves its customers 
  under its four strategic
  brands: Technicolor, Grass Valley, RCA and THOMSON. 
  More about Thomson: http://www.thomson.net/videochain 
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



--
P.

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



unwanted emty lines in produced html

2003-03-13 Thread Niesen, Nathan

IMHO, if a line only contains jsp tags, comments, or scriptlets that produce
no output then no blank line should be present in the output.

I find it especially annoying that multi-line comments generate a carriage
return for every line of the comment. Those carriage returns are part of the
comment and should be gobbled up. My guess is that this is a JSP compiler or
servlet container issue.



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



JSF-Struts

2003-03-13 Thread MNewcomb
I'm getting a 'Renderer Not Found for Renderer Type:StrutsHtml' exception
when I click on the 'Register with the MailReader Demonstration Application'
link in the JSF-Struts example webapp.

What's up?

Michael

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



Nested Mapped Properties

2003-03-13 Thread Chalkidis Spyros

Hello,

does anybody have an example of using nested mapped properties
with or without the Nested tags?

Thanks in advance,

Spyros Halkidis


Re: Tiles and html-el

2003-03-13 Thread Sloan Seaman
Thanks!

Worked like a charm!
- Original Message - 
From: Derek Richardson [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, March 12, 2003 6:39 PM
Subject: RE: Tiles and html-el


Try:

t:importAttribute name=TARGET_PAGE /
html-el:link page=${TARGET_PAGE}blah/html-el:link

t being the prefix for the tiles taglib.

Derek Richardson

 -Original Message-
 From: Sloan Seaman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 2:14 PM
 To: Struts Users Mailing List
 Subject: Tiles and html-el
 
 
 I've got an html-el:link inside a tile and I need to get one of the
 variables that was passed to the tile into the link being 
 created by the
 html-el:link
 
 How do I reference the variable that was passed in?
 
 Example:
 on one jsp page:
 tiles:insert page=/app/global/forms/barcodeList.jsp
 tiles:put name=TARGET_PAGE value=/app/campaign/mainPage.do/
 /tiles:insert
 
 in tile page:
 
 html-el:link page=${TARGET_PAGE}blah/html-el:link
 
 I know that the above doesn't work...
 
 How would I go about getting it to work?
 
 I have to use html-el because in the real page I have other 
 variables going
 into the page=
 
 Thanks!!
 --
 Sloan
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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




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



RE: Struts-menu with Tiles

2003-03-13 Thread Heligon Sandra
It is perhaps a solution but I don't know where I can find help
about syntax of the menu-config.xml file there is no dtd file
associated to this file in the struts-menu example.
I don't know which attributes are available in the item or menu tag.

example of menu-config.xml
Menu  name=MenuHelp  title=menu.label.help 
  Item  name=about title=menu.label.help.about location=index.jsp/
/Menu




As of February 12th, 2003 Thomson unifies its email addresses on a worldwide
basis. 
Please note my new email address: [EMAIL PROTECTED] 

http://www.thomson.net/ 

Original Message-
From: Pascal THIVENT [mailto:[EMAIL PROTECTED]
Sent: 13 March 2003 16:32
To: Struts Users Mailing List; Heligon Sandra
Cc: 'Struts Users Mailing List'
Subject: RE: Struts-menu with Tiles


Quoting Heligon Sandra [EMAIL PROTECTED]:

why not using a custom Action to perform the logout and forward then to the
tiles def ? 

HTH

P.

 I defined the following entry in the tiles-def.xml.
 
 definition name=site.menu.bar path=/coolmenu2.jsp
 /definition
 
 with coolmenu2.jsp:
 %@ taglib uri=/WEB-INF/tld/struts-menu.tld prefix=menu%
 
 script language=JavaScript1.2 src=./scripts/coolmenus3.js
 /script
 script src=./scripts/coolmenu2-config.js 
 /script
 
 menu:useMenuDisplayer name=CoolMenu
 bundle=org.apache.struts.action.MESSAGE
 menu:displayMenu name=MenuHome/
 menu:displayMenu name=MenuLogout/
 menu:displayMenu name=MenuHelp/
 /menu:useMenuDisplayer
 
 I can display a horizontal struts-menu.
 But when the user select the command Logout I would like to call a
 tiles
 definition, in this case site.login.page.
 
 definition name=site.login.page extends=site.mainLayout
   put name=title value=Login page /
   put name=body value=login.jsp /
   put name=menu value=/tiles/common/empty.jsp /
   put name=user value=/tiles/common/empty.jsp /
 /definition
 
 If in the menu config I write 
 Menu  name=MenuLogout  title=menu.label.logout
 location=site.login.page 
 /Menu
 
 It doesn't work I have the error Unable to open location: Document
 not
 found on server.
 To display the login page I must write 
 Menu  name=MenuLogout  title=menu.label.logout
 location=login.jsp 
 /Menu
 
 but the page doesn't have the look and feel of the application.
 
 


 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide
 basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 
 Original Message-
 From: Edgar Dollin [mailto:[EMAIL PROTECTED]
 Sent: 13 March 2003 14:05
 To: 'Struts Users Mailing List'
 Subject: RE: Struts-menu with Tiles
 
 
 Absolutely.
 
 Just have one of your tiles be the menu.
 
 Edgar
 
  -Original Message-
  From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, March 13, 2003 3:47 AM
  To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
  Subject: Struts-menu with Tiles
  
  
  
  My question is perhaps stupid, sorry. 
  I would wish to know if it is possible to use 
  struts-menu with Tiles. 
  I for a long time seek an example of horizontal 
  dropdown menu and the menu used in struts-menu example
  coolmenus3 seems to me satisfactory. 
  But I use the Tiles components to build my pages. 
  Is it possible to use the two technologies? 
  Thanks a lot in advance.
  
  Sandra
  
  --- 
  As of February 12, 2003 Thomson unifies its email addresses 
  on a worldwide basis.Please note my new email address: 
  [EMAIL PROTECTED] 
  
  Thomson is the leader in solutions and technologies for the 
  entertainment and media industries and serves its customers 
  under its four strategic
  brands: Technicolor, Grass Valley, RCA and THOMSON. 
  More about Thomson: http://www.thomson.net/videochain 
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



--
P.

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


RE: One-time initializing in struts

2003-03-13 Thread Raible, Matt
If you're using a Servlet 2.3 container, I'd recommend using a
ServletContextListener over a StartupServlet.  I recently changed my apps to
use this, and it was pretty simple to do.  After all, that's what the SCL
was designed for.

As an example:

http://tinyurl.com/7elp

HTH,

Matt

 -Original Message-
 From: Scott Barr [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 11:39 PM
 To: Struts Users Mailing List
 Subject: RE: One-time initializing in struts
 
 
 
 Hi Karl
 
 I use a Servlet to do app initialisation. 
 Add the Servlet to web.xml, and set the load-on-startup 
 parameter. Then
 you put the initialisation code in the Servlet, and you're away.
 
 Scott Barr
 www.exergonic.com.au
 
 
 On Thu, 2003-03-13 at 17:05, Andrew Hill wrote:
  Struts PlugIn might be the best option for that. Check the 
 docs. Dont think
  its supported in 1.0 though, just 1.1. (With each 1.1.x 
 version having a
  different interface!)
  
  -Original Message-
  From: Karl [mailto:[EMAIL PROTECTED]
  Sent: Thursday, 13 March 2003 14:26
  To: Struts Users Mailing List
  Subject: One-time initializing in struts
  
  
  Is there a way to do one-time initialization in struts 
 without having to put
  check logicn in every action?
  
  I want to use turbine as my persistance back-end but I need to call
  Torque.init(Torque.properties); somewhere.
  
  
  
 -
  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]



Nested Radio Buttons + Mutual Exclusion

2003-03-13 Thread Jonathan
Does anybody know how to use the nested:radio button component so
That you can have mutually exclusive sets of radio buttons?
 
Jon.
 
*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*
 


how does Onclick in checkbox work?

2003-03-13 Thread anis_malkan
Hi,

In the following jsp code why don't the eventhandler onclick does not work for 
checkbox. 
It works for image, as whenever image is clicked it goes to my Update event in my 
class 
derived from DispatchAction. But everytime the checkbox is clicked it just 
checks/unchecks 
the box but does not go to event handler.


Thanks
Anis


html:hidden property=m_sBtnAction value=unspecified/
html:hidden property=m_sControlId/
html:hidden property=m_sControlBtnAction/
script
function setBtnAction(sBtnAction, sControlId, sControlBtnAction)
{
document.forms[0].m_sBtnAction.value = sBtnAction;
document.forms[0].m_sControlId.value = sControlId;
document.forms[0].m_sControlBtnAction.value = sControlBtnAction;
}
/script


html:image onclick=setBtnAction('Update', '', ''); srcKey=image.Save /
html:checkbox property=count_validation_status onclick=setBtnAction('Update', '', 
''); /

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



RE: JSF-Struts

2003-03-13 Thread MNewcomb
I had to update the web.xml to be a web application 2.3 and then include:

listenerlistener-classorg.apache.struts.faces.taglib.LifecycleListener/
listener-class/listener

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 10:38 AM
 To: [EMAIL PROTECTED]
 Subject: JSF-Struts
 
 
 I'm getting a 'Renderer Not Found for Renderer 
 Type:StrutsHtml' exception
 when I click on the 'Register with the MailReader 
 Demonstration Application'
 link in the JSF-Struts example webapp.
 
 What's up?
 
 Michael
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



RE: [OT] how does Onclick in checkbox work?

2003-03-13 Thread Bueno Carlos M
not all actions are available to all html elements -- especially in
netscape/mozilla. checkboxes have onfocus, onblur, and onchange, I think.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 11:13 AM
To: [EMAIL PROTECTED]
Subject: how does Onclick in checkbox work?


Hi,

In the following jsp code why don't the eventhandler onclick does not work
for checkbox. 
It works for image, as whenever image is clicked it goes to my Update event
in my class 
derived from DispatchAction. But everytime the checkbox is clicked it just
checks/unchecks 
the box but does not go to event handler.


Thanks
Anis


html:hidden property=m_sBtnAction value=unspecified/
html:hidden property=m_sControlId/
html:hidden property=m_sControlBtnAction/
script
function setBtnAction(sBtnAction, sControlId, sControlBtnAction)
{
document.forms[0].m_sBtnAction.value = sBtnAction;
document.forms[0].m_sControlId.value = sControlId;
document.forms[0].m_sControlBtnAction.value = sControlBtnAction;
}
/script


html:image onclick=setBtnAction('Update', '', ''); srcKey=image.Save /
html:checkbox property=count_validation_status
onclick=setBtnAction('Update', '', ''); /

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


RE: Struts-menu with Tiles

2003-03-13 Thread Pascal THIVENT
Quoting Heligon Sandra [EMAIL PROTECTED]:

replace the string index.jsp in the location attribute with a struts action
path. FYI, the location attribute is is allowed on both Menu and Item.

Menu  name=MenuLogout  title=menu.label.logout
location=pathToMyLogoutAction.do 
Menu  name=MenuHelp  title=menu.label.help 
   Item  name=about title=menu.label.help.about
location=pathToMyAboutAction.do/
/Menu

Dont be scared, just try ;)

-- 
P. 

 It is perhaps a solution but I don't know where I can find help
 about syntax of the menu-config.xml file there is no dtd file
 associated to this file in the struts-menu example.
 I don't know which attributes are available in the item or menu
 tag.
 
 example of menu-config.xml
 Menu  name=MenuHelp  title=menu.label.help 
   Item  name=about title=menu.label.help.about
 location=index.jsp/
 /Menu
 
 
 
 
 As of February 12th, 2003 Thomson unifies its email addresses on a
 worldwide
 basis. 
 Please note my new email address: [EMAIL PROTECTED] 
 
 http://www.thomson.net/ 
 
 Original Message-
 From: Pascal THIVENT [mailto:[EMAIL PROTECTED]
 Sent: 13 March 2003 16:32
 To: Struts Users Mailing List; Heligon Sandra
 Cc: 'Struts Users Mailing List'
 Subject: RE: Struts-menu with Tiles
 
 
 Quoting Heligon Sandra [EMAIL PROTECTED]:
 
 why not using a custom Action to perform the logout and forward then to
 the
 tiles def ? 
 
 HTH
 
 P.
 
  I defined the following entry in the tiles-def.xml.
  
  definition name=site.menu.bar path=/coolmenu2.jsp
  /definition
  
  with coolmenu2.jsp:
  %@ taglib uri=/WEB-INF/tld/struts-menu.tld prefix=menu%
  
  script language=JavaScript1.2 src=./scripts/coolmenus3.js
  /script
  script src=./scripts/coolmenu2-config.js 
  /script
  
  menu:useMenuDisplayer name=CoolMenu
  bundle=org.apache.struts.action.MESSAGE
  menu:displayMenu name=MenuHome/
  menu:displayMenu name=MenuLogout/
  menu:displayMenu name=MenuHelp/
  /menu:useMenuDisplayer
  
  I can display a horizontal struts-menu.
  But when the user select the command Logout I would like to call a
  tiles
  definition, in this case site.login.page.
  
  definition name=site.login.page extends=site.mainLayout
put name=title value=Login page /
put name=body value=login.jsp /
put name=menu value=/tiles/common/empty.jsp /
put name=user value=/tiles/common/empty.jsp /
  /definition
  
  If in the menu config I write 
  Menu  name=MenuLogout  title=menu.label.logout
  location=site.login.page 
  /Menu
  
  It doesn't work I have the error Unable to open location: Document
  not
  found on server.
  To display the login page I must write 
  Menu  name=MenuLogout  title=menu.label.logout
  location=login.jsp 
  /Menu
  
  but the page doesn't have the look and feel of the application.
  
  
 
 
  
  As of February 12th, 2003 Thomson unifies its email addresses on a
  worldwide
  basis. 
  Please note my new email address: [EMAIL PROTECTED] 
  
  http://www.thomson.net/ 
  
  Original Message-
  From: Edgar Dollin [mailto:[EMAIL PROTECTED]
  Sent: 13 March 2003 14:05
  To: 'Struts Users Mailing List'
  Subject: RE: Struts-menu with Tiles
  
  
  Absolutely.
  
  Just have one of your tiles be the menu.
  
  Edgar
  
   -Original Message-
   From: Heligon Sandra [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, March 13, 2003 3:47 AM
   To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
   Subject: Struts-menu with Tiles
   
   
   
 My question is perhaps stupid, sorry. 
 I would wish to know if it is possible to use 
   struts-menu with Tiles. 
 I for a long time seek an example of horizontal 
   dropdown menu and the menu used in struts-menu example
 coolmenus3 seems to me satisfactory. 
 But I use the Tiles components to build my pages. 
 Is it possible to use the two technologies? 
 Thanks a lot in advance.
 
 Sandra
   
   --- 
   As of February 12, 2003 Thomson unifies its email addresses 
   on a worldwide basis.Please note my new email address: 
   [EMAIL PROTECTED] 
   
   Thomson is the leader in solutions and technologies for the 
   entertainment and media industries and serves its customers 
   under its four strategic
   brands: Technicolor, Grass Valley, RCA and THOMSON. 
   More about Thomson: http://www.thomson.net/videochain 
   
   
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 --
 P.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: 

Re: BaseBean questions [was] [ANN] Struttin' With Struts beta(newbies esp. welcome)

2003-03-13 Thread Rick Reumann
On Thu, 13 Mar 2003 06:22:58 -0500
Vic Cekvenich [EMAIL PROTECTED] wrote:
 
 Also, a bean should not do persistence, but should delegate. So I
 create a helper object, a DAOImplementation. ( a DAO also has a
 base). One thing is obvoice, a baseBean needs to CRUD, so it makes
 sense to baseBean { public void save() { DAO.update(); }}

I love the OO approach to your code, I'm just still very confused about
how a simple implementation of a BaseBean would work in calling a DAO to
save itself? In other words, what gets passed to the DAO from the
BaseBean implementation to do the CRUD?

For example in a case where you had:

EmployeeFormBean extends BaseBean

I would take it EmployeeForBean would need to hold user fields such as
firstName, lastName, address, etc with appropriate getter and setters.
How do these fields then get passed to your DAO for the CRUD operations?

Thanks,

-- 
Rick Reumann

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



[Q] how to do server side validation for popup that closes on submit?

2003-03-13 Thread michael . korolyov
hello,

I need popup that submits some data and then closes and refresh parent
window,
but if server side validation fails then that popup window needs to show
errors and stay.

any ideas hot to do it?

tnx

Best Regards.
Michael.


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



Tiles context and forwards

2003-03-13 Thread Mark Lowe
Anybody know any good reading i can do to better my understanding of 
how to get one's grubby mitts on the context for a given tile. i.e. how 
can i forward to a tile?  i.e how can i get a tile's context from an 
action servlet?

many thanks mark

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


Re: [Q] how to do server side validation for popup that closes on sub mit?

2003-03-13 Thread Mark Lowe
This would work...

validate the form before everything, if okay

return response.write(body 
onload=myfunctionforclosingthiswindowandredirecting the parent()); 
from action servlet

the javascript can be in the popup and the function in only called my 
the response...

hope this helps
mark
Giovedì, 13 mar 2003, alle 17:48 Europe/Rome, 
[EMAIL PROTECTED] ha scritto:

hello,

I need popup that submits some data and then closes and refresh 
parent
window,
but if server side validation fails then that popup window needs to 
show
errors and stay.

any ideas hot to do it?

tnx

Best Regards.
Michael.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


How to populate a form with data and then have the DynaValidatorForm validate it afterwards

2003-03-13 Thread Michael Mattox
I defined a tile like this:

  definition name=monitor.urlmonitor.edit.form
  path=/monitors/monitor_urlmonitor_edit_form.jsp
  controllerUrl=/getMonitor.do
  
  /definition

Basically my getMonitor action gets the monitor from the database and then
the JSP displays the information in a form so the user can edit it.  Here's
my problem:  When the user clicks to edit the Monitor, I want to populate
the form with the info from the database.  But when the user submits, if
there is an error, I'd like the form to be populated by the
DynaValidatorForm.  I don't see a way to do the two.  In my JSP, I can do
one of the following:

Use the DynaValidatorForm:

html:text property=name size=20/

Use the javabean (populated with data from the database):

html:text property=name size=20 value=%=monitor.getName()%/

But how can I have the data populate the first time only??

Thanks,
Michael





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



RE: [Q] how to do server side validation for popup that closes on sub mit?

2003-03-13 Thread anis_malkan
how can use response to open a pop-up window and send the user to somewhere else in 
main window from  action/eventhandler function.

Thanks
Anis

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 9:55 AM
To: Struts Users Mailing List
Subject: Re: [Q] how to do server side validation for popup that closes
on sub mit?



This would work...

validate the form before everything, if okay

return response.write(body 
onload=myfunctionforclosingthiswindowandredirecting the parent()); 
from action servlet

the javascript can be in the popup and the function in only called my 
the response...

hope this helps
mark

Giovedì, 13 mar 2003, alle 17:48 Europe/Rome, 
[EMAIL PROTECTED] ha scritto:

 hello,

 I need popup that submits some data and then closes and refresh 
 parent
 window,
 but if server side validation fails then that popup window needs to 
 show
 errors and stay.

 any ideas hot to do it?

 tnx

 Best Regards.
 Michael.


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



ArrayList set method in nested bean- confusion

2003-03-13 Thread Huw Jones
I have a nested bean where beanA (courseBean) stores an ArrayList of bean2
(event).

I can dump out the ArrayList no problem but I can't seem to make the set
method run. So here are some code snippits.

JSP

logic:notEmpty name=courseEventForm property=courseBean.events
 html:text name=courseEventForm property='%= courseBean.events[ + cnt
+ ].startDate %' size=12 maxlength=12/
/logic:iterate

So produces HTML
 input type=text name=courseBean.events[0].startDate maxlength=12
size=12 value=
 input type=text name=courseBean.events[1].startDate maxlength=12
size=12 value=

etc

In formbean

 public CourseEventForm () {
  this.course = new Course(this);
   }
  etc


In my Course Bean set/get methods

public Course (CourseEventForm parent) {
   this.parentBean = parent;
   this.eventList = new ArrayList();
}
public Object[] getEvents() {
 return eventList.toArray();
}

public void setEvents(Object[] newEventList) {
  this.eventList = new ArrayList();
  for (int i=0; inewEventList.length; i++) {
  this.eventList.add(newEventList[i]);
  }
}


I'm basically trying to implement an add button which adds another instance
of an event in the form but
I get array out of bounds error. If the set method ran it should increase
the array length as it needs - I'm thinking.

Any one know what's going wrong here - do I need another method in the
Course Bean

Thanks

Huw Jones



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



RE: How to populate a form with data and then have the DynaValidatorForm validate it afterwards

2003-03-13 Thread Robert Taylor
Have 2 actions:

-PopulateFormAction
-ProcessFormAction

When the user clicks to edit the Monitor, invoke, PopulateFormAction.
When the user submits invalid data (invoke ProcessFormAction),
the request should forward back to the input defined in the
struts-config file. All the form data still resides in the request
and should therefore be rendered again (without hitting the database).

robert

 -Original Message-
 From: Michael Mattox [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 13, 2003 11:55 AM
 To: Struts Users Mailing List
 Subject: How to populate a form with data and then have the
 DynaValidatorForm validate it afterwards


 I defined a tile like this:

   definition name=monitor.urlmonitor.edit.form
   path=/monitors/monitor_urlmonitor_edit_form.jsp
   controllerUrl=/getMonitor.do
   
   /definition

 Basically my getMonitor action gets the monitor from the database and then
 the JSP displays the information in a form so the user can edit
 it.  Here's
 my problem:  When the user clicks to edit the Monitor, I want to populate
 the form with the info from the database.  But when the user submits, if
 there is an error, I'd like the form to be populated by the
 DynaValidatorForm.  I don't see a way to do the two.  In my JSP, I can do
 one of the following:

 Use the DynaValidatorForm:

 html:text property=name size=20/

 Use the javabean (populated with data from the database):

 html:text property=name size=20 value=%=monitor.getName()%/

 But how can I have the data populate the first time only??

 Thanks,
 Michael





 -
 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: [Q] how to do server side validation for popup that closes on sub mit?

2003-03-13 Thread Mark Lowe
the pop window is already open.. 1000 times.. i really should 
read before barking

the question was how to validate and then close it...

if there's and error then the function isn't called if all okay it is...

i personally don't like send js via the response but I answered the 
question with something that works... You could use a jsp or a trusty 
traditional servlet.

so anus what would you do? 'in response to the question that is'

Giovedì, 13 mar 2003, alle 18:06 Europe/Rome, 
[EMAIL PROTECTED] ha scritto:

how can use response to open a pop-up window and send the user to 
somewhere else in main window from  action/eventhandler function.

Thanks
Anis
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 9:55 AM
To: Struts Users Mailing List
Subject: Re: [Q] how to do server side validation for popup that closes
on sub mit?


This would work...

validate the form before everything, if okay

return response.write(body
onload=myfunctionforclosingthiswindowandredirecting the parent());
from action servlet
the javascript can be in the popup and the function in only called my
the response...
hope this helps
mark
Giovedì, 13 mar 2003, alle 17:48 Europe/Rome,
[EMAIL PROTECTED] ha scritto:
hello,

I need popup that submits some data and then closes and refresh
parent
window,
but if server side validation fails then that popup window needs to
show
errors and stay.
any ideas hot to do it?

tnx

Best Regards.
Michael.
-
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: ArrayList set method in nested bean- confusion

2003-03-13 Thread Mark Lowe
should be fine..  to add a new row you can do so using the set's on the 
formBean in you action class...



Giovedì, 13 mar 2003, alle 18:10 Europe/Rome, Huw Jones ha scritto:

I have a nested bean where beanA (courseBean) stores an ArrayList of 
bean2
(event).

I can dump out the ArrayList no problem but I can't seem to make the 
set
method run. So here are some code snippits.

JSP

logic:notEmpty name=courseEventForm property=courseBean.events
 html:text name=courseEventForm property='%= courseBean.events[ 
+ cnt
+ ].startDate %' size=12 maxlength=12/
/logic:iterate

So produces HTML
 input type=text name=courseBean.events[0].startDate 
maxlength=12
size=12 value=
 input type=text name=courseBean.events[1].startDate 
maxlength=12
size=12 value=

etc

In formbean

 public CourseEventForm () {
  this.course = new Course(this);
   }
  etc
In my Course Bean set/get methods

public Course (CourseEventForm parent) {
   this.parentBean = parent;
   this.eventList = new ArrayList();
}
public Object[] getEvents() {
 return eventList.toArray();
}
public void setEvents(Object[] newEventList) {
  this.eventList = new ArrayList();
  for (int i=0; inewEventList.length; i++) {
  this.eventList.add(newEventList[i]);
  }
}
I'm basically trying to implement an add button which adds another 
instance
of an event in the form but
I get array out of bounds error. If the set method ran it should 
increase
the array length as it needs - I'm thinking.

Any one know what's going wrong here - do I need another method in the
Course Bean
Thanks

Huw Jones



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


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


RE: struts-user Digest 13 Mar 2003 16:26:10 -0000 Issue 2866

2003-03-13 Thread Gehlot, Narendra
Can you guys stop sending me these emails.
I tried Million times to un subcribe from your mailing list and still get
these emails.

I am fadeup with this can any buddy help me grting rid of this mailing list 
I will greatly appriciate if i can get rid of this mailing list.

Thanks.
Naren

  -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 13, 2003 10:26 AM
 To:   [EMAIL PROTECTED]
 Subject:  struts-user Digest 13 Mar 2003 16:26:10 - Issue 2866
 
   File: ATT23000.txtMessage: RE: Struts-menu with Tiles   
 Message: RE: Struts-menu with TilesMessage: RE: Struts-menu with
 TilesMessage: RE: Struts-menu with TilesMessage: Re:
 [Tiles] Creating SubTabs (Tabs within Tabs)Message: Re: Example of
 accessing DynaActionFrom properties from within an ActionMessage:
 Re: Mask validation BUG with requiredifMessage: Re:
 tiles:definitions extends attributeMessage: unwanted emty lines
 in produced htmlMessage: JSF-StrutsMessage: RE: JSF-Struts
Message: Nested Mapped PropertiesMessage: Re: Tiles and
 html-elMessage: RE: One-time initializing in struts   
 Message: Nested Radio Buttons + Mutual ExclusionMessage: how does
 Onclick in checkbox work?Message: RE: [OT] how does Onclick in
 checkbox work?  

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



Re: JSF-Struts

2003-03-13 Thread Craig R. McClanahan


On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote:

 Date: Thu, 13 Mar 2003 10:38:29 -0500
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: JSF-Struts

 I'm getting a 'Renderer Not Found for Renderer Type:StrutsHtml' exception
 when I click on the 'Register with the MailReader Demonstration Application'
 link in the JSF-Struts example webapp.


I assume you haven't modified the sample app, and are just trying to run
it, right?

 What's up?


You would get this kind of error message if the ServletContextListener
that is included in the library wasn't run at startup time like it is
supposed to be.  The reference to this listener is embedded in the TLD,
which is in turn embedded in the struts-faces.jar file.

This works fine for me on containers like Tomcat 4.1.18.  What container
are you running?

 Michael

Craig

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



Re: struts include tag broken?

2003-03-13 Thread Ferran Parra
Yup. That did it. I am going to do more tests, at the server and session
level, to see if I can get Tomcat to grab the character set from the user
that launches Tomcat.

But for the time being, changing:

InputStreamReader in = new InputStreamReader(is);

... to:

InputStreamReader in = new InputStreamReader(is,ISO-8859-1);

... does the trick.

I feel like I have tempted the Gods of Struts!
-Bob

- Original Message -
From: Robert Bowen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 4:11 PM
Subject: struts include tag broken?


 This is exactly what's tripping me up, I think! I am trying to include a
 page, using the struts include tag, of a struts forward, but the
included
 page is displayed incorrectly; all the accented and strange characters
 show up as question marks.

 After struggling with the setLocale(), setContentType(), and
 setCharacterEndoing() methods of the request and response objects, trying
to
 use the page directive and meta-tag for content at the jsp level,
installing
 filters at the web.xml level, defining character set environment variables
 for the user that launches Tomcat, and trying every other scrap of code I
 found on the net (including
 String(request.getParameter().getBytes(8859_1), UTF-8)) I have given
up!
 Nothing I do changes anything! The included page will NOT display accented
 characters. This same page, however, when not included, is displayed
 correctly.

 So I was looking at the struts source code wondering how the include tag
 works (at least in 1.1), when I saw the following line:

 InputStreamReader in = new InputStreamReader(is); // FIXME - encoding

 It turns out that there 4 constructors for InputStreamReader, one of which
 accepts as a parameter a character set! But struts uses the default
 constructor which (I imagine) creates an InputStreamReader using the
default
 character set of either the machine or the session.(BTW, everything works
 fine in Windows, it's when I port the app to Linux, which has the american
 character set as its default, that I start to have problems ...)

 Could this be the answer I am looking for? What especially interests me is
 the // FIXME - encoding comment. Does this mean what I think it does,
that
 someone is aware that this should be changed, that you should be able to
 pass the character set parameter?

 I hope so! In the mean time I have decided to make the change myself,
 compile and create a new struts jar file to see if it works. I don't like
 the idea of tinkering with struts source code but I am past desperation!

 If anyone knows anything about this issue I would cede you my first born
to
 know how else it can be resolved. Incidentally, this is NOT a db issue! As
I
 said, the page generated by the struts forward is displayed correctly,
both
 dynamic content from the db as well as static content.

 I'll keep the list informed of my progress.

 Thanks to all,
 Bob




 -
 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: JSF-Struts

2003-03-13 Thread Craig R. McClanahan


On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote:

 Date: Thu, 13 Mar 2003 11:15:51 -0500
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: JSF-Struts

 I had to update the web.xml to be a web application 2.3 and then include:

 listenerlistener-classorg.apache.struts.faces.taglib.LifecycleListener/
 listener-class/listener


If you had to do this, then your servlet/JSP container is broken.  What
are you trying to run on?

Craig

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



[THURSDAY] struts questions

2003-03-13 Thread Bueno Carlos M
Hi, all -- I'm new to struts and I have a few questions. Since you are the
experts I'm sure you will be able to help me.

My boss wants to know how many people are using struts and how long it will
take to build our application using struts as opposed to our current
development process. We currently have a thousand monkeys sitting at a
thousand emacs editors. The application isn't completely designed yet, and
of course I can't release confidential information about our application but
if you could give me an estimate of monkey-hours saved, that would be great.

I was able to download the struts-blank.war file but I am having trouble
setting it up. The first stumbling block was that it is misnamed. It should
be called 'struts-blank.zip' because it is in zip format. I had to open the
file in hexedit to figure that one out. Hopefully the next version will have
the right name???

The other problem I have is that I can't get my application to behave
properly. If the user types in their email address I want to be able to
check that it is a correct one and show the field red while they are typing
if it is not. I have a javascript that checks for the '@' sign but many
people are typing in '[EMAIL PROTECTED]'. Since I don't think so many people would have
the same email address we are losing valuable data. How can struts help me
with this? Will it take many monkey-hours to implement?

Once I unzipped the file I could not find any README or INSTALL file. I
tried the usual 'make; make install' but that did not work. I went out on
the net to find some install instructions and I read one place that said I
just had to stick the zip file inside my tom cat. I do have a cat, but she's
female. Will that make a difference, or does struts only run on male cats?
Does it matter if they are neutered? Does each client need to have a male
cat or just the server?

Thank you for your time,
  Carlos


Re: struts-user Digest 13 Mar 2003 16:26:10 -0000 Issue 2866

2003-03-13 Thread Mark Lowe
can't you click this link at the bottom of each email?

[EMAIL PROTECTED]

Giovedì, 13 mar 2003, alle 18:11 Europe/Rome, Gehlot, Narendra ha 
scritto:

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


  1   2   3   >