different forwards from form

2002-12-03 Thread Marcus Biel
I got a form for editing a data records.
When I hit cancel I want to display an other page then when I hit
submit.

How to do this ?


thx,

marcus

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




Re: different forwards from form

2002-12-03 Thread Gemes Tibor
2002. december 3. 09:37 dátummal Marcus Biel ezt írtad:
 I got a form for editing a data records.
 When I hit cancel I want to display an other page then when I hit
 submit.

 How to do this ?

Read the docs! Take a look at the struts-example.war, or read the struts-tips 
at husted.com: 

http://www.husted.com/struts/tips/014.html

Hth,

Tib

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




RE: [FRIDAY] laser

2002-12-03 Thread Maarten . DeCock
Just reached level 14 :)

-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 29 november 2002 16:33
To: [EMAIL PROTECTED]
Subject: [FRIDAY] laser


I've just found this piece of game, and since then I simply cannot stop 
playing it!

http://hem.passagen.se/bigmoor/laserix/laserix.html

I cannot pass the level13 thou I try hard!

Have a nice day!

Tib

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



RE: different forwards from form

2002-12-03 Thread Andrew Hill
One way is to do a forward from within the action. Ie: both buttons still
submit to same action to start with, but if its detected that it was a
cancel then the action immediately returns an ActionForward that forwards
the request on to the action/jsp/etc... that you want to go to if they hit
cancel.

-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 16:37
To: [EMAIL PROTECTED]
Subject: different forwards from form


I got a form for editing a data records.
When I hit cancel I want to display an other page then when I hit
submit.

How to do this ?


thx,

marcus

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


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




nested checkboxes on sun-solaris

2002-12-03 Thread Friedrich . Bierbaum
is there a known bug using nested checkboxes on a sun solaris ?


It seems that nested checkboxes are not repopulated by struts when submitting a form!
(in the request parameters they do appear, and on WinNT it works properly)


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




RE: On-The-Fly HTML to PDF Conversion

2002-12-03 Thread edgar
I am using iText, a free, straight java tool.  It has some of the
characteristics of html but is it's own beasty.  It is fast and works
well however.

Edgar

-Original Message-
From: Shashikiran M [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 1:16 AM
To: '[EMAIL PROTECTED]'
Subject: On-The-Fly HTML to PDF Conversion


Dear All,

Has anybody worked on on-the-fly conversion of HTML output to PDFs?

The following are the requirements:
1. The site should provide View as PDF link on a particular page. The
page is not a static HTML page. It is a JSP. 2. Clicking on View as
PDF link will open the page that is currently displayed, in the PDF
format. 3. Conversion needs to be done on-the-fly. 4. Environment:
Solaris - WebSphere 4.0.2.

I'm using the Struts Framework. I would also want to know if there is
any easier methods for conversion other than using FOP (an Apache XML
project) and Cocoon.

Help in terms of pointers are also welcome.

Thanks and Regards,
Shashi Kiran


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


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




Web based file storage

2002-12-03 Thread Heligon Sandra

Hi,

I need in my Struts application to access to the local file system, 
in order to create files, download files and display the content of
directories.
I would like to know if someone has already develop functions and
JSP/Tiles
interfaces that allow to access to the file system.  
Thanks a lot in advance.

Sandra


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




Re: different forwards from form

2002-12-03 Thread Marcus Biel
No, my problem is different!

A simple reset would be easy -
but I want to hit reset when I am editing -
when editing and I hit submit, it calls an action,
that updates the record,
then it forwards to a new jsp, that's says:
Your record has been edited successfully.

Now if I add a cancel button, it works,
but also forwards to this same page,
instead of to the regular start page.

marcus

[EMAIL PROTECTED] schrieb:
 
 2002. december 3. 09:37 dátummal Marcus Biel ezt írtad:
  I got a form for editing a data records.
  When I hit cancel I want to display an other page then when I hit
  submit.
 
  How to do this ?
 
 Read the docs! Take a look at the struts-example.war, or read the struts-tips
 at husted.com:
 
 http://www.husted.com/struts/tips/014.html
 
 Hth,
 
 Tib
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: different forwards from form

2002-12-03 Thread Marcus Biel
That's just what I thought would be best.
But how can I see in my Action which button was hit ?



[EMAIL PROTECTED] schrieb:
 
 One way is to do a forward from within the action. Ie: both buttons still
 submit to same action to start with, but if its detected that it was a
 cancel then the action immediately returns an ActionForward that forwards
 the request on to the action/jsp/etc... that you want to go to if they hit
 cancel.
 
 -Original Message-
 From: Marcus Biel [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 16:37
 To: [EMAIL PROTECTED]
 Subject: different forwards from form
 
 I got a form for editing a data records.
 When I hit cancel I want to display an other page then when I hit
 submit.
 
 How to do this ?
 
 thx,
 
 marcus
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Test

2002-12-03 Thread John Yu
Test

--
John Yu


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




RE: different forwards from form

2002-12-03 Thread edgar
Get creative.  You can use form data, i.e. a button value is not
submitted unless a button is clicked.  You can use javascript to set an
arbitrary set of action variables.  You can use a dispatch action.

Have fun with it ;-).

Edgar


-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 4:06 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: Re: different forwards from form


That's just what I thought would be best.
But how can I see in my Action which button was hit ?



[EMAIL PROTECTED] schrieb:
 
 One way is to do a forward from within the action. Ie: both buttons 
 still submit to same action to start with, but if its detected that it

 was a cancel then the action immediately returns an ActionForward that

 forwards the request on to the action/jsp/etc... that you want to go 
 to if they hit cancel.
 
 -Original Message-
 From: Marcus Biel [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 16:37
 To: [EMAIL PROTECTED]
 Subject: different forwards from form
 
 I got a form for editing a data records.
 When I hit cancel I want to display an other page then when I hit 
 submit.
 
 How to do this ?
 
 thx,
 
 marcus
 
 --
 To unsubscribe, e-mail: 
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]

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


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




Re: different forwards from form

2002-12-03 Thread Gemes Tibor
2002. december 3. 10:01 dátummal Marcus Biel ezt írtad:
 No, my problem is different!

No. Your problem is the same.

 Now if I add a cancel button, it works,
 but also forwards to this same page,
 instead of to the regular start page.

If you add a cancel button, you can handle the cancel event by checking 
isCancelled(request) so you can decide where forward to. 
Simplified:

if (isCancelled(request)) 
return mapping.findForward(cancel);

And define a forward named 'cancel'. If you do so you will be forwarded to 
this page. 

Tib

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




[ANNOUNCE] Scioworks Collage v1.0 - JSP Previewing Technology

2002-12-03 Thread John Yu
Dear Struts Users,

We are pleased to announce the release of Scioworks Collage v1.0, a tool 
for previewing JSPs in normal browsers without starting any application 
server or servlet container.

Key Features:
   * Previewing -- Preview JSPs (with custom tags) in normal browsers 
without deploying and starting any application server or servlet container

   * ClickBack technology* -- jump to and highlight the corresponding JSP 
source code when double-clicking a screen location in the browser
   * Taglibs -- able to preview Struts and JSTL taglibs out of the box
   * TagPreview API -- an open API for developing previewers to preview 
any other tag libraries
   * Server-side include -- JSPs included by %@include % and 
jsp:include will appear in-place, just like the final screens
[*] ClickBack feature requires Internet Explorer 5 or above.

Scioworks Collage is currently available as a plug-in for Borland JBuilder 
5 and above and Oracle JDeveloper release 9.0.2 and 9.0.3. Support for 
other IDEs will be available soon.

You can download Collage v1.0 from:

http://www.scioworks.net/servlets/ShowPage?pid=39dp=4

Thank you for your attention.

Sincerely,

Scioworks Technologies - Collage Team


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



Code Generator

2002-12-03 Thread Juan
Hello,

Is there any good code generator that generates source code using Struts 
and JavaBeans or EJBs?
Can be free or commercial.


Thanks in advance,

Juan José Velázquez Garcia
Information System Developer
www.htmlspider.com.br



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



RE: Struts administrative funcs

2002-12-03 Thread Tuncay Baskan (Internet Grubu)


 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 02, 2002 7:00 PM
 To: Struts Users Mailing List
 Subject: Re: Struts administrative funcs
 
 Personally, I use the Ant tasks supplied with Tomcat 4.1 (I'm 
 a command
 line wienie rather than a GUI wienie :-).  I've also factored out the
 time-expensive initialization operations like opening 
 connection pools,
 using the JNDI resources support that Tomcat provides, so typical app
 reload time is a couple of seconds.  I don't feel bad about 
 typing ant
 reload and waiting that long.
 

On Linux or *nixware operating systems I like command line. But on MS
systems it is not enjoying to use a shell.

A few days ago I also decided to get rid of my connection pooling with
webapp
and decided to go with JNDI resource support. But still no success.

Anyways, at the end I hope I will much more enjoy my development time. :)

 
 Craig
 

/tb.



Re: different forwards from form

2002-12-03 Thread Marcus Biel

I thought (isCancelled(request))

would be a user defined method.
Are you sure I can simple use this method,
and he will know the user hit the cancel button ?

marcus

[EMAIL PROTECTED] schrieb:
 
 2002. december 3. 10:01 dátummal Marcus Biel ezt írtad:
  No, my problem is different!
 
 No. Your problem is the same.
 
  Now if I add a cancel button, it works,
  but also forwards to this same page,
  instead of to the regular start page.
 
 If you add a cancel button, you can handle the cancel event by checking
 isCancelled(request) so you can decide where forward to.
 Simplified:
 
 if (isCancelled(request))
 return mapping.findForward(cancel);
 
 And define a forward named 'cancel'. If you do so you will be forwarded to
 this page.
 
 Tib
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: Code Generator

2002-12-03 Thread vellosa

Not sure what you mean by generate, but you could look into teh xDoclet project on 
SourceForge.net


  from:Juan [EMAIL PROTECTED]
  date:Tue, 03 Dec 2002 09:31:09
  to:  [EMAIL PROTECTED]
  subject: Re: Code Generator
 
 Hello,
 
 Is there any good code generator that generates source 
 code using Struts and JavaBeans or EJBs?
 Can be free or commercial.
 
 
 Thanks in advance,
 
 Juan José Velázquez Garcia
 Information System Developer
 www.htmlspider.com.br
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



http://www.amazon.co.uk/exec/obidos/redirect-home?tag=velloscouk-21placement=home_multi.gifsite=amazon

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




Re: different forwards from form

2002-12-03 Thread Gemes Tibor
2002. december 3. 10:22 dátummal Marcus Biel ezt írtad:
 I thought (isCancelled(request))

 would be a user defined method.
 Are you sure I can simple use this method,
 and he will know the user hit the cancel button ?

If the cancel button was generated with html:cancelcancel/html:cancel

Hth,

Tib

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




RE: Dynamically generated forms

2002-12-03 Thread Vipul Sanghi
Just write a custom tag that inherits from text and in there decide to do
this iteration. There you could also control the layout. i.e. side by side,
one above next etc.


-Original Message-
From: Jordan Thomas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 1:16 AM
To: Struts User List
Subject: Dynamically generated forms


Hi All,

I have a form where I want to generate forms dynamically. For instance, I
have a language bean with 3 objects so in my form I have 3 fields i.e.

html:text property=cardNumberfield_en/
html:text property=cardNumberfield_de/
html:text property=cardNumberfield_dk/

When I add an object to the language bean I want to have

html:text property=field_en/
html:text property=field_de/
html:text property=field_dk/
html:text property=field_se/

Is there a way to do this? That is, dynamically genertate the form fields?

All of my data is coming out of a ValidatorForm.

thanks

Jordan


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









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




Design Issue in struts

2002-12-03 Thread Cook, Graham

Can I use struts to perform the following task:

generate a JSP page, but have multiple entry lines on the page. Im not going
to know how many lines the user is going to enter, so i'd like them to have
some kind of way ( maybe a button ) that the user can click on, the page
refreshes (retaining data) and shows a new blank line at the bottom of the
page under the other lines. When im talking lines I mean eg. Name, Location,
DOB, last contact


---

Security Code: 0162

Entry Date:  03/12/2002



NameLocationDOB Last Contact
--- --
--
FredWoking  07/12/1973  11/11/2002
BertWolverhampton   04/11/1976  11/11/2002
{Add}


{Submit}{Reset}
-

Then when the user presses SUBMIT the action is called and all data entered
into a database.

Has anyone got some real world example of this
Ta




 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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




RE: Design Issue in struts

2002-12-03 Thread edgar
Yes, you can use either subforms / nested tags or maps.

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 5:30 AM
To: '[EMAIL PROTECTED]'
Subject: Design Issue in struts



Can I use struts to perform the following task:

generate a JSP page, but have multiple entry lines on the page. Im not
going to know how many lines the user is going to enter, so i'd like
them to have some kind of way ( maybe a button ) that the user can click
on, the page refreshes (retaining data) and shows a new blank line at
the bottom of the page under the other lines. When im talking lines I
mean eg. Name, Location, DOB, last contact


---

Security Code: 0162

Entry Date:  03/12/2002



NameLocationDOB Last Contact
--- --
--
FredWoking  07/12/1973  11/11/2002
BertWolverhampton   04/11/1976  11/11/2002
{Add}


{Submit}{Reset}
-

Then when the user presses SUBMIT the action is called and all data
entered into a database.

Has anyone got some real world example of this
Ta





 This message contains information that may be privileged or
confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended
only for 
the person to whom it is addressed. If you are not the intended
recipient, you 
are not authorized to read, print, retain, copy, disseminate,
distribute, or use 
this message or any part thereof. If you receive this message in error,
please 
notify the sender immediately and delete all copies of this message .




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


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




RE: Design Issue in struts

2002-12-03 Thread shirishchandra . sakhare
Hi,
I have implemented pretty much the same functionality in our application.
U can do this using Struts actions.When the user presses a button,call an 
action.In the action add an empty row to the form(add a empty object to the 
list on form).And then call the same jsp which will just iterate over the list 
as earlier.
//Pseudo code
Form MyForm{
List rowList = new ArrayList();
public Bean getBean(int index){
if(rowList.size  index){
rowList.add(new Bean());
}
return rowList.get(index);
}// getObject
public void setBean(int index,Bean obj){
rowList.setObject(index,obj);
}//setBean
//getter setter for list
public List getRowList (){
}
public void setRowList (List list){
}
}//MyForm

//JSP //
tabletr
logic:iterate name=myForm property=rowList indexId=i
tdhtml:text name=myForm property=%=\bean[\ + i + 
\].name\%/td
tdhtml:text name=myForm property=%=\bean[\ + i + 
\].location\%/td
/logic:iterate
/trtable
So when the action is called, all the data on screen will be preserved as the 
screen data gets repopulated in the form automatically.Then u add a new object 
and the jsp cretes new table with a empty row.

Hope this helps.
Regards,
Shirish


-Original Message-
From: graham.cook [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 11:30 AM
To: struts-user
Subject: Design Issue in struts



Can I use struts to perform the following task:

generate a JSP page, but have multiple entry lines on the page. Im not going
to know how many lines the user is going to enter, so i'd like them to have
some kind of way ( maybe a button ) that the user can click on, the page
refreshes (retaining data) and shows a new blank line at the bottom of the
page under the other lines. When im talking lines I mean eg. Name, Location,
DOB, last contact


---

Security Code: 0162

Entry Date:  03/12/2002



NameLocationDOB Last Contact
--- --
--
FredWoking  07/12/1973  11/11/2002
BertWolverhampton   04/11/1976  11/11/2002
{Add}


{Submit}{Reset}
-

Then when the user presses SUBMIT the action is called and all data entered
into a database.

Has anyone got some real world example of this
Ta





 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or 
use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .




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



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




Re: Struts Form Beans Value Objects

2002-12-03 Thread Pat Quinn
Hi,

I have tried the below it works fine when i fetch the data but when i want 
to update a text field etc i get the following error:

java.lang.IllegalArgumentException: No bean specified
	at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)
	at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
	at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)
	at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
	at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)


any ideas???






From: Patrice [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts Form Beans  Value Objects
Date: Mon, 2 Dec 2002 19:28:00 +0100

I think you can place the VO in your form bean, and have text fields to
update the different properties.
For example, if you have a property header that contains your HeaderVO:
html:text property=header.myProperty/

After submission, the VO in the form bean will contain the data entered by
the user, without additional code.

Hope it helps
Patrice


- Original Message -
From: Pat Quinn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 7:08 PM
Subject: Struts Form Beans  Value Objects


 I have an EJB which returns me a HeaderVO (Value Object) inside this VO 
I
 have an Array List of LineVO's. As you'd except all my Value objects are
 Serializable. Ok now i want to display this data to my client so I will
have
 a header html table and a lines html table. My header and lines both
contain
 text fields to allow for client updates.

 Here's where i'm seeking some assistance: should I * Extract the data 
from
 my headerVO and insert it into a FormBean and then store my linesVO data
as
 a 2Dimensional Array in my form bean.

 Is there a better way to do this without writing extra code to deal with
 conversion between VO's and a Form Bean i.e. can i store the value 
objects
 instead a form bean but yet allow for user updates to the data.

 Your ideas and suggestions would be gratefully appreciated.







 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail


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



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


_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



Novice in desperate need of HELP

2002-12-03 Thread joseph agunpopo
Dear All,

I am a novice in the world of Struts, but as luck
would have it I have been selected to design a web
application using Struts. My mai concer at this
particular time is how to begin and what type of
artefact to produce?
The topic as mentioned above is Developing Web
Applications with Struts.

Please anyone help me, I am lost lost in wonderland.

=

joseph


__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




Struts Log

2002-12-03 Thread To, Wilson
I'm sure this is a simple thing but I cannot find any details about this
anywhere - apologies for affending anyone if this is too simple and thus
clogging up this mailing.
 
I got an error stating A failure occured in the application and the
exception was likely handled. See Struts log to determine more about the
error.  This seems to occur if someone tries to access my system after it
has not been accessed for a while (say 1-2 days).  However, the question is
where is the struts log located and do I need include something in
struts-config.xml to enable it?
 
Thanks in advance 
 
Wilson



Problem: Struts+Modules+jsps under WEB-INF

2002-12-03 Thread Maciej Ko³odziej
Hi,

I started developing an application with Jakarta Struts 1.1. I decided to build it 
using multiple modules (sub-apps) and also hide all jsps under WEB-INF. Thus my 
application structure looks like this:
app/img/
app/css/
app/WEB-INF/
app/WEB-INF/classes/
app/WEB-INF/lib/
app/WEB-INF/jsp/
app/WEB-INF/common/
app/WEB-INF/common/mainScreen.jsp 
...

Now I create an action in stuts-config-common.xml and define it like this:

action forward=/WEB-INF/jsp/common/mainScreen.jsp path=/test
scope=request unknown=false validate=false/

When I want to fire this action I have to type for ex.:

http://localhost:8080/app/common/main.do

But then I get a message:

type Status report

message /common/WEB-INF/jsp/common/mainScreen.jsp


description The requested resource (/common/WEB-INF/jsp/common/mainScreen.jsp) is not 
available.

So the module name is used as context(?) and inserted also before WEB-INF. Why? I 
don't need this.
The module name should be put after jsp, as it is, but not before
WEB-INF!
If I create another action test.do and put in in default module (not
common) this doesn't happen. Supposedly because context then is / not
/common. How do I solve this?

--
MK


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




Re: Struts Log

2002-12-03 Thread Brian Hickey
Wilson,

Logging is dependent on many things. Which version of Struts? What JSP
container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
logging?

It would also help if you showed the actual error message.

Brian

- Original Message -
From: To, Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 7:27 AM
Subject: Struts Log


 I'm sure this is a simple thing but I cannot find any details about this
 anywhere - apologies for affending anyone if this is too simple and thus
 clogging up this mailing.

 I got an error stating A failure occured in the application and the
 exception was likely handled. See Struts log to determine more about the
 error.  This seems to occur if someone tries to access my system after it
 has not been accessed for a while (say 1-2 days).  However, the question
is
 where is the struts log located and do I need include something in
 struts-config.xml to enable it?

 Thanks in advance

 Wilson



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




RE: Problem: Struts+Modules+jsps under WEB-INF

2002-12-03 Thread Vincent PROSPER
To my understanding:

1. Put something like action forward=/mainScreen.jsp... (if I were you, I
wouldn't put any jsp file under WEB-INF, only TLD, XML and external JARs.
common is automatically added as the subapp prefix by the subapp controller
handling your stuts-config-common.xml, and jsp has nothing to do with your
issue here since you put it in app/WEB-INF/common/mainScreen.jsp which
contains no 'jsp' directory).

2. you're right, your module name is used as a prefix (this is the way
subapps work, no way to change this to my knowledge)

3. when putting your test.do directly in your struts-config.xml, you're not
in any subapp, so the corresponding struts action behaves as usual.

I guess you should have something like:

app/img/
app/css/
app/WEB-INF/lib
app/WEB-INF/classes
app/common/
app/common/mainScreen.jsp
app/test.jsp

Hope this helps.

Vince

-Original Message-
From: Maciej Ko³odziej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 1:44 PM
To: struts-user
Subject: Problem: Struts+Modules+jsps under WEB-INF


Hi,

I started developing an application with Jakarta Struts 1.1. I decided to
build it using multiple modules (sub-apps) and also hide all jsps under
WEB-INF. Thus my application structure looks like this:
app/img/
app/css/
app/WEB-INF/
app/WEB-INF/classes/
app/WEB-INF/lib/
app/WEB-INF/jsp/
app/WEB-INF/common/
app/WEB-INF/common/mainScreen.jsp
...

Now I create an action in stuts-config-common.xml and define it like this:

action forward=/WEB-INF/jsp/common/mainScreen.jsp path=/test
scope=request unknown=false validate=false/

When I want to fire this action I have to type for ex.:

http://localhost:8080/app/common/main.do

But then I get a message:

type Status report

message /common/WEB-INF/jsp/common/mainScreen.jsp


description The requested resource
(/common/WEB-INF/jsp/common/mainScreen.jsp) is not available.

So the module name is used as context(?) and inserted also before WEB-INF.
Why? I don't need this.
The module name should be put after jsp, as it is, but not before
WEB-INF!
If I create another action test.do and put in in default module (not
common) this doesn't happen. Supposedly because context then is / not
/common. How do I solve this?

--
MK


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





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




RE: Struts Log

2002-12-03 Thread To, Wilson
Hi Brian,

Thanks for the response. I'm using version 1.0.2 of Struts and 3.2.1 Tomcat
under Windows NT.  I'm not actively doing any logging as such so therefore I
guess I'm not (knowingly) using Log4J or jakarta-commons etc.

The error that is returned in the actual browser is as I mentioned earier:

Error Found
A failure occured in the application and the exception was likely handled.
See Struts log to determine more about the error.

Since the message displayed (some default from Struts?) refers to the Struts
log, I'd thought it was something that is written to automatically.

I hope this helps a little.

Wilson
-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 13:50
To: Struts Users Mailing List
Subject: Re: Struts Log


Wilson,

Logging is dependent on many things. Which version of Struts? What JSP
container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
logging?

It would also help if you showed the actual error message.

Brian

- Original Message -
From: To, Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 7:27 AM
Subject: Struts Log


 I'm sure this is a simple thing but I cannot find any details about this
 anywhere - apologies for affending anyone if this is too simple and thus
 clogging up this mailing.

 I got an error stating A failure occured in the application and the
 exception was likely handled. See Struts log to determine more about the
 error.  This seems to occur if someone tries to access my system after it
 has not been accessed for a while (say 1-2 days).  However, the question
is
 where is the struts log located and do I need include something in
 struts-config.xml to enable it?

 Thanks in advance

 Wilson



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

application/ms-tnef--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Problem: Struts+Modules+jsps under WEB-INF

2002-12-03 Thread edgar
If you make common invisible to the web, i.e.
http://yourdomain/common/yourjsp.jsp is invalid then I agree.
Otherwise you are risking shortcuts bypassing the action classes.  If
you have jsp's that are directly executable by all means put them in a
public space.

Edgar

-Original Message-
From: Vincent PROSPER [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 8:06 AM
To: 'Struts Users Mailing List'; 'Maciej Ko³odziej'
Subject: RE: Problem: Struts+Modules+jsps under WEB-INF


To my understanding:

1. Put something like action forward=/mainScreen.jsp... (if I were
you, I wouldn't put any jsp file under WEB-INF, only TLD, XML and
external JARs. common is automatically added as the subapp prefix by the
subapp controller handling your stuts-config-common.xml, and jsp has
nothing to do with your issue here since you put it in
app/WEB-INF/common/mainScreen.jsp which contains no 'jsp' directory).

2. you're right, your module name is used as a prefix (this is the way
subapps work, no way to change this to my knowledge)

3. when putting your test.do directly in your struts-config.xml, you're
not in any subapp, so the corresponding struts action behaves as usual.

I guess you should have something like:

app/img/
app/css/
app/WEB-INF/lib
app/WEB-INF/classes
app/common/
app/common/mainScreen.jsp
app/test.jsp

Hope this helps.

Vince

-Original Message-
From: Maciej Ko³odziej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 1:44 PM
To: struts-user
Subject: Problem: Struts+Modules+jsps under WEB-INF


Hi,

I started developing an application with Jakarta Struts 1.1. I decided
to build it using multiple modules (sub-apps) and also hide all jsps
under WEB-INF. Thus my application structure looks like this: app/img/
app/css/ app/WEB-INF/ app/WEB-INF/classes/ app/WEB-INF/lib/
app/WEB-INF/jsp/ app/WEB-INF/common/ app/WEB-INF/common/mainScreen.jsp
...

Now I create an action in stuts-config-common.xml and define it like
this:

action forward=/WEB-INF/jsp/common/mainScreen.jsp path=/test
scope=request unknown=false validate=false/

When I want to fire this action I have to type for ex.:

http://localhost:8080/app/common/main.do

But then I get a message:

type Status report

message /common/WEB-INF/jsp/common/mainScreen.jsp


description The requested resource
(/common/WEB-INF/jsp/common/mainScreen.jsp) is not available.

So the module name is used as context(?) and inserted also before
WEB-INF. Why? I don't need this. The module name should be put after
jsp, as it is, but not before WEB-INF! If I create another action
test.do and put in in default module (not
common) this doesn't happen. Supposedly because context then is / not
/common. How do I solve this?

--
MK


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





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


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




RES: Problem: Struts+Modules+jsps under WEB-INF

2002-12-03 Thread Julio Cesar C Neto
Hi, 

If I use this way, 

app/img/
app/css/
app/WEB-INF/lib
app/WEB-INF/classes
app/common/
app/common/mainScreen.jsp
app/test.jsp

How can I protect my JSP from being accessed directly?


Julio Cesar

-Mensagem original-
De: edgar [mailto:[EMAIL PROTECTED]] 
Enviada em: terça-feira, 3 de dezembro de 2002 10:24
Para: 'Struts Users Mailing List'
Assunto: RE: Problem: Struts+Modules+jsps under WEB-INF

If you make common invisible to the web, i.e.
http://yourdomain/common/yourjsp.jsp is invalid then I agree.
Otherwise you are risking shortcuts bypassing the action classes.  If
you have jsp's that are directly executable by all means put them in a
public space.

Edgar

-Original Message-
From: Vincent PROSPER [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 8:06 AM
To: 'Struts Users Mailing List'; 'Maciej Ko³odziej'
Subject: RE: Problem: Struts+Modules+jsps under WEB-INF


To my understanding:

1. Put something like action forward=/mainScreen.jsp... (if I were
you, I wouldn't put any jsp file under WEB-INF, only TLD, XML and
external JARs. common is automatically added as the subapp prefix by the
subapp controller handling your stuts-config-common.xml, and jsp has
nothing to do with your issue here since you put it in
app/WEB-INF/common/mainScreen.jsp which contains no 'jsp' directory).

2. you're right, your module name is used as a prefix (this is the way
subapps work, no way to change this to my knowledge)

3. when putting your test.do directly in your struts-config.xml, you're
not in any subapp, so the corresponding struts action behaves as usual.

I guess you should have something like:

app/img/
app/css/
app/WEB-INF/lib
app/WEB-INF/classes
app/common/
app/common/mainScreen.jsp
app/test.jsp

Hope this helps.

Vince

-Original Message-
From: Maciej Ko³odziej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 1:44 PM
To: struts-user
Subject: Problem: Struts+Modules+jsps under WEB-INF


Hi,

I started developing an application with Jakarta Struts 1.1. I decided
to build it using multiple modules (sub-apps) and also hide all jsps
under WEB-INF. Thus my application structure looks like this: app/img/
app/css/ app/WEB-INF/ app/WEB-INF/classes/ app/WEB-INF/lib/
app/WEB-INF/jsp/ app/WEB-INF/common/ app/WEB-INF/common/mainScreen.jsp
...

Now I create an action in stuts-config-common.xml and define it like
this:

action forward=/WEB-INF/jsp/common/mainScreen.jsp path=/test
scope=request unknown=false validate=false/

When I want to fire this action I have to type for ex.:

http://localhost:8080/app/common/main.do

But then I get a message:

type Status report

message /common/WEB-INF/jsp/common/mainScreen.jsp


description The requested resource
(/common/WEB-INF/jsp/common/mainScreen.jsp) is not available.

So the module name is used as context(?) and inserted also before
WEB-INF. Why? I don't need this. The module name should be put after
jsp, as it is, but not before WEB-INF! If I create another action
test.do and put in in default module (not
common) this doesn't happen. Supposedly because context then is / not
/common. How do I solve this?

--
MK


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





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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002
 


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




RE: Struts Log

2002-12-03 Thread edgar
If struts logging is enabled in web.xml under the init-params then if
you are not actively logging, there is  a log in stderr and stdout.  I
am not familiar with tomcat but I assume you can log stderr and stdout.

Edgar

-Original Message-
From: To, Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 03, 2002 8:15 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Log


Hi Brian,

Thanks for the response. I'm using version 1.0.2 of Struts and 3.2.1
Tomcat under Windows NT.  I'm not actively doing any logging as such so
therefore I guess I'm not (knowingly) using Log4J or jakarta-commons
etc.

The error that is returned in the actual browser is as I mentioned
earier:

Error Found
A failure occured in the application and the exception was likely
handled. See Struts log to determine more about the error.

Since the message displayed (some default from Struts?) refers to the
Struts log, I'd thought it was something that is written to
automatically.

I hope this helps a little.

Wilson
-Original Message-
From: Brian Hickey [mailto:[EMAIL PROTECTED]]
Sent: 03 December 2002 13:50
To: Struts Users Mailing List
Subject: Re: Struts Log


Wilson,

Logging is dependent on many things. Which version of Struts? What JSP
container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
logging?

It would also help if you showed the actual error message.

Brian

- Original Message -
From: To, Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 7:27 AM
Subject: Struts Log


 I'm sure this is a simple thing but I cannot find any details about
this
 anywhere - apologies for affending anyone if this is too simple and
thus
 clogging up this mailing.

 I got an error stating A failure occured in the application and the 
 exception was likely handled. See Struts log to determine more about
the
 error.  This seems to occur if someone tries to access my system
after it
 has not been accessed for a while (say 1-2 days).  However, the
question
is
 where is the struts log located and do I need include something in 
 struts-config.xml to enable it?

 Thanks in advance

 Wilson



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



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




RE: Problem: Struts+Modules+jsps under WEB-INF

2002-12-03 Thread Vincent PROSPER
This was to make things easier (I don't have this kind of trouble since I'm
used to JAAS/role protect my jsp files...).

Vince
-Original Message-
From: Julio Cesar C Neto [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 2:24 PM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RES: Problem: Struts+Modules+jsps under WEB-INF


Hi,

If I use this way,

app/img/
app/css/
app/WEB-INF/lib
app/WEB-INF/classes
app/common/
app/common/mainScreen.jsp
app/test.jsp

How can I protect my JSP from being accessed directly?


Julio Cesar

-Mensagem original-
De: edgar [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 3 de dezembro de 2002 10:24
Para: 'Struts Users Mailing List'
Assunto: RE: Problem: Struts+Modules+jsps under WEB-INF

If you make common invisible to the web, i.e.
http://yourdomain/common/yourjsp.jsp is invalid then I agree.
Otherwise you are risking shortcuts bypassing the action classes.  If
you have jsp's that are directly executable by all means put them in a
public space.

Edgar

-Original Message-
From: Vincent PROSPER [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 8:06 AM
To: 'Struts Users Mailing List'; 'Maciej Ko³odziej'
Subject: RE: Problem: Struts+Modules+jsps under WEB-INF


To my understanding:

1. Put something like action forward=/mainScreen.jsp... (if I were
you, I wouldn't put any jsp file under WEB-INF, only TLD, XML and
external JARs. common is automatically added as the subapp prefix by the
subapp controller handling your stuts-config-common.xml, and jsp has
nothing to do with your issue here since you put it in
app/WEB-INF/common/mainScreen.jsp which contains no 'jsp' directory).

2. you're right, your module name is used as a prefix (this is the way
subapps work, no way to change this to my knowledge)

3. when putting your test.do directly in your struts-config.xml, you're
not in any subapp, so the corresponding struts action behaves as usual.

I guess you should have something like:

app/img/
app/css/
app/WEB-INF/lib
app/WEB-INF/classes
app/common/
app/common/mainScreen.jsp
app/test.jsp

Hope this helps.

Vince

-Original Message-
From: Maciej Ko³odziej [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 1:44 PM
To: struts-user
Subject: Problem: Struts+Modules+jsps under WEB-INF


Hi,

I started developing an application with Jakarta Struts 1.1. I decided
to build it using multiple modules (sub-apps) and also hide all jsps
under WEB-INF. Thus my application structure looks like this: app/img/
app/css/ app/WEB-INF/ app/WEB-INF/classes/ app/WEB-INF/lib/
app/WEB-INF/jsp/ app/WEB-INF/common/ app/WEB-INF/common/mainScreen.jsp
...

Now I create an action in stuts-config-common.xml and define it like
this:

action forward=/WEB-INF/jsp/common/mainScreen.jsp path=/test
scope=request unknown=false validate=false/

When I want to fire this action I have to type for ex.:

http://localhost:8080/app/common/main.do

But then I get a message:

type Status report

message /common/WEB-INF/jsp/common/mainScreen.jsp


description The requested resource
(/common/WEB-INF/jsp/common/mainScreen.jsp) is not available.

So the module name is used as context(?) and inserted also before
WEB-INF. Why? I don't need this. The module name should be put after
jsp, as it is, but not before WEB-INF! If I create another action
test.do and put in in default module (not
common) this doesn't happen. Supposedly because context then is / not
/common. How do I solve this?

--
MK


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





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


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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.422 / Virus Database: 237 - Release Date: 20/11/2002



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





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




Re: Problem: Struts+Modules+jsps under WEB-INF

2002-12-03 Thread Maciej Ko³odziej
Hi,

On 3 dec 2002 you wrote:

e If you make common invisible to the web, i.e.
e http://yourdomain/common/yourjsp.jsp is invalid then I agree.
e Otherwise you are risking shortcuts bypassing the action classes.  If
e you have jsp's that are directly executable by all means put them in a
e public space.

That's exactly what my problem is. Is there a way to both use modules
(sub-apps) and protect jsps under WEB-INF?
In his article Jakarta Struts: Seven Lessons from the Trenches on
onjava.com Chuck Cavaness recommends these solutions, but he doesn't
give any examples for using both of them simultaneously.

-- 
MK


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




[OT] JavaScript navigator close event

2002-12-03 Thread Emmanuel Boudrant

Hi,
Is there, in javascript an event on navigator closed ? I try the body onUnload=... 
but my code is executed at every page change (An that's normal ;). But I want to 
execute code only when the user close the navigator (And his session!), I don't want 
to wait session timeout before reset all the lock associed to this session.

So is there a solution ?

Thx,
-emmanuel



-
Soyez solidaire soutenez l’action du Téléthon avec Yahoo! France.
Cliquez ici pour faire un don !


Re: loading message resources from database?

2002-12-03 Thread Melissa L Kelley

James Mitchell did this. It is called DBMessageResources. You can find the
download here


http://www.open-tools.org/struts-atlanta/downloads/

-- stu: www.stuology.net
It just no longer is plain simple safe fun
when it's the psycho chimp that has the ray gun

Stuology -- A million monkeys can't be wrong


 SUFrom: Pavel Kolesnikov [EMAIL PROTECTED]
 SUReply-To: Struts Users Mailing List [EMAIL PROTECTED]
 SUTo: [EMAIL PROTECTED]
 SUSubject: loading message resources from database?
 SUDate: Mon, 2 Dec 2002 16:55:50 +0100 (CET)
 SU
 SUHello,
 SU
 SUI'd like to allow admins of my application to edit message
 SUresources via web interface. It seems it would be nice to
 SUhave such resources stored in a database instead of
 SUproperties file.
 SU
 SUI see it should be possible to implement loading my resources
 SUfrom database by subclassing MessageResourcesFactory and
 SUMessageResources classes from org.apache.struts.util.
 SU
 SUBut I believe I'm not the first one who needs something
 SUlike that. Don't you know about any open source Struts
 SUextension containing something like that? Or is such feature
 SUplanned in future version of Struts?
 SU
 SUThanks
 SU
 SUPavel
 SU
 SU




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




Multibox

2002-12-03 Thread dlee
Hello,
I'm using struts 1.0.2.
I would like to present an input form on a jsp and part of that would be to
display a number of checkboxes.

Ted Husted writes:

To provide different sets of labels and values, the standard LabelValueBean
class [org.apache.struts.util.LabelValueBean] (since 1.1) can be used with
the multibox control.

  logic:iterate id=item property=items
html:multibox property=selectedItems
  bean:write name=item property=value/
/html:multibox
  bean:write name=item property=label/
  /logic:iterate



  Question: what is items ? An arraylist containing LabelValueBean's ?



  Thanks

  Don







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




Re: Struts Log

2002-12-03 Thread Brian Hickey
Wilson,

If it is a standard install and seeing as it is 1.0.2, it is most likely
that there is no Struts error log file.

Tomcat has log files for Jasper(the JSP compiler), Servlet (servlet inits),
and any mods like mod_jk that you may have installed with Tomcat. These are
populated on startup and don't normally contain errors and will not contain
runtime errors, so no help there.

There is only sterr and stdout. So, in Windows NT, you may use a command
prompt in a window to start Tomcat and it may start in that window or open
its own. In this case, the window itself is stderr and stdout. So you would
see runtime errors that wrote to stderr/stdout in that window. Not much
help, but if the error is generated and writes somewhere, that is where it
will show.

If you don't see anything there, you may need to do some
System.out.println()'s in your code to trace the execution.

The interesting aspect is that you are NOT getting a stack trace. Let us
know if you can see the error anywhere other than the browser.

Brian

- Original Message -
From: To, Wilson [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 8:15 AM
Subject: RE: Struts Log


 Hi Brian,

 Thanks for the response. I'm using version 1.0.2 of Struts and 3.2.1
Tomcat
 under Windows NT.  I'm not actively doing any logging as such so therefore
I
 guess I'm not (knowingly) using Log4J or jakarta-commons etc.

 The error that is returned in the actual browser is as I mentioned earier:

 Error Found
 A failure occured in the application and the exception was likely handled.
 See Struts log to determine more about the error.

 Since the message displayed (some default from Struts?) refers to the
Struts
 log, I'd thought it was something that is written to automatically.

 I hope this helps a little.

 Wilson
 -Original Message-
 From: Brian Hickey [mailto:[EMAIL PROTECTED]]
 Sent: 03 December 2002 13:50
 To: Struts Users Mailing List
 Subject: Re: Struts Log


 Wilson,

 Logging is dependent on many things. Which version of Struts? What JSP
 container? (i.e. Tomcat 4.1.X), are you using Log4J or jakarta-commons
 logging?

 It would also help if you showed the actual error message.

 Brian

 - Original Message -
 From: To, Wilson [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, December 03, 2002 7:27 AM
 Subject: Struts Log


  I'm sure this is a simple thing but I cannot find any details about this
  anywhere - apologies for affending anyone if this is too simple and thus
  clogging up this mailing.
 
  I got an error stating A failure occured in the application and the
  exception was likely handled. See Struts log to determine more about the
  error.  This seems to occur if someone tries to access my system after
it
  has not been accessed for a while (say 1-2 days).  However, the question
 is
  where is the struts log located and do I need include something in
  struts-config.xml to enable it?
 
  Thanks in advance
 
  Wilson
 


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







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


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




RE: [OT] JavaScript navigator close event

2002-12-03 Thread Jarnot Voytek Contr AU HQ/SC
have you tried checking window.closed (it's a boolean) in your onUnload
handler?  Not sure if it'll work, but worth a try. Problem is, it may not
show as true until after the onUnload is done.  If you're opening a new
window for your app, you could always check the closed property from the
parent window...

--Voytek Jarnot

-Original Message-
From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 7:50 AM
To: [EMAIL PROTECTED]
Subject: [OT] JavaScript navigator close event 



Hi,
Is there, in javascript an event on navigator closed ? I try the body
onUnload=... but my code is executed at every page change (An that's
normal ;). But I want to execute code only when the user close the navigator
(And his session!), I don't want to wait session timeout before reset all
the lock associed to this session.

So is there a solution ?

Thx,
-emmanuel



-
Soyez solidaire soutenez l'action du Téléthon avec Yahoo! France.
Cliquez ici pour faire un don !

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




RE: Multibox

2002-12-03 Thread Sri Sankaran


 -Original Message-
 From: dlee [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 03, 2002 8:57 AM
 To: Struts Users Mailing List
 Subject: Multibox
 
 
 Hello,
 I'm using struts 1.0.2.
 I would like to present an input form on a jsp and part of 
 that would be to display a number of checkboxes.
 
 Ted Husted writes:
 
 To provide different sets of labels and values, the standard 
 LabelValueBean class [org.apache.struts.util.LabelValueBean] 
 (since 1.1) can be used with the multibox control.
 
   logic:iterate id=item property=items
 html:multibox property=selectedItems
   bean:write name=item property=value/
 /html:multibox
   bean:write name=item property=label/
   /logic:iterate
 
 
 
   Question: what is items ? An arraylist containing 
 LabelValueBean's ?
 
Not having seen the context of Ted's writing, that would be my guess.  Observe however 
that this will work only in Struts 1.1.  You've said that you are using 1.0.2
 
 
   Thanks
 
   Don
 
Sri
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




RE: [OT] JavaScript navigator close event

2002-12-03 Thread Emmanuel Boudrant

 I just tried the window.closed flag and that don't work, it'always setted to false.
  Jarnot Voytek Contr AU HQ/SC lt;[EMAIL PROTECTED]gt; a écrit : have you 
tried checking window.closed (it's a boolean) in your onUnload
handler? Not sure if it'll work, but worth a try. Problem is, it may not
show as true until after the onUnload is done. If you're opening a new
window for your app, you could always check the closed property from the
parent window...

--Voytek Jarnot

-Original Message-
From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 7:50 AM
To: [EMAIL PROTECTED]
Subject: [OT] JavaScript navigator close event 



Hi,
Is there, in javascript an event on navigator closed ? I try the onUnload=... but 
my code is executed at every page change (An that's
normal ;). But I want to execute code only when the user close the navigator
(And his session!), I don't want to wait session timeout before reset all
the lock associed to this session.

So is there a solution ?

Thx,
-emmanuel



-
Soyez solidaire soutenez l'action du Téléthon avec Yahoo! France.
Cliquez ici pour faire un don !

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



-
Soyez solidaire soutenez l’action du Téléthon avec Yahoo! France.
Cliquez ici pour faire un don !


Re: Design Issue in struts

2002-12-03 Thread Mark
If you're dynamically generating a form, what action would deal with the
form produced?

I have this problem and i'm thinking of using standard java/jsp for this
problem now.. As I'd have to pass an array of values and one form element to
an action. 

Any thoughts on this issue will be gratfully recieved.

Thanks in advance

Mark


On 3-12-2002 12:10, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Hi,
 I have implemented pretty much the same functionality in our application.
 U can do this using Struts actions.When the user presses a button,call an
 action.In the action add an empty row to the form(add a empty object to the
 list on form).And then call the same jsp which will just iterate over the list
 as earlier.
 //Pseudo code
 Form MyForm{
 List rowList = new ArrayList();
 public Bean getBean(int index){
 if(rowList.size  index){
 rowList.add(new Bean());
 }
 return rowList.get(index);
 }// getObject
 public void setBean(int index,Bean obj){
 rowList.setObject(index,obj);
 }//setBean
 //getter setter for list
 public List getRowList (){
 }
 public void setRowList (List list){
 }
 }//MyForm
 
 //JSP //
 tabletr
 logic:iterate name=myForm property=rowList indexId=i
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].name\%/td
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].location\%/td
 /logic:iterate
 /trtable
 So when the action is called, all the data on screen will be preserved as the
 screen data gets repopulated in the form automatically.Then u add a new object
 and the jsp cretes new table with a empty row.
 
 Hope this helps.
 Regards,
 Shirish
 
 
 -Original Message-
 From: graham.cook [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 11:30 AM
 To: struts-user
 Subject: Design Issue in struts
 
 
 
 Can I use struts to perform the following task:
 
 generate a JSP page, but have multiple entry lines on the page. Im not going
 to know how many lines the user is going to enter, so i'd like them to have
 some kind of way ( maybe a button ) that the user can click on, the page
 refreshes (retaining data) and shows a new blank line at the bottom of the
 page under the other lines. When im talking lines I mean eg. Name, Location,
 DOB, last contact
 
 
 ---
 
 Security Code: 0162
 
 Entry Date:  03/12/2002
 
 
 
 NameLocationDOBLast Contact
 -----
 --
 FredWoking07/12/197311/11/2002
 BertWolverhampton04/11/197611/11/2002
 {Add}
 
 
 {Submit} {Reset}
 -
 
 Then when the user presses SUBMIT the action is called and all data entered
 into a database.
 
 Has anyone got some real world example of this
 Ta
 
 
 
 **
 **
 
  This message contains information that may be privileged or confidential and
 is the property of the Cap Gemini Ernst  Young Group. It is intended only for
 the person to whom it is addressed. If you are not the intended recipient, you
 are not authorized to read, print, retain, copy, disseminate, distribute, or
 use 
 this message or any part thereof. If you receive this message in error, please
 notify the sender immediately and delete all copies of this message .
 **
 **
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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




DynaAction Form

2002-12-03 Thread Pat Quinn
Hi all,

I have a java value object (i.e. MyVo) which i add the DynaAction Form 
Below. When i display my jsp it works fine using headerVO.firstName but when 
i submit the page to save user changes i get the following error:

java.lang.IllegalArgumentException: No bean specified
	at 
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816)
	at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)


My Details are as follows:

!-- FORM BEAN DETAILS --
form-beans
form-bean name=MyForm dynamic=true   
type=org.apache.struts.action.DynaActionForm
 form-property name=headerVO type=com.bla.bla.bla.MyVO /
 /form-bean
/form-beans

!-- SAVE ACTION --
action path=/saveHeader type=com.bla.bla.bla.actions.saveHeaderAction 
scope=request name=MyForm validate=true input=/jsp/header.jsp
/action


in my JSP i have the following:
html:text property=headerVO.firstName/


any ideas???









_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



did anyone run beer4all successfully?

2002-12-03 Thread c tang
I downloaded a web app created by Chuck Cavaness from
http://jakarta.apache.org/struts/resources/projects.html
and failed to run it?
I am running struts 1.1b2 and tomcat4.1.12, jdk1.3.1.

The exception I got is

[org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR:
SQLException during the ex
ecution of materializeObject: Table not found: S0002
Table not found: OJB_HL_SEQ
 in statement [SELECT
MAX_KEY,TABLENAME,GRAB_SIZE,FIELDNAME FROM OJB_HL_SEQ
WHER
E (OJB_HL_SEQ.TABLENAME = 'OJB_DLIST' ) AND
(OJB_HL_SEQ.FIELDNAME = 'id' )]
Table not found: S0002 Table not found: OJB_HL_SEQ in
statement [SELECT MAX_KEY,
TABLENAME,GRAB_SIZE,FIELDNAME FROM OJB_HL_SEQ WHERE
(OJB_HL_SEQ.TABLENAME = 'OJB
_DLIST' ) AND (OJB_HL_SEQ.FIELDNAME = 'id' )]
java.sql.SQLException: Table not found: S0002 Table
not found: OJB_HL_SEQ in sta
tement [SELECT MAX_KEY,TABLENAME,GRAB_SIZE,FIELDNAME
FROM OJB_HL_SEQ WHERE (OJB_
HL_SEQ.TABLENAME = 'OJB_DLIST' ) AND
(OJB_HL_SEQ.FIELDNAME = 'id' )]
at org.hsqldb.Trace.getError(Trace.java:226)
at
org.hsqldb.jdbcResultSet.init(jdbcResultSet.java:6595)
at
org.hsqldb.jdbcConnection.executeStandalone(jdbcConnection.java:2951)

at
org.hsqldb.jdbcConnection.execute(jdbcConnection.java:2540)
at
org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:1804)
at
org.hsqldb.jdbcStatement.executeQuery(jdbcStatement.java:199)
at
org.hsqldb.jdbcPreparedStatement.executeQuery(jdbcPreparedStatement.j
ava:391)
at
org.apache.ojb.broker.accesslayer.JdbcAccess.materializeObject(Unknow
n Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getDBObject(Unkn
own Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByIdent
ity(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByExamp
le(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByQuery
(Unknown Source)
at
org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl.getUni
queId(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getUniqueId(Unkn
own Source)
at
org.apache.ojb.odmg.collections.DListImpl.generateNewId(Unknown
Sourc
e)
at
org.apache.ojb.odmg.collections.DListImpl.init(Unknown
Source)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
uery(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
uery(Unknown Source)
at
org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
uery(Unknown Source)
at
org.apache.ojb.odmg.oql.OQLQueryImpl.execute(Unknown
Source)
at
com.cavaness.beer4all.service.Beer4AllOBJService.getFeaturedCatalogs(
Beer4AllOBJService.java:32)
at
com.cavaness.beer4all.catalog.WelcomeAction.execute(WelcomeAction.jav
a:18)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav
a:427)
at
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:17
7)
at
org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:78
)
at
org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:204)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
89)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex

RE: Multibox

2002-12-03 Thread shirishchandra . sakhare
yes..U are right...

-Original Message-
From: donl34 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 2:57 PM
To: struts-user
Cc: donl34
Subject: Multibox


Hello,
I'm using struts 1.0.2.
I would like to present an input form on a jsp and part of that would be to
display a number of checkboxes.

Ted Husted writes:

To provide different sets of labels and values, the standard LabelValueBean
class [org.apache.struts.util.LabelValueBean] (since 1.1) can be used with
the multibox control.

  logic:iterate id=item property=items
html:multibox property=selectedItems
  bean:write name=item property=value/
/html:multibox
  bean:write name=item property=label/
  /logic:iterate



  Question: what is items ? An arraylist containing LabelValueBean's ?



  Thanks

  Don







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



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




Classloader behavior in Struts 1.0.2 and Tomcat 4.1.12

2002-12-03 Thread Jim Coble
I've just seen some surprising behavior in finding Action classes depending
on where I put the struts.jar file and where I put the action class.  Has
anyone else seen this?  Is this how one would expect it to work?  I'm using
Struts 1.0.2 and Tomcat 4.1.12 on a Solaris 8 Sun server.

If I put struts.jar in $CATALINA_HOME/common/lib and the action class for a
particular mapping in $CATALINA_HOME/common/classes/..., all works well.

Likewise, all works well if I put struts.jar in
$CATALINA_HOME/webapps/MyApp/WEB-INF/lib and the action class in
$CATALINA_HOME/webapps/MyApp/WEB-INF/classes/...

However, if I put struts.jar in $CATALINA_HOME/webapps/MyApp/WEB-INF/lib
and the action class in $CATALINA_HOME/common/classes/..., I get a class
not found error for class org/apache/struts/action/Action when it tries
to instantiate my action class.

And, if I put struts.jar in $CATALINA_HOME/common/lib and my action class
in $CATALINA_HOME/webapps/MyApp/WEB-INF/classes/..., I get a class not
found error for my action class when it tries to instantiate the mapping.

Obviously, the work-around is to put both pieces in one place or the other
but I don't understand why that should be the case, assuming I get the
package names right, etc.

I'm guessing that this has something to do with the way in which Tomcat
4.1.12 handles class loading but, if anyone could shed light on this, I
would much appreciate it.

Thanks in advance.
--Jim

==
Jim Coble
Senior Technology Specialist
Center for Instructional Technology
Email: [EMAIL PROTECTED]
Voice: 919-660-5974  Fax: 919-660-5923
Box 90198, Duke University
Durham, NC 27708-0198
==




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




Re: Action mappings, validation and tiles

2002-12-03 Thread Cedric Dumoulin

 Hello,

 See intermixed.

  Cedric

Max Johnson wrote:


Hi,

My project uses ActionMappings for everything. I want all page access to be
routed via the controller so my JSPs are hidden below /WEB-INF.

I'm using both the tiles and validator packages so a typical action mapping
looks something like this:

	action
		path=/admin/UserRegistration
		type=com.dealspark.memorypack.webapp.UserRegistrationAction
	  name=userRegistration
		scope=request
		input=.mp.userRegistration
		validate=true/

This works fine. My problem is that I initially need to present a blank form
(which fails the validation criteria set out in validation.xml). I believe
the recommended approach when all activity is routed via the controlled
requires that a second action mapping be defined. Something like:

	action
		path=/admin/UserRegistrationCreate
		type=org.apache.struts.actions.ForwardAction
		parameter=.mp.userRegistration
	  name=userRegistration
		scope=request
		validate=false/

My problem is that org.apache.struts.actions.ForwardAction does not like
tiles definitions as parameters. A request to /admin/UserRegistrationCreate
throws an exception:

javax.servlet.ServletException: Path .mp.userRegistration does not start
with a / character


 Do you have setup the TilesRequestProcessor and the TilesPlugin 
correctly ? You need the TilesPlugin, which in turn setup the 
TilesRequestProcessor, in order to catch tiles definitions.


It may be that I'm missing the point entirely here but can anyone tell me
how, when using tiles, I can temporarily disable validation to display the
preliminary entry form.


 I think you should be able to call the validation from within your 
action. So, you can do some logic detecting if you need some validation 
or not.


Regards

Max Johnson


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


 



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




Re: Re: Re: struts 1.1. modules examples.

2002-12-03 Thread aduprat . struts
Tahnks for help.
I've seen the struts 1.1 migrating article But there is no example dealing with 
struts config.xml file.
I'm currently downloading an eval version of camino in order to see how it worswith 
modules...


Message d'origine
De: Dan Tran [EMAIL PROTECTED]
A: Struts Users Mailing List [EMAIL PROTECTED]
Sujet: Re: Re: struts 1.1. modules examples.
Date: Mon, 2 Dec 2002 20:55:25 -0800

http://www.scioworks.com

has an example of Struts module

-D
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 10:04 AM
Subject: Re: Re: struts 1.1. modules examples.


You can get some doc here :
http://jakarta.apache.org/struts/userGuide/building_controller.html#dd_confi
g_modules

But there are no example of what i was asking for...

Message d'origine
Date: Mon, 02 Dec 2002 10:38:01 -0600
De: Hanasaki JiJi [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

that rocks!  wehre can i get docs on this and the xamples?

[EMAIL PROTECTED] wrote:
 Modules are struts 1.1 sub webapps.
 This means you can part your webapp into fragments if it's going larger.
 Then each developpement team can work on a part of the webapp, use as
many struts-config as parts of the webapp etc...


 Message d'origine

Date: Mon, 02 Dec 2002 09:53:11 -0600
De: Hanasaki JiJi [EMAIL PROTECTED]
A: [EMAIL PROTECTED]
Sujet: Re: struts 1.1. modules examples.

What are modules?

[EMAIL PROTECTED] wrote:

Hello all,

I try to use struts 1.1 modules.
I will be glad if somebody tells me how to find examples of :
- how to declare an action un a struts-config.xml module file ie what is
the pattern of the path? (path=/myModuleName/myActionName ?)
- how to invoque a module action (html:form
action/myModule/myAction.do... ?)
- what is the pattern for the forward argument (forward name=succes
path=/myModule/myJpsPage.jsp ?)

() are only my hypothesis...

thanks a lots for any advice.

Alexandre.


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=




 -
 NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
 Web/Wap : www.netcourrier.com
 Téléphone/Fax : 08 92 69 00 21 (0,34 #8364; TTC/min)
 Minitel: 3615 NETCOURRIER (0,15 #8364; TTC/min)


--
=
= Management is doing things right; leadership is doing the =
=   right things.- Peter Drucker=
=___=
= http://www.sun.com/service/sunps/jdc/javacenter.pdf   =
=  www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone  =
=



-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)


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

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



-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
Minitel: 3615 NETCOURRIER (0,15 € TTC/min)


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




Re: did anyone run beer4all successfully?

2002-12-03 Thread Chuck Cavaness
I just downloaded it and ran it with the environment that you mentioned and it worked 
fine. Make sure that you read the readme.first file included with the download. You 
need to copy the beer4.properties, .script and .data files to a directory and then 
update the dbalias attribute in the repository.xml file with that directory. 

Email me personally if this doesn't work and I'll help you get it going.

Chuck
 
 From: c tang [EMAIL PROTECTED]
 Date: 2002/12/03 Tue AM 09:20:18 EST
 To: [EMAIL PROTECTED]
 Subject: did anyone run beer4all successfully?
 
 I downloaded a web app created by Chuck Cavaness from
 http://jakarta.apache.org/struts/resources/projects.html
 and failed to run it?
 I am running struts 1.1b2 and tomcat4.1.12, jdk1.3.1.
 
 The exception I got is
 
 [org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR:
 SQLException during the ex
 ecution of materializeObject: Table not found: S0002
 Table not found: OJB_HL_SEQ
  in statement [SELECT
 MAX_KEY,TABLENAME,GRAB_SIZE,FIELDNAME FROM OJB_HL_SEQ
 WHER
 E (OJB_HL_SEQ.TABLENAME = 'OJB_DLIST' ) AND
 (OJB_HL_SEQ.FIELDNAME = 'id' )]
 Table not found: S0002 Table not found: OJB_HL_SEQ in
 statement [SELECT MAX_KEY,
 TABLENAME,GRAB_SIZE,FIELDNAME FROM OJB_HL_SEQ WHERE
 (OJB_HL_SEQ.TABLENAME = 'OJB
 _DLIST' ) AND (OJB_HL_SEQ.FIELDNAME = 'id' )]
 java.sql.SQLException: Table not found: S0002 Table
 not found: OJB_HL_SEQ in sta
 tement [SELECT MAX_KEY,TABLENAME,GRAB_SIZE,FIELDNAME
 FROM OJB_HL_SEQ WHERE (OJB_
 HL_SEQ.TABLENAME = 'OJB_DLIST' ) AND
 (OJB_HL_SEQ.FIELDNAME = 'id' )]
 at org.hsqldb.Trace.getError(Trace.java:226)
 at
 org.hsqldb.jdbcResultSet.init(jdbcResultSet.java:6595)
 at
 org.hsqldb.jdbcConnection.executeStandalone(jdbcConnection.java:2951)
 
 at
 org.hsqldb.jdbcConnection.execute(jdbcConnection.java:2540)
 at
 org.hsqldb.jdbcStatement.fetchResult(jdbcStatement.java:1804)
 at
 org.hsqldb.jdbcStatement.executeQuery(jdbcStatement.java:199)
 at
 org.hsqldb.jdbcPreparedStatement.executeQuery(jdbcPreparedStatement.j
 ava:391)
 at
 org.apache.ojb.broker.accesslayer.JdbcAccess.materializeObject(Unknow
 n Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getDBObject(Unkn
 own Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByIdent
 ity(Unknown Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByExamp
 le(Unknown Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getObjectByQuery
 (Unknown Source)
 at
 org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl.getUni
 queId(Unknown Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getUniqueId(Unkn
 own Source)
 at
 org.apache.ojb.odmg.collections.DListImpl.generateNewId(Unknown
 Sourc
 e)
 at
 org.apache.ojb.odmg.collections.DListImpl.init(Unknown
 Source)
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:232)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
 uery(Unknown Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
 uery(Unknown Source)
 at
 org.apache.ojb.broker.singlevm.PersistenceBrokerImpl.getCollectionByQ
 uery(Unknown Source)
 at
 org.apache.ojb.odmg.oql.OQLQueryImpl.execute(Unknown
 Source)
 at
 com.cavaness.beer4all.service.Beer4AllOBJService.getFeaturedCatalogs(
 Beer4AllOBJService.java:32)
 at
 com.cavaness.beer4all.catalog.WelcomeAction.execute(WelcomeAction.jav
 a:18)
 at
 org.apache.struts.action.RequestProcessor.processActionPerform(Reques
 tProcessor.java:446)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
 va:266)
 at
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
 2)
 at
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
 atcher.java:684)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
 ispatcher.java:432)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
 patcher.java:356)
 at
 org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.jav
 a:427)
 at
 org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:17
 7)
 at
 org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:78
 )
 at
 org.apache.jsp.index_jsp._jspService(index_jsp.java:54)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 

Populate too much ...

2002-12-03 Thread Xavier Combelle

In MyAction1 I set a field of a form MyForm at null.
The I make a forward to MyAction2.
And when MyAction2 read the field, it is set with 
wich were before MyAction1 reseted it.

It seems that is because the struts framework
execute the populate between the MyAction1 and the MyAction2.
So I set the attribute redirect at true 
and the field still reseted.

So I'm perfectly happy, my project work, 
but I am still a little bit worried,
Is it really necessary to ask the client
to execute a redirect, since all the treatment
is done on the server side ?


Regards,
Xavier


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




RE: Obtaining the ActionServlet context from a utility class

2002-12-03 Thread Brian DeLuca
 
How are you instantiating this factory class? Ie When?  

you should be able to call getServlet().getServletContext() to pass the servlet 
context to your factory.

b-



 --- On Sun 12/01, Jonathan Holloway  [EMAIL PROTECTED]  wrote:From: Jonathan Holloway 
[mailto: [EMAIL PROTECTED]]To: [EMAIL PROTECTED], [EMAIL PROTECTED]: 
Mon, 2 Dec 2002 01:13:22 -Subject: RE: Obtaining the ActionServlet context from a 
utility classI'm embedding the attributes themselves in the struts-config file and
passing these to a custom struts plugin that I've created.  I then
embed these attributes in the servlet context on startup of the class
(i.e. in the init method).  

The thing is I have another factory class that needs access to the
servlet
context and that's the problem I have, getting hold of the action
servlet
before obtaining the servlet context to retrieve the attributes.

I sit possible just to embed the functionality of my factory class in my
plugin class and simply call the methods in the plugin class.  I didn't
think this was the right way hence the creation of a factory class and
a plugin class to do the job.

I don't want to use the utility in non Struts related classes either,
this is purely for my Struts action classes use.

Jon.

-Original Message-
From: Brian DeLuca [mailto:[EMAIL PROTECTED]] 
Sent: 01 December 2002 23:56
To: [EMAIL PROTECTED]
Subject: RE: Obtaining the ActionServlet context from a utility class

 



To use it in a utility class would mean you have to import the http
packages into your utility class -- not a good practice since other
projects, that are not web oriented may want to use them.

Why not just pass the attribute as a parameter to the method?



 --- On Sun 12/01, Jonathan Holloway  [EMAIL PROTECTED]  wrote:From:
Jonathan Holloway [mailto: [EMAIL PROTECTED]]To:
[EMAIL PROTECTED]: Sun, 1 Dec 2002 19:47:20
-Subject: Obtaining the ActionServlet context from a utility
classDoes anybody know how to get hold of the action servlet from a
utility
class
so to get an attribute from the servlet context?  I'm basically trying
to do
this from a utility class but don't know how to go about it.
 
Jon.
 
*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*
 


___
Can a Web portal forever change your life?
Win up to $25 Million on iWon - click here!


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



___
Can a Web portal forever change your life?
Win up to $25 Million on iWon - click here!



Re: Struts Form Beans Value Objects

2002-12-03 Thread Jeff_Mychasiw

I do this often and it works well.
The only thing I always forget to do if initialize the Vo

Ensure this is done in the form Bean:
MyValueObject myVo = new MyValueObject();

Hope this helps.




Pat Quinn [EMAIL PROTECTED] on 12/03/2002 05:23:05 AM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:[EMAIL PROTECTED]
cc:

Subject:Re: Struts Form Beans  Value Objects


Hi,

I have tried the below it works fine when i fetch the data but when i want
to update a text field etc i get the following error:

java.lang.IllegalArgumentException: No bean specified
 at
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:816)

 at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:846)
 at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:726)
 at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:978)
 at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:779)

 at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:246)

 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)


any ideas???






From: Patrice [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Struts Form Beans  Value Objects
Date: Mon, 2 Dec 2002 19:28:00 +0100

I think you can place the VO in your form bean, and have text fields to
update the different properties.
For example, if you have a property header that contains your HeaderVO:
html:text property=header.myProperty/

After submission, the VO in the form bean will contain the data entered by
the user, without additional code.

Hope it helps
Patrice


- Original Message -
From: Pat Quinn [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 7:08 PM
Subject: Struts Form Beans  Value Objects


  I have an EJB which returns me a HeaderVO (Value Object) inside this VO
I
  have an Array List of LineVO's. As you'd except all my Value objects
are
  Serializable. Ok now i want to display this data to my client so I will
have
  a header html table and a lines html table. My header and lines both
contain
  text fields to allow for client updates.
 
  Here's where i'm seeking some assistance: should I * Extract the data
from
  my headerVO and insert it into a FormBean and then store my linesVO
data
as
  a 2Dimensional Array in my form bean.
 
  Is there a better way to do this without writing extra code to deal
with
  conversion between VO's and a Form Bean i.e. can i store the value
objects
  instead a form bean but yet allow for user updates to the data.
 
  Your ideas and suggestions would be gratefully appreciated.
 
 
 
 
 
 
 
  _
  Tired of spam? Get advanced junk mail protection with MSN 8.
  http://join.msn.com/?page=features/junkmail
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 


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


_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail


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








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




RE: Classloader behavior in Struts 1.0.2 and Tomcat 4.1.12

2002-12-03 Thread Sri Sankaran
Ah! The wonderful world of ClassLoaders!  

What you are seeing is expected behavior.  The manual at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html should explain 
it all.

Sri

 -Original Message-
 From: Jim Coble [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 03, 2002 9:27 AM
 To: [EMAIL PROTECTED]
 Subject: Classloader behavior in Struts 1.0.2 and Tomcat 4.1.12
 
 
 I've just seen some surprising behavior in finding Action 
 classes depending on where I put the struts.jar file and 
 where I put the action class.  Has anyone else seen this?  Is 
 this how one would expect it to work?  I'm using Struts 1.0.2 
 and Tomcat 4.1.12 on a Solaris 8 Sun server.
 
 If I put struts.jar in $CATALINA_HOME/common/lib and the 
 action class for a particular mapping in 
 $CATALINA_HOME/common/classes/..., all works well.
 
 Likewise, all works well if I put struts.jar in 
 $CATALINA_HOME/webapps/MyApp/WEB-INF/lib and the action class 
 in $CATALINA_HOME/webapps/MyApp/WEB-INF/classes/...
 
 However, if I put struts.jar in 
 $CATALINA_HOME/webapps/MyApp/WEB-INF/lib
 and the action class in $CATALINA_HOME/common/classes/..., I 
 get a class not found error for class 
 org/apache/struts/action/Action when it tries to 
 instantiate my action class.
 
 And, if I put struts.jar in $CATALINA_HOME/common/lib and my 
 action class in 
 $CATALINA_HOME/webapps/MyApp/WEB-INF/classes/..., I get a 
 class not found error for my action class when it tries to 
 instantiate the mapping.
 
 Obviously, the work-around is to put both pieces in one place 
 or the other but I don't understand why that should be the 
 case, assuming I get the package names right, etc.
 
 I'm guessing that this has something to do with the way in 
 which Tomcat 4.1.12 handles class loading but, if anyone 
 could shed light on this, I would much appreciate it.
 
 Thanks in advance.
 --Jim
 
 ==
 Jim Coble
 Senior Technology Specialist
 Center for Instructional Technology
 Email: [EMAIL PROTECTED]
 Voice: 919-660-5974  Fax: 919-660-5923
 Box 90198, Duke University
 Durham, NC 27708-0198
 ==
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




LookupDispatchAction

2002-12-03 Thread Cook, Graham

When using LookupDispatchAction for a page with multiple buttons. ie SUBMIT,
SEARCH, etc...
How can you turn off the validation on the form when clicking on the SEARCH
button. (The user is filling a form in top down and hasnt filled in the
fields below the SEARCH button)?




 This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message .



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




RE: LookupDispatchAction

2002-12-03 Thread Darren Hill
Make sure validation=false in your strus-config.xml

And then .. do a form.validate(x,y); in only those actions you wish to
validate in.

Darren.

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]]
Sent: December 3, 2002 10:08 AM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction



When using LookupDispatchAction for a page with multiple buttons. ie SUBMIT,
SEARCH, etc...
How can you turn off the validation on the form when clicking on the SEARCH
button. (The user is filling a form in top down and hasnt filled in the
fields below the SEARCH button)?





 This message contains information that may be privileged or confidential
and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for 
the person to whom it is addressed. If you are not the intended recipient,
you 
are not authorized to read, print, retain, copy, disseminate, distribute, or
use 
this message or any part thereof. If you receive this message in error,
please 
notify the sender immediately and delete all copies of this message .




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

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




html:submit question

2002-12-03 Thread Kevin HaleBoyes
I have a couple of html:submit elements on one html:form.
How do I distinguish between the different buttons?

Specifically, I have

 html:submit property=operationEdit Loan/html:submit
 html:submit property=operationReject Loan/html:submit

The form bean has a setOpereration(String) setter method which
is called with the text of the button (ie, Edit Loan)
when the form is submitted.

When I look at the HTML that is rendered in the browser, I see that
the property attribute becomes the name attribute of the input
element.

The way it works now, I have to compare the value of the operation
property of the form bean against the string that is displayed to
the user.  That seems a bit fragile - suppose the customer wants the
Reject Loan to be Cancel Loan instead.  I'd have to change code
in my action to effect the change.

I'm looking for an attribute to html:submit that is the value that
gets set to the property (operation).  Is there such a thing.

I want to avoid having a different form-bean-attribute for each
submit tag (like operation1, operation2, etc.).

Thanks,
Kevin.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




1.1b3?

2002-12-03 Thread Andy Kriger
I noticed that the nightly docs are labelled 1.1-b3-dev (maybe this is
nothing new and I'm just unobservant). Is there a b3 milestone build coming
soon? Is there a changes file that docs functional changes btw milestones?
(as opposed to the diffs btw nightly builds)

thx
andy



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




Re: html:submit question

2002-12-03 Thread Gemes Tibor
2002. december 3. 16:30 dátummal Kevin HaleBoyes ezt írtad:

 The way it works now, I have to compare the value of the operation
 property of the form bean against the string that is displayed to
 the user.  That seems a bit fragile - suppose the customer wants the
 Reject Loan to be Cancel Loan instead.  I'd have to change code
 in my action to effect the change.

Use LookupDispatchAction then. 

Tib

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




problem with select tag

2002-12-03 Thread meissa . Sakho
hi all,

I've a trouble while using the html select tag.

when a use the select tag with the fragment code below,
everything works well

html:select  styleClass=listBox property='fundCodes' size=10 multiple=
true
html:options name='fundOptionCodes'
labelName='fundOptionLabels' /

fundCodes is a type of String[] and fundOptionCodes and fundOptionLabels
are both
ArrayList.

The problem occurs when I try to get the same result from my action form.

the code that does not works is here :

html:select  styleClass=listBox property='selectedCodes' size=10
multiple=true
html:options labelName='selectedFundLabels'
labelProperty='selectedFundCodes' /
/html:select


selectedFundLabels and selectedFundCodes are both of types ArrayList of my
ActionForm
and selectedCodes is of type String[].

for all attributes, getter and setter are provided.

I dont know why this code is not working and I really need to be able to
populate my values from the ActionForm.

Can someone tells me where my failure is from

thanks in advance.

Meissa



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




Re: 1.1b3?

2002-12-03 Thread David Graham
It's labeled that because the next release will be beta 3.  There's been 
talk on the dev list indicating various committers are anxious to get it 
out.  All help is appreciated.

David






From: Andy Kriger [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: 1.1b3?
Date: Tue, 3 Dec 2002 10:39:12 -0500

I noticed that the nightly docs are labelled 1.1-b3-dev (maybe this is
nothing new and I'm just unobservant). Is there a b3 milestone build coming
soon? Is there a changes file that docs functional changes btw milestones?
(as opposed to the diffs btw nightly builds)

thx
andy



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


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



RE: problem with select tag

2002-12-03 Thread Sri Sankaran
Can you elaborate on :

1) Where is the data coming from for the working version?
2) What do you mean by not working?  Does it display an empty list?  Does it crash?

Sri

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 03, 2002 10:38 AM
 To: [EMAIL PROTECTED]
 Subject: problem with select tag
 
 
 hi all,
 
 I've a trouble while using the html select tag.
 
 when a use the select tag with the fragment code below, 
 everything works well
 
 html:select  styleClass=listBox property='fundCodes' 
 size=10 multiple= true
 html:options name='fundOptionCodes'
 labelName='fundOptionLabels' /
 
 fundCodes is a type of String[] and fundOptionCodes and 
 fundOptionLabels are both ArrayList.
 
 The problem occurs when I try to get the same result from my 
 action form.
 
 the code that does not works is here :
 
 html:select  styleClass=listBox property='selectedCodes' 
 size=10 multiple=true
 html:options labelName='selectedFundLabels'
 labelProperty='selectedFundCodes' /
 /html:select
 
 
 selectedFundLabels and selectedFundCodes are both of types 
 ArrayList of my ActionForm and selectedCodes is of type String[].
 
 for all attributes, getter and setter are provided.
 
 I dont know why this code is not working and I really need to 
 be able to populate my values from the ActionForm.
 
 Can someone tells me where my failure is from
 
 thanks in advance.
 
 Meissa
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




Working with checkboxes

2002-12-03 Thread Smith, Johnathan M.
I have a page that is going to have a number(any number) of row which the
client can check off rows to be updated.  How do I setup my bean to handle
this?




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




RE: Looking for Struts powerpoint slides

2002-12-03 Thread Chappell, Simon P
Snap!

I have just posted the PowerPoint presentation that I gave yesterday to the CS-495 
Seminar Series class at UW Eau Claire on the Struts page of my web site:

http://simonpeter.com/techie/java/struts/

This was not a Teach you to program with Struts talk, rather a set of notes about 
our experiences implementing a project using Struts and what we ended up doing/using 
that worked well for us in the real world.

I hope that this will be helpful to someone. I will try to get it converted to PDF or 
HTML, but no promises on timeframe.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: Looking for Struts powerpoint slides





I put together a set of Powerpoints for use in presenting Struts to a
reasonably non-technical audience. It is intended really as a 
management
presentation, but I'm sure you could reuse some of the slides.

If you add slides for Tiles or to add more detail for 
developers, plese let
me know and I'll incorporate them.

The presentation is on the website for my new book Struts Kick Start
which shuld be available from Amazon soon - the address is:

http://www.strutskickstart.com

Best of luck,

Kevin





Steven Davelaar [EMAIL PROTECTED] on 12/02/2002 02:38:37 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:struts [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:Looking for Struts powerpoint slides


Hi,

I need to put together a powerpoint presentation to introduce 
Struts 1.1
and Tiles to an audience of Java web developers.
I am sure this has been done before, so I was hoping may be 
somebody out
there is willing to share his/her own slides with me.

Complete presentations, or just a couple of slides, it is all welcome.

May be you can send it to me directly, at 
[EMAIL PROTECTED], so
we do not annoy subscribers of this mailing list with large 
attachments.

Thanks in advance!
Steven.


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






---

This e-mail message (including attachments, if any) is 
intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and 
exempt from
disclosure.  If you are not the intended recipient, you are 
notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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



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




Re: html:submit question

2002-12-03 Thread Kevin HaleBoyes

--- Gemes Tibor [EMAIL PROTECTED] wrote:
 2002. december 3. 16:30 dátummal Kevin HaleBoyes ezt írtad:
 
  The way it works now, I have to compare the value of the
 operation
  property of the form bean against the string that is displayed to
  the user.  That seems a bit fragile - suppose the customer wants
 the
  Reject Loan to be Cancel Loan instead.  I'd have to change
 code
  in my action to effect the change.
 
 Use LookupDispatchAction then. 

Wonderful!  That is it exactly!
Thanks

 Tib

Kevin.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Security roles with Struts

2002-12-03 Thread Elena Neroslavskaya
Hello all,
I have succeeded to configure DB security realm for JBoss container it works
for simple JSP solution,

Bu I have problems to make it work with Struts !

Could anybody please be so kind and post here an example
how to configure Struts to use Container Managed Roles.

And post here your web.xml ans struts-config.xml ?

Thank you very much




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




Réf. : RE: problem with select tag

2002-12-03 Thread meissa . Sakho
|-+
| |   Sri Sankaran   |
| |   Sri.Sankaran@sas|
| |   .com|
| ||
| |   03/12/2002 16:45 |
| |   Veuillez répondre|
| |   à Struts Users  |
| |   Mailing List|
| ||
|-+
  
---|
  |
   |
  |   Pour :Struts Users Mailing List [EMAIL PROTECTED]   
   |
  |   cc : 
   |
  |   Objet :   RE: problem with select tag
   |
  
---|







1) for the working version, datas are comming from the session and
2) I mean by not working that it display an empty list.
and when view the generated html source code, there is no option tag.

Can you elaborate on :

1) Where is the data coming from for the working version?
2) What do you mean by not working?  Does it display an empty list?  Does
it crash?

Sri

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 10:38 AM
 To: [EMAIL PROTECTED]
 Subject: problem with select tag


 hi all,

 I've a trouble while using the html select tag.

 when a use the select tag with the fragment code below,
 everything works well

 html:select  styleClass=listBox property='fundCodes'
 size=10 multiple= true
 html:options name='fundOptionCodes'
 labelName='fundOptionLabels' /

 fundCodes is a type of String[] and fundOptionCodes and
 fundOptionLabels are both ArrayList.

 The problem occurs when I try to get the same result from my
 action form.

 the code that does not works is here :

 html:select  styleClass=listBox property='selectedCodes'
 size=10 multiple=true
 html:options labelName='selectedFundLabels'
 labelProperty='selectedFundCodes' /
 /html:select


 selectedFundLabels and selectedFundCodes are both of types
 ArrayList of my ActionForm and selectedCodes is of type String[].

 for all attributes, getter and setter are provided.

 I dont know why this code is not working and I really need to
 be able to populate my values from the ActionForm.

 Can someone tells me where my failure is from

 thanks in advance.

 Meissa



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



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







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




Re: bean:define for value in properties file

2002-12-03 Thread Michael Lee
Is there a way in 1.0.2?
thanks,
Mike

- Original Message -
From: Joe Germuska [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 02, 2002 5:33 PM
Subject: Re: bean:define for value in properties file


 At 5:08 PM -0500 2002/12/02, Michael Lee wrote:
 Not view it, set it to a pageContext variable.
 thanks though,

 bean:define id=pageTitle
bean:message key=page.title /
 /bean:define

 Since Struts 1.1 (I think) bean:define can use its body content to
 define a literal String bean.

 Joe



 Mike
 
 - Original Message -
 From: Andrew B Forman [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 5:03 PM
 Subject: RE: bean:define for value in properties file
 
 
   bean:message key=page.title /
 

http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageT
a
   g.html
 
   a
 
-Original Message-
From: Michael Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:52 PM
To: Struts Users Mailing List
Subject: bean:define for value in properties file
   
   
I have a value in my ApplicationResources.properties called
page.title=Customer Information
I want to have this value available in the page context. I would
like to use a struts tag to do so. If not, I have to use a
scriptlet (which I try to avoid).
here is what I'd like to do
bean:define id=pageTitle value=page.title/
any ideas?
thanks,
Mike
 
 
   --
   To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


 --
 --
 * Joe Germuska{ [EMAIL PROTECTED] }
 It's pitiful, sometimes, if they've got it bad. Their eyes get
 glazed, they go white, their hands tremble As I watch them I
 often feel that a dope peddler is a gentleman compared with the man
 who sells records.
 --Sam Goody, 1956

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


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




Re: Classloader behavior in Struts 1.0.2 and Tomcat 4.1.12

2002-12-03 Thread Craig R. McClanahan


On Tue, 3 Dec 2002, Jim Coble wrote:

 Date: Tue, 3 Dec 2002 09:27:14 -0500
 From: Jim Coble [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Classloader behavior in Struts 1.0.2 and Tomcat 4.1.12

 I've just seen some surprising behavior in finding Action classes depending
 on where I put the struts.jar file and where I put the action class.  Has
 anyone else seen this?  Is this how one would expect it to work?  I'm using
 Struts 1.0.2 and Tomcat 4.1.12 on a Solaris 8 Sun server.

 If I put struts.jar in $CATALINA_HOME/common/lib and the action class for a
 particular mapping in $CATALINA_HOME/common/classes/..., all works well.

 Likewise, all works well if I put struts.jar in
 $CATALINA_HOME/webapps/MyApp/WEB-INF/lib and the action class in
 $CATALINA_HOME/webapps/MyApp/WEB-INF/classes/...

 However, if I put struts.jar in $CATALINA_HOME/webapps/MyApp/WEB-INF/lib
 and the action class in $CATALINA_HOME/common/classes/..., I get a class
 not found error for class org/apache/struts/action/Action when it tries
 to instantiate my action class.

 And, if I put struts.jar in $CATALINA_HOME/common/lib and my action class
 in $CATALINA_HOME/webapps/MyApp/WEB-INF/classes/..., I get a class not
 found error for my action class when it tries to instantiate the mapping.

 Obviously, the work-around is to put both pieces in one place or the other
 but I don't understand why that should be the case, assuming I get the
 package names right, etc.

 I'm guessing that this has something to do with the way in which Tomcat
 4.1.12 handles class loading but, if anyone could shed light on this, I
 would much appreciate it.


Struts 1.0.2 will absolutely *NOT* work if you put struts.jar anywhere
other than in the webapp's /WEB-INF/lib directory.  Struts 1.1 *should*
work in this scenario, but there are no guarantees.

Lots of people (including me) run Struts 1.0.2 apps on Tomcat 4.1.12
without problems, using the standard approach of including both struts.jar
and the application classes inside the webapp.  Does the standard Struts
example app work for you?  Do you possibly have struts.jar or your
application classes in the Java extensions directory?

 Thanks in advance.
 --Jim

Craig


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




RE: Re: Design Issue in struts

2002-12-03 Thread shirishchandra . sakhare
What u mean by dynamically generating a form?
Its a normal form(Extends ActionForm).
And the action to deal with will be what ever action u define to achieve this 
functionality.It will be a very simple action.
Home this clarifies the confusion.

regards,
Shirish

-Original Message-
From: marklowe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 3:11 PM
To: struts-user
Cc: marklowe
Subject: Re: Design Issue in struts


If you're dynamically generating a form, what action would deal with the
form produced?

I have this problem and i'm thinking of using standard java/jsp for this
problem now.. As I'd have to pass an array of values and one form element to
an action. 

Any thoughts on this issue will be gratfully recieved.

Thanks in advance

Mark


On 3-12-2002 12:10, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Hi,
 I have implemented pretty much the same functionality in our application.
 U can do this using Struts actions.When the user presses a button,call an
 action.In the action add an empty row to the form(add a empty object to the
 list on form).And then call the same jsp which will just iterate over the list
 as earlier.
 //Pseudo code
 Form MyForm{
 List rowList = new ArrayList();
 public Bean getBean(int index){
 if(rowList.size  index){
 rowList.add(new Bean());
 }
 return rowList.get(index);
 }// getObject
 public void setBean(int index,Bean obj){
 rowList.setObject(index,obj);
 }//setBean
 //getter setter for list
 public List getRowList (){
 }
 public void setRowList (List list){
 }
 }//MyForm
 
 //JSP //
 tabletr
 logic:iterate name=myForm property=rowList indexId=i
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].name\%/td
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].location\%/td
 /logic:iterate
 /trtable
 So when the action is called, all the data on screen will be preserved as the
 screen data gets repopulated in the form automatically.Then u add a new object
 and the jsp cretes new table with a empty row.
 
 Hope this helps.
 Regards,
 Shirish
 
 
 -Original Message-
 From: graham.cook [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 11:30 AM
 To: struts-user
 Subject: Design Issue in struts
 
 
 
 Can I use struts to perform the following task:
 
 generate a JSP page, but have multiple entry lines on the page. Im not going
 to know how many lines the user is going to enter, so i'd like them to have
 some kind of way ( maybe a button ) that the user can click on, the page
 refreshes (retaining data) and shows a new blank line at the bottom of the
 page under the other lines. When im talking lines I mean eg. Name, Location,
 DOB, last contact
 
 
 ---
 
 Security Code: 0162
 
 Entry Date:  03/12/2002
 
 
 
 NameLocationDOBLast Contact
 -----
 --
 FredWoking07/12/197311/11/2002
 BertWolverhampton04/11/197611/11/2002
 {Add}
 
 
 {Submit} {Reset}
 -
 
 Then when the user presses SUBMIT the action is called and all data entered
 into a database.
 
 Has anyone got some real world example of this
 Ta
 
 
 
 **
 **
 
  This message contains information that may be privileged or confidential and
 is the property of the Cap Gemini Ernst  Young Group. It is intended only for
 the person to whom it is addressed. If you are not the intended recipient, you
 are not authorized to read, print, retain, copy, disseminate, distribute, or
 use 
 this message or any part thereof. If you receive this message in error, please
 notify the sender immediately and delete all copies of this message .
 **
 **
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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



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




Re: bean:define for value in properties file

2002-12-03 Thread Kris Schneider
I don't think it can be done with Struts tags in 1.0.2, but if you're able to
use JSTL (requires JSP 1.2):

c:set var=pageTitle
  bean:message key=page.title/
/c:set

Quoting Michael Lee [EMAIL PROTECTED]:

 Is there a way in 1.0.2?
 thanks,
 Mike
 
 - Original Message -
 From: Joe Germuska [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, December 02, 2002 5:33 PM
 Subject: Re: bean:define for value in properties file
 
 
  At 5:08 PM -0500 2002/12/02, Michael Lee wrote:
  Not view it, set it to a pageContext variable.
  thanks though,
 
  bean:define id=pageTitle
 bean:message key=page.title /
  /bean:define
 
  Since Struts 1.1 (I think) bean:define can use its body content to
  define a literal String bean.
 
  Joe
 
 
 
  Mike
  
  - Original Message -
  From: Andrew B Forman [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Monday, December 02, 2002 5:03 PM
  Subject: RE: bean:define for value in properties file
  
  
bean:message key=page.title /
  
 
 http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/MessageT
 a
g.html
  
a
  
 -Original Message-
 From: Michael Lee [mailto:[EMAIL PROTECTED]]
 Sent: Monday, December 02, 2002 3:52 PM
 To: Struts Users Mailing List
 Subject: bean:define for value in properties file


 I have a value in my ApplicationResources.properties called
 page.title=Customer Information
 I want to have this value available in the page context. I would
 like to use a struts tag to do so. If not, I have to use a
 scriptlet (which I try to avoid).
 here is what I'd like to do
 bean:define id=pageTitle value=page.title/
 any ideas?
 thanks,
 Mike
  
  
--
To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
  --
  --
  * Joe Germuska{ [EMAIL PROTECTED] }
  It's pitiful, sometimes, if they've got it bad. Their eyes get
  glazed, they go white, their hands tremble As I watch them I
  often feel that a dope peddler is a gentleman compared with the man
  who sells records.
  --Sam Goody, 1956
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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




struts-config.xml

2002-12-03 Thread Cathy Osekizoglu

 I have html: form action=/pay.do?id=1type= + type/ in my Jsp. What should be in 
path of action tag of struts-config.xml? Can I simply have path=pay or I must 
include parameter in the path. Thank you for your reply.
 
Cathy



-
Post your free ad now! Yahoo! Canada Personals



Re: struts-config.xml

2002-12-03 Thread Gemes Tibor
2002. december 3. 17:39 dátummal Cathy Osekizoglu ezt írtad:
  I have html: form action=/pay.do?id=1type= + type/ in my Jsp. What
 should be in path of action tag of struts-config.xml? Can I simply have
 path=pay or I must include parameter in the path. Thank you for your
 reply.

If you would like to add some unmodifiable parameters to your form, use the 
hidden tags. 

html:form action=/pay
html:hidden property=id value=1/
etc etc

Hth,

Tib


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




Re: struts-config.xml

2002-12-03 Thread Emmanuel Boudrant

Prefer to use the hidden parameters :
html:form action=/pay
html:hidden property=id [value=yourvalue] /
html:hidden property=type [value=yourvalue] /
...
/html:form
id and type must be a declared property in your form bean. (or dynamic if you use 
DynaActionForm). You must set the id and type value with your form bean instance ... 
or with the value attribute.
-emmanuel
  Cathy Osekizoglu lt;[EMAIL PROTECTED]gt; a écrit : 
I have in my Jsp. What should be in path of action tag of struts-config.xml? Can I 
simply have path=pay or I must include parameter in the path. Thank you for your 
reply.

Cathy



-
Post your free ad now! Yahoo! Canada Personals



-
Soyez solidaire soutenez l’action du Téléthon avec Yahoo! France.
Cliquez ici pour faire un don !


Re: Re: Re: struts 1.1. modules examples.

2002-12-03 Thread Craig R. McClanahan


On Tue, 3 Dec 2002 [EMAIL PROTECTED] wrote:

 Date: Tue,  3 Dec 2002 15:31:02 CET
 From: [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: Re: Re: struts 1.1. modules examples.

 Tahnks for help.
 I've seen the struts 1.1 migrating article But there is no example dealing with 
struts config.xml file.
 I'm currently downloading an eval version of camino in order to see how it worswith 
modules...



In principle, you should have to make zero changes to a struts-config.xml
file to use it for a module, as opposed to a stand-alone application.  The
only change required is to your web.xml, where you need to modify the
config initialization parameter to be a comma-delimited list of all the
config files for all the modules.

Craig


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




Re: How to resolve why java element deprecated?

2002-12-03 Thread Craig R. McClanahan


On Tue, 3 Dec 2002, Rob Leland wrote:

 Date: Tue, 03 Dec 2002 01:26:08 -0500
 From: Rob Leland [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: How to resolve why java element deprecated?

 David Graham wrote:

  The version of java has nothing to do with this.  Check the
  PropertyUtil javadoc in the jakarta commons for details.
 
  David

 I didn't think struts 1.0 use commons-xxx jars ?


It doesn't.  The org.apache.struts.util versions of these classes wasn't
deprecated in 1.0 -- it was deprecated in 1.1, which *does* use the
commons-xxx jar files.

Craig



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




RE: Looking for Struts powerpoint slides

2002-12-03 Thread Hookom, Jacob John
They are very good slides!  They also cover ideas of abstraction and layering into the 
Model, again very good stuff.  The only problem with them is that you don't get 
Simon's witty audio commentary with them ;-)
 
Jacob Hookom
Comprehensive Computer Science
University of Wisconsin, Eau Claire

-Original Message- 
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Tue 12/3/2002 9:58 AM 
To: Struts Users Mailing List 
Cc: 
Subject: RE: Looking for Struts powerpoint slides



Snap!

I have just posted the PowerPoint presentation that I gave yesterday to the 
CS-495 Seminar Series class at UW Eau Claire on the Struts page of my web site:

http://simonpeter.com/techie/java/struts/

This was not a Teach you to program with Struts talk, rather a set of notes 
about our experiences implementing a project using Struts and what we ended up 
doing/using that worked well for us in the real world.

I hope that this will be helpful to someone. I will try to get it converted to 
PDF or HTML, but no promises on timeframe.

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Java Programming Specialist  www.landsend.com
Lands' End, Inc.   (608) 935-4526


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: Looking for Struts powerpoint slides





I put together a set of Powerpoints for use in presenting Struts to a
reasonably non-technical audience. It is intended really as a
management
presentation, but I'm sure you could reuse some of the slides.

If you add slides for Tiles or to add more detail for
developers, plese let
me know and I'll incorporate them.

The presentation is on the website for my new book Struts Kick Start
which shuld be available from Amazon soon - the address is:

http://www.strutskickstart.com

Best of luck,

Kevin





Steven Davelaar [EMAIL PROTECTED] on 12/02/2002 02:38:37 PM

Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]

To:struts [EMAIL PROTECTED]
cc: (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:Looking for Struts powerpoint slides


Hi,

I need to put together a powerpoint presentation to introduce
Struts 1.1
and Tiles to an audience of Java web developers.
I am sure this has been done before, so I was hoping may be
somebody out
there is willing to share his/her own slides with me.

Complete presentations, or just a couple of slides, it is all welcome.

May be you can send it to me directly, at
[EMAIL PROTECTED], so
we do not annoy subscribers of this mailing list with large
attachments.

Thanks in advance!
Steven.


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






---

This e-mail message (including attachments, if any) is
intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and
exempt from
disclosure.  If you are not the intended recipient, you are
notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---




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



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




winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: LookupDispatchAction

2002-12-03 Thread Edgar Dollin
You have to use the same logic the Action is using to decompose the which
action in order to get conditional validations.

The other alternative is to use separate actions for the form load (set
validate to false) and other form actions.

Edgar

-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 10:08 AM
To: [EMAIL PROTECTED]
Subject: LookupDispatchAction



When using LookupDispatchAction for a page with multiple buttons. ie SUBMIT,
SEARCH, etc...
How can you turn off the validation on the form when clicking on the SEARCH
button. (The user is filling a form in top down and hasnt filled in the
fields below the SEARCH button)?





 This message contains information that may be privileged or confidential
and 
is the property of the Cap Gemini Ernst  Young Group. It is intended only
for 
the person to whom it is addressed. If you are not the intended recipient,
you 
are not authorized to read, print, retain, copy, disseminate, distribute, or
use 
this message or any part thereof. If you receive this message in error,
please 
notify the sender immediately and delete all copies of this message .




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

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




Re: Design Issue in struts

2002-12-03 Thread Mark
Shirish

By dynamically generating a form i mean querying a db table which contains
information about what fields etc to produce for the user to be able to add
content to their site.

I'm porting an existing cms written in perl on mysql, to java and oracle.

I have 2 forms:
1. Admin form that basically adds fields to an sql table
(AddCustomFieldAction). E.g. What kind of field would you like, etc?

2. The content manager then uses a form that is generated by the table
refered to in form 1.

There appears no elegant means of using struts for form 2, as the action
form cant know what to expect. The only thing i can think of is posting an
array of custom field values as an array and dealing with it when i get to
the action or associated logic.

Please tell me if i'm wrong in this, and i'm missing something. I hate not
to use something because of something I've not understood.

Many thanks

mark

On 3-12-2002 17:34, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 What u mean by dynamically generating a form?
 Its a normal form(Extends ActionForm).
 And the action to deal with will be what ever action u define to achieve this
 functionality.It will be a very simple action.
 Home this clarifies the confusion.
 
 regards,
 Shirish
 
 -Original Message-
 From: marklowe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 3:11 PM
 To: struts-user
 Cc: marklowe
 Subject: Re: Design Issue in struts
 
 
 If you're dynamically generating a form, what action would deal with the
 form produced?
 
 I have this problem and i'm thinking of using standard java/jsp for this
 problem now.. As I'd have to pass an array of values and one form element to
 an action. 
 
 Any thoughts on this issue will be gratfully recieved.
 
 Thanks in advance
 
 Mark
 
 
 On 3-12-2002 12:10, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 Hi,
 I have implemented pretty much the same functionality in our application.
 U can do this using Struts actions.When the user presses a button,call an
 action.In the action add an empty row to the form(add a empty object to the
 list on form).And then call the same jsp which will just iterate over the
 list
 as earlier.
 //Pseudo code
 Form MyForm{
 List rowList = new ArrayList();
 public Bean getBean(int index){
 if(rowList.size  index){
 rowList.add(new Bean());
 }
 return rowList.get(index);
 }// getObject
 public void setBean(int index,Bean obj){
 rowList.setObject(index,obj);
 }//setBean
 //getter setter for list
 public List getRowList (){
 }
 public void setRowList (List list){
 }
 }//MyForm
 
 //JSP //
 tabletr
 logic:iterate name=myForm property=rowList indexId=i
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].name\%/td
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].location\%/td
 /logic:iterate
 /trtable
 So when the action is called, all the data on screen will be preserved as the
 screen data gets repopulated in the form automatically.Then u add a new
 object
 and the jsp cretes new table with a empty row.
 
 Hope this helps.
 Regards,
 Shirish
 
 
 -Original Message-
 From: graham.cook [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 11:30 AM
 To: struts-user
 Subject: Design Issue in struts
 
 
 
 Can I use struts to perform the following task:
 
 generate a JSP page, but have multiple entry lines on the page. Im not going
 to know how many lines the user is going to enter, so i'd like them to have
 some kind of way ( maybe a button ) that the user can click on, the page
 refreshes (retaining data) and shows a new blank line at the bottom of the
 page under the other lines. When im talking lines I mean eg. Name, Location,
 DOB, last contact
 
 
 ---
 
 Security Code: 0162
 
 Entry Date:  03/12/2002
 
 
 
 NameLocationDOBLast Contact
 -----
 --
 FredWoking07/12/197311/11/2002
 BertWolverhampton04/11/197611/11/2002
 {Add}
 
 
 {Submit} {Reset}
 -
 
 Then when the user presses SUBMIT the action is called and all data entered
 into a database.
 
 Has anyone got some real world example of this
 Ta
 
 
 
 
*
*
 **
 
  This message contains information that may be privileged or confidential
 and
 is the property of the Cap Gemini Ernst  Young Group. It is intended only
 for
 the person to whom it is addressed. If you are not the intended recipient,
 you
 are not authorized to read, print, retain, copy, disseminate, distribute, or
 use 
 this message or any part thereof. If you receive this message in error,
 please
 notify the sender immediately and delete all copies of this message .
 
*
*
 **
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For 

RE: Design Issue in struts

2002-12-03 Thread Edgar Dollin
Look into the nested tags.

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 12:02 PM
To: Struts Users Mailing List
Subject: Re: Design Issue in struts


Shirish

By dynamically generating a form i mean querying a db table which contains
information about what fields etc to produce for the user to be able to add
content to their site.

I'm porting an existing cms written in perl on mysql, to java and oracle.

I have 2 forms:
1. Admin form that basically adds fields to an sql table
(AddCustomFieldAction). E.g. What kind of field would you like, etc?

2. The content manager then uses a form that is generated by the table
refered to in form 1.

There appears no elegant means of using struts for form 2, as the action
form cant know what to expect. The only thing i can think of is posting an
array of custom field values as an array and dealing with it when i get to
the action or associated logic.

Please tell me if i'm wrong in this, and i'm missing something. I hate not
to use something because of something I've not understood.

Many thanks

mark

On 3-12-2002 17:34, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 What u mean by dynamically generating a form?
 Its a normal form(Extends ActionForm).
 And the action to deal with will be what ever action u define to achieve
this
 functionality.It will be a very simple action.
 Home this clarifies the confusion.
 
 regards,
 Shirish
 
 -Original Message-
 From: marklowe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 3:11 PM
 To: struts-user
 Cc: marklowe
 Subject: Re: Design Issue in struts
 
 
 If you're dynamically generating a form, what action would deal with the
 form produced?
 
 I have this problem and i'm thinking of using standard java/jsp for this
 problem now.. As I'd have to pass an array of values and one form element
to
 an action. 
 
 Any thoughts on this issue will be gratfully recieved.
 
 Thanks in advance
 
 Mark
 
 
 On 3-12-2002 12:10, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 Hi,
 I have implemented pretty much the same functionality in our application.
 U can do this using Struts actions.When the user presses a button,call an
 action.In the action add an empty row to the form(add a empty object to
the
 list on form).And then call the same jsp which will just iterate over the
 list
 as earlier.
 //Pseudo code
 Form MyForm{
 List rowList = new ArrayList();
 public Bean getBean(int index){
 if(rowList.size  index){
 rowList.add(new Bean());
 }
 return rowList.get(index);
 }// getObject
 public void setBean(int index,Bean obj){
 rowList.setObject(index,obj);
 }//setBean
 //getter setter for list
 public List getRowList (){
 }
 public void setRowList (List list){
 }
 }//MyForm
 
 //JSP //
 tabletr
 logic:iterate name=myForm property=rowList indexId=i
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].name\%/td
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].location\%/td
 /logic:iterate
 /trtable
 So when the action is called, all the data on screen will be preserved as
the
 screen data gets repopulated in the form automatically.Then u add a new
 object
 and the jsp cretes new table with a empty row.
 
 Hope this helps.
 Regards,
 Shirish
 
 
 -Original Message-
 From: graham.cook [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 11:30 AM
 To: struts-user
 Subject: Design Issue in struts
 
 
 
 Can I use struts to perform the following task:
 
 generate a JSP page, but have multiple entry lines on the page. Im not
going
 to know how many lines the user is going to enter, so i'd like them to
have
 some kind of way ( maybe a button ) that the user can click on, the page
 refreshes (retaining data) and shows a new blank line at the bottom of
the
 page under the other lines. When im talking lines I mean eg. Name,
Location,
 DOB, last contact
 
 
 ---
 
 Security Code: 0162
 
 Entry Date:  03/12/2002
 
 
 
 NameLocationDOBLast Contact
 -----
 --
 FredWoking07/12/197311/11/2002
 BertWolverhampton04/11/197611/11/2002
 {Add}
 
 
 {Submit} {Reset}
 -
 
 Then when the user presses SUBMIT the action is called and all data
entered
 into a database.
 
 Has anyone got some real world example of this
 Ta
 
 
 
 

*
*
 **
 
  This message contains information that may be privileged or
confidential
 and
 is the property of the Cap Gemini Ernst  Young Group. It is intended
only
 for
 the person to whom it is addressed. If you are not the intended
recipient,
 you
 are not authorized to read, print, retain, copy, disseminate, distribute,
or
 use 
 this message or any part thereof. If you receive this message in error,
 please
 notify the sender immediately and 

Problems subclassing FormBeanConfig

2002-12-03 Thread Ahearn, Denis
I ran into a problem trying to subclass
org.apache.struts.config.FormBeanConfig.  Here is essentially what I was
trying:

form-bean name=myForm dynamic=true
type=org.apache.struts.action.DynaActionForm
className=mycompany.MyFormBeanConfig
.
.
.
/form-bean


public class MyFormBeanConfig extends
org.apache.struts.config.FormBeanConfig
{
.
.
.
}

The error I was getting was a Cannot find message resources under key
exception.  After removing the use of bean:message tags from my login page,
I then saw the true error, ClassCastException for
mycompany.MyFormBeanConfig.  This led me to the following code in
ActionServlet.java:

/**
 * Perform backwards-compatible configuration of an ActionFormBeans
 * collection, and expose it as a servlet context attribute (as was
 * used in Struts 1.0).  Note that the current controller code does
 * not (and should not) reference this attribute for any reason.
 *
 * @param config The ApplicationConfig object for the default app
 *
 * @since Struts 1.1
 * @deprecated Will be removed in a release after Struts 1.1.
 */
private void defaultFormBeansConfig(ApplicationConfig config) {

FormBeanConfig fbcs[] = config.findFormBeanConfigs();
ActionFormBeans afb = new ActionFormBeans();
afb.setFast(false);
for (int i = 0; i  fbcs.length; i++) {
afb.addFormBean((ActionFormBean) fbcs[i]);
}
afb.setFast(true);
getServletContext().setAttribute(Action.FORM_BEANS_KEY, afb);

}

Since this code blindly casts a FormBeanConfig to an ActionFormBean, I
really needed to subclass from ActionFormBean instead of FormBeanConfig

The documentation for the form-bean element in
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd   seems
misleading in that it states that if you specify className for a
form-bean element, that the object must be a subclass of
org.apache.struts.config.FormBeanConfig.

Just a heads up in case anyone wants to use the set-property element with
a form-bean element, and needs to subclass FormBeanConfig to do so.



Re: Design Issue in struts

2002-12-03 Thread Mark
I have seen that nested tags is a way around this but i believe they're not
supported on version 1 only on version 1.1.

I'm off recheck the docs...



On 3-12-2002 18:19, Edgar Dollin [EMAIL PROTECTED] wrote:

 Look into the nested tags.
 
 -Original Message-
 From: Mark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 12:02 PM
 To: Struts Users Mailing List
 Subject: Re: Design Issue in struts
 
 
 Shirish
 
 By dynamically generating a form i mean querying a db table which contains
 information about what fields etc to produce for the user to be able to add
 content to their site.
 
 I'm porting an existing cms written in perl on mysql, to java and oracle.
 
 I have 2 forms:
 1. Admin form that basically adds fields to an sql table
 (AddCustomFieldAction). E.g. What kind of field would you like, etc?
 
 2. The content manager then uses a form that is generated by the table
 refered to in form 1.
 
 There appears no elegant means of using struts for form 2, as the action
 form cant know what to expect. The only thing i can think of is posting an
 array of custom field values as an array and dealing with it when i get to
 the action or associated logic.
 
 Please tell me if i'm wrong in this, and i'm missing something. I hate not
 to use something because of something I've not understood.
 
 Many thanks
 
 mark
 
 On 3-12-2002 17:34, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 What u mean by dynamically generating a form?
 Its a normal form(Extends ActionForm).
 And the action to deal with will be what ever action u define to achieve
 this
 functionality.It will be a very simple action.
 Home this clarifies the confusion.
 
 regards,
 Shirish
 
 -Original Message-
 From: marklowe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 3:11 PM
 To: struts-user
 Cc: marklowe
 Subject: Re: Design Issue in struts
 
 
 If you're dynamically generating a form, what action would deal with the
 form produced?
 
 I have this problem and i'm thinking of using standard java/jsp for this
 problem now.. As I'd have to pass an array of values and one form element
 to
 an action. 
 
 Any thoughts on this issue will be gratfully recieved.
 
 Thanks in advance
 
 Mark
 
 
 On 3-12-2002 12:10, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 Hi,
 I have implemented pretty much the same functionality in our application.
 U can do this using Struts actions.When the user presses a button,call an
 action.In the action add an empty row to the form(add a empty object to
 the
 list on form).And then call the same jsp which will just iterate over the
 list
 as earlier.
 //Pseudo code
 Form MyForm{
 List rowList = new ArrayList();
 public Bean getBean(int index){
 if(rowList.size  index){
 rowList.add(new Bean());
 }
 return rowList.get(index);
 }// getObject
 public void setBean(int index,Bean obj){
 rowList.setObject(index,obj);
 }//setBean
 //getter setter for list
 public List getRowList (){
 }
 public void setRowList (List list){
 }
 }//MyForm
 
 //JSP //
 tabletr
 logic:iterate name=myForm property=rowList indexId=i
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].name\%/td
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].location\%/td
 /logic:iterate
 /trtable
 So when the action is called, all the data on screen will be preserved as
 the
 screen data gets repopulated in the form automatically.Then u add a new
 object
 and the jsp cretes new table with a empty row.
 
 Hope this helps.
 Regards,
 Shirish
 
 
 -Original Message-
 From: graham.cook [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 11:30 AM
 To: struts-user
 Subject: Design Issue in struts
 
 
 
 Can I use struts to perform the following task:
 
 generate a JSP page, but have multiple entry lines on the page. Im not
 going
 to know how many lines the user is going to enter, so i'd like them to
 have
 some kind of way ( maybe a button ) that the user can click on, the page
 refreshes (retaining data) and shows a new blank line at the bottom of
 the
 page under the other lines. When im talking lines I mean eg. Name,
 Location,
 DOB, last contact
 
 
 ---
 
 Security Code: 0162
 
 Entry Date:  03/12/2002
 
 
 
 NameLocationDOBLast Contact
 -----
 --
 FredWoking07/12/197311/11/2002
 BertWolverhampton04/11/197611/11/2002
 {Add}
 
 
 {Submit} {Reset}
 -
 
 Then when the user presses SUBMIT the action is called and all data
 entered
 into a database.
 
 Has anyone got some real world example of this
 Ta
 
 
 
 
 
 *
 *
 **
 
  This message contains information that may be privileged or
 confidential
 and
 is the property of the Cap Gemini Ernst  Young Group. It is intended
 only
 for
 the person to 

A single error page when using Struts 1.0.2 templates: Is this possible?

2002-12-03 Thread Davide Bruzzone
Greetings all...

I've been puuling my hair out on this one for a while now, and I'm beginning
to wonder whether or not I should be spending any more time on it. Is it
even possible?

i.e. When using templates (We're still using Struts 1.0.2), is it possible
to have exceptions within the JSPs be redirected to a single error page
(i.e. An error page that takes up the whole window in the browser). I keep
having problems related to part of the page being rendered, then the error
occurring.

Any help would be GREATLY appreciated...

Cheers...

Dave

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




RE: Design Issue in struts

2002-12-03 Thread Edgar Dollin
There is a version compatible with 1.0.2.

I don't know if you can get it now, but there was a nested.jar release for
1.0.2.  Aaron Bates was the author and it was in the contrib section.

Hopefully, Aaron will see this and let you know where to get it.

Edgar

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 12:16 PM
To: Struts Users Mailing List
Subject: Re: Design Issue in struts


I have seen that nested tags is a way around this but i believe they're not
supported on version 1 only on version 1.1.

I'm off recheck the docs...



On 3-12-2002 18:19, Edgar Dollin [EMAIL PROTECTED] wrote:

 Look into the nested tags.
 
 -Original Message-
 From: Mark [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 12:02 PM
 To: Struts Users Mailing List
 Subject: Re: Design Issue in struts
 
 
 Shirish
 
 By dynamically generating a form i mean querying a db table which contains
 information about what fields etc to produce for the user to be able to
add
 content to their site.
 
 I'm porting an existing cms written in perl on mysql, to java and oracle.
 
 I have 2 forms:
 1. Admin form that basically adds fields to an sql table
 (AddCustomFieldAction). E.g. What kind of field would you like, etc?
 
 2. The content manager then uses a form that is generated by the table
 refered to in form 1.
 
 There appears no elegant means of using struts for form 2, as the action
 form cant know what to expect. The only thing i can think of is posting an
 array of custom field values as an array and dealing with it when i get to
 the action or associated logic.
 
 Please tell me if i'm wrong in this, and i'm missing something. I hate not
 to use something because of something I've not understood.
 
 Many thanks
 
 mark
 
 On 3-12-2002 17:34, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 What u mean by dynamically generating a form?
 Its a normal form(Extends ActionForm).
 And the action to deal with will be what ever action u define to achieve
 this
 functionality.It will be a very simple action.
 Home this clarifies the confusion.
 
 regards,
 Shirish
 
 -Original Message-
 From: marklowe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 3:11 PM
 To: struts-user
 Cc: marklowe
 Subject: Re: Design Issue in struts
 
 
 If you're dynamically generating a form, what action would deal with the
 form produced?
 
 I have this problem and i'm thinking of using standard java/jsp for this
 problem now.. As I'd have to pass an array of values and one form element
 to
 an action. 
 
 Any thoughts on this issue will be gratfully recieved.
 
 Thanks in advance
 
 Mark
 
 
 On 3-12-2002 12:10, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
 
 Hi,
 I have implemented pretty much the same functionality in our
application.
 U can do this using Struts actions.When the user presses a button,call
an
 action.In the action add an empty row to the form(add a empty object to
 the
 list on form).And then call the same jsp which will just iterate over
the
 list
 as earlier.
 //Pseudo code
 Form MyForm{
 List rowList = new ArrayList();
 public Bean getBean(int index){
 if(rowList.size  index){
 rowList.add(new Bean());
 }
 return rowList.get(index);
 }// getObject
 public void setBean(int index,Bean obj){
 rowList.setObject(index,obj);
 }//setBean
 //getter setter for list
 public List getRowList (){
 }
 public void setRowList (List list){
 }
 }//MyForm
 
 //JSP //
 tabletr
 logic:iterate name=myForm property=rowList indexId=i
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].name\%/td
 tdhtml:text name=myForm property=%=\bean[\ + i +
 \].location\%/td
 /logic:iterate
 /trtable
 So when the action is called, all the data on screen will be preserved
as
 the
 screen data gets repopulated in the form automatically.Then u add a new
 object
 and the jsp cretes new table with a empty row.
 
 Hope this helps.
 Regards,
 Shirish
 
 
 -Original Message-
 From: graham.cook [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, December 03, 2002 11:30 AM
 To: struts-user
 Subject: Design Issue in struts
 
 
 
 Can I use struts to perform the following task:
 
 generate a JSP page, but have multiple entry lines on the page. Im not
 going
 to know how many lines the user is going to enter, so i'd like them to
 have
 some kind of way ( maybe a button ) that the user can click on, the page
 refreshes (retaining data) and shows a new blank line at the bottom of
 the
 page under the other lines. When im talking lines I mean eg. Name,
 Location,
 DOB, last contact
 
 
 ---
 
 Security Code: 0162
 
 Entry Date:  03/12/2002
 
 
 
 NameLocationDOBLast Contact
 -----
 --
 FredWoking07/12/197311/11/2002
 BertWolverhampton04/11/197611/11/2002
 {Add}
 
 
 {Submit} {Reset}
 -
 
 

html:multibox values not populated in the form bean

2002-12-03 Thread Tuan H. Le
Hi,

I'm having a problem that the setter method in the form bean does not get called when 
I submit an HTML form with a html:multibox to an action class.

I read some of previous related posts in the archives, but I couldn' t find a solution 
to this problem. Please advise on how to troubleshoot this problem. Thanks!

Here's my code

--- JSP code ---

html:form action=/approveSubmit
   name=approveSubmitForm
   type=com.phs.ezhr.presentation.form.ApproveSubmitForm
   method=post
   target=_parent
...

logic:present name=employeeList scope=session
  logic:iterate id=employee name=employeeList scope=session 
type=com.phs.ezhr.business.vo.EmployeeVO indexId=idx offset=offset length=25  
 
td
  html:multibox property='approveList' value='%=employeeId%' 
onclick='selectChoice( this.form, this )'
  /html:multibox
/td
...

/logic:iterate
/logic:present
/html:form


-- Generated HTML code -

form name=approveSubmitForm method=post action=/focaltool/approveSubmit.do 
target=_parentinput type=hidden name=org.apache.struts.taglib.html.TOKEN 
value=3eaa663392c1d65f7d5dbcd81f5498a4

table cellspacing=0 cellpadding=0 border=0 width=100% height=100%
tr
td bgcolor=#F9B949 width=17nbsp;/td
td valign=top
table cellspacing=0 cellpadding=0 border=0
  !-- Iterate over the results of the query. Max of 25 records per page --
tr
   td rowspan=500 width=9nbsp;/td
td
  input type=checkbox name=approveList value=01
/td
tdnbsp;nbsp;nbsp;nbsp;nbsp;/td

...

 Form bean --


  private String[] approveList;

  /**
   * Set the approve checkbox list array
   * @param anApproveList
   */
  public void setApproveList( String[] anApproveList ) {
System.out.println( Setter method for approve list get 
called!! );
this.approveList = anApproveList;
  }

  public String[] getApproveList() {
return this.approveList;
  }

  public void reset( ActionMapping mapping,
 HttpServletRequest request ) {

  }





winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


Re: A single error page when using Struts 1.0.2 templates: Is this possible?

2002-12-03 Thread Michael Lee
We set up a global forward for errors...
  global-forwards
  forward name=systemError path=/system_error.jsp/
  /global-forwards
and when we catch exceptions beyond the normal we do a
mapping.findForward(systemError);

- Original Message -
From: Davide Bruzzone [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 12:29 PM
Subject: A single error page when using Struts 1.0.2 templates: Is this
possible?


 Greetings all...

 I've been puuling my hair out on this one for a while now, and I'm
beginning
 to wonder whether or not I should be spending any more time on it. Is it
 even possible?

 i.e. When using templates (We're still using Struts 1.0.2), is it possible
 to have exceptions within the JSPs be redirected to a single error page
 (i.e. An error page that takes up the whole window in the browser). I keep
 having problems related to part of the page being rendered, then the error
 occurring.

 Any help would be GREATLY appreciated...

 Cheers...

 Dave

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


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




Re: Security roles with Struts

2002-12-03 Thread Michael Lee
for container managed roles struts actions act just like all http request
that the container can intercept.
in the web.xml
  security-constraint
display-nameSecure Something/display-name
web-resource-collection
  web-resource-nameAdmin Resources/web-resource-name
  url-pattern/admin/*/url-pattern
/web-resource-collection
auth-constraint
  role-nameAdmin/role-name
/auth-constraint
user-data-constraint
  descriptionSecure all data/description
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
  /security-constraint

What this does is lock down all requests to the /admin/ directory to users
of Admin role.
You can do the same with actions by putting in the url pattern using
wildcards or the action itself.
for example;
  url-pattern/admin/addUser.do/url-pattern

- Original Message -
From: Elena Neroslavskaya [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 11:05 AM
Subject: Security roles with Struts


 Hello all,
 I have succeeded to configure DB security realm for JBoss container it
works
 for simple JSP solution,

 Bu I have problems to make it work with Struts !

 Could anybody please be so kind and post here an example
 how to configure Struts to use Container Managed Roles.

 And post here your web.xml ans struts-config.xml ?

 Thank you very much




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


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




Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM

2002-12-03 Thread Dave Hodson
Anyone out there having problems with the latest Tomcat build (4.1.16)? I'm using 
Struts 1.1b2 with Tiles and am unable to get any part of my app to load (it works fine 
with Tomcat 4.0.3)
 
Stack trace below
 
Regards,
 
Dave
---
StandardWrapper[/config:jsp]: Marking servlet jsp as unavailable
StandardContext[/config]: Servlet /config threw load() exception: 
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.jasper.servlet.JspServlet or a class it depends on
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.jasper.servlet.JspServlet or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 
---
Dave Hodson 
MessageCast, inc.
Email: [EMAIL PROTECTED]
www.messagecast.net
 



RE: Struts In Action on Slashdot

2002-12-03 Thread ROSSEL Olivier
 Woo hoo!  A Struts In Action book review on Slashdot!
 
 http://books.slashdot.org/books/02/11/25/1731249.shtml?tid=156

Shortly: The bible of web MVC :-)

Someone on IRC said that one of its chapters (that was already available)
is talking about an old flavour of the Validator. Is it true?

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




SOLVED -- FW: Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM

2002-12-03 Thread Dave Hodson
Pls disregard -- problem turned out to be CATALINA_HOME  -- I did not modify it to 
point the new instance (4.1.16) instead of the old instance (4.0.3). Once I modified 
this, everything works!

Dave

---
Dave Hodson 
MessageCast, inc.
Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
www.messagecast.net


-Original Message-
From: Dave Hodson 
Sent: Tuesday, December 03, 2002 10:08 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM


Anyone out there having problems with the latest Tomcat build (4.1.16)? I'm using 
Struts 1.1b2 with Tiles and am unable to get any part of my app to load (it works fine 
with Tomcat 4.0.3)
 
Stack trace below
 
Regards,
 
Dave
---
StandardWrapper[/config:jsp]: Marking servlet jsp as unavailable
StandardContext[/config]: Servlet /config threw load() exception: 
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.jasper.servlet.JspServlet or a class it depends on
javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.jasper.servlet.JspServlet or a class it depends on
 at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:871)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
 at org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 
---
Dave Hodson 
MessageCast, inc.
Email: [EMAIL PROTECTED]
www.messagecast.net
 

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




using tiles with Struts 1.1

2002-12-03 Thread cruegger

I'm trying to set up Struts 1.1 beta to use Tiles.
Question: What modification do I make to struts-config.xml
to tell it where my tiles definition file is?

Apparently the plug-in no longer applies or Struts 1.1?

Thanks!

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




Which Validator for Struts 1.0?

2002-12-03 Thread Michelle Harris
Hello,

Which is the best src to download to use Validator with Struts 1.0?
Also, does anyone happen to know when Struts 1.1 will be final?

Thanks so much,
Michelle


-- 
Michelle Harris | Developer
www.site59.com
45 W. 21st St., 4th Floor
New York, NY 10010
212.991.1203

Site59, a Travelocity Company -- www.site59.com
Providing dynamic technology solutions to the world's leading travel
websites 
es 


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




Struts 1.1 with tiles

2002-12-03 Thread cruegger


I'm trying to use tiles with Struts 1.1
I've written a tiles-defs.xml file. Question: How
do I tell Struts to use this file? It looks like the
plugin tag no longer works with Struts 1.1, so what
modification do I make to struts-config.xml to tell
struts to use my tiles-defs.xml?

Thanks

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




RE: html:multibox values not populated in the form bean

2002-12-03 Thread Tuan H. Le
I figured out one of my problems. Now, it calls the setter method in a form bean, but 
when it gets to the action class, the String[] variable for storing multibox selection 
is empty. Do you know what I'm missing?

Thanks,
Tuan

  -Original Message-
 From: Tuan H. Le  
 Sent: Tuesday, December 03, 2002 9:42 AM
 To:   Struts Users Mailing List (E-mail)
 Subject:  html:multibox values not populated in the form bean
 
 Hi,
 
 I'm having a problem that the setter method in the form bean does not get called 
when I submit an HTML form with a html:multibox to an action class.
 
 I read some of previous related posts in the archives, but I couldn' t find a 
solution to this problem. Please advise on how to troubleshoot this problem. Thanks!
 
 Here's my code
 
 --- JSP code ---
 
 html:form action=/approveSubmit
name=approveSubmitForm
type=com.phs.ezhr.presentation.form.ApproveSubmitForm
method=post
target=_parent
 ...
 
 logic:present name=employeeList scope=session
   logic:iterate id=employee name=employeeList scope=session 
type=com.phs.ezhr.business.vo.EmployeeVO indexId=idx offset=offset length=25 
  
 td
   html:multibox property='approveList' value='%=employeeId%' 
onclick='selectChoice( this.form, this )'
   /html:multibox
 /td
 ...
 
 /logic:iterate
 /logic:present
 /html:form
 
 
 -- Generated HTML code -
 
 form name=approveSubmitForm method=post action=/focaltool/approveSubmit.do 
target=_parentinput type=hidden name=org.apache.struts.taglib.html.TOKEN 
value=3eaa663392c1d65f7d5dbcd81f5498a4
 
 table cellspacing=0 cellpadding=0 border=0 width=100% height=100%
 tr
 td bgcolor=#F9B949 width=17nbsp;/td
 td valign=top
   table cellspacing=0 cellpadding=0 border=0
   !-- Iterate over the results of the query. Max of 25 records per page --
   tr
td rowspan=500 width=9nbsp;/td
 td
   input type=checkbox name=approveList value=01
 /td
 tdnbsp;nbsp;nbsp;nbsp;nbsp;/td
 
 ...
 
  Form bean --
 
 
   private String[] approveList;
 
   /**
* Set the approve checkbox list array
* @param anApproveList
*/
   public void setApproveList( String[] anApproveList ) {
 System.out.println( Setter method for approve list get 
called!! );
 this.approveList = anApproveList;
   }
 
   public String[] getApproveList() {
 return this.approveList;
   }
 
   public void reset( ActionMapping mapping,
  HttpServletRequest request ) {
 
   }
 
 
 
   File: ATT43476.txt  

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




Re: using tiles with Struts 1.1

2002-12-03 Thread David Graham
You use the TilesPlugin to configure Tiles.

David







From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: using tiles with Struts 1.1
Date: Tue,  3 Dec 2002 10:31:01 -0800


I'm trying to set up Struts 1.1 beta to use Tiles.
Question: What modification do I make to struts-config.xml
to tell it where my tiles definition file is?

Apparently the plug-in no longer applies or Struts 1.1?

Thanks!

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


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


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



RE: Réf. : RE: problem with select tag

2002-12-03 Thread Sri Sankaran

Is the form-bean for the page you are trying to display available in any scope 
(request/session/application)?   If there is no form-bean available you may see this 
symptom.  Further, if it is, make sure that the lists are populated as you expect them 
to be.

Sri

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, December 03, 2002 11:08 AM
 To: Struts Users Mailing List
 Subject: Réf. : RE: problem with select tag
 
 
 |-+
 | |   Sri Sankaran   |
 | |   Sri.Sankaran@sas|
 | |   .com|
 | ||
 | |   03/12/2002 16:45 |
 | |   Veuillez répondre|
 | |   à Struts Users  |
 | |   Mailing List|
 | ||
 |-+
   
 -
 --|
   |   
 |
   |   Pour :Struts Users Mailing List 
 [EMAIL PROTECTED]  
 |
   |   cc :
 |
   |   Objet :   RE: problem with select tag   
 |
   
 -
 --|
 
 
 
 
 
 
 
 1) for the working version, datas are comming from the session and
 2) I mean by not working that it display an empty list.
 and when view the generated html source code, there is no option tag.
 
 Can you elaborate on :
 
 1) Where is the data coming from for the working version?
 2) What do you mean by not working?  Does it display an 
 empty list?  Does it crash?
 
 Sri
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, December 03, 2002 10:38 AM
  To: [EMAIL PROTECTED]
  Subject: problem with select tag
 
 
  hi all,
 
  I've a trouble while using the html select tag.
 
  when a use the select tag with the fragment code below, everything 
  works well
 
  html:select  styleClass=listBox property='fundCodes' size=10 
  multiple= true
  html:options name='fundOptionCodes'
  labelName='fundOptionLabels' /
 
  fundCodes is a type of String[] and fundOptionCodes and 
  fundOptionLabels are both ArrayList.
 
  The problem occurs when I try to get the same result from my action 
  form.
 
  the code that does not works is here :
 
  html:select  styleClass=listBox property='selectedCodes' 
 size=10 
  multiple=true
  html:options labelName='selectedFundLabels'
  labelProperty='selectedFundCodes' /
  /html:select
 
 
  selectedFundLabels and selectedFundCodes are both of types 
 ArrayList 
  of my ActionForm and selectedCodes is of type String[].
 
  for all attributes, getter and setter are provided.
 
  I dont know why this code is not working and I really need 
 to be able 
  to populate my values from the ActionForm.
 
  Can someone tells me where my failure is from
 
  thanks in advance.
 
  Meissa
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:struts-user- [EMAIL PROTECTED]
  For
  additional commands,
  e-mail: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:  
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 
 --
 To 
 unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




ActionErrors stored in session

2002-12-03 Thread ROSSEL Olivier
It seems that saving ActionErrors in request can sometimes be a pain
(especially
when you redirect a lot).

I wonder if it is possible to make a similar system but store ActionErrors
in session.
In Actions, instead of saving in request, you save in session.
And the tags html:session-errors will delete them once they have accessed
them (may 
control that with a discard attribute).

Does it sound absolutely weird? or may have a kind of utility?


---cut here---


This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

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




RE: Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM

2002-12-03 Thread Drew Zimber

sorry i cant help ya, but i liked the blam word usage.  nice work!

dz

-Original Message-
From: Dave Hodson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 1:08 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM


Anyone out there having problems with the latest Tomcat build (4.1.16)? I'm
using Struts 1.1b2 with Tiles and am unable to get any part of my app to
load (it works fine with Tomcat 4.0.3)
 
Stack trace below
 
Regards,
 
Dave
---
StandardWrapper[/config:jsp]: Marking servlet jsp as unavailable
StandardContext[/config]: Servlet /config threw load() exception:
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.jasper.servlet.JspServlet or a class it depends on
javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.jasper.servlet.JspServlet or a class it depends on
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87
1)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
 
---
Dave Hodson 
MessageCast, inc.
Email: [EMAIL PROTECTED]
www.messagecast.net
 

attachment: winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: A single error page when using Struts 1.0.2 templates: Is this possible?

2002-12-03 Thread Davide Bruzzone
Yes, that's what we did for our actions, and it works OK... What I'm trying
to find out though is how to deal with exceptions that occur within the
JSPs. It seems as though the added complexity of Struts, etc. makes it more
difficult to redirect to a single error page if, say, an error occurs as a
result of an incorrectly configured Struts tag, etc. 

The way I'm simulating an exception within my JSP is simply:

%
System.out.println(** CONTENT: Throwing exception
**);

throw new Exception(My exception from the template JSP - 12);
%

We have to be able to deal with this by going to a single error page no
matter how many pages make up the view. What we'd rather avoid if possible
is a partially displayed view with an error page bolted on in the middle of
the view. If, however, its just not possible, then I suppose we'll have to
live with it.

Cheers...

Dave

-Original Message-
From: Michael Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 10:51 AM
To: Struts Users Mailing List
Subject: Re: A single error page when using Struts 1.0.2 templates: Is
this possible?


We set up a global forward for errors...
  global-forwards
  forward name=systemError path=/system_error.jsp/
  /global-forwards
and when we catch exceptions beyond the normal we do a
mapping.findForward(systemError);

- Original Message -
From: Davide Bruzzone [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, December 03, 2002 12:29 PM
Subject: A single error page when using Struts 1.0.2 templates: Is this
possible?


 Greetings all...

 I've been puuling my hair out on this one for a while now, and I'm
beginning
 to wonder whether or not I should be spending any more time on it. Is it
 even possible?

 i.e. When using templates (We're still using Struts 1.0.2), is it possible
 to have exceptions within the JSPs be redirected to a single error page
 (i.e. An error page that takes up the whole window in the browser). I keep
 having problems related to part of the page being rendered, then the error
 occurring.

 Any help would be GREATLY appreciated...

 Cheers...

 Dave

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


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

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




Help with Multiple Input!

2002-12-03 Thread Jana Navaneethan
Hi,
  I have a form in which I am collecting multiple input from the user,
for example
for each day of the week I am collecting opening hour and closing hour
something in the format of

day -  checkbox -  select/option - select/option , I want to do this in a
loop for all 7 days of the week. I couldn't find any good examples or
tutorials for this. Please let me know the right way of doing this or any
sample would be greatly appreciated!

Thanks in advance,
Jana.


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




Newbie question - ActionMapping

2002-12-03 Thread Curtis, Sean
hey all..

just installed struts, got demo up and running fine on iPlanet Web Server.
just trying to create a simple demo app.
1 view(jsp) 2 fields
1 form, matching fields
1 action

It seems that my jsp forwards correctly to my action mapping, my bean is
populated correctly and validated. my logs look like this:
[03/Dec/2002:13:50:23] info ( 2956):  action: Processing a POST for
/submitform1  
[03/Dec/2002:13:50:23] info ( 2956):  action: Setting locale 'en_US'  
[03/Dec/2002:13:50:23] info ( 2956):  action: Looking for ActionForm bean
under attribute 'form1'  
[03/Dec/2002:13:50:23] info ( 2956):  action: Creating new ActionForm
instance of class 'com.sc.struts.form.Form1'  [03/Dec/2002:13:50:23] info (
2956):  action: Storing instance under attribute 'form1' in scope 'session'
[03/Dec/2002:13:50:23] info ( 2956):  action: Populating bean properties
from this request  
[03/Dec/2002:13:50:23] info ( 2956):  action: Validating input form
properties  
[03/Dec/2002:13:50:23] info ( 2956):  action: No errors detected, accepting
input  
[03/Dec/2002:13:50:23] info ( 2956):  action: Looking for Action instance
for class com.sc.struts.action.Form1Action  [03/Dec/2002:13:50:23] info (
2956):  action: Double checking for Action instance already there  
[03/Dec/2002:13:50:23] info ( 2956):  action: Creating new Action instance 

and my app just displays a blank screen (no errors, no errors in log file)
in my browser with my new '.do' url. It doesnt seem as if im able to return
the correct action mapping object. I have now resorted to throwing an
exception in the first line of my Action.execute method, which as you can
see, isnt being thrown. Is this just a setup problem?


Has anyone else had this problem and/or know how I can fix this?

thanks 
Sean


pretty simple struts config as well:
struts-config


  form-beans

!-- Logon form bean --
   
form-bean  name=form1
type=com.sc.struts.form.Form1/
  /form-beans



  global-forwards
  /global-forwards


  action-mappings type=org.apache.struts.action.ActionMapping

!-- process form 1 --
action
path=/submitform1
type=com.sc.struts.action.Form1Action
name=form1
scope=request
input=/form1.jsp
/action

  /action-mappings

/struts-config

==
MLB Mail Domain made the following
 annotations on 12/03/02 14:11:22

[INFO] -- Virus Manager:
No Viruses were detected in this message.

==


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




  1   2   >