Re: Reading Date

2003-02-28 Thread Rick Reumann
On Fri, Feb 28,'03 (11:36 AM GMT+0530), varma wrote: 

 I Declared Timestamp obj in my bean to store the date, it is giving 
 IllegalArugumentException in jsp, when i'm trying to get it from jsp
 using html:text property=startDate/

It's ok if you have a business object has a Timestamp field, but your
form bean's should be all Strings for display purposes. So before you
populate startDate into your bean you should make sure you
declare startDate as a String and convert the Timstamp version to this
String startDate before you use html:text property=startDate/. 


-- 
Rick

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



Re: Results in multiple pages

2003-02-28 Thread Richard Raquepo
www.javanovic.com - see articles. i'm sure it can help you and try going
browsing to  this thread
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
000767

hope this helps

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:59 PM
Subject: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar.
Any ideas or redirections to places where I could find a solution?

Thank you in advance.





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



RE: STRUTS With TORQUE

2003-02-28 Thread James Turner
 -Original Message-
 From: Dan Allen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 28, 2003 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: STRUTS With TORQUE
 
 
 There are some great examples in the book Struts Kick Start 
 using the torque framework.  It does seem to be pretty amazing.
 

Unfortunately, there were some changes made in Torque between the
writing of the book and the release.  If you use the examples in the
book with the version of Torque in the book, you're OK.  If you want to
use the latest and greatest version of Torque, readers have contributed
some errata to the strutskickstart.com site detailing the changes you
have to make.

As for Torque itself, it's pretty amazing to me.  I love the fact that
if I need to refactor the database for some reason, I can just edit the
XML schema description and the mapping objects automagically reconfigure
themselves after a new ant build.  I wouldn't depend on it
performance-wise for a million transaction an hour site, but for the
bread-and-butter data mining and moderate traffic sites, I think it can
save a ton of development time.  The only real trick is to make sure you
keep the Torque-specific stuff abstracted away (if you're careful, you
can even use the Torque objects in Actions that way, and save a layer.)

James



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



Re: Results in multiple pages

2003-02-28 Thread Chetan Sahasrabudhe
man, this question is asked so many times on this list
any how, check logic-iterate tag from logic tag lib.
put ur records in arraylist and later iterate on jsp

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:29 PM
Subject: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar.
Any ideas or redirections to places where I could find a solution?

Thank you in advance.





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



Validating html: select tags

2003-02-28 Thread Kwok Peng Tuck
If I validate a html:select tag and if there is a error in any of the 
field it seems that when directing back to the input page, the form no 
longer contains the collection of values used  in the optionsCollection 
tag any more. The specific error is 'Failed to obtain specified 
collection.  How does one go about to fix this ? I've seen a idea in the 
mailling list that one could supress the validation in the actionmapping 
and instead call the validate method in the action form, but I don't 
think it is a particularly good solution to do that. Does anyone have 
any ideas ?

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


Re: Reading Date

2003-02-28 Thread varma dvk
Thank you,
 Yeah i converted that in to string and Changed that to time stamp in 
Action

Regards
Varma





From: Rick Reumann [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Reading Date
Date: Fri, 28 Feb 2003 01:54:14 -0500
On Fri, Feb 28,'03 (11:36 AM GMT+0530), varma wrote:

 I Declared Timestamp obj in my bean to store the date, it is giving
 IllegalArugumentException in jsp, when i'm trying to get it from jsp
 using html:text property=startDate/
It's ok if you have a business object has a Timestamp field, but your
form bean's should be all Strings for display purposes. So before you
populate startDate into your bean you should make sure you
declare startDate as a String and convert the Timstamp version to this
String startDate before you use html:text property=startDate/.
--
Rick
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_



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


Re: Tiles: dynamically adding definitions

2003-02-28 Thread Cedric Dumoulin
 Hi,

 The doc is temporarily available at
http://www.lifl.fr/~dumoulin/howto/
 It will be added to the official doc asap.
 It is not planned yet to add the feature you describe to Tiles. Such 
future can be implemented and used by extending the current core 
implementation, without changing it. If you use the extension mechanism, 
your implementation should survive any future enhancement of the Tiles core.
 However, if you make such extension, feel free to make it available to 
other users. If this feature is heavily used, we will  add it.

 Cedric 

John Nikolai wrote:

Thanks Cedric, I look forward to seeing the document.

Is this a feature which may be added to Tiles at a future date?
Or is this too specialized?
Thanks again,
 - John
On Thursday, February 27, 2003, at 10:46 AM, Cedric Dumoulin wrote:

 Hi,

 The answer is yes, but it need some coding.

 The default definition factory doesn't provide a well know API to 
add dynamically new definitions.
 What you can do is to implement your own definition factory to 
provide such functionality. You can extends the existing factory and 
add the methods you need.
 You have to know that the extends mechanism is resolved statically 
when the config file is loaded. After that, definitions are stored 
resolved. So, you have to resolve yourself your extend. This is 
however simple to do: get the definition referenced by extend, 
create a new definition initialized with the previously loaded one, 
add your own attributes, store your definition in the factory.
 I have a short document describing how to write a factory. I will 
make it accessible asap.

 Cedric

John Nikolai wrote:

Is it possible to define a few base tiles definitions (loaded using 
TilesPlugin) and, during runtime, read in other definitions which 
extend these base definitions?

Here is an example use:

We have an XML file which defines a web site and used to generate 
the web site navigation. If we add a new page to the site we need to 
update this XML file to update the navigation as well. Can I add a 
tiles definition to this XML file and add that definition into tiles 
for processing?

nav path=/events file=events.jsp
leftnav Events amp; Activities /leftnav
breadcrumb Events amp; Activities /breadcrumb
definition name=events.page extends=master.page
put name=body value=/events/events.jsp /
...
/definition
/nav
NOTE: master.page is defined in the default definitions loaded at 
startup using TilesPlugin.

Doing it this way when I add a new file I only need to update a 
single XML file as opposed to several.

Thanks for your help!
 - John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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


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



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


Re: Results in multiple pages

2003-02-28 Thread Konstantina Stamopoulou
Richard ,
Many thanx!! With all these resourses I sould be able to find the solution.
I knew I could count on the mailing list!

Konstantina

- Original Message -
From: Richard Raquepo [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 10:15 AM
Subject: Re: Results in multiple pages


 www.javanovic.com - see articles. i'm sure it can help you and try
going
 browsing to  this thread

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
 000767

 hope this helps

 - Original Message -
 From: Konstantina Stamopoulou [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 3:59 PM
 Subject: Results in multiple pages


 Hello,
 I have the following problem and I'm not sure how I can solve it.
 The resultset returned from a query I'm making to the database has many
 records. What I want to do is to display each time 10 of these records in
my
 page.
 How can i do this? I have searched the archive but I couldn't find
anything
 similar.
 Any ideas or redirections to places where I could find a solution?

 Thank you in advance.





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




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



Re: Results in multiple pages

2003-02-28 Thread Richard Raquepo
im just passing it forward... :p

- Original Message -
From: Konstantina Stamopoulou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 4:54 PM
Subject: Re: Results in multiple pages


 Richard ,
 Many thanx!! With all these resourses I sould be able to find the
solution.
 I knew I could count on the mailing list!

 Konstantina

 - Original Message -
 From: Richard Raquepo [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:15 AM
 Subject: Re: Results in multiple pages


  www.javanovic.com - see articles. i'm sure it can help you and try
 going
  browsing to  this thread
 

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topicf=58t=
  000767
 
  hope this helps
 
  - Original Message -
  From: Konstantina Stamopoulou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 3:59 PM
  Subject: Results in multiple pages
 
 
  Hello,
  I have the following problem and I'm not sure how I can solve it.
  The resultset returned from a query I'm making to the database has many
  records. What I want to do is to display each time 10 of these records
in
 my
  page.
  How can i do this? I have searched the archive but I couldn't find
 anything
  similar.
  Any ideas or redirections to places where I could find a solution?
 
  Thank you in advance.
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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





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



Re: Results in multiple pages

2003-02-28 Thread Dirk Markert
Hello Konstantina,

you should also take a look at

http://edhill.its.uiowa.edu/display-0.8/

Of course, you can also use logic-iterate as suggested elsewhere,
but why reinvent the wheel?

Friday, February 28, 2003, 8:59:04 AM, you wrote:

KS Hello,
KS I have the following problem and I'm not sure how I can solve it.
KS The resultset returned from a query I'm making to the database has many records. 
What I want to do is to display each time 10 of these records in my page.
KS How can i do this? I have searched the archive but I couldn't find anything 
similar. 
KS Any ideas or redirections to places where I could find a solution?

KS Thank you in advance.





-- 
Best regards,
Dirk


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



AW: AW: AW: Question about html:select (again)

2003-02-28 Thread Hirschmann, Bernhard

So this is what you have:

html:select name=test multiple=true property=list  size=8
html:optionsCollection property=list label=label value=name/
/html:select


You're using the field list from the form bean for two purposes, which
result in a conflict. 
In the html:select, the 'property' is supposed to store the selections by
the user.
In the html:options, the 'property' keeps the content for your selection
box.
I guess you should choos a different list for the selections, made by the
user.

Regards,
Bernhard



-Ursprüngliche Nachricht-
Von: Peng Tuck Kwok
Gesendet: Freitag, 28. Februar 2003 00:44
An: Hirschmann, Bernhard
Betreff: Re: AW: AW: Question about html:select (again)


That's funny, I did attach it. Nevermind here it is again.

Hirschmann, Bernhard wrote:
 there is not attachment in your mail...
 
 
 -Ursprüngliche Nachricht-
 Von: Peng Tuck Kwok 
 Gesendet: Donnerstag, 27. Februar 2003 11:41
 An: Struts Users Mailing List
 Betreff: Re: AW: Question about html:select (again)
 
 
 Hey Bernhard thanks.
 
 Here it goes.
 
 Hirschmann, Bernhard wrote:
 
Hey Pen,

if you could post the JSP code, maybe I could give you a hint.

Regards,
Bernhard


-Ursprüngliche Nachricht-
Von: Peng Tuck Kwok 
Gesendet: Donnerstag, 27. Februar 2003 10:21
An: Struts Users Mailing List
Betreff: Question about html:select (again)


I've been able to display a collection of beans using the html:select 
tag in conjunction with with the html:optionsCollection tag but I am 
stuck with a problem. I get complains from struts that it has a type 
mismatch when it tries to set my attribute for the html:select field.

I have public ArrayList getSelection() and public void 
setSelection(ArrayList input) . It seems the problem is at setSelection.
Does anyone know how to make this work?  I'm a little confused by this 
and I'm sorry if it doesn't make sense in the first read. THanks


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

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


 
 
 
 


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



Re: STRUTS With TORQUE

2003-02-28 Thread Christoph Rooms
Hi, 

I also use Torque ... I had no problems with it, it works fine AND it
is easy!

Ofcourse don't do big transactions with it ... but that goes for any
JDO framework.

Christoph

Christoph Rooms
TAM
+ 32 475 531 529

Novell Positioned as a Leader in Analyst Firm's Metadirectory Magic
Quadrant 
Novell is the first, and thus far only, company to enter the Leader
Quadrant of Gartner's Metadirectory Services Magic Quadrant. Leaders are
vendors who are performing well today, have a clear vision of market
direction, and are actively building competencies to sustain their
leadership position in the market. Read more and find out how to access
the report at www.novell.com/news/press/archive/2002/08/pr02058.html


 [EMAIL PROTECTED] 28/02/2003 8:35:47 
 We are rewriting an entire swing application and we have
 chosen Struts for
 the new web version of the product.  
  
 For the database handling part, we are planning to use
 Torque.  Does anyone
 have experience working with Struts / Torque or have
 Information especially
 on what can go wrong with this combo?  Torque seems to
 be too good and easy
 to be true!!!
   
 Any info. would be greatly appreciated!!

There are some great examples in the book Struts Kick Start using
the torque framework.  It does seem to be pretty amazing.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/ 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
This is a test of the Emergency Broadcast System.  If this had 
been an actual emergency, do you really think we'd stick around 
to tell you?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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


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



Re: AW: AW: AW: Question about html:select (again)

2003-02-28 Thread Kwok Peng Tuck
I've managed to fix this problem and if you click submit without 
validation then it is able to get the values :)

But if you validate it and the page gets redirected  back to the input 
page then the input page complains that it no longer able to get the 
collection.
Where or how should I repopulate the list  Bernhand ?

ps : my tags look like this now, along with the necessary class changes.

html:select name=compose multiple=true property=recipients  
size=8
   html:optionsCollection label=name 
property=beanCollection value=number/
/html:select


 



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


RE: prepopulate a form with values

2003-02-28 Thread Mohan Radhakrishnan
Hi,


 Our prepopulation works like this.

protected void prepopulate( HttpServletRequest request, String name
){
ReportForm form = null;
form = ( ReportForm )request.getSession().getAttribute(
reportForm );
if( form == null) {
form = new ReportForm();
setSelectedOptions( request, name, form );
request.getSession().setAttribute( reportForm, form );
} else {
setSelectedOptions( request, name, form );
}
}

/* Should be actually some type of direct copy or something */
protected void setSelectedOptions( HttpServletRequest request,
  String name,
  ReportForm form ){
LabelValueBean bean =
( LabelValueBean )((( ArrayList )request.getSession().

getAttribute( name )).get( 0 ));
ArrayList preselectedFilter = new ArrayList();
preselectedFilter.add( bean.getValue() );
logger_.debug( Setting the first value as [ + bean.getValue()
+
, +
bean.getLabel() +   ] for  + name );
if ( applicationOptions.equals( name ) ) {
form.setApplications( ( String[] ) 

preselectedFilter.toArray( new String[0] ) );
}
else if ( departmentOptions.equals( name ) ) {
form.setDepartments( ( String[] ) 

preselectedFilter.toArray( new String[0] ) );
}
else if ( divisionOptions.equals( name ) ) {
form.setDivisions( ( String[] ) 

preselectedFilter.toArray( new String[0] ) );
}
}

Mohan
-Original Message-
From: Matt Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 8:10 PM
To: Struts Users Mailing List (E-mail)
Subject: prepopulate a form with values


Can I instantiate a form, populate it with values and then place it in
request scope and have my jsp use that form to use those values as the
default.  ie if I have a Collection that I am displaying with an options
tag can I populate the form with the value that should be selected, place
the form on the request and have the tag select the appropriate option?

thanks in advance

Matt

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

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



AW: AW: AW: AW: Question about html:select (again)

2003-02-28 Thread Hirschmann, Bernhard

If you get your values out of the form bean, and this form bean is valid not
only for one request (configured in struts-config.xml), then you don't have
to repopulate. 

If you explicitly want to repolulate, then this should be done in your
action. But as I said, this is not necessary if you configure the validity
in the right way.

Bernhard

-Ursprüngliche Nachricht-
Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 28. Februar 2003 10:44
An: Struts Users Mailing List
Betreff: Re: AW: AW: AW: Question about html:select (again)


I've managed to fix this problem and if you click submit without 
validation then it is able to get the values :)

But if you validate it and the page gets redirected  back to the input 
page then the input page complains that it no longer able to get the 
collection.
Where or how should I repopulate the list  Bernhand ?

ps : my tags look like this now, along with the necessary class changes.

 html:select name=compose multiple=true property=recipients  
size=8
html:optionsCollection label=name 
property=beanCollection value=number/
/html:select


  



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

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



Re: STRUTS With TORQUE

2003-02-28 Thread Kwok Peng Tuck
Just curious Christoph but why can't it be used for big transcations ?  
I normally write my own classes  to access the db and have been looking 
into things like torque.

Christoph Rooms wrote:

Ofcourse don't do big transactions with it ... but that goes for any
JDO framework.
 



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


AW: Results in multiple pages

2003-02-28 Thread Hirschmann, Bernhard

Konstantina, 

if you want something like in Google, where you can view the first 10 hits,
the clicking on next to see the next 10 hits, then you can use the pager
taglib for this.
http://jsptags.com/tags/navigation/pager/

Greetings to Greece!

Bernhard


-Ursprüngliche Nachricht-
Von: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 28. Februar 2003 08:59
An: Struts Users Mailing List
Betreff: Results in multiple pages


Hello,
I have the following problem and I'm not sure how I can solve it.
The resultset returned from a query I'm making to the database has many
records. What I want to do is to display each time 10 of these records in my
page.
How can i do this? I have searched the archive but I couldn't find anything
similar. 
Any ideas or redirections to places where I could find a solution?

Thank you in advance.



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



How to disable automatic session creation

2003-02-28 Thread Eric Jain
After upgrading to RC-1, I notice that Struts now always automatically
creates sessions. For example, the html:form tag adds a jsessionid to
the url for the first request, something it previously didn't do.

Bug or feature? How do I disable sessions? This interferes with my
caching strategy!


--
Eric Jain


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



AW: How to disable automatic session creation

2003-02-28 Thread Hirschmann, Bernhard

Eric, as far as I know, there has been no changes in this way. Besides,
Struts doesn't create sessions, but your servlet engine does. 
Struts recognizes if you deactivated cookies in your browser, in this case
the session id is attachted to the URL.

Regards,
Bernhard

-Ursprüngliche Nachricht-
Von: Eric Jain [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 28. Februar 2003 11:33
An: struts-user
Betreff: How to disable automatic session creation


After upgrading to RC-1, I notice that Struts now always automatically
creates sessions. For example, the html:form tag adds a jsessionid to
the url for the first request, something it previously didn't do.

Bug or feature? How do I disable sessions? This interferes with my
caching strategy!


--
Eric Jain


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

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



tomcat-apache.conf perhaps irrelevant??

2003-02-28 Thread Franklin Phan
I use Tomcat 4.1.12 on MS Windows 2000.  (I've never installed any
Apache HTTP server.)  I am new to struts and am trying to install it.  I
downloaded the zipped binaries from
http://jakarta.apache.org/builds/jakarta-struts/release/v1.0.2/ .
The zipped file contains an INSTALL file, which has a section entitled 
TOMCAT 3.1 (OR LATER) WITH APACHE wherein it discusses a file 
$TOMCAT_HOME/conf/tomcat-apache.conf.  Within this section, there is 
also a paragraph that states On all versions of Tomcat [presumably, 
including Tomcan 4.1.12], the generated file above [presumably, the 
tomcat_apache.conf file] does not know anything about extension mappings 
defined in a web.xml file  In contrast, this section seems to be 
irrelevant to Tomcat 4.1.12 according to either 
http://jakarta.apache.org/struts/doc-1.0.2/installation-tc.html or
http://jakarta.apache.org/struts/userGuide/installation-tc.html.  (See 
bottom of both web pages.)  Should users be reading from the latter two 
web pages instead?  Do I have the correct idea here?  This 
tomcat-apache.conf file that this INSTALL file talks about is not 
something I can find anywhere in my hard drive.  Can anyone clarify? 
Thanks.





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


Re: STRUTS INTERNATIONALIZATION

2003-02-28 Thread James Prance
I agree with Mr Mitchell...

(thats three james' replied to this post.. any more out there)

scarter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Is there a way in struts to maintain a default application resources
 file that can be referred to in the event that a requested resource is
 not found in another resource file.  For example, it would be nice if I
 could only define specific resources in each locale specific resource
 file, instead of all of them, which consumes much more memory and more
 importantly, makes the application difficult to maintain.  The full set
 of default application resources could be defined in a default
 application resource file that would be called if the resource is not
 present in a locale specific one.  This is especially important where
 two locales are defined, say the US and UK, where very few resource
 differences exist.  If there are only a handful of resource differences
 between these locales, I would not want to have to create an entirely
 new resource file for each one, since there would be quite a few
 redundancies.

 I am aware that we can define separate resource bundles and associate
 each one with a bundle name.  However the problem with this approach is
 that I have to modify all of my struts tags to use statically defined
 bundle names.  Does anyone know of another way I can resolve this
 problem?

 Thanks,

 Scott Carter




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



Re: 1.1rc1 Error: Path index.jsp does not start with a / character

2003-02-28 Thread Max Cooper
/index.jsp gets translated (as needed) to account for the context path
automatically. The paths that start with / are evaluated relative to
your web app. You can use the /index.jsp style paths and deploy your app
with any context path without having to change anything.

-Max

On Thu, 2003-02-27 at 22:01, Affan Qureshi wrote:
 I have been using Struts 1.1b2 and tiles in my application and have defined
 forwards like:
 
 forward name=Success path=index.jsp?selected=1 redirect=false/
 
 where forward paths were JSP pages,  whithout the starting / for paths and
 it worked ok. But this does not work when I installed Strut 1.1rc1 coz it
 gave the exception:
 
 java.lang.IllegalArgumentException: Path index.jsp?selected=1 does not start
 with a / character
 
 Have I been doing it wrong until now? Is this a TilesRequestProcessor issue?
 I had done so, so that I can deploy my app under any context/module etc. and
 have no dependency on root path.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



First point of access to a struts application.

2003-02-28 Thread Simon Kelly
Hi all,

I am struggling on creating a start access point to my struts/strutscx
application.  I need to fill in a bean with some relevant page data for the
login page.  This will be the start point for all access to the application.
HOWEVER!  I am not using jsp (at all) or html pages in a prewritten form,
all output to the user will be generated from an Action class and the html
generated using xslt.

So I am currently wondering what is the best way to get the first page to
the user.  Should I have an Action class that is dedicated to presenting a
first page that contains a login form, and then that form will cause a
forward to the loginAction (which checks the user input) on clicking the
submit button.  Or would it be better to have the whole login page
presentation, and loginAction within the same loginAction class?  If so, how
in the loginAction will it know that the user is new to the site and should
therefore display a new login form?

Kind regards

Simon.

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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



automatic send mail

2003-02-28 Thread alexj
Hi all,

I got one more question :

How can I solve this use case, I need to automatic
delivering mail to student who have not validate some
exercices or they are late in the execution of them.

I have a view page how show by courses and by
class all the students and all the state of theirs exercices 
and I want allow a professor to choose to send mail
to students.

Thanks for your advice.

--
 Alexandre Jaquet




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



RE: More Than Form On A JSP

2003-02-28 Thread Jack Zakarian
Hi,

I have seen the pager. How are you getting it to run with iterate tags.
I thought you had to keep going back to the database to get the next set
of information.

Thanks,

Jack

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 11:02 PM
To: [EMAIL PROTECTED]
Subject: Re: More Than Form On A JSP

I have found that I needed to do this:


  MapActionForm myForm=(MapActionForm)actionForm;
  request.setAttribute(mapForm,myForm);

to get this to work.  I dont know why, but my form loses visibility like
yours.  the above seemed to rectify the situation.

There is a nify Pager component in Karapan Sapi Struts Generator that
works quite well with the iterate tag's offset parameter.  I have
embedded this into my form just as you have done, and it worked good.

Regards,
Mark

At 02:38 PM 2/26/2003 -0800, you wrote:
I am developing an architecture for the rest of my
development staff to use on a new J2EE project
starting next month.

I have the following situation:

..


All this allows my developers to reuse this HTML table
logic on any JSP that has a similar appearance (static
data at the top and scrollable data at the bottom).

There is a problem however. After the page is
redisplayed, the top part of the page contains no
data. All of it has been lost because the form
associated with it is out of scope (it was scoped to
the request).

I don't want to scope the forms to the session as they
will accumulate as the user navigates through the
application, plus the data in them will be stale if
the user returns to a JSP they were at a while ago.

Does anyone have any ideas how to solve this?




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




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



Re: [Ann]: Live online advanced Struts training by 4 authors for$350 - last chance

2003-02-28 Thread Vic Cekvenich
Vic Cekvenich wrote:
One place for more details and info here:
http://www.postgresql.org/event.php?EventID=122
.V


In addition to above, we might have bonus session(s) at the end, in 
April for the paid students, subject to changes.

Possible topics following, maybe 2 per week in April, TBA and not in 
real order:
- Stxx by D. Brown, comitter
- Hibernate by D. Bradby, comitter
- Xdoclets (or tbd) by M. Raible (developed POJO interface, etc.)
- Tiles (or tbd) by P.Peal (wrote Tiles 201, etc.)
- X:Froms(w3.org) by Novell(J2EE)

Having said this  please not lose foucs of the labs road map.

.V



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


RE: logic:iterate examples plz.

2003-02-28 Thread James Mitchell
Not in my browser.  It looks fine.

Try this different format:


table border=1
 tr
  thArtist/th
  thFirst Name/th
  thLast Name/th
 /tr
logic:iterate id=artist name=artists indexId=index
 tr
  tdbean:write name=artist property=key//td
  tdnbsp;/td
  tdnbsp;/td
 /tr
   logic:iterate id=title name=artist property=value
 tr
 bean:define id=a name=title/
  tdnbsp;/td
   tdbean:write name=a property=label //td
   tdbean:write name=a property=value //td
 /tr
   /logic:iterate
/logic:iterate
/table







--
James Mitchell
Web Developer/Struts Evangelist
http://www.microsoft.com/struts/



 -Original Message-
 From: shashi_struts [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, February 27, 2003 11:49 PM
 To: Struts Users Mailing List
 Subject: Re: logic:iterate examples plz.
 
 
 Hi James
 
 You r doing same i has been done in my program.
 But the problem if i go for display it will show the one 
 ---
 Pahwa
 shashi bhushan
 Dua
 sunil kumar
 --
 and it skip the value
 'vijay kumar'  from the index 0 of hashtable and index 1 of arraylist
 
 i think u carry my point
 
 plz help me
 
 
 
 
 - Original Message - 
 From: James Mitchell [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 9:08 PM
 Subject: RE: logic:iterate examples plz.
 
 
  Here ya go (except I used LabelValueBean, its virtually the 
 same as your
  'A'):
  
  
  
  [EMAIL PROTECTED] contentType=text/html;charset=UTF-8 language=java %
  [EMAIL PROTECTED] import=org.apache.struts.util.LabelValueBean%
  [EMAIL PROTECTED] import=org.apache.struts.taglib.html.Constants%
  [EMAIL PROTECTED] import=java.util.Hashtable%
  [EMAIL PROTECTED] import=java.util.ArrayList%
  [EMAIL PROTECTED] import=testing.SimpleBeanForTesting%
  %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
  %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
  %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
  
  html:html
  head
titleMy Test Page/title
  html:base/
  /head
  body bgcolor=white
  %
  Hashtable artists=new Hashtable();
  ArrayList titles=new ArrayList();
  String cast=Pahwa;
  titles.add(new LabelValueBean(shashi,bhushan));
  titles.add(new LabelValueBean(vijay,kumar));
  artists.put(cast,titles);
  cast=Dua;
  titles=new ArrayList();
  titles.add(new LabelValueBean(sunil,kumar));
  artists.put(cast,titles);
  pageContext.setAttribute(artists,artists);
  %
  
  logic:iterate id=artist name=artists indexId=index
 Artist: libean:write name=artist property=key//li
 logic:iterate id=title name=artist property=value
   bean:define id=a name=title/
   libean:write name=a property=label //li
   bean:write name=a property=value /
 /logic:iterate
  /logic:iterate
  
  /body
  /html:html
  
  
  --
  James Mitchell
  Web Developer/Struts Evangelist
  http://www.apache.org/struts/
  
  
  
   -Original Message-
   From: shashi_struts [mailto:[EMAIL PROTECTED] 
   Sent: Thursday, February 27, 2003 10:17 AM
   To: Struts Users Mailing List
   Subject: Re: logic:iterate examples plz.
   
   
   hi Gamor
   Thanks for reply.
   
   This code not solve my problem
   i am sending my code .plz help me
   Hashtable artists=new Hashtable();
   ArrayList titles=new ArrayList();
   String cast=Pahwa;
   titles.add(new A(shashi,bhushan));
   titles.add(new A(vijay,kumar));
   artists.put(cast,titles);
   cast=Dua;
   titles=new ArrayList();
   titles.add(new A(sunil,kumar));
   artists.put(cast,titles);
   pageContext.setAttribute(artists,artists);
   and
   i has been used this one for show the records
   
   logic:iterate id=hash name=artists indexId=index 
Artist: libean:write name=hash  
 property=key //li
  logic:iterate id=array name=hash property=value 
bean:define id=a name=array/
   libean:write name=a property=name //li
   bean:write name=a property=value /
  /logic:iterate
   /logic:iterate
   
   plz. help me
   
   
   - Original Message -
   From: Gemes Tibor [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, February 27, 2003 7:26 PM
   Subject: Re: logic:iterate examples plz.
   
   
shashi_struts wrote:
   
HI
I am working on the concept in which i stored string as 
   key and arraylist
   as value in the hashtable.The arraylist stores a class name A 
   which have two
   parameter name and value


I tried too much but not succeed to print the value in 
   key,value  in
   wirte manner.



   

 http://jakarta.apache.org/struts/userGuide/struts-logic.html#i
terate
  
   |logic:iterate id=entry name=myMap
   bean:write name=entry property=key/
   logic:iterate id=subelement name=entry property=value
  bean:write name=subelement/
   ||/logic:iterate
   ||/logic:iterate
  
   Hth,
  
   Tib
   |
  
  
  
   
 
-
   To unsubscribe, e-mail: [EMAIL 

Re: How to disable automatic session creation

2003-02-28 Thread Eric Jain
 Eric, as far as I know, there has been no changes in this way.
 Besides, Struts doesn't create sessions, but your servlet engine does.
 Struts recognizes if you deactivated cookies in your browser, in this
 case the session id is attachted to the URL.


All I know is that no sessions where created until I upgraded to RC1...
And certainly I don't create any myself.

Of course once there is a session the observed behavior is correct; the
session ID must be included in URLs in the first requested page, as it
is not yet known at that point whether or not the client supports
cookies.


--
Eric Jain


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



html:multibox and bean:write

2003-02-28 Thread shashi_struts
hi

hi i am using multibox and in the value i want a data comes from the logic:iterate and 
write through the bean:write

but it gives a problem
 logic:iterate id=styleData name=style property=styleData indexId=index
 tr
td valign=middle width=83
  html:multibox name=style property=styleID value= bean:write 
name=styleData property=key//
  /td
   td width=167 br
bean:write name=styleData property=value//td
  /tr
/logic:iterate
-

this is my code
please consider this and help me

Shashi



Re: Is struts-config too verbose?

2003-02-28 Thread James Holmes
Struts Console makes working with the config files
alot easier.  May alleviate some of your
frustations.

http://www.jamesholmes.com/struts/

-james

--- Mark [EMAIL PROTECTED] wrote:
 Ah! Answer a question with a question, I like that
 ;)
 
 I believe its just a matter of setting up additional
 forwards.  I'll play around a bit with it.
 
 Thanks for the tips,
 
 Mark
 
 

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


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Each Tile can have its own controller ?

2003-02-28 Thread Rick Ashley
Tiles site http://www.lifl.fr/~dumoulin/tiles/
says that each tile can have its own controller.
=It is now possible to associate a controller to each Tile.
This controller (Java code or struts action) is called immediately before 
the Tile jsp page. It is useful to prepare data to be shown by jsp page.

Has anyone a sample code how to do this in Struts application?

Thanks

- rick





_
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Each Tile can have its own controller ?

2003-02-28 Thread Rick Ashley
Tiles site http://www.lifl.fr/~dumoulin/tiles/
says that each tile can have its own controller.
=It is now possible to associate a controller to each Tile.
This controller (Java code or struts action) is called immediately before 
the Tile jsp page. It is useful to prepare data to be shown by jsp page.

Has anyone a sample code how to do this in Struts application?

Thanks

- rick





_
Surf together with new Shared Browsing 
http://join.msn.com/?page=features/browsepgmarket=en-gbXAPID=74DI=1059

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


JSP Exceptions not being correctly handled

2003-02-28 Thread Victor Batista
Hello!
My web application is redirecting all exceptions to an error page (through
web.xml confs). Although, when exceptions occur on JSPs, the application
isn't being redirected to the error page.

My error occurs on the following situation:

If the User's Session expires, the user gets redirected to the login form,
and then back to the action it requested (if the login was successful). In
every action I check if the user has passed by its home (where I put one
object on its session). If not, the user gets redirected to its home. So,
after a session expired, the user gets redirected to its home.
Although, I have one case which:
If the user tries to submit a form, and the session has expired, the 
user
gets redirected to the login form, and than to the action it requested (form
submit). This action has validate=true, so control gets to the validator,
which detects that the parameters are incorrect, and it redirects to the
input of the action. Here is the problem. This Input needs one object on
the session, and its here where I am getting the exception. The exception
occurs before I have control, and isn't getting redirected correctly.

Why are JSP excerptions being redirected?
Any help to my problem would be appreciated.

Thanks in advance,
Victor Batista




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



Re: logic:iterate examples plz.

2003-02-28 Thread shashi_struts
Thank James

I checked my code and now the issue is solved.
please help me on the other issue that i has been posted over forum.

Thanks Again
Shashi
- Original Message - 
From: James Mitchell [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 5:49 PM
Subject: RE: logic:iterate examples plz.


 Not in my browser.  It looks fine.
 
 Try this different format:
 
 
 table border=1
  tr
   thArtist/th
   thFirst Name/th
   thLast Name/th
  /tr
 logic:iterate id=artist name=artists indexId=index
  tr
   tdbean:write name=artist property=key//td
   tdnbsp;/td
   tdnbsp;/td
  /tr
logic:iterate id=title name=artist property=value
  tr
  bean:define id=a name=title/
   tdnbsp;/td
tdbean:write name=a property=label //td
tdbean:write name=a property=value //td
  /tr
/logic:iterate
 /logic:iterate
 /table
 
 
 
 
 
 
 
 --
 James Mitchell
 Web Developer/Struts Evangelist
 http://www.microsoft.com/struts/
 
 
 
  -Original Message-
  From: shashi_struts [mailto:[EMAIL PROTECTED] 
  Sent: Thursday, February 27, 2003 11:49 PM
  To: Struts Users Mailing List
  Subject: Re: logic:iterate examples plz.
  
  
  Hi James
  
  You r doing same i has been done in my program.
  But the problem if i go for display it will show the one 
  ---
  Pahwa
  shashi bhushan
  Dua
  sunil kumar
  --
  and it skip the value
  'vijay kumar'  from the index 0 of hashtable and index 1 of arraylist
  
  i think u carry my point
  
  plz help me
  
  
  
  
  - Original Message - 
  From: James Mitchell [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Thursday, February 27, 2003 9:08 PM
  Subject: RE: logic:iterate examples plz.
  
  
   Here ya go (except I used LabelValueBean, its virtually the 
  same as your
   'A'):
   
   
   
   [EMAIL PROTECTED] contentType=text/html;charset=UTF-8 language=java %
   [EMAIL PROTECTED] import=org.apache.struts.util.LabelValueBean%
   [EMAIL PROTECTED] import=org.apache.struts.taglib.html.Constants%
   [EMAIL PROTECTED] import=java.util.Hashtable%
   [EMAIL PROTECTED] import=java.util.ArrayList%
   [EMAIL PROTECTED] import=testing.SimpleBeanForTesting%
   %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
   %@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
   %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
   
   html:html
   head
 titleMy Test Page/title
   html:base/
   /head
   body bgcolor=white
   %
   Hashtable artists=new Hashtable();
   ArrayList titles=new ArrayList();
   String cast=Pahwa;
   titles.add(new LabelValueBean(shashi,bhushan));
   titles.add(new LabelValueBean(vijay,kumar));
   artists.put(cast,titles);
   cast=Dua;
   titles=new ArrayList();
   titles.add(new LabelValueBean(sunil,kumar));
   artists.put(cast,titles);
   pageContext.setAttribute(artists,artists);
   %
   
   logic:iterate id=artist name=artists indexId=index
  Artist: libean:write name=artist property=key//li
  logic:iterate id=title name=artist property=value
bean:define id=a name=title/
libean:write name=a property=label //li
bean:write name=a property=value /
  /logic:iterate
   /logic:iterate
   
   /body
   /html:html
   
   
   --
   James Mitchell
   Web Developer/Struts Evangelist
   http://www.apache.org/struts/
   
   
   
-Original Message-
From: shashi_struts [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 27, 2003 10:17 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate examples plz.


hi Gamor
Thanks for reply.

This code not solve my problem
i am sending my code .plz help me
Hashtable artists=new Hashtable();
ArrayList titles=new ArrayList();
String cast=Pahwa;
titles.add(new A(shashi,bhushan));
titles.add(new A(vijay,kumar));
artists.put(cast,titles);
cast=Dua;
titles=new ArrayList();
titles.add(new A(sunil,kumar));
artists.put(cast,titles);
pageContext.setAttribute(artists,artists);
and
i has been used this one for show the records

logic:iterate id=hash name=artists indexId=index 
 Artist: libean:write name=hash  
  property=key //li
   logic:iterate id=array name=hash property=value 
 bean:define id=a name=array/
libean:write name=a property=name //li
bean:write name=a property=value /
   /logic:iterate
/logic:iterate

plz. help me


- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 7:26 PM
Subject: Re: logic:iterate examples plz.


 shashi_struts wrote:

 HI
 I am working on the concept in which i stored string as 
key and arraylist
as value in the hashtable.The arraylist stores a class name A 
which have two
parameter name and value
 
 
 I tried too much but not 

Re: How to disable automatic session creation

2003-02-28 Thread Kris Schneider
Depending on which Struts features you make use of, Struts may create a session
on your behalf. In particular, if the controller tag in struts-config.xml has
its locale attribute set to true, then a session may be created. Also, if
the html:html tag in a JSP has its locale attribute set to true, then a
session may be created.

Of course, by default any JSP page that handles a request may also create a
session. You have to use %@ page session=false % to disable that feature.

Quoting Eric Jain [EMAIL PROTECTED]:

  Eric, as far as I know, there has been no changes in this way.
  Besides, Struts doesn't create sessions, but your servlet engine does.
  Struts recognizes if you deactivated cookies in your browser, in this
  case the session id is attachted to the URL.
 
 
 All I know is that no sessions where created until I upgraded to RC1...
 And certainly I don't create any myself.
 
 Of course once there is a session the observed behavior is correct; the
 session ID must be included in URLs in the first requested page, as it
 is not yet known at that point whether or not the client supports
 cookies.
 
 
 --
 Eric Jain
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



How do you display action error messages in jsp?

2003-02-28 Thread julian green
I have a jsp page that is being pre-populated by the action, the action 
is writing values directly into the form bean.  But I also want to 
display error messages generated by the action.

I am doing a:

   saveErrors(request, errors);

   return mapping.findForward(success);

at the end of the action, but nothing ever shows up.  Any ideas?

The success forward mapps to the jsp page in struts-config.xml

Julian

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


Re: How do you display action error messages in jsp?

2003-02-28 Thread alexj
Exemple : 

public ActionForward execute(

ActionMapping mapping,

ActionForm form,

HttpServletRequest request,

HttpServletResponse response)

throws Exception {

ArrayList students = new ArrayList ();

HttpSession session = request.getSession(); 

String target = new String (success);

LoginForm loginForm = (LoginForm) form;

String userName = ((LoginForm) form).getUserName();

String userPassword = ((LoginForm) form).getUserPassword();

String user = getUser(userName, userPassword);

if (user == null) {

target = new String (login);

ActionErrors errors = new ActionErrors ();

errors.add(ActionErrors.GLOBAL_ERROR, new ActionError (

errors.userNotFound, userName)); 

saveErrors(request, errors) ;

}

else {

session.setAttribute(USER :, user);

} 

return (mapping.findForward(target));

}



And in your jsp view you will need to add 

a html:errors / tag.

Don't forget to add your message keys on your application.properties file.

Example :

userNameNotFound=liUser name not foundli

--

Alexandre Jaquet



- Original Message - 
From: julian green [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:38 PM
Subject: How do you display action error messages in jsp?


 I have a jsp page that is being pre-populated by the action, the action 
 is writing values directly into the form bean.  But I also want to 
 display error messages generated by the action.
 
 I am doing a:
 
 saveErrors(request, errors);
 
 return mapping.findForward(success);
 
 at the end of the action, but nothing ever shows up.  Any ideas?
 
 The success forward mapps to the jsp page in struts-config.xml
 
 Julian
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Struts-EL

2003-02-28 Thread Josh Rayls
Hi,

Is there a property that I can use to get the size of a collection?

Basically, I want to do this:

${resultBean.result.length}

Where result is a Collection.

Thanks for any help!

-Josh


Re: Struts-EL

2003-02-28 Thread alexj
have you tried result.size ?

- Original Message - 
From: Josh Rayls [EMAIL PROTECTED]
To: Struts Users Mailing List (E-mail) [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 2:47 PM
Subject: Struts-EL


 Hi,
 
 Is there a property that I can use to get the size of a collection?
 
 Basically, I want to do this:
 
 ${resultBean.result.length}
 
 Where result is a Collection.
 
 Thanks for any help!
 
 -Josh
 


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



Re: How do you display action error messages in jsp?

2003-02-28 Thread Gemes Tibor
julian green wrote:

   saveErrors(request, errors);

   return mapping.findForward(success);
This seems to be ok.

- Is errors not empty?  (if empty there will be no error of course)
- Is your ActionForward not redirected? (this would create a new  
request, so everything you've saved in request would be discarded)
- Do you have a html:errors on your jsp? (this displays the errors)

Hth,
Tib
.


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


Re: How to disable automatic session creation

2003-02-28 Thread Eric Jain
 if the controller tag in struts-config.xml has its locale
 attribute set to true, then a session may be created.

I tried adding a controller element with locale set to false, but no
difference...


 Also, if the html:html tag in a JSP has its
 locale attribute set to true, then a session may be created.

I don't use the html:html element...


 Of course, by default any JSP page that handles a request may also
 create a session. You have to use %@ page session=false % to
 disable that feature.

page session=false is set for every page...


Really curious what is creating the session here... Perhaps this would
show up somewhere if I increase the debug level?

Is anybody actually using Struts without sessions?


--
Eric Jain


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



Re: How to disable automatic session creation

2003-02-28 Thread Kris Schneider
Another possibility - by default, form beans are stored in session scope. In
struts-config.xml, you'd need:

action ... scope=request ... /

for all your actions that receive a form bean.

Quoting Eric Jain [EMAIL PROTECTED]:

  if the controller tag in struts-config.xml has its locale
  attribute set to true, then a session may be created.
 
 I tried adding a controller element with locale set to false, but no
 difference...
 
 
  Also, if the html:html tag in a JSP has its
  locale attribute set to true, then a session may be created.
 
 I don't use the html:html element...
 
 
  Of course, by default any JSP page that handles a request may also
  create a session. You have to use %@ page session=false % to
  disable that feature.
 
 page session=false is set for every page...
 
 
 Really curious what is creating the session here... Perhaps this would
 show up somewhere if I increase the debug level?
 
 Is anybody actually using Struts without sessions?
 
 
 --
 Eric Jain
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



RE: Struts-EL

2003-02-28 Thread Jarnot Voytek Contr AU HQ/SC
This issue has been discussed this week, and last week, and probably the
week before...

http://marc.theaimsgroup.com/?l=struts-userw=2r=1s=jstl+collection+sizeq
=b

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


 -Original Message-
 From: Josh Rayls [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 7:47 AM
 To: Struts Users Mailing List (E-mail)
 Subject: Struts-EL
 
 
 Hi,
 
 Is there a property that I can use to get the size of a collection?
 
 Basically, I want to do this:
 
 ${resultBean.result.length}
 
 Where result is a Collection.
 
 Thanks for any help!
 
 -Josh
 

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



Re: automatic send mail

2003-02-28 Thread alexj
nop thanks :)

--
Alexandre Jaquet

- Original Message - 
From: Jarnot Voytek Contr AU HQ/SC [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 3:08 PM
Subject: RE: automatic send mail


 Have you looked at http://java.sun.com/products/javamail/ ?
 
 --
 Voytek Jarnot
 Quidquid latine dictum sit, altum viditur.
 
 
  -Original Message-
  From: alexj [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 5:23 AM
  To: Struts Users Mailing List
  Subject: automatic send mail
  
  
  Hi all,
  
  I got one more question :
  
  How can I solve this use case, I need to automatic
  delivering mail to student who have not validate some
  exercices or they are late in the execution of them.
  
  I have a view page how show by courses and by
  class all the students and all the state of theirs exercices 
  and I want allow a professor to choose to send mail
  to students.
  
  Thanks for your advice.
  
  --
   Alexandre Jaquet
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Best place to wrap validator error messages in css class selectors?

2003-02-28 Thread Jeff Kyser
Hello,

Is there a better way to wrap up the error messages returned from the 
validator
framework in a css class selector?

It works 'ok' to use:

span class=formErrorMessage
html:error property=username bundle=VALIDATOR_BUNDLE/
/span
directly in my jsp, but that seems to junk up the jsp page a bit.

I don't really want to put it directly in the validator-specific 
resource file either,
since that's somewhat generic, and the class selector [c]ould be 
specific to an app.	(actually, haven't even tried it there, just seems 
like the wrong place)

How do you all address this generally?

TIA,

-jeff 

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


Re: How to disable automatic session creation

2003-02-28 Thread Eric Jain
 action ... scope=request ... /

Thanks, checked that, already set correctly...


--
Eric Jain


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



Re: How do I control logging in Struts? -- Was: Re: Tiles - Stop from logging

2003-02-28 Thread Kris Schneider
Pretty sure you wanna add:

log4j.additivity.org.apache.struts.tiles=false

Hope that's the right properties file syntax, I usually use XML...

Quoting Eddie Bush [EMAIL PROTECTED]:

 You really should be able to get such examples off the components' 
 respective sites, but, seeing as how folks seem to have problems with 
 this ... here you go :-)
 
 log4j.properties ---
 log4j.rootLogger=DEBUG,A1
 log4j.logger.org.apache.struts.tiles=WARN
 
 # A1 is set to be a ConsoleAppender.
 log4j.appender.A1=org.apache.log4j.ConsoleAppender
 
 # A1 uses PatternLayout.
 log4j.appender.A1.layout=org.apache.log4j.PatternLayout
 log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
 
 commons-logging.properties ---
 org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
 
 The commons-logging.properties file says Hey, commons-logging, I'm 
 using Log4J as my logging implementation!.  From there, you just need 
 to configure Log4J to your needs.  If you need more sophisticated 
 control over Log4J, see the Log4J site:  http://jakarta.apache.org/log4j
 
 Enjoy! ;-)
 
 Rieberger, Dale wrote:
 
 Need an example of a commons-logging.properties and log4j.properties
 files.
 
 
 -- 
 Eddie Bush
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



DispatchActions - can I use a path parameter

2003-02-28 Thread Raible, Matt
Is it possible to configure dispatch actions to recognize a path parameter,
rather than a true parameter:

I'd like to do:

/user/search

rather than:

/user?action=search

I guess I could do this with a forward eh?

Matt


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



Re: Some questions about struts

2003-02-28 Thread Rajan Gupta
How about writing a Servlet which is loaded on Startup  configured as
such in web.xml. This servlet can load the data from the files  store
them in a responsible context
--- Peng Tuck Kwok [EMAIL PROTECTED] wrote:
 Thanks for the prompt reply Jacob.
 I do need the xml data to persist, one xml which contains a bunch of 
 users who can log in  the other xml contains a list of numbers that 
 belong to the bunch of users.
 Since I need the application to read these xml files on startup, does 
 that mean I need to create a class which extends ActionServlet and
 populate the servlet context like this ? :
getServletContext().setAttribute(LOCALES_KEY, locales);
 
 
 
 
 
 
 Jacob Hookom wrote:
  You can have the ActionServlet determine where the source XML is
 coming
  from.  Then, either forward to a JSP and use JSTL to handle the
 rendering,
  or use a transformer and write directly to the OutputStream within the
  ActionServlet, and return null instead of an ActionForward.
  
  -Jacob
  
  | -Original Message-
  | From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]
  | Sent: Tuesday, February 11, 2003 12:06 AM
  | To: Struts Users Mailing List S
  | Subject: Some questions about struts
  | 
  | I have a few questions I need to ask about struts. First of I've
 done
  | some simple examples that allow my struts example to access the
 database
  | and validate fields passed by an action form. All is good and well.
  | 
  | Now I want my application to read say two xml files and when a page
 is
  | requested, the page would display the data from the xml.
  | My question is when I pre-process the xml file on startup, how do I
 make
  | the xml data available to struts on startup? Should I use a
  | ActionServlet to do this ? Or am I barking up the wrong tree here?
  | 
  | 
  | 
  | 
  |
 -
  | To unsubscribe, e-mail: [EMAIL PROTECTED]
  | For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Re: How do I control logging in Struts? -- Was: Re: Tiles - Stopfrom logging

2003-02-28 Thread Eddie Bush
Actually, with a single appender, it really shouldn't matter.  If he 
winds up adding additional appenders, then, yes, he may want to do that. 
The problem solved by that, unless I'm mistaken, is that output shows 
up on multiple appenders.  Hence, with only a single appender, it really 
isn't necessary.

Kris Schneider wrote:

Pretty sure you wanna add:

log4j.additivity.org.apache.struts.tiles=false

Hope that's the right properties file syntax, I usually use XML...

--
Eddie Bush




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


Re: How to disable automatic session creation

2003-02-28 Thread Kris Schneider
Huh. Are you using any other libraries/frameworks besides Struts that might be
creating a session? I'm assuming that since you're attemping to go session-less,
 you don't have application code that calls the no-arg version of
HttpServletRequest.getSession...right? If you've got some test code that's
checking to see whether a session was created, make sure you call
req.getSession(false).

Quoting Eric Jain [EMAIL PROTECTED]:

  action ... scope=request ... /
 
 Thanks, checked that, already set correctly...
 
 
 --
 Eric Jain
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



Re: How do I control logging in Struts? -- Was: Re: Tiles - Stop from logging

2003-02-28 Thread Kris Schneider
Nope, you're right, good call. I've just gotten into the habbit of doing that
regardless of the number of appenders I've got.

Quoting Eddie Bush [EMAIL PROTECTED]:

 Actually, with a single appender, it really shouldn't matter.  If he 
 winds up adding additional appenders, then, yes, he may want to do that. 
  The problem solved by that, unless I'm mistaken, is that output shows 
 up on multiple appenders.  Hence, with only a single appender, it really 
 isn't necessary.
 
 Kris Schneider wrote:
 
 Pretty sure you wanna add:
 
 log4j.additivity.org.apache.struts.tiles=false
 
 Hope that's the right properties file syntax, I usually use XML...
 
 
 -- 
 Eddie Bush
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



Re: How to disable automatic session creation

2003-02-28 Thread Eric Jain
 Huh. Are you using any other libraries/frameworks besides Struts that
 might be creating a session?

Don't think so. Anyways, as mentioned sessions only started being
created after I upgraded to RC1.

Looks like I'll need to set up AspectJ to figure out who the culprit is
:-)


--
Eric Jain


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



Re: How do you display action error messages in jsp?

2003-02-28 Thread julian green
Done all of your suggestions, and still fails.

this is the end of my action method

System.out.println(errors.size()= + errors.size());
if (errors.size()  0)
{
saveErrors(request, errors);
return mapping.findForward(fail);
}
return mapping.findForward(success);
}
and here is a snippet from struts-config.xml

action path=/subprofilelist
  type=...admin.suspendenable.SuspendEnableAction
  name=suspendenableform
  scope=request
  validate=false
  parameter=whatdoesthisdo
  input=/listprofiles.jsp
forward name=success path=/listprofiles.jsp/
forward name=fail path=/error.jsp/
/action
... and finally I have html:errors / in error.jsp which renders 
nothing.  Still confused

Julian

Gemes Tibor wrote:
julian green wrote:

   saveErrors(request, errors);

   return mapping.findForward(success);


This seems to be ok.

- Is errors not empty?  (if empty there will be no error of course)
- Is your ActionForward not redirected? (this would create a new  
request, so everything you've saved in request would be discarded)
- Do you have a html:errors on your jsp? (this displays the errors)

Hth,
Tib
.


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


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


Struts Sub-modules

2003-02-28 Thread Stephen Smithstone
Does any one have a spare simple war that shows off switching modules im 
having to many problems at the minute :/

if you could email them to [EMAIL PROTECTED] it would be great

ta


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



Re: changing ApplicationResources.properties runtime

2003-02-28 Thread David Graham
In properties file:
lastJDBCError.value={0}
Then construct the error message with the exception text as the first 
replacement value.

David



From: Arunachalam Jaisankar [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: changing ApplicationResources.properties runtime
Date: Fri, 28 Feb 2003 18:40:32 +1300
Hi All,

I've a column  lastJDBCError.value in ApplicationResources.Properties
file.
And I want to change the value of that column in run time, i mean whenever 
I
get an SQL Exception I want to fill lastJDBCError.value with that
Exception.

Is it possible to change run time? If yes, kindly let me know how to do
that.
regards
Jai
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


Re: Each Tile can have its own controller ?

2003-02-28 Thread David Graham
http://blogs.browsermedia.com/patrick/index.do?date=20030211#130200



From: Rick Ashley [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Each Tile can have its own controller ?
Date: Fri, 28 Feb 2003 12:46:42 +
Tiles site http://www.lifl.fr/~dumoulin/tiles/
says that each tile can have its own controller.
=It is now possible to associate a controller to each Tile.
This controller (Java code or struts action) is called immediately before 
the Tile jsp page. It is useful to prepare data to be shown by jsp page.

Has anyone a sample code how to do this in Struts application?

Thanks

- rick





_
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


RE: STRUTS with TORQUE

2003-02-28 Thread Mitchell Morris
Please summarize your findings to the list, if you would; I would
be interested in seeing the group consensus on Torque as well.

From following Jetspeed and Turbine user lists it seems that
there's a lot of confusion about where the various Turbine projects
are going especially with respect to Avalon. In my professional
caution, I discarded Torque as a candidate persistence layer
because of the organizational uncertainty that I thought I saw. I
would be delighted to find out that I was overly hasty.

+Mitchell

 -Original Message-
 From: Petrus, Christian (CORP, GEITC)
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 11:19 PM
 To: [EMAIL PROTECTED]
 Subject: STRUTS with TORQUE
 
 
   Hello All,
 
 Thanks for all the help in this list.   
  
 We are rewriting an entire swing application and we have 
 chosen Struts for
 the new web version of the product.  
  
 For the database handling part, we are planning to use 
 Torque.  Does anyone
 have experience working with Struts / Torque or have 
 Information especially
 on what can go wrong with this combo?  Torque seems to be too 
 good and easy
 to be true!!!
  
 Any info. would be greatly appreciated!!
  
 Thanks in advance,
 Christian
  
 
 
 
 THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED 
 ONLY FOR THE
 ADDRESSEE and may contain confidential and privileged information.
 If the reader of this message is not the intended recipient,
 you are notified that any dissemination, distribution or copy of this 
 communication is strictly Prohibited. 
 If you have received this message by error, please notify us 
 immediately, return the original mail to the sender and delete the 
 message from your system.
 
 


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



Re: How do you display action error messages in jsp?

2003-02-28 Thread Gemes Tibor
julian green wrote:

Done all of your suggestions, and still fails.

this is the end of my action method

System.out.println(errors.size()= + errors.size());


You'd better use log4j for debugging, imho.

if (errors.size()  0)
{
saveErrors(request, errors);
return mapping.findForward(fail);
}
return mapping.findForward(success);
}
and here is a snippet from struts-config.xml

action path=/subprofilelist
  type=...admin.suspendenable.SuspendEnableAction
  name=suspendenableform
  scope=request
  validate=false
  parameter=whatdoesthisdo
  input=/listprofiles.jsp
forward name=success path=/listprofiles.jsp/
forward name=fail path=/error.jsp/
/action
... and finally I have html:errors / in error.jsp which renders 
nothing.  Still confused 


But you have the errors.jsp displayed, have you? Look into the logs, 
might help a lot.

Tib



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


RE: deploy with ant, best practices

2003-02-28 Thread Mitchell Morris
I have a separate deploy target using the unwar task to unroll
the WAR file myself. Build your WAR normally and then unroll it for
Tomcat. You could easily then use the reload task as desired.

I'd also like to take a moment to express my (mild) distaste at
forcing your build tree to look like your WAR file structurally.
The war task will let you specify the bits and pieces
by destination, so you can put your sources where they make sense
to you (the human) instead of where their eventual output forms
will make sense to the appserver. For example, I keep all my
configuration files and resource properties files in an etc
directory and tell war to go fetch them from there:
target name=war depends=compile,generate
  war destfile=dist/${app.name}.war webxml=etc/web.xml
fileset dir=web/
lib dir=lib
  include name=*.jar/
/lib
classes dir=target/classes/
classes dir=etc
  include name=*.properties/
  include name=hibernate.cfg.xml/
  include name=cache.ccf/
/classes
webinf file=etc/struts-config.xml/
webinf dir=lib
  exclude name=*.jar/
/webinf
  /war
/target


 -Original Message-
 From: Dan Allen [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 2:30 AM
 To: [EMAIL PROTECTED]
 Subject: deploy with ant, best practices
 
 
 I have been studying ant very thoroughly over the past two days, and
 I completely understand the file from top to bottom, including how
 to reload the application using the reload tag imported from
 org.apache.catalina.ant.ReloadTask.  However, I am stuck on an
 issue.
 
 Assuming that I follow the techniques from the book Struts Kick
 Start, I create a development tree such as
 
 ${app.home}
 /build
 /deploy
 /object
 /src
 /lib
 /web
 /WEB-INF
 /META-INF
 
 then the actual target tree (under tomcat/webapps) is the typical
 
 ${app.name}.war
 ${app.name}
 /WEB-INF
 /WEB-INF/lib
 /WEB-INF/classes
 /META-INF
 
 Okay, now stay with me here.  Assume that I currently have the
 application running under tomcat.  If I build the .war file from the
 build/ directory and place it into ${app.home}/deploy, then copy
 it to ${app.name}.war under tomcat/webapps, it isn't going to
 automatically expand over the current running tree.  It just sits
 there until I kick tomcat (restart it) after deleting the running
 application directory.
 
 So what I did instead was I made the build/ directory the actual
 running application directory so it just copied over the live
 files directly as they were updated by javac.  Then a simple
 reload would cause the application to start using the updated
 files.
 
 The question on the table is as follows.  How do you get tomcat to
 expand an updated .war file over a currently running application
 before you reload it?  It seems wrong to have the live application
 the target of my build process.
 
 The goal here is to update the running application without having to
 restart tomcat and without having to use the running application as
 the target of the build process.  I want to be able to copy the
 updated .war file into the tomcat/webapps folder and have it expand
 it over the running application files.  Is this unreasonable to
 expect this?  How does everyone else do it.  Surely you are not
 restarting tomcat all day.
 
 Dan
 
 -- 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 Daniel Allen, [EMAIL PROTECTED]
 http://www.mojavelinux.com/
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 I am the GOD.the GOD...of house! 
  -- Leeloo
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



[Tiles] Whay can't a controller be assigned in the put tag?

2003-02-28 Thread jennings, christofer \BOZ\ j
I'm curious why Tiles controllers can't be assigned in the put tag.

 

As far as I can tell, a controller can only be assigned at the level of
definition or input, which means that the controller must know enough to
format data for mutiple put sections of a page or tile. What I want,
though, is to have each put section (may we say node of a  tile?)
display independent data. I do not want a bunch of definitions that each
wrap one put, but it seems this is the only answer.

 

Am I wrong? If not, why can't a controller be assigned in the put tag?

 

TIA

,boz



best practice: date widget

2003-02-28 Thread Bill Schneider
What is the best-practice with Struts for making something like an HTML
date-widget control, that has three different input fields but maps to a
java.util.Date in a form bean?  The idea is I want to be able to put
something like

html:date property=startDate/

in a JSP page, and call Date d = formBean.getStartDate() from a Java
action.  The output HTML should look like

select name=startDate.month
  option value=1January/option
  ...
/select
input type=text name=startDate.day
input type=text name=startDate.year

and there should be a way to validate to make sure this is a valid date
(February 31 not allowed.)

Any ideas would be appreciated.  Thanks!

-- Bill



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



FormFile results in BeanUtils.populate error

2003-02-28 Thread Susan Bradeen
I just got through implementing an upload function into my application, 
which is working perfectly, and now I am trying to incorporate the same 
upload  functionality into an existing add action in my application. 
(Struts 1.1b3) My new upload action and this add action use different 
ActionForms. I am wondering if combining an upload file field with a jsp 
form containing a dozen other fields is a problem? 

In my add ActionForm I added:

private FormFile linkFile = null;

public FormFile getLinkFile() {
  return linkFile;}
public void setLinkFile(FormFile linkFile) {
  this.linkFile = linkFile;}

In the add JSP I added:

 html:file property=linkFile /

My save action will handle the file, but submitting the form results in 
the following error: 

E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: 
  java.lang.IllegalArgumentException: argument type mismatch
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.java:1789)
at 
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.java:1684)
at 
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1713)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
at 
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:798)
at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.
.
.
What type mismatch? What could possibly be causing this? I guess this 
wouldn't be so baffling if my first upload implementation didn't go so 
smoothly. 

Any ideas are appreciated.

Susan Bradeen


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



Re: STRUTS with TORQUE

2003-02-28 Thread Vic Cekvenich
If you like Torque, you would LOVE CommonsSQL in the commons CVS sandbox.

.V

Mitchell Morris wrote:
Please summarize your findings to the list, if you would; I would
be interested in seeing the group consensus on Torque as well.
From following Jetspeed and Turbine user lists it seems that
there's a lot of confusion about where the various Turbine projects
are going especially with respect to Avalon. In my professional
caution, I discarded Torque as a candidate persistence layer
because of the organizational uncertainty that I thought I saw. I
would be delighted to find out that I was overly hasty.
+Mitchell


-Original Message-
From: Petrus, Christian (CORP, GEITC)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 11:19 PM
To: [EMAIL PROTECTED]
Subject: STRUTS with TORQUE
 Hello All,

Thanks for all the help in this list.   

We are rewriting an entire swing application and we have 
chosen Struts for
the new web version of the product.  

For the database handling part, we are planning to use 
Torque.  Does anyone
have experience working with Struts / Torque or have 
Information especially
on what can go wrong with this combo?  Torque seems to be too 
good and easy
to be true!!!

Any info. would be greatly appreciated!!

Thanks in advance,
Christian


THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED 
ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system.




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


Re: FormFile results in BeanUtils.populate error

2003-02-28 Thread Stephen Smithstone
have u got the encrpt line in your jsp form ?? or what ever it is

On Friday 28 February 2003 3:04 pm, Susan Bradeen wrote:
 I just got through implementing an upload function into my application,
 which is working perfectly, and now I am trying to incorporate the same
 upload  functionality into an existing add action in my application.
 (Struts 1.1b3) My new upload action and this add action use different
 ActionForms. I am wondering if combining an upload file field with a jsp
 form containing a dozen other fields is a problem?

 In my add ActionForm I added:

 private FormFile linkFile = null;

 public FormFile getLinkFile() {
   return linkFile;}
 public void setLinkFile(FormFile linkFile) {
   this.linkFile = linkFile;}

 In the add JSP I added:

  html:file property=linkFile /

 My save action will handle the file, but submitting the form results in
 the following error:

 E SRVE0026E: [Servlet Error]-[BeanUtils.populate]:
   java.lang.IllegalArgumentException: argument type mismatch
 at java.lang.reflect.Method.invoke(Native Method)
 at
 org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.
java:1789) at
 org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.
java:1684) at
 org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:1
713) at
 org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924) at
 org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729) at
 org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097) at
 org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.
java:798) at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254
) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 .
 .
 .
 What type mismatch? What could possibly be causing this? I guess this
 wouldn't be so baffling if my first upload implementation didn't go so
 smoothly.

 Any ideas are appreciated.

 Susan Bradeen


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


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



RE: Struts Sub-modules

2003-02-28 Thread James Mitchell
What kind of problems are you having?



--
James Mitchell
Web Developer/Struts Evangelist
http://www.microsoft.com/struts/



 -Original Message-
 From: Stephen Smithstone [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 28, 2003 9:45 AM
 To: Struts Users Mailing List
 Subject: Struts Sub-modules
 
 
 Does any one have a spare simple war that shows off switching 
 modules im 
 having to many problems at the minute :/
 
 if you could email them to [EMAIL PROTECTED] it 
 would be great
 
 ta
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: FormFile results in BeanUtils.populate error

2003-02-28 Thread Susan Bradeen
No, I forgot that! I made very sure to *not* forget that the first time 
around, but alas, it slipped my mind this time. It works fine now. Thanks 
a lot Stephen.

Susan 

On 02/28/2003 10:11:39 AM Stephen Smithstone wrote:

 have u got the encrpt line in your jsp form ?? or what ever it is
 
 On Friday 28 February 2003 3:04 pm, Susan Bradeen wrote:
  I just got through implementing an upload function into my 
application,
  which is working perfectly, and now I am trying to incorporate the 
same
  upload  functionality into an existing add action in my application.
  (Struts 1.1b3) My new upload action and this add action use different
  ActionForms. I am wondering if combining an upload file field with a 
jsp
  form containing a dozen other fields is a problem?

  Any ideas are appreciated.
 
  Susan Bradeen
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: best practice: date widget

2003-02-28 Thread Brian Lee
My current project uses something like this, but with wrapper class around 
Calendar (since Date.day/month/year is deprecated). Also makes it easier 
once you start to use TimeZone and Locale.

BAL

From: Bill Schneider [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: best practice: date widget
What is the best-practice with Struts for making something like an HTML
date-widget control, that has three different input fields but maps to a
java.util.Date in a form bean?  The idea is I want to be able to put
something like
html:date property=startDate/

in a JSP page, and call Date d = formBean.getStartDate() from a Java
action.  The output HTML should look like
select name=startDate.month
  option value=1January/option
  ...
/select
input type=text name=startDate.day
input type=text name=startDate.year
and there should be a way to validate to make sure this is a valid date
(February 31 not allowed.)
Any ideas would be appreciated.  Thanks!

-- Bill



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How do you display action error messages in jsp?

2003-02-28 Thread James Mitchell
I agree, I just finished the test suite against the ErrorsTag so I know
it does exactly what its supposed to.



--
James Mitchell
Web Developer/Struts Evangelist



 -Original Message-
 From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 28, 2003 9:53 AM
 To: Struts Users Mailing List
 Subject: Re: How do you display action error messages in jsp?
 
 
 julian green wrote:
 
  Done all of your suggestions, and still fails.
 
  this is the end of my action method
 
  System.out.println(errors.size()= + errors.size());
 
 
 You'd better use log4j for debugging, imho.
 
  if (errors.size()  0)
  {
  saveErrors(request, errors);
  return mapping.findForward(fail);
  }
 
  return mapping.findForward(success);
  }
 
  and here is a snippet from struts-config.xml
 
  action path=/subprofilelist
type=...admin.suspendenable.SuspendEnableAction
name=suspendenableform
scope=request
validate=false
parameter=whatdoesthisdo
input=/listprofiles.jsp
 
  forward name=success path=/listprofiles.jsp/
  forward name=fail path=/error.jsp/
  /action
 
  ... and finally I have html:errors / in error.jsp which renders 
  nothing.  Still confused 
 
 
 But you have the errors.jsp displayed, have you? Look into the logs, 
 might help a lot.
 
 Tib
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: STRUTS with TORQUE

2003-02-28 Thread Mitchell Morris
I don't know that I'd love TORQUE since I'm not using it. I can say,
however, that I'm using Hibernate and think quite a great deal of it.

 -Original Message-
 From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:06 AM
 To: [EMAIL PROTECTED]
 Subject: Re: STRUTS with TORQUE
 
 
 If you like Torque, you would LOVE CommonsSQL in the commons 
 CVS sandbox.
 
 .V
 
 Mitchell Morris wrote:
  Please summarize your findings to the list, if you would; I would
  be interested in seeing the group consensus on Torque as well.
  
  From following Jetspeed and Turbine user lists it seems that
  there's a lot of confusion about where the various Turbine projects
  are going especially with respect to Avalon. In my professional
  caution, I discarded Torque as a candidate persistence layer
  because of the organizational uncertainty that I thought I saw. I
  would be delighted to find out that I was overly hasty.
  
  +Mitchell
  
  
 -Original Message-
 From: Petrus, Christian (CORP, GEITC)
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 27, 2003 11:19 PM
 To: [EMAIL PROTECTED]
 Subject: STRUTS with TORQUE
 
 
   Hello All,
 
 Thanks for all the help in this list.   
  
 We are rewriting an entire swing application and we have 
 chosen Struts for
 the new web version of the product.  
  
 For the database handling part, we are planning to use 
 Torque.  Does anyone
 have experience working with Struts / Torque or have 
 Information especially
 on what can go wrong with this combo?  Torque seems to be too 
 good and easy
 to be true!!!
  
 Any info. would be greatly appreciated!!
  
 Thanks in advance,
 Christian
  
 
 
 
 THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED 
 ONLY FOR THE
 ADDRESSEE and may contain confidential and privileged information.
 If the reader of this message is not the intended recipient,
 you are notified that any dissemination, distribution or 
 copy of this 
 communication is strictly Prohibited. 
 If you have received this message by error, please notify us 
 immediately, return the original mail to the sender and delete the 
 message from your system.
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: how do people work in project with one server for development

2003-02-28 Thread Gerhard Poul
Ashish Kulkarni [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 But now we are moving to websphere, and it is not
 possible to have each one one copy to play with on his
 machine

Don't get me wrong, but why isn't that possible?

A development license of WAS is included with every copy of WSAD and you can
even purchase it separately.

Where's the problem?

btw: Asking this question _now_ seems a little late. Maybe you should've
evaluated it earlier or contacted IBM to help you.




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



Re: [OT] how do people work in project with one server for development

2003-02-28 Thread Gerhard Poul
If you have WSAD on your workstation where is the problem with just using
the WAS development license that was installed with it?

Chappell, Simon P [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] how do people work in project with one server for
development


I don't know how IBM licenses WebSphere, but when we were
faced with this
problem we decided to go with BEA's WebLogic because BEA gave us great
discounts for instances running on our own workstations, which
created a
development environment like you describe with Tomcat.
Perhaps you should
have shopped around before chaining yourselves to Big Blue?

If only it were that simple. Some of us get WAS handed down to us from a
being so far up the corporate ladder that it still has frost on it. This
same breather of rarified air, then also decides that once you're using WAS,
you should naturally use WSAD for your IDE. Oh ... and they're going to lock
down workstations, so that you can't install free stuff on there to use
instead.

Welcome to Corporate America. Please leave your innovation at home, it will
not be required at the office.

Mark

snip

Simon




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



Re: Struts Sub-modules

2003-02-28 Thread Stephen Smithstone
Just on how to set it up and get it workin correctly

i understand that u make up a new config file say

struts-mod1.xml

and mod1 becomes the prefix

then i create a folder under the main webapp folder called mod1

then in my default struts-config.xml i have global forward  say called toMod1


which looks like this 


forward name=toMod1
   contextRelative=true
   path=/mod1/index.do
   redirect=true/

then i have in my struts-mod1.xml

do i define an actionmapping that does

path =/index x/

etc??

had to make that up etc cos i deleted my example on my machine
just need some confirmation on is that the correct setup also

if im in the mod1 module how do i get back to the default mod1

Also i had to laugh at the url in your sig :-)

On Friday 28 February 2003 3:11 pm, James Mitchell wrote:
 What kind of problems are you having?



 --
 James Mitchell
 Web Developer/Struts Evangelist
 http://www.microsoft.com/struts/

  -Original Message-
  From: Stephen Smithstone [mailto:[EMAIL PROTECTED]
  Sent: Friday, February 28, 2003 9:45 AM
  To: Struts Users Mailing List
  Subject: Struts Sub-modules
 
 
  Does any one have a spare simple war that shows off switching
  modules im
  having to many problems at the minute :/
 
  if you could email them to [EMAIL PROTECTED] it
  would be great
 
  ta
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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


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



Re: FormFile results in BeanUtils.populate error

2003-02-28 Thread Stephen Smithstone

no problem susan i make the same mistake on several occasions

On Friday 28 February 2003 3:17 pm, Susan Bradeen wrote:
 No, I forgot that! I made very sure to *not* forget that the first time
 around, but alas, it slipped my mind this time. It works fine now. Thanks
 a lot Stephen.

 Susan

 On 02/28/2003 10:11:39 AM Stephen Smithstone wrote:
  have u got the encrpt line in your jsp form ?? or what ever it is
 
  On Friday 28 February 2003 3:04 pm, Susan Bradeen wrote:
   I just got through implementing an upload function into my

 application,

   which is working perfectly, and now I am trying to incorporate the

 same

   upload  functionality into an existing add action in my application.
   (Struts 1.1b3) My new upload action and this add action use different
   ActionForms. I am wondering if combining an upload file field with a

 jsp

   form containing a dozen other fields is a problem?
  
   Any ideas are appreciated.
  
   Susan Bradeen
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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


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



RE: [OT] how do people work in project with one server for development

2003-02-28 Thread Chappell, Simon P
The test server in WSAD is not a full version of WAS. It does not handle db 
connections and some aspects of EJBs very well, not to mention that it is single 
server, so there is no way to test multi-server code.

All told, don't rely on the quasi-WAS in WSAD ... get a real version of WAS or an open 
source/free application server instead.

Simon

-Original Message-
From: Gerhard Poul [mailto:[EMAIL PROTECTED]
Sent: Friday, February 28, 2003 9:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [OT] how do people work in project with one server for
development


If you have WSAD on your workstation where is the problem with 
just using
the WAS development license that was installed with it?

Chappell, Simon P [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]


-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 06, 2003 9:42 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] how do people work in project with one server for
development


I don't know how IBM licenses WebSphere, but when we were
faced with this
problem we decided to go with BEA's WebLogic because BEA gave us great
discounts for instances running on our own workstations, which
created a
development environment like you describe with Tomcat.
Perhaps you should
have shopped around before chaining yourselves to Big Blue?

If only it were that simple. Some of us get WAS handed down to 
us from a
being so far up the corporate ladder that it still has frost 
on it. This
same breather of rarified air, then also decides that once 
you're using WAS,
you should naturally use WSAD for your IDE. Oh ... and they're 
going to lock
down workstations, so that you can't install free stuff on there to use
instead.

Welcome to Corporate America. Please leave your innovation at 
home, it will
not be required at the office.

Mark

snip

Simon




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



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



Re: Struts Sub-modules

2003-02-28 Thread Stephen Smithstone
James Mitchell or anyone

ive just uploaded an example i made to 

www.skullboxhouse.co.uk/downloads/smt.war

it would be great if u can download and run and help me solve the problem :-)

Ta

Stephen


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



Declarative Exception Handling Options

2003-02-28 Thread scarter
I'm using struts declarative exception handling mechanism, however, I
need to associate a custom exception type with a specific field on the
page so that they can be handled similar to exceptions that occur as a
result of the validator.  For example, we have built a custom extension
that highlights a particular field on the screen when an exception
related to that field occurs.  This works great for validations defined
in the validation.xml file, however, every now and then, a business
validation that is associated with a specific field exists within a
business component and because we don't allow presentation component
references to exist within our business tier, we can't associate a
specific field to the message.  It would be great if the declarative
exception handling mechanism in struts allowed us to make this
relationship.  Any ideas?


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



how to get original requestURI within a tile?

2003-02-28 Thread perry . tew
Hello,
   I'm using tiles to create a dynamic menu.  It is a
collapsable/expandable menu.  The code behind the menu examines the
requestURI and based on that determines which part of the menu to display.
For example, if a particulate URL was requested, I am displaying that URL
in the menu differently, as well as ensuring it's parents are visible in
the menu too.  The entire menu is created on the server and the client
receive plan html.

Anyway,  my problem is, that when I call request.getRequestURI from within
my tile (menu.jsp), the method returns '/WEB-INF/templates/menu.jsp, rather
than the desired URL '/mycontext/mydir/index.jsp'.  Because of that, I
can't include the menu everywhere and have it automatically determine which
part of the menu to highlight as the current selection etc.

That being said, here is the relevant setup:

struts-config.xml:
action path=/index type=org.apache.struts.actions.ForwardAction
parameter=tiles.index.main/


tiles-defs.xml:
definition name=tiles.base.page path
=/WEB-INF/templates/base.jsp
put name=title value=Base Title Page /
put name=headervalue
=/WEB-INF/templates/header.jsp /
put name=footervalue
=/WEB-INF/templates/footer.jsp /
put name=body  value
=/WEB-INF/templates/body.jsp /
put name=menu  value
=/WEB-INF/templates/menu.jsp /
/definition
definition name=tiles.index.main extends=tiles.base.page
put name=title value=Some index page /
put name=body  value=/index-body.jsp /
/definition


The only thing I can think of is to put an attribute containing the URL
requested hardcoded within my tiles-defs.xml, so my menu has an idea what
the actual URL request was.  However, them I lose my dynamic ability to
include my menu anywhere I wish and I've got hardcoded URLs everywhere.
Does anyone know how to get the actual URL requested by the browser from
within a tile?  Does the tile library store the original requestURI as some
attribute of the request object (that would be great)?  If you could point
me to the appropriate documentation, I would be most grateful.


Thanks,
Perry Tew



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



Referencing an application level image

2003-02-28 Thread Christopher Cheng
How can I reference an image located in the application's root image folder with 
html:img in a mutiple module environment?

For example if I use
html:img page=/images/picture.gif
it will generate /myapp/mymodule/images/picture.gif

If I would like to reference /myapp/images/picture.gif instead, how could I do it?


Re: Declarative Exception Handling Options

2003-02-28 Thread David Graham
When your action calls the business layer validation it will catch the 
exception that is thrown then translate it into an ActionError for that form 
field.

David



From: scarter [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Declarative Exception Handling Options
Date: Fri, 28 Feb 2003 10:58:22 -0500
I'm using struts declarative exception handling mechanism, however, I
need to associate a custom exception type with a specific field on the
page so that they can be handled similar to exceptions that occur as a
result of the validator.  For example, we have built a custom extension
that highlights a particular field on the screen when an exception
related to that field occurs.  This works great for validations defined
in the validation.xml file, however, every now and then, a business
validation that is associated with a specific field exists within a
business component and because we don't allow presentation component
references to exist within our business tier, we can't associate a
specific field to the message.  It would be great if the declarative
exception handling mechanism in struts allowed us to make this
relationship.  Any ideas?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


RE: Referencing an application level image

2003-02-28 Thread Phillip Qin
I never tried, but what about ../../images/picture.gif?

Regards,
 
 
PQ
 
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing

-Original Message-
From: Christopher Cheng [mailto:[EMAIL PROTECTED] 
Sent: February 28, 2003 11:10 AM
To: [EMAIL PROTECTED]
Subject: Referencing an application level image

How can I reference an image located in the application's root image folder
with html:img in a mutiple module environment?

For example if I use
html:img page=/images/picture.gif
it will generate /myapp/mymodule/images/picture.gif

If I would like to reference /myapp/images/picture.gif instead, how could
I do it?


RE: Struts Sub-modules

2003-02-28 Thread James Mitchell
Ok, here ya go.

Only thing missing is the lib directory.

--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/



 -Original Message-
 From: Stephen Smithstone [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 28, 2003 10:53 AM
 To: Struts Users Mailing List
 Subject: Re: Struts Sub-modules
 
 
 James Mitchell or anyone
 
 ive just uploaded an example i made to 
 
 www.skullboxhouse.co.uk/downloads/smt.war
 
 it would be great if u can download and run and help me solve 
 the problem :-)
 
 Ta
 
 Stephen
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


smt.zip
Description: Zip compressed data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:multibox and bean:write

2003-02-28 Thread Sri Sankaran
You cannot emded a tag inside another tag.  You can achieve what you are trying as 
follows

  value=%=styleData.getKey()%

Sri

-Original Message-
From: shashi_struts [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 7:23 AM
To: Struts Users Mailing List
Subject: html:multibox and bean:write


hi

hi i am using multibox and in the value i want a data comes from the logic:iterate and 
write through the bean:write

but it gives a problem
 logic:iterate id=styleData name=style property=styleData indexId=index
 tr
td valign=middle width=83
  html:multibox name=style property=styleID value= bean:write 
name=styleData property=key//
  /td
   td width=167 br
bean:write name=styleData property=value//td
  /tr
/logic:iterate
-

this is my code
please consider this and help me

Shashi


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



RE: Referencing an application level image

2003-02-28 Thread James Mitchell
I do not recommend using relative links.  It will only cause you more
headaches down the road.


--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/



 -Original Message-
 From: Phillip Qin [mailto:[EMAIL PROTECTED] 
 Sent: Friday, February 28, 2003 11:16 AM
 To: 'Struts Users Mailing List'
 Subject: RE: Referencing an application level image
 
 
 I never tried, but what about ../../images/picture.gif?
 
 Regards,
  
  
 PQ
  
 This Guy Thinks He Knows Everything
 This Guy Thinks He Knows What He Is Doing
 
 -Original Message-
 From: Christopher Cheng [mailto:[EMAIL PROTECTED] 
 Sent: February 28, 2003 11:10 AM
 To: [EMAIL PROTECTED]
 Subject: Referencing an application level image
 
 How can I reference an image located in the application's 
 root image folder
 with html:img in a mutiple module environment?
 
 For example if I use
 html:img page=/images/picture.gif
 it will generate /myapp/mymodule/images/picture.gif
 
 If I would like to reference /myapp/images/picture.gif 
 instead, how could
 I do it?
 


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



Re: Referencing an application level image

2003-02-28 Thread Louie Zhang
Think about make a symbol link of every /myapp/mymodule1/sharedimages/,
/myapp/mymodule2/sharedimages/ to /myapp/images
then you can refer to html:img page=/sharedimages/xxx.gif

- Original Message -
From: Christopher Cheng [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:10 AM
Subject: Referencing an application level image


How can I reference an image located in the application's root image folder
with html:img in a mutiple module environment?

For example if I use
html:img page=/images/picture.gif
it will generate /myapp/mymodule/images/picture.gif

If I would like to reference /myapp/images/picture.gif instead, how could
I do it?


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



Re: How do you display action error messages in jsp?

2003-02-28 Thread julian green
Yes it does work exactly as it should.  It would of course had helped if 
I had spelt the names of the messages in the messages.properties file 
correctly.

Julian

James Mitchell wrote:
I agree, I just finished the test suite against the ErrorsTag so I know
it does exactly what its supposed to.


--
James Mitchell
Web Developer/Struts Evangelist



-Original Message-
From: Gemes Tibor [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 9:53 AM
To: Struts Users Mailing List
Subject: Re: How do you display action error messages in jsp?

julian green wrote:


Done all of your suggestions, and still fails.

this is the end of my action method

   System.out.println(errors.size()= + errors.size());


You'd better use log4j for debugging, imho.


   if (errors.size()  0)
   {
   saveErrors(request, errors);
   return mapping.findForward(fail);
   }
   return mapping.findForward(success);
   }
and here is a snippet from struts-config.xml

   action path=/subprofilelist
 type=...admin.suspendenable.SuspendEnableAction
 name=suspendenableform
 scope=request
 validate=false
 parameter=whatdoesthisdo
 input=/listprofiles.jsp
   forward name=success path=/listprofiles.jsp/
   forward name=fail path=/error.jsp/
   /action
... and finally I have html:errors / in error.jsp which renders 
nothing.  Still confused 


But you have the errors.jsp displayed, have you? Look into the logs, 
might help a lot.

Tib



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


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


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


RE: [OT] how do people work in project with one server for development

2003-02-28 Thread Ashish Kulkarni
Hi,

I am working on websphere on AS400, and so cannot have
each developer a seperate test enviornment, 

Although we develop all the code on NT, test it and
put it on AS400, bt there is some code which works on
AS400 only, 
but anyway, we come to a conclusion that, only one
developer works with this part which is AS400 specific
along with other development and others will work on
NT, and we wrote some classes which help us in working
on both envoirments..
Ashish
--- Chappell, Simon P [EMAIL PROTECTED]
wrote:
 The test server in WSAD is not a full version of
 WAS. It does not handle db connections and some
 aspects of EJBs very well, not to mention that it is
 single server, so there is no way to test
 multi-server code.
 
 All told, don't rely on the quasi-WAS in WSAD ...
 get a real version of WAS or an open source/free
 application server instead.
 
 Simon
 
 -Original Message-
 From: Gerhard Poul
 [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 9:23 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [OT] how do people work in project
 with one server for
 development
 
 
 If you have WSAD on your workstation where is the
 problem with 
 just using
 the WAS development license that was installed with
 it?
 
 Chappell, Simon P [EMAIL PROTECTED]
 wrote in message

news:[EMAIL PROTECTED]
 
 
 -Original Message-
 From: Mark Galbreath
 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 06, 2003 9:42 AM
 To: 'Struts Users Mailing List'
 Subject: RE: [OT] how do people work in project
 with one server for
 development
 
 
 I don't know how IBM licenses WebSphere, but when
 we were
 faced with this
 problem we decided to go with BEA's WebLogic
 because BEA gave us great
 discounts for instances running on our own
 workstations, which
 created a
 development environment like you describe with
 Tomcat.
 Perhaps you should
 have shopped around before chaining yourselves to
 Big Blue?
 
 If only it were that simple. Some of us get WAS
 handed down to 
 us from a
 being so far up the corporate ladder that it still
 has frost 
 on it. This
 same breather of rarified air, then also decides
 that once 
 you're using WAS,
 you should naturally use WSAD for your IDE. Oh ...
 and they're 
 going to lock
 down workstations, so that you can't install free
 stuff on there to use
 instead.
 
 Welcome to Corporate America. Please leave your
 innovation at 
 home, it will
 not be required at the office.
 
 Mark
 
 snip
 
 Simon
 
 
 
 

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

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


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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



Sessions

2003-02-28 Thread JONATHAN PHILIP HOLLOWAY
Does anybody know when a new session is started?
Is it in any of the following:

1. When a new action is selected?
2. When a new page is linked to on the client side?
3. When a page is returned to via an action forward?

Also when is a new actionform created? Is it for every request to a new mapping? 
If the scope is set to session should it last throughout the user session no matter 
what mapping or action the user is currently using?

In general how do sessions work within Struts, can somebody please please
pretty please provide me with a brief overview or link to some information.

Many thanks,
Jon.

*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*


Re: deploy with ant, best practices

2003-02-28 Thread Craig R. McClanahan

On Fri, 28 Feb 2003, Dan Allen wrote:

 Date: Fri, 28 Feb 2003 01:29:46 -0600
 From: Dan Allen [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: deploy with ant, best practices

 I have been studying ant very thoroughly over the past two days, and
 I completely understand the file from top to bottom, including how
 to reload the application using the reload tag imported from
 org.apache.catalina.ant.ReloadTask.  However, I am stuck on an
 issue.


During development, I find it *much* easier to not use WAR files -- just
point the install command at your build directory that contains the
unpacked webapp.  That way, you never have to worry about Tomcat expanding
anything.

My take on best practices for this are documented in the Application
Developer's Guide that ships with Tomcat (including sample build.xml files
that do the integration with Ant trick).  It's also available online:

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/

Craig McClanahan

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



Re: Reading Date

2003-02-28 Thread Claude Betancourt
I am sure this has been beaten to death, but it is recommended you use
String (or String[]) to capture submitted forms.  Then handle the date
conversion with business logic, whether in your action or business object.

-c

- Original Message -
From: varma dvk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 1:06 AM
Subject: Re: Reading Date



 I Declared Timestamp obj in my bean to store the date, it is giving
 IllegalArugumentException in jsp, when i'm trying to get it from jsp using
 html:text property=startDate/

 Cheers
 Varma






 From: Rick Reumann [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Reading Date
 Date: Thu, 27 Feb 2003 22:55:27 -0500
 
 On Fri, Feb 28,'03 (09:20 AM GMT+0530), varma wrote:
 
   Hi All
  How can i read a date from the jsp using struts, i defined date
  variable
   of type timestamp. it is throwing exception...
 
 What do you mean read a date from the jsp and what exception is it
 throwing? Are you getting an error just trying to declare your date in
 the page?
 
 
 --
 Rick
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


 _
 Hutch MSN Cricketer- ball by ball action - Download Now!
 http://server1.msn.co.in/msnspecials/cricketdownload/contest.asp


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




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



action form error messages

2003-02-28 Thread Alex McLintock
Hi folks,

I am using traditional action forms rather than DynaActionForms and when I 
get it slightly wrong (eg by missing out get/set methods) I get the 
following error

No getter method for property seriesnumber of bean 
org.apache.struts.taglib.html.BEAN

Why is it telling me the problem is within the class 
org.apache.struts.taglib.html.BEAN and not within my ActionForm.

Cheers.

Alex

Available for java/perl/C++/web development in London, UK or nearby.
Apache FOP, Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP
http://www.OWAL.co.uk/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Sessions

2003-02-28 Thread James Childers
 -Original Message-
 From: JONATHAN PHILIP HOLLOWAY [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 11:05 AM
 Subject: Sessions
 
 Does anybody know when a new session is started?
 Is it in any of the following:
 
 1. When a new action is selected?
 2. When a new page is linked to on the client side?
 3. When a page is returned to via an action forward?

Well, this actually depends upon how your servlet container handles sessions. Struts 
itself never creates a session; session management is exclusively and appropriately 
the responsibility of the container. If a session doesn't exist most containers will 
automatically create one.

Typically, though, a new session is created when a request comes in that doesn't have 
the appropriate session info as part of the HTTP request. The flow goes something like 
this:

- User requests index.jsp

- Container receives request, searches HTTP headers for session in cookie or, if it 
isn't there, in the request itself (i.e. 
http://www.blech.com/index.jsp;jsessionid=121234ABCD)

- If the container doesn't find any session info associated with this request, it 
creates a new session and will format the response with this new session info, again 
either with a cookie or this pseudo-request parameter. (Pseudo because it is 
actually prepended with a semicolon instead of a question mark.)

Neither Struts nor JSP is involved in any of this.

 Also when is a new actionform created? Is it for every 
 request to a new mapping? 

AFAIK, yes. 

 If the scope is set to session should it last throughout the 
 user session no matter what mapping or action the user is 
 currently using?

That is correct. If you do the following in ActionA:

request.getSession().setAttribute(thingy, myObj);

then the following will work in ActionB:

MyObject myObj = (MyObject) request.getSession().getAttribute(thingy);

HTH,

-= James

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



RE: one more prepopulate question

2003-02-28 Thread Sri Sankaran
Here's what you are trying to do

  index.jsp 
- redirects to
  index.do
- needs to build a bunch'o forms
- forwards to
  home.jsp

Am I understanding you correctly?

The action corresponding to the path index can create any number of form-beans and 
persist them in any scope before forwarding to home.jsp.  Now home.jsp, has several 
html:forms; which implicitly means that it expects several form-beans.  These are 
available courtesy the aforementioned action.

Where are you running into a problem?

Sri

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 26, 2003 7:52 PM
To: [EMAIL PROTECTED]
Subject: one more prepopulate question


I know that the prepopulate question has been beaten into the ground around here and 
the answer on the FAQ page is complete in answering most questions I have about the 
concept.  But I just want to run something by this list, see if I am going about it in 
the right way.

When you are designing an application, and the index page has several mini-forms (such 
as a limited search, a login and maybe a site index) the first page has to be a *.do 
page.  So I figured, make an index.jsp page with

logic:redirect page=/index.do/

Then my /index action would prepare the forms and display /home.jsp. The FAQ talks 
about putting the form population in the Action class for the /index action, which 
works great...

...except, how would you populate more than one form?  Seems like in the cast you 
limit yourself to the form defined in the action mapping.  Would it be necessary to 
just set up an action chain?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers just hate to get up in the morning, and 
contrary to Ordinary People, they're in better shape as 
it gets closer to nighttime.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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


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



RE: action form error messages

2003-02-28 Thread Sri Sankaran
There are a few possibilities

* your bean (form-bean or other) does not have a property called
  seriesnumber.  Case is very important.  Struts is looking for a
  method named getSeriesnumber().  Make sure you have such a 
  method and that it is public
* the tag that is causing this error isn't specifying the 'name'
  attribute

Can you post the pertinent section of the JSP and ActionForm?

Sri

-Original Message-
From: Alex McLintock [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: action form error messages


Hi folks,

I am using traditional action forms rather than DynaActionForms and when I 
get it slightly wrong (eg by missing out get/set methods) I get the 
following error

No getter method for property seriesnumber of bean 
org.apache.struts.taglib.html.BEAN

Why is it telling me the problem is within the class 
org.apache.struts.taglib.html.BEAN and not within my ActionForm.

Cheers.

Alex


Available for java/perl/C++/web development in London, UK or nearby. Apache FOP, 
Cocoon, Turbine, Struts,XSL:FO, XML, Tomcat, JSP http://www.OWAL.co.uk/


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


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



RE: A new Struts book ....

2003-02-28 Thread PILGRIM, Peter, FM
 -Original Message-
 From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]
 
 I think you can add a new Struts book in Struts ressources page :
 
 http://blogs.application-servers.com/blogs/page/eboudrant/20030227
 
----

It seems to be very specific to Eclipse.

At work we have standardise on either Oracle JDeveloper,
which I have got use to by now, and the other team, here,
uses Borland JBuilder.

Oh well I will fine trying to ride Expresso Framework 
and Struts 1.1 integration through NetBeans this weekend.
I am a Emacsphile, but I like IDE for their debugging features.

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923




***
  Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB 
Regulated by the Financial Services Authority
***

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



Re: Each Tile can have its own controller ?

2003-02-28 Thread David Graham
The tiles controller should never perform any view logic.  The controller 
just gets data and puts it in the request for the tile to display.

David



From: John Nikolai [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Each Tile can have its own controller ?
Date: Fri, 28 Feb 2003 10:11:45 -0800
What are the advantages of using this method as opposed to creating a 
taglib?  I did read the last part of the document:

Tiles can act as quasi tag libraries - I could have written  
.penguin.header  Tile as a tag library instead of a tile. But if a tile 
has significant display logic, do I want to bury that in Java code where my 
interface guys can't tweak it? Taglibs are a vehicle for reuse; invest some 
time, get some reuse. What are the odds I going to reuse my  
.penguin.header  tile in another project?

Using a combination of taglib and a template engine like Velocity would 
solve the problem of having to embed HTML code into the java code. Are 
there other uses for tile controllers besides a taglib replacement?  I 
guess it comes down to user preference and it's always good to have several 
options to choose from. =)

 - John

On Friday, February 28, 2003, at 06:42 AM, David Graham wrote:

http://blogs.browsermedia.com/patrick/index.do?date=20030211#130200



From: Rick Ashley [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Each Tile can have its own controller ?
Date: Fri, 28 Feb 2003 12:46:42 +
Tiles site http://www.lifl.fr/~dumoulin/tiles/
says that each tile can have its own controller.
=It is now possible to associate a controller to each Tile.
This controller (Java code or struts action) is called immediately before 
the Tile jsp page. It is useful to prepare data to be shown by jsp page.

Has anyone a sample code how to do this in Struts application?

Thanks

- rick





_
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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

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


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


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

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


RE: logic:iterate over a HashMap - can't pass key to get value method

2003-02-28 Thread Karr, David
Expression scriptlets have to be the entire attribute value, not just a
portion of it.  Change the value of the property attribute to (don't
forget the wrapping single quotes):

'%= locationroomValue( + (String)mapEntry.getKey() + ) %'

 -Original Message-
 From: Huw Jones [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:16 AM
 To: [EMAIL PROTECTED]
 Subject: logic:iterate over a HashMap - can't pass key to get value
method
 
 
 I'm having problems passing the key from the Hash map into the method
I
 have
 written to get the value. The code below
 does not work - specifically the bit where I try and pass in the
 mapEntry.getKey() to locationroomValue. I've hit
 a wall trying to sort this - what am I doing wrong - is it a scope
issue.
 If
 I hard code the key it works ok.
 
 logic:notEmpty name=locationForm property=locationroom
 logic:iterate name=locationForm property=locationroom
 indexId=cnt
 id=mapEntry type=java.util.Map.Entry 
  bean:write name=mapEntry property=key/
  html:text name=locationForm
 property=locationroomValue(%=(String)mapEntry.getKey()%) size=25
 maxlength=25/
 /logic:iterate
 /logic:notEmpty
 
 
 Thanks
 
 
 Huw Jones
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: [update] nested tags...

2003-02-28 Thread Sri Sankaran
Arron:
  Can you please re-build the jar?  Tomcat 4.1.18 throws a

java.util.zip.ZipException: invalid END header (bad central directory offset)

Error.  Methinks, well I'll just unzip it and put it in WEB-INF/classes; 
unfortunately, Winzip too has problems with it.

not.lazy
  I don't want to change too many things at once and so am trying to stick with Struts 
1.1b3 than move to the nightly.
/not.lazy

Sri

-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 12:53 AM
To: [EMAIL PROTECTED]
Subject: [update] nested tags...


Peoples,

Important changes just committed into CVS for the nested tags.

1) Copyright date in the header license is updated to include 2003!
2) The internal changes to get them dancing with Tomcat 4.1.18  more.

For those too lazy to get the entire distrib of the next nightly, you can get just the 
nested tags from...

http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar

   ...the ony diff between this and the last jar I posted, is it's more reliable in 
using more than one root tag on the same page, using different root tags within the 
nesting itself (docco on this to come), and a bug fix for the two tags which like to 
play differently (nested:options  nested:link).

If people were just about to raise bugs on my last jar of these tags which have 
anything to do with what's just mentioned (multiple root tags, link and options tags), 
can you have another run with this jar to see if they go away.

Docco on the additional stuff this rejig of the tags can do is in the works.

For those who care, enjoy.
For those who don't, as you were.

Thanks again.


Arron.


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


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



RE: logic:iterate over a HashMap - can't pass key to get value method

2003-02-28 Thread Huw Jones
Thanks David that worked  - I did try that in my investigations but must
have missed
something

HUW

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: 28 February 2003 18:24
To: Struts Users Mailing List
Subject: RE: logic:iterate over a HashMap - can't pass key to get value
method


Expression scriptlets have to be the entire attribute value, not just a
portion of it.  Change the value of the property attribute to (don't
forget the wrapping single quotes):

'%= locationroomValue( + (String)mapEntry.getKey() + ) %'

 -Original Message-
 From: Huw Jones [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 28, 2003 10:16 AM
 To: [EMAIL PROTECTED]
 Subject: logic:iterate over a HashMap - can't pass key to get value
method


 I'm having problems passing the key from the Hash map into the method
I
 have
 written to get the value. The code below
 does not work - specifically the bit where I try and pass in the
 mapEntry.getKey() to locationroomValue. I've hit
 a wall trying to sort this - what am I doing wrong - is it a scope
issue.
 If
 I hard code the key it works ok.

 logic:notEmpty name=locationForm property=locationroom
 logic:iterate name=locationForm property=locationroom
 indexId=cnt
 id=mapEntry type=java.util.Map.Entry 
  bean:write name=mapEntry property=key/
  html:text name=locationForm
 property=locationroomValue(%=(String)mapEntry.getKey()%) size=25
 maxlength=25/
 /logic:iterate
 /logic:notEmpty


 Thanks


 Huw Jones



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


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




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



RE: deploy with ant, best practices

2003-02-28 Thread Jaye Bass
My ant targets build directly into my webapp directories...the root
location is set in an env variable. This really seems to work for us on
a variety of systems (linux, windows, and occasionally macs) from
development to ultimate deployment and maintenance.

-Original Message-
From: Dan Allen [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 28, 2003 1:30 AM
To: [EMAIL PROTECTED]
Subject: deploy with ant, best practices

I have been studying ant very thoroughly over the past two days, and
I completely understand the file from top to bottom, including how
to reload the application using the reload tag imported from
org.apache.catalina.ant.ReloadTask.  However, I am stuck on an
issue.

Assuming that I follow the techniques from the book Struts Kick
Start, I create a development tree such as

${app.home}
/build
/deploy
/object
/src
/lib
/web
/WEB-INF
/META-INF

then the actual target tree (under tomcat/webapps) is the typical

${app.name}.war
${app.name}
/WEB-INF
/WEB-INF/lib
/WEB-INF/classes
/META-INF

Okay, now stay with me here.  Assume that I currently have the
application running under tomcat.  If I build the .war file from the
build/ directory and place it into ${app.home}/deploy, then copy
it to ${app.name}.war under tomcat/webapps, it isn't going to
automatically expand over the current running tree.  It just sits
there until I kick tomcat (restart it) after deleting the running
application directory.

So what I did instead was I made the build/ directory the actual
running application directory so it just copied over the live
files directly as they were updated by javac.  Then a simple
reload would cause the application to start using the updated
files.

The question on the table is as follows.  How do you get tomcat to
expand an updated .war file over a currently running application
before you reload it?  It seems wrong to have the live application
the target of my build process.

The goal here is to update the running application without having to
restart tomcat and without having to use the running application as
the target of the build process.  I want to be able to copy the
updated .war file into the tomcat/webapps folder and have it expand
it over the running application files.  Is this unreasonable to
expect this?  How does everyone else do it.  Surely you are not
restarting tomcat all day.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
I am the GOD.the GOD...of house! 
 -- Leeloo
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



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



  1   2   >