newbie question from expierenced user

2002-11-26 Thread Marcus Biel
Hi there,

I working with Struts 1.02 quite a while now,
and did a very complicated application using Struts,

but the more I know, the more I realize that I don't exactly know the
basics:

What exactly is the difference between the different scopes & which
scopes are there,
besides request, session & page ? When to use whichsoever scope ?

What if I am using one form for different actions, using different
scopes ?
Could it be that that creates different ActionForms in different scopes
of the same type ???


thx in advance,

marcus

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




RE: Commons-logging and JDK 1.4 Logger

2002-11-26 Thread Wendy Cameron
So let me get this straight:

I sought of got it to work however as usuall its coming out in the console and not 
where I want it to go and at a level INFO.  

I want to have one log file for the whole application at the moment.
I also want the same level of detail for all classes.

At the moment I cant figure out where to put things like

java.util.logging.FileHandler.pattern = C:\\inMotion\\logs\\java%u.log
java.util.logging.ConsoleHandler.level = FINEST

in the jdk logging.properties or in the commons-logging.properties in the WEB-INF
or is it supposed to go somewhere else.
Cause it doesnt seem to work from in the web inf directory at all

Basically my code for doing the logging seems okay, I just can seem to configure the 
logging process.

Regards Wendy

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




Re: Managing a workflow with Struts-workflow.

2002-11-26 Thread Matthias Bauer
Hi Olivier.

Let me first say this: The workflow extension is not meant to help you 
manage session data and dispatch actions depending on that session data.

Instead it can force the user to follow a sequence of actions that he is 
not allowed to leave. For example think of modal dialogs that are well 
known in desktop gui applications. There you have to click on a button 
the dialog offers before you can do something else in the application. 
One thing that makes web applications more difficult to handle is the 
fact, that you can not rely on a certain request being the next one, 
because the user can alway type in a new url or use the back or reload 
button.

Let's turn to your problem: It I get it right, you do not want to 
"punish" the user (e. g. by displaying an error screen), if he leaves 
this wizard like application. Instead you want to dispatch him depending 
on the data he has already filled in.

What I would recommend to you is this:

- keep an ActionForm in the user's session that collects all the data 
the user has filled in
- in the action form you also keep the  state information which step has 
to be executed next (step1, step2, step3)
- create a wizard-dispatcher that decides where to forward to (depending 
on the state information)


This would look like this:

MainPage.do -> dispatch.do -> 1.jsp -> submitFirstStep.do -> 2.jsp -> 
submitSecondStep.do -> 3.jsp -> submitThirdStep.do -> result.jsp

If someone executes dispatch.do when already having executed 
submitFirstStep.do the state information would be "step2" which results in
-> dispatch.do -> 2.jsp -> ...

You don't have to hard-code the urls into the dispatch action. Instead 
you just need to define forwards for "step1", "step2", ... in the 
struts-config.xml. All the dispatch action does is finding the right 
forward.

I think this is very easy. You don't need an additional framework for 
that...

--- Matthias



ROSSEL Olivier wrote:

I want to have a workflow which is

MainPage.do -> FirstStep.do -> SecondStep.do -> ThirdStep.do -> Result.do ->
MainPage.do
 (1.jsp) (2.jsp)
(3.jsp)

where each step is supposed to fill one part of a big ActionForm.

I think each Step will test if the part of the ActionForm
it handles is already filled (then the current step must be skipped), 
and if so, it forwards to the next action.

Is it the good way to do the job?

I am not sure to see the benefit of using the workflow plug-in.
I declare the workflow in my struts-config.xml, but still have to hard 
code next/previous URLs in my JSPs.

The benefit is of course that the workflow detects if the user
broke the natural chaning by clicking several "Back" in his browser.
But if he did, he could have some reasons, and this may not be an error.

Well, I am sure I misunderstand something, but any help is welcome.

---cut here---


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

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

 





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




Clear chosen value from form bean

2002-11-26 Thread Mohan Radhakrishnan
Hello,
  Problem : Is there a way to clear the chosen value from the String[]
in the form ?

  We have the same form for many screens. After the user chooses from
the drop-down and submits, the chosen value is highlighted. But the user
should be seeing a clean drop-down everytime.

 Solution : I set scope="request" in the config. file

  So this means that a new form bean will be created every request ?
Performance implications ?
Thanks,
Mohan

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




RE: Commons-logging and JDK 1.4 Logger

2002-11-26 Thread Craig R. McClanahan


On Wed, 27 Nov 2002, Wendy Cameron wrote:

> Date: Wed, 27 Nov 2002 15:09:19 +1000
> From: Wendy Cameron <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Commons-logging and JDK 1.4 Logger
>
> Well actually a few more stupid questions cause it doesnt work yet :)
>
> I have created properties file with the following:
>
> org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Jdk14Logger
> org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
>
> Placed it in WEB-INF directory and I have a debug statement in my code
>
> log.trace("init( " +  actions + ")");
>
> in my j2re\lib directory if logging.properties
> java.util.logging.FileHandler.pattern = C:\\inMotion\\logs\\java%u.log

This just says where the log messages go -- not what should be logged.  If
your logger is named "com.foo.MyClass", you'd need to add:

  com.foo.MyClass.level = FINEST

or, if you wanted trace output from all the classes in the com.foo
package:

  com.foo.level = FINEST

For more information about configuring JDK logging, see the JDK
Documentation Bundle -- it's got an article specifically about the logging
features.

One other note -- the JDK logging properties are only read when a
particular JVM first starts using the logging calls, so you'll need to
restart Tomcat to make any changes take effect.

> Is this necessary or is this controlled by:
>
>   prefix="localhost_image_base_log." suffix=".txt"
> timestamp="true"/>
>
> in the context declaration in the server.xml?
>

This is just the output from ServletContext.log() calls, not the
commons-logging calls.

> any suggestions?
>
> Regards Wendy
>

Craig



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




RE: Commons-logging and JDK 1.4 Logger

2002-11-26 Thread Wendy Cameron
Well actually a few more stupid questions cause it doesnt work yet :)

I have created properties file with the following:

org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Jdk14Logger
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger

Placed it in WEB-INF directory and I have a debug statement in my code

log.trace("init( " +  actions + ")");

in my j2re\lib directory if logging.properties
java.util.logging.FileHandler.pattern = C:\\inMotion\\logs\\java%u.log
Is this necessary or is this controlled by:



in the context declaration in the server.xml?

any suggestions?

Regards Wendy

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




RE: Commons-logging and JDK 1.4 Logger

2002-11-26 Thread Wendy Cameron
Okay one more stupid question,

How do you switch debug on using the properties file in WEB-INF directory

Regards Wendy

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 2:14 PM
> To: Struts Users Mailing List
> Subject: RE: Commons-logging and JDK 1.4 Logger
> 
> 
> 
> 
> On Wed, 27 Nov 2002, Wendy Cameron wrote:
> 
> > Date: Wed, 27 Nov 2002 12:06:35 +1000
> > From: Wendy Cameron <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: RE: Commons-logging and JDK 1.4 Logger
> >
> > Sorry for a late response to this topic,
> >
> > But I have just put my commons-logging.properties file in place
> > and now I scratch my head and wonder:
> >
> > 1) How to I create a logger variable in all my classes?
> 
> The same way Struts 1.1 classes do it would be good :-).
> 
>   import org.apache.commons.logging.Log;
>   import org.apache.commons.logging.LogFactory;
> 
>   ...
>   private static Log log = LogFactory.getLog(...);
>   ...
> 
> > 2) How do I then log messages to the log file etc?
> 
> The same way Struts 1.1 classes do it would be good :-).
> 
>   if (log.isDebugEnabled()) {
> log.debug(...);
>   }
> 
> 
> Use the source ... use the source ...
> 
> Or (gasp!) the docs:
> 
>   http://jakarta.apache.org/commons/logging/api/
> 
> :-)
> 
> >
> > Regards Wendy
> >
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: invokes processActionForward twice when submit????

2002-11-26 Thread James Mitchell
Have you searched the mail archives?  That exact question gets asked about once
a week here.

Here's 4 message from past discussions.

--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing

>  -Original Message-
> From: Tuan H. Le [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 9:50 PM
> To:   Struts Users Mailing List (E-mail)
> Subject:  invokes processActionForward twice when submit
>
> Hi,
>
> I have noticed that when we submit an HTML form to a Struts action servlet, it
called processActionForward twice. Is it possible? If so, how do we prevent it?
>
> Thanks,
> Tuan
>  << File: ATT2.txt >>

--- Begin Message ---
I post this message because I did not found any doc about the
createToken, isTokenValid, resetToken API.
So I will explain what I understood about it from the struts-exemple
if something is wrong, I would like that someone will say to me
and if there is some doc tell me where ...


The token API is created to avoid that the user
to submlit twice the same form.
It is used with one ActionForm and two Action:
- the SomethingForm which contain the user's input
- the EditSomethingAction which populate the SomethingForm from the DB or
  clear all the field if it is a create Case
- the SaveSomethingAction which save the SomethingForm in the DB

To avoid that the user call submit twice the SomethingForm and
save twice the same data in the DB,
the struts framework propse the xxxToken API.

It is used as following
in EditSomethingAction, make a call to createToken(request) and that all !

in SaveSomethingAction, make a call to isTokenValid(request) and
resetToken(request)
as in the following  algorithm
if ( ! isTokenValid(request) )
{
/*
 * return forward towards an error page
 * saying to the user that he has submit twice
 * or
 * forward toward the succes page if we don't want the user see anithing
 */
}
else
{
/*
 * process the save in the DB
 */
if ( allTheSaveHasSucceed )
{
resetToken(request) ;
}
}

You much take care that there is only one token in the session
so that this process can't support nested transactions.
So you should keep simple use of it.


The same API can be used to avoid that the user click twice on
a link by setting the 'transaction' attribute at "true" of the 
tag
the Action called by the link should follow the same process than
SaveSomethingAction







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


--- End Message ---
--- Begin Message ---
Hi.

The struts transaction token prevents that users klick the back-button in
the browser. Some Applications , e.g. workflow driven apps, can not deal
with back-buttons, because it may be, that a database transaction is
fullfilled, and there is no chance for a rollback.

The method saveToken(request); called in the execute-Method (Struts 1.1) of
the action saves the token. At the next action you can look, if the token is
already valid.

if (!isTokenValid(request)) {
// error
}

With the method resetToken(request); you can reset the token.

The mechanism is quite tricky: The  tag reads the token out of
the session and writes it in the request. So if someones goes back (browser
back) the form responds an old (a different) token. If you not deal with
 some tags has a attribute transaction, that you can switch to
true.

Very fine mechanism, really

Manfred

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im
Auftrag von Heligon Sandra
Gesendet: Mittwoch, 3. Juli 2002 10:29
An: '[EMAIL PROTECTED]'
Betreff: Help about transaction tokens aim



Hi,

I search documentation and examples about transaction token
mechanism. I know transaction mechanism with database but I don't

know "transaction token", can somebody explain why is it important
to use this mechanism in the web application ?

Thanks

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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


--- End Message ---
--- Begin Message ---
Sorry ... it the send key by accident ...

The browser shows the ".do" url because it has no clue you did a forward.
If you really need it to change, you'll need to use a redirect instead of
a forward, which costs you a *lot* in terms of performance (extra round
trip to the client) and flexibility (cannot use request attributes to
forward information to the page).  Usually, it's better to train your
users that the location bar is totally irrelevant in web applications
(versus web sites

RE: Commons-logging and JDK 1.4 Logger

2002-11-26 Thread Craig R. McClanahan


On Wed, 27 Nov 2002, Wendy Cameron wrote:

> Date: Wed, 27 Nov 2002 12:06:35 +1000
> From: Wendy Cameron <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Commons-logging and JDK 1.4 Logger
>
> Sorry for a late response to this topic,
>
> But I have just put my commons-logging.properties file in place
> and now I scratch my head and wonder:
>
> 1) How to I create a logger variable in all my classes?

The same way Struts 1.1 classes do it would be good :-).

  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;

  ...
  private static Log log = LogFactory.getLog(...);
  ...

> 2) How do I then log messages to the log file etc?

The same way Struts 1.1 classes do it would be good :-).

  if (log.isDebugEnabled()) {
log.debug(...);
  }


Use the source ... use the source ...

Or (gasp!) the docs:

  http://jakarta.apache.org/commons/logging/api/

:-)

>
> Regards Wendy
>

Craig


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




RE: Is Struts (or browser based applications in general) useable to build maintenance-applications?

2002-11-26 Thread Edgar Dollin
Quite correct, I (and somewhat reluctantly the user base) have accepted the
limitations of the back button.  There is no risk to the database however.

I give users as many of those links you describe as possible but only to
informational pages, and with container managed security (or filter based
security) they maintain some of what the users desire for flexibility
without sacrificing application integrity.

Interesting commentary.

Thanks.

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 10:51 PM
To: Struts Users Mailing List
Subject: RE: Is Struts (or browser based applications in general)
useable to build maintenance-applications?


Ive a quite lot of links that look like
"thingAction.do?method=edit&uid=1234". As I go along Im rather coming to the
view that I should just try and use POST for everything and eliminate GETs
altogether. The browser just takes far too many liberties with them...

The sequencer idea has merit (seems similar in concept to the token token
support struts already provides), but the problem is that they want the damn
back button to actually work. Given that the app needs to maintain fifty
tons of state (including state of various ui widgets, workflows and other
wierdities) to meet all the other requirements its very hard to figure out a
suitable way to handle this short of incorperating a TARDIS in my
application.

The basic problem of course is the app vs website dilema. In a website the
back button is very useful as your just navigating round a bunch of
relatively stateless pages and a request is a direction for which page you
want next. In a web app however you arent navigating round a bunch of pages,
but rather firing events to the server that cause changes in server state
which are reflected in the response page. Clicking the back button would
cause the last 'event' to be fired again, or a snapshot of an earlier
response page to be shown, but the server is already in a different state.
The last event was already processed. Database writes have been commited.
Objects created or destroyed. Widgets toggled and workflows woggled.

Keeping a token gives you a chance to tell if the user is submitting from an
earlier page cached in the browser, and you can show an error message and
perhaps even direct them back on track - but when your requirement is that
that old page work again just like it did before, its nearly impossible. It
will work in some cases, but in others you can end up with all sorts of
problems if there are things that depend on server side state as well as
client side state - and in all but the most trivial of cases this will be
true. What to do?
:-(

Its hard enough to try an explain this problem to the (more experienced
technical) people who give me these requirements. I hate to think how the
concept can be imparted to users...

-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 19:02
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Is Struts (or browser based applications in general)
useable to build maintenance-applications?


I have resolved all my Web Application issues (it did take a while).

The back button can be solved by subclassing the ActionForm and having a
standard sequence field.  In all your JSP make sure there is a hidden field
for the sequencer.  Then before any action occurs (write to the db) check
the sequencer to make sure it is the value expected.

If you only use POST methods in JSP the bookmark issue is moot.

Hope that helps

Edgar


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:10 AM
To: Struts Users Mailing List
Subject: RE: Is Struts (or browser based applications in general)
useable to build maintenance-applications?


Well I dont know what the issues with maintenance apps in particular are,
but for any web app (which is an application rather than just some trivial
website or portal with dynamic bits) you will have a lot of issues with
users doing things like using back buttons, bookmarks, etc... which can
really upset your server side sense of application state. Managing this can
be a real pain.

As soon as you go beyond trivial UI needs (ie: anything more complex than a
very basic example app) you also have to deal with a myriad of issues
related to browser compatibilities, container portability issues, etc...
Some ppl will tell you to develop code that meets the 'standards' and runs
on all broswers without using javascript. Unless your users are happy with a
very minimalist UI (Ive yet to meet one who is) thats something of an
impossibility so you have a lot of decisions to make in terms of what and
what not to support.
A lot of things that might take only a few lines of code to achieve in a
Swing based client can be fiendishly complex in html (keeping your state
maintained correctly in relation to what the user is seeing on their screen,
fancy wi

RE: Is Struts (or browser based applications in general) useable to build maintenance-applications?

2002-11-26 Thread Andrew Hill
Ive a quite lot of links that look like
"thingAction.do?method=edit&uid=1234". As I go along Im rather coming to the
view that I should just try and use POST for everything and eliminate GETs
altogether. The browser just takes far too many liberties with them...

The sequencer idea has merit (seems similar in concept to the token token
support struts already provides), but the problem is that they want the damn
back button to actually work. Given that the app needs to maintain fifty
tons of state (including state of various ui widgets, workflows and other
wierdities) to meet all the other requirements its very hard to figure out a
suitable way to handle this short of incorperating a TARDIS in my
application.

The basic problem of course is the app vs website dilema. In a website the
back button is very useful as your just navigating round a bunch of
relatively stateless pages and a request is a direction for which page you
want next. In a web app however you arent navigating round a bunch of pages,
but rather firing events to the server that cause changes in server state
which are reflected in the response page. Clicking the back button would
cause the last 'event' to be fired again, or a snapshot of an earlier
response page to be shown, but the server is already in a different state.
The last event was already processed. Database writes have been commited.
Objects created or destroyed. Widgets toggled and workflows woggled.

Keeping a token gives you a chance to tell if the user is submitting from an
earlier page cached in the browser, and you can show an error message and
perhaps even direct them back on track - but when your requirement is that
that old page work again just like it did before, its nearly impossible. It
will work in some cases, but in others you can end up with all sorts of
problems if there are things that depend on server side state as well as
client side state - and in all but the most trivial of cases this will be
true. What to do?
:-(

Its hard enough to try an explain this problem to the (more experienced
technical) people who give me these requirements. I hate to think how the
concept can be imparted to users...

-Original Message-
From: Edgar Dollin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 19:02
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: Is Struts (or browser based applications in general)
useable to build maintenance-applications?


I have resolved all my Web Application issues (it did take a while).

The back button can be solved by subclassing the ActionForm and having a
standard sequence field.  In all your JSP make sure there is a hidden field
for the sequencer.  Then before any action occurs (write to the db) check
the sequencer to make sure it is the value expected.

If you only use POST methods in JSP the bookmark issue is moot.

Hope that helps

Edgar


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 3:10 AM
To: Struts Users Mailing List
Subject: RE: Is Struts (or browser based applications in general)
useable to build maintenance-applications?


Well I dont know what the issues with maintenance apps in particular are,
but for any web app (which is an application rather than just some trivial
website or portal with dynamic bits) you will have a lot of issues with
users doing things like using back buttons, bookmarks, etc... which can
really upset your server side sense of application state. Managing this can
be a real pain.

As soon as you go beyond trivial UI needs (ie: anything more complex than a
very basic example app) you also have to deal with a myriad of issues
related to browser compatibilities, container portability issues, etc...
Some ppl will tell you to develop code that meets the 'standards' and runs
on all broswers without using javascript. Unless your users are happy with a
very minimalist UI (Ive yet to meet one who is) thats something of an
impossibility so you have a lot of decisions to make in terms of what and
what not to support.
A lot of things that might take only a few lines of code to achieve in a
Swing based client can be fiendishly complex in html (keeping your state
maintained correctly in relation to what the user is seeing on their screen,
fancy widgets, modal stuff...)

On the positive side, your users wont need to install a client application
onto their machines which makes rolling out changes a lot easier (and for a
big organisation a LOT cheaper).
In addition a lot of things that require tons of code in Swing can be
achieved relatively easily from a browser UI. (For example printing a fancy
report just means forwarding to a page that presents the info nicely and
telling the user to click 'print' ;->)

-Original Message-
From: Martin Kuhn [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 15:46
To: [EMAIL PROTECTED]
Subject: Is Struts (or browser based applications in general) useable to
build maintenance-application

invokes processActionForward twice when submit????

2002-11-26 Thread Tuan H. Le
Hi,

I have noticed that when we submit an HTML form to a Struts action servlet, it called 
processActionForward twice. Is it possible? If so, how do we prevent it?

Thanks,
Tuan


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


RE: Commons-logging and JDK 1.4 Logger

2002-11-26 Thread Wendy Cameron
Sorry for a late response to this topic,

But I have just put my commons-logging.properties file in place
and now I scratch my head and wonder:

1) How to I create a logger variable in all my classes?
2) How do I then log messages to the log file etc?

Regards Wendy

> -Original Message-
> From: Pete Gieser [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 19, 2002 9:01 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Commons-logging and JDK 1.4 Logger
> 
> 
> Gee, didn't expect the formatting problem...
> 
> commons-logging.properties attached instead.
> 
> > -Original Message-
> > From: Pete Gieser [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, November 18, 2002 5:57 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Commons-logging and JDK 1.4 Logger
> > 
> > 
> > Just drop this file into WEB-INF/classes and select the 
> LogFactory and
> > Log implementation of choice.
>  
> 

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




RE: delay user input validate....

2002-11-26 Thread Vipul Sanghi
I think you can achieve this by doing the following:

1.  The Form bean has to have elements of all the parameters of the User
registration (screen 1 and screen2).  This formbean has to be of session
scope that is how you can delay the validation of the input till the second
screen.
2.  The action on the screen1 should not have any validation, it should also
not commit the bean but just forward to screen2 (forward action).  The
action on screen2 should have all the validation you want.  then depending
of the type of error forward either to the screen1 or screen2.

PS. One intutive approach to satisfy your business requirements could be to
save you some headache is on screen2 after the user presses (Save/Done)
display the fields from screen1 and screen2 with errors.  So you would not
have to do any custom forwarding on errors and just have to put an if
condition for the portion of scree2 which has screen1 elements to only
display when there is an error.

Hope this helps.  We have done something similar.

Vipul

-Original Message-
From: Doug Dates [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 25, 2002 4:36 AM
To: Struts Users Mailing List
Subject: delay user input validate


Hi, All:

I have a problem related to user input validation. I searched on the web, it
seems that I couldn't get a clue. Hopefully, you can help me out.

I have two screens: screen1 and screen2. The two screens are used for new
user registration.

On screen1, there are three fields: userName, password and confirmPassword.
There is also a "Continue" button on the screen1.--Validation rule:
userName should be unique. password and confirmPassword should be same.

On screen2, there are user imformation fields, such as street, city, etc.
And there is a  "Submit" button.

When user click on "Continue" on the screen1, the screen2 will be displayed,
even though there are input errors on screen1. The validation of the input
on screen1 will be delayed until user click "Submit" button on screen2. If
one(or all) of the fields are invalid (on screen1), the screen1 will be
displayed with original input, plus relevant error message. If there are
also error messages on screen2, their display should be delayed until the
user fixed the errors on screen1, click "continue" to go to screen2(fields
on screen2 prepopulated with original input) clicks "Submit", in this case,
controls back to screen2 with error messgaes and pre-entered data.

The above senario is business required.

How can I achieve this using struts(1.1.b). I know in struts, we can use
actionForm, validation, struts-config.xml, and etc. But how should I combine
them together to acheive the above senario. I really need your help. Thank
you in advance for your help.

Sincerely,

Doug






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




Tiles - definition="main.Layout" What does this means?

2002-11-26 Thread aps olute
 I just started with the Tiles tutorial and got stuck at this
definition="doc.mainLayout"  on the index.jsp, what does it mean? I see similar
definition="mainLayout"  under tutorial/index.jsp. I looked in the 
tiles-tutorial-defs.xml and found a definition for mainLayout but none for
doc.mainLayout  where does it find it?

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

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




struts-1.1-b2 nested tags don't work with tag handler pooling(tomcat-4.1.12)

2002-11-26 Thread Lenny Marks

The struts-nested tags from struts-1.1-b2 don't work when tag handler pooling
is used. Tomcat 4.1.12 has pooling turned on by default.

This can be demonstrated by deploying the 'MonkeyTree war (milestone two)'
from the Tree Structures tutorial by Arron Bates into tomcat-4.1.12.

Tutorial at:
http://www.keyboardmonkey.com/pilotlight/index.jsp
http://www.keyboardmonkey.com/pilotlight/monkey-tree/wars/monkey-tree_02/monk
ey-tree.war

Make sure pooling is off. See enablePooling in $CATALINA_HOME/conf/web.xml.
Also note that compiled jsp's in the $CATALINA_BASE/work directory must be
removed and server restarted to see new settings take effect.

==

*With pooling off:

Monkey Tree
monkey one
 monkey two
monkey three
 monkey four

*With pooling on:

Monkey Tree
 monkey one
   monkey two
 monkey one
   monkey two

I haven't checked the struts code, but I think this might be related to Bug
13392(When tag pooling is enabled, release() is not called on tag instances)
in the Apache Bug Database. This ticket ended up 'INVALID' referring to the
semantics of the release() method as defined by JSP.10.1.1.2 (JSP 1.2).
Apparently tags that depend on the release() method to reset state are not
spec compliant.

*** My Question?
Are the struts-nested problems related to the above, and if so, can they be
fixed to be spec compliant, or is their use dependend on deployment within a
servlet container that does not use handler pooling?

The semantics of tag handler reuse seem to be a bit ill-defined. It is well
stated that a tag handler instance can be re-used within the same page
request as well as across page requests. It is not clear whether the
release() method is gauranteed to be called after all reuse within a single
page, or only before the handler is released to the GC(all pages).

See. Web Development with Java Server Pages Second Edition(Manning) pg. 553
which says it will be called after all reuse within a page.

Professional JSP 2nd Edition(Wrox) pg. 301
(After page)

JSP 1.2 Spec - 10.1.1.2(Open for translation)

---


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




Re: request to struts action not being routed to J2EE containersecurity

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002, Michael Lee wrote:

> Date: Tue, 26 Nov 2002 17:40:51 -0500
> From: Michael Lee <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: request to struts action not being routed to J2EE container
> security
>
> I have an action that, upon successful completion, calls another struts action.
> IE: /a.do
> success mapping to
> /consumer/b.do
>
> In the web.xml I lock the /consumer/ directory off to authorised users
> using J2EE form based container security (Weblogic RDBMS).
>
> Problem is a.do is calling b.do and no redirect to the login page
> defined by the form based security in the web.xml takes place!
>
> I was thinking about calling weblogic specific
> weblogic.servlet.security.ServletAuthentication class to explicitly load
> the user into the container security upon successful completion of a.do
> but I would prefer a non-container specific implementation.
>

When you use container managed security, it is imposed *only* on the
original request URI, *not* on the URIs used in a
RequestDispatcher.forward() method.

> Thanks,
> Mike

Craig



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




RE: Easy Question

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002, John Mattos wrote:

> Date: Tue, 26 Nov 2002 15:27:20 -0800 (PST)
> From: John Mattos <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Easy Question
>
>
> Yes, exactly.
> The app doesn't put out a stack trace at this point, but there are other points it 
>fails. Here's a stack trace from another point in the app.
> java.lang.NoClassDefFoundError: javax/ejb/ObjectNotFoundException

Did you say you're running Tomcat?  If so, this shouldn't be too
surprising, since Tomcat does not support EJBs.

>   at 
>com.thoughtworks.clearinghouse.web.servlet.MaintainMappingAction.actionExecuted(MaintainMappingAction.java:75)
>   at 
>com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
>   at 
>org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
>   at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)
>
> It seems like it can't find the classes!!
>  "Karr, David" <[EMAIL PROTECTED]> wrote:So the "indemand" web application has 
>this struts-config.xml file and
> all your relevant libs and classes?
>
> Does the error show an exception stack trace? If so, what is the "root
> cause" stack trace?
>

Craig


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




Re: setting debug level for digester, sax, beanUtils...

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002 [EMAIL PROTECTED] wrote:

> Date: Tue, 26 Nov 2002 16:05:46 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: setting debug level for digester, sax, beanUtils...
>
>
> Hi,
>
> I am trying to turn off logging for Struts and sub-components while keeping
> logging on for my own code. I have put the debug and detail init parameter
> to 0 in web.xml but I receive debug messages from digester, sax, beanUtils
> and others.
>

In 1.1, Struts and all the commons libraries it employes use
commons-logging as an abstraction to the underlying logging system -- in
turn, this allows you to use a variety of logging implementations such as
Log4J, JDK 1.4 logging, or a simple write-to-System.err default
implementation.  The actual configuration of the logging is done with the
configuration file for your logging mechanism (for example, to set up JDK
1.4 logging you edit <$JAVA_HOME/jre/lib/logging.properties>.

To configure *what* gets logged, the important issue is to understand the
default log name conventions of Apache code (typically the fully qualified
class name of the corresponding class).  Also, the typical logging
configuraiton file is hierarchical -- so that you can say things like this
to set the usual Struts logging levels to INFO, but get detailed debug
info from RequestProcessor (uses JDK 1.4 syntax):

org.apache.struts.level =INFO
org.apache.struts.action.RequestProcessor.level = DEBUG

Check the docs for configuring whichever logging implementation you want
to use for how to configure levels by logger name.  For the simple default
logger, it's in the package description at:

http://jakarta.apache.org/commons/logging/api/


> Does anyone know how to confugure the struts-config or/and web.xml?
>
> Thanks
> Stephan
>

Craig



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




Re: [OT]: Finding memory leaks

2002-11-26 Thread Alberto Corona
You can use HPROF to profile your JVM.
Take a look at this article whcih explains how to diagnose memory leak 
problems using hprof 
http://www.javaworld.com/javaworld/jw-12-2001/jw-1207-hprof.html

Alberto Corona
VP Of Consulting Services
ObjectWave Corp.
312-269-0111x129

David Graham wrote:

Search google for profiling tools.  You're probably holding onto old 
objects in a Collection so they never get garbage collected.  You're 
probably not doing native calls so this is the most likely reason you 
run out of memory.

David






From: gus <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: OT: Finding memory leaks
Date: Tue, 26 Nov 2002 23:18:44 +0100

Hi!

This is a little off topic:
I just wrote a struts app (Tomcat 4.1.12, Struts 1.1b2, Tiles, JDK 
1.4.0_01, Win2K) that unfortunately crashes Tomcat after a while with 
an OutOfMemory Exception. So I assume my app has a memory leak.

Does anybody have a hint on how to find memory leaks in a web app?

Thanks in advance
  gus


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






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




Re: Communication Between WebApps

2002-11-26 Thread micael
You can send them to a different machine, url, etc.  But, sounds as if you 
are looking for the sort of thing that Struts 1.1 does so well, and is 
outlined in Struts in Action, a new book.

At 11:19 PM 11/26/2002 +, you wrote:
I'm trying to develop a Struts feasibility example for my project and
I've come across a small problem.  I really want to have three web
applications where the first web application is used for
authentication and authorization.  Is it possible once I've authorized a
user to forward them to another web application?  Is it just a case of
setting up a mapping in the config file for the first web app and
forwarding to a specific mapping which will be recognised by tomcat as
the second app and therefore switch control?

Many thanks,
Jon Holloway.


*-*
 Jonathan Holloway,
 Dept. Of Computer Science,
 Aberystwyth University,
 Ceredigion,
 West Wales,
 SY23 3DV.

 07968 902140
 http://users.aber.ac.uk/jph8
*-*



Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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



Re: request to struts action not being routed to J2EE container security

2002-11-26 Thread Michael Lee
This worked too! No redirect code except in the struts-config.xml forward!
thanks everyone,
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 7:13 PM
Subject: Re: request to struts action not being routed to J2EE container
security


> What he said :-)  You are most welcome, sir ;-)
>
> David Graham wrote:
>
> > Instead of using the sendRedirect method you should just define the
> > forward element in struts-config with redirect="true".  That way you
> > can still use the logical names and not code b.do in your action.
> > Struts will redirect for you when it sees that attribute set to true.
> >
> > David
>
>
> --
> Eddie Bush
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




RE: Easy Question

2002-11-26 Thread Karr, David
It appears you have an exception handler for HTTP error code 500 which
is hiding the stack trace.  Check your server logs to see if it got
logged somewhere, or try to remove the error code exception handler.
The "root cause" of the exception is probably important.

I would guess this application is trying to connect to a remote EJB
server?  You'll have to get the EJB api jar file into your WEB-INF/lib,
to at least get access to the class files.

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> 
> Yes, exactly.
> The app doesn't put out a stack trace at this point, but 
> there are other points it fails. Here's a stack trace from 
> another point in the app.
> java.lang.NoClassDefFoundError: javax/ejb/ObjectNotFoundException
>   at 
> com.thoughtworks.clearinghouse.web.servlet.MaintainMappingActi
> on.actionExecuted(MaintainMappingAction.java:75)
>   at 
> com.thoughtworks.clearinghouse.web.servlet.AbstractAction.exec
> ute(AbstractAction.java:38)
>   at 
> org.apache.struts.action.RequestProcessor.processActionPerform
> (RequestProcessor.java:437)
>   at 
> org.apache.struts.action.RequestProcessor.process(RequestProce
> ssor.java:264)
> 
> It seems like it can't find the classes!!
>  "Karr, David" <[EMAIL PROTECTED]> wrote:So the "indemand" 
> web application has this struts-config.xml file and
> all your relevant libs and classes?
> 
> Does the error show an exception stack trace? If so, what is the "root
> cause" stack trace?
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 3:08 PM
> > To: Struts Users Mailing List
> > Subject: RE: Easy Question
> > 
> > 
> > 
> > Hey
> > The jar file, called iNDemandCH.jar lives in this directory.
> > C:\Tomcat\webapps\indemand\WEB-INF\lib
> > the weird thing about this is that some .do actions work, and 
> > others don't. Do you think it might be that it can't see the 
> > class files?
> > 
> > "Karr, David" wrote:What do you mean 
> > by "inside a jar file that is referenced in the
> > classpath explicitly"? Aren't you putting your application 
> classes in
> > the "WEB-INF/classes" or "WEB-INF/lib" directory? You will 
> always get
> > into trouble if you try to externally control the CLASSPATH.
> > 
> > > -Original Message-
> > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > 
> > > Yes, here it is...
> > > > 
> type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> > > name="recordForm"
> > > scope="request"
> > > input="editRecord.jsp">
> > > 
> > > 
> > > 
> > > 
> > > and the class does exist inside a jar file that is referenced 
> > > in the classpath explicitly
> > > "Karr, David" wrote:Do you have a 
> > > valid "action" element in your "struts-config.xml" file
> > > specifying the "editRecord.do" action (assuming you're 
> > using extension
> > > mapping)?
> > > 
> > > > -Original Message-
> > > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > > 
> > > > Hey,
> > > > I'm getting the following error which makes me think that it 
> > > > can't locate my classes, but the jar containing the classes 
> > > > is in the CLASSPATH.
> > > > Does anything about this jump out at anybody?Apache 
> > > > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > > > /editRecord could be created
> > > > -
> > > > 
> > > > type Status report
> > > > 
> > > > message No action instance for path /editRecord could be created
> > > > 
> > > > description The server encountered an internal error (No 
> > > > action instance for path /editRecord could be created) that 
> > > > prevented it from fulfilling this request.
> > 
> > --
> > To unsubscribe, e-mail: 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> > 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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




Re: Communication Between WebApps

2002-11-26 Thread Eddie Bush
... looked into container-managed authentication yet?  Tomcat (and 
others, I believe) will let you do single sign-on among different apps. 
With CMA you don't have to worry about how the authentication gets 
invoked ... the container takes care of that.

Jonathan Holloway wrote:

I'm trying to develop a Struts feasibility example for my project and
I've come across a small problem.  I really want to have three web
applications where the first web application is used for 
authentication and authorization.  Is it possible once I've authorized a
user to forward them to another web application?  Is it just a case of
setting up a mapping in the config file for the first web app and
forwarding to a specific mapping which will be recognised by tomcat as
the second app and therefore switch control?

Many thanks,
Jon Holloway.


--
Eddie Bush





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




RE: Easy Question

2002-11-26 Thread John Mattos

Yes, exactly.
The app doesn't put out a stack trace at this point, but there are other points it 
fails. Here's a stack trace from another point in the app.
java.lang.NoClassDefFoundError: javax/ejb/ObjectNotFoundException
at 
com.thoughtworks.clearinghouse.web.servlet.MaintainMappingAction.actionExecuted(MaintainMappingAction.java:75)
at 
com.thoughtworks.clearinghouse.web.servlet.AbstractAction.execute(AbstractAction.java:38)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264)

It seems like it can't find the classes!!
 "Karr, David" <[EMAIL PROTECTED]> wrote:So the "indemand" web application has this 
struts-config.xml file and
all your relevant libs and classes?

Does the error show an exception stack trace? If so, what is the "root
cause" stack trace?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> 
> Hey
> The jar file, called iNDemandCH.jar lives in this directory.
> C:\Tomcat\webapps\indemand\WEB-INF\lib
> the weird thing about this is that some .do actions work, and 
> others don't. Do you think it might be that it can't see the 
> class files?
> 
> "Karr, David" wrote:What do you mean 
> by "inside a jar file that is referenced in the
> classpath explicitly"? Aren't you putting your application classes in
> the "WEB-INF/classes" or "WEB-INF/lib" directory? You will always get
> into trouble if you try to externally control the CLASSPATH.
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Yes, here it is...
> > > type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> > name="recordForm"
> > scope="request"
> > input="editRecord.jsp">
> > 
> > 
> > 
> > 
> > and the class does exist inside a jar file that is referenced 
> > in the classpath explicitly
> > "Karr, David" wrote:Do you have a 
> > valid "action" element in your "struts-config.xml" file
> > specifying the "editRecord.do" action (assuming you're 
> using extension
> > mapping)?
> > 
> > > -Original Message-
> > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > 
> > > Hey,
> > > I'm getting the following error which makes me think that it 
> > > can't locate my classes, but the jar containing the classes 
> > > is in the CLASSPATH.
> > > Does anything about this jump out at anybody?Apache 
> > > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > > /editRecord could be created
> > > -
> > > 
> > > type Status report
> > > 
> > > message No action instance for path /editRecord could be created
> > > 
> > > description The server encountered an internal error (No 
> > > action instance for path /editRecord could be created) that 
> > > prevented it from fulfilling this request.
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


RE: Easy Question

2002-11-26 Thread Karr, David
So the "indemand" web application has this struts-config.xml file and
all your relevant libs and classes?

Does the error show an exception stack trace?  If so, what is the "root
cause" stack trace?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 3:08 PM
> To: Struts Users Mailing List
> Subject: RE: Easy Question
> 
> 
> 
> Hey
> The jar file, called iNDemandCH.jar lives in this directory.
> C:\Tomcat\webapps\indemand\WEB-INF\lib
> the weird thing about this is that some .do actions work, and 
> others don't. Do you think it might be that it can't see the 
> class files?
>  
>  "Karr, David" <[EMAIL PROTECTED]> wrote:What do you mean 
> by "inside a jar file that is referenced in the
> classpath explicitly"? Aren't you putting your application classes in
> the "WEB-INF/classes" or "WEB-INF/lib" directory? You will always get
> into trouble if you try to externally control the CLASSPATH.
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Yes, here it is...
> > > type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> > name="recordForm"
> > scope="request"
> > input="editRecord.jsp">
> > 
> > 
> > 
> > 
> > and the class does exist inside a jar file that is referenced 
> > in the classpath explicitly
> > "Karr, David" wrote:Do you have a 
> > valid "action" element in your "struts-config.xml" file
> > specifying the "editRecord.do" action (assuming you're 
> using extension
> > mapping)?
> > 
> > > -Original Message-
> > > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > > 
> > > Hey,
> > > I'm getting the following error which makes me think that it 
> > > can't locate my classes, but the jar containing the classes 
> > > is in the CLASSPATH.
> > > Does anything about this jump out at anybody?Apache 
> > > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > > /editRecord could be created
> > > -
> > > 
> > > type Status report
> > > 
> > > message No action instance for path /editRecord could be created
> > > 
> > > description The server encountered an internal error (No 
> > > action instance for path /editRecord could be created) that 
> > > prevented it from fulfilling this request.
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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




Communication Between WebApps

2002-11-26 Thread Jonathan Holloway
I'm trying to develop a Struts feasibility example for my project and
I've come across a small problem.  I really want to have three web
applications where the first web application is used for 
authentication and authorization.  Is it possible once I've authorized a
user to forward them to another web application?  Is it just a case of
setting up a mapping in the config file for the first web app and
forwarding to a specific mapping which will be recognised by tomcat as
the second app and therefore switch control?
 
Many thanks,
Jon Holloway.
 
 
*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*
 



Re: request to struts action not being routed to J2EE containersecurity

2002-11-26 Thread Eddie Bush
What he said :-)  You are most welcome, sir ;-)

David Graham wrote:


Instead of using the sendRedirect method you should just define the 
forward element in struts-config with redirect="true".  That way you 
can still use the logical names and not code b.do in your action.  
Struts will redirect for you when it sees that attribute set to true.

David 


--
Eddie Bush





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




RE: Easy Question

2002-11-26 Thread John Mattos

Hey
The jar file, called iNDemandCH.jar lives in this directory.
C:\Tomcat\webapps\indemand\WEB-INF\lib
the weird thing about this is that some .do actions work, and others don't. Do you 
think it might be that it can't see the class files?
 
 "Karr, David" <[EMAIL PROTECTED]> wrote:What do you mean by "inside a jar file 
that is referenced in the
classpath explicitly"? Aren't you putting your application classes in
the "WEB-INF/classes" or "WEB-INF/lib" directory? You will always get
into trouble if you try to externally control the CLASSPATH.

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> 
> Yes, here it is...
> > type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> name="recordForm"
> scope="request"
> input="editRecord.jsp">
> 
> 
> 
> 
> and the class does exist inside a jar file that is referenced 
> in the classpath explicitly
> "Karr, David" wrote:Do you have a 
> valid "action" element in your "struts-config.xml" file
> specifying the "editRecord.do" action (assuming you're using extension
> mapping)?
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Hey,
> > I'm getting the following error which makes me think that it 
> > can't locate my classes, but the jar containing the classes 
> > is in the CLASSPATH.
> > Does anything about this jump out at anybody?Apache 
> > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > /editRecord could be created
> > -
> > 
> > type Status report
> > 
> > message No action instance for path /editRecord could be created
> > 
> > description The server encountered an internal error (No 
> > action instance for path /editRecord could be created) that 
> > prevented it from fulfilling this request.

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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: request to struts action not being routed to J2EE container security

2002-11-26 Thread David Graham
Instead of using the sendRedirect method you should just define the forward 
element in struts-config with redirect="true".  That way you can still use 
the logical names and not code b.do in your action.  Struts will redirect 
for you when it sees that attribute set to true.

David






From: "Michael Lee" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: request to struts action not being routed to J2EE container 
security
Date: Tue, 26 Nov 2002 17:59:19 -0500

That worked like a champ. I did not know that forwards were not redirected
through the user.
Here is the code;

if(user == null) // no user was found in the session or
authenticated request.getUserPrincipal()
{
response.sendRedirect("/webapp/consumer/b.do");
}

Thank you very much Eddie Bush!
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 6:49 PM
Subject: Re: request to struts action not being routed to J2EE container
security


> Are you forwarding to /consumer/b.do?  If so it won't make the user
> authenticate - you need to redirect.  Your application is able to send
> the user anywhere - CMA only protects you from direct-access by the user
> (which is the situation you get by doing a redirect).
>
> If you're doing a redirect and this doesn't work, I'd say your server is
> broker.
>
> Michael Lee wrote:
>
> >I have an action that, upon successful completion, calls another struts
action.
> >IE: /a.do
> >success mapping to
> >/consumer/b.do
> >
> >In the web.xml I lock the /consumer/ directory off to authorised users
using J2EE form based container security (Weblogic RDBMS).
> >
> >Problem is a.do is calling b.do and no redirect to the login page 
defined
by the form based security in the web.xml takes place!
> >
> >I was thinking about calling weblogic specific
weblogic.servlet.security.ServletAuthentication class to explicitly load 
the
user into the container security upon successful completion of a.do but I
would prefer a non-container specific implementation.
> >
> >Thanks,
> >Mike
> >
> >
>
> --
> Eddie Bush
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



Re: request to struts action not being routed to J2EE container security

2002-11-26 Thread Michael Lee
That worked like a champ. I did not know that forwards were not redirected
through the user.
Here is the code;

if(user == null) // no user was found in the session or
authenticated request.getUserPrincipal()
{
response.sendRedirect("/webapp/consumer/b.do");
}

Thank you very much Eddie Bush!
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 6:49 PM
Subject: Re: request to struts action not being routed to J2EE container
security


> Are you forwarding to /consumer/b.do?  If so it won't make the user
> authenticate - you need to redirect.  Your application is able to send
> the user anywhere - CMA only protects you from direct-access by the user
> (which is the situation you get by doing a redirect).
>
> If you're doing a redirect and this doesn't work, I'd say your server is
> broker.
>
> Michael Lee wrote:
>
> >I have an action that, upon successful completion, calls another struts
action.
> >IE: /a.do
> >success mapping to
> >/consumer/b.do
> >
> >In the web.xml I lock the /consumer/ directory off to authorised users
using J2EE form based container security (Weblogic RDBMS).
> >
> >Problem is a.do is calling b.do and no redirect to the login page defined
by the form based security in the web.xml takes place!
> >
> >I was thinking about calling weblogic specific
weblogic.servlet.security.ServletAuthentication class to explicitly load the
user into the container security upon successful completion of a.do but I
would prefer a non-container specific implementation.
> >
> >Thanks,
> >Mike
> >
> >
>
> --
> Eddie Bush
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




RE: Easy Question

2002-11-26 Thread Karr, David
What do you mean by "inside a jar file that is referenced in the
classpath explicitly"?  Aren't you putting your application classes in
the "WEB-INF/classes" or "WEB-INF/lib" directory?  You will always get
into trouble if you try to externally control the CLASSPATH.

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> 
> Yes, here it is...
>  type="com.thoughtworks.clearinghouse.web.servlet.EditRecordAction"
> name="recordForm"
> scope="request"
> input="editRecord.jsp">
>   
>   
>   
>  
> and the class does exist inside a jar file that is referenced 
> in the classpath explicitly
>  "Karr, David" <[EMAIL PROTECTED]> wrote:Do you have a 
> valid "action" element in your "struts-config.xml" file
> specifying the "editRecord.do" action (assuming you're using extension
> mapping)?
> 
> > -Original Message-
> > From: John Mattos [mailto:[EMAIL PROTECTED]]
> > 
> > Hey,
> > I'm getting the following error which makes me think that it 
> > can't locate my classes, but the jar containing the classes 
> > is in the CLASSPATH.
> > Does anything about this jump out at anybody?Apache 
> > Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> > /editRecord could be created
> > -
> > 
> > type Status report
> > 
> > message No action instance for path /editRecord could be created
> > 
> > description The server encountered an internal error (No 
> > action instance for path /editRecord could be created) that 
> > prevented it from fulfilling this request.

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




RE: Easy Question

2002-11-26 Thread John Mattos

Yes, here it is...

  
  
  
 
and the class does exist inside a jar file that is referenced in the classpath 
explicitly
 "Karr, David" <[EMAIL PROTECTED]> wrote:Do you have a valid "action" element in 
your "struts-config.xml" file
specifying the "editRecord.do" action (assuming you're using extension
mapping)?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Easy Question
> 
> 
> 
> Hey,
> I'm getting the following error which makes me think that it 
> can't locate my classes, but the jar containing the classes 
> is in the CLASSPATH.
> Does anything about this jump out at anybody?Apache 
> Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> /editRecord could be created
> -
> 
> type Status report
> 
> message No action instance for path /editRecord could be created
> 
> description The server encountered an internal error (No 
> action instance for path /editRecord could be created) that 
> prevented it from fulfilling this request.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Generating URL from HashMap

2002-11-26 Thread Sharma, Sanjay (LNG-DAY)

The  tag takes a HashMap and generates a URL from it. Is there
some Plain Old Java Class that will do the same thing?
RequestUtils.computeURL seems to usable only in content of a JSP Page
(PageContext is an input).

Sanjay


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




Re: request to struts action not being routed to J2EE containersecurity

2002-11-26 Thread Eddie Bush
Are you forwarding to /consumer/b.do?  If so it won't make the user 
authenticate - you need to redirect.  Your application is able to send 
the user anywhere - CMA only protects you from direct-access by the user 
(which is the situation you get by doing a redirect).

If you're doing a redirect and this doesn't work, I'd say your server is 
broker.

Michael Lee wrote:

I have an action that, upon successful completion, calls another struts action.
IE: /a.do
success mapping to
/consumer/b.do

In the web.xml I lock the /consumer/ directory off to authorised users using J2EE form based container security (Weblogic RDBMS).

Problem is a.do is calling b.do and no redirect to the login page defined by the form based security in the web.xml takes place!

I was thinking about calling weblogic specific weblogic.servlet.security.ServletAuthentication class to explicitly load the user into the container security upon successful completion of a.do but I would prefer a non-container specific implementation.

Thanks,
Mike
 


--
Eddie Bush





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




request to struts action not being routed to J2EE container security

2002-11-26 Thread Michael Lee
I have an action that, upon successful completion, calls another struts action.
IE: /a.do
success mapping to
/consumer/b.do

In the web.xml I lock the /consumer/ directory off to authorised users using J2EE form 
based container security (Weblogic RDBMS).

Problem is a.do is calling b.do and no redirect to the login page defined by the form 
based security in the web.xml takes place!

I was thinking about calling weblogic specific 
weblogic.servlet.security.ServletAuthentication class to explicitly load the user into 
the container security upon successful completion of a.do but I would prefer a 
non-container specific implementation.

Thanks,
Mike


[OT]: Finding memory leaks

2002-11-26 Thread David Graham
Search google for profiling tools.  You're probably holding onto old objects 
in a Collection so they never get garbage collected.  You're probably not 
doing native calls so this is the most likely reason you run out of memory.

David






From: gus <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: OT: Finding memory leaks
Date: Tue, 26 Nov 2002 23:18:44 +0100

Hi!

This is a little off topic:
I just wrote a struts app (Tomcat 4.1.12, Struts 1.1b2, Tiles, JDK 
1.4.0_01, Win2K) that unfortunately crashes Tomcat after a while with an 
OutOfMemory Exception. So I assume my app has a memory leak.

Does anybody have a hint on how to find memory leaks in a web app?

Thanks in advance
  gus


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



Re: [OT] Updating CachedRowSet

2002-11-26 Thread V. Cekvenich
RowSet does not do Multi Table Updates! Neither does CommonsSQL as I saw 
it. That is why it's light weight, fast and scalable, since it does not 
deal with O/R, it is just relational data. For R/O, you can do joins, 
most data is R/O. Also, if you do use RowSet, do not use ResultSet, no 
need for it. (The reason I use Struts is that is is light weight and 
fast, thus I avoid heavy DAO layers that do not do SQL (ex: EJB, JDO, OJB).

For R/W:
But of course one can do master/Detail, or many to many, or more 
complicated updates, in fact most updates are "compound". See if I can 
explain this, but it takes using the tool between the ears:
For multi table updates I create a nested bean. Master/Detail like.
I always start by creating base beans, simple beans that are unit 
tested, and have a dao, but have a singe table.
Then I created a C bean that extends bean A, and has a bean B. (is a/has 
 a is very OO **)
Bean C has 2 tables now. (you get the idea?) It has a B getB() method. I 
override next (for iteration) to go next on the A and B, find  {to do 
super.find() (for A) and B.find for b }, save { super.save(), B.save() 
}, etc.
With this Zero copy approach, I can get very high transactions rates for 
low overhead. Compare this to multi copy and ineficient aproach of array 
list of objects when you need to do updetable master detail processing.
Why is this Zero copy? Because the cached or disconnected row set, where 
the retrieval happens, is where the setters fire. (Advanced: My beans 
are actually collections with getRow so they can do multi row updates, 
but  they look like regular beans).

I can change DAO implementation at will as well. I can use same bean in 
console, or Model 1, or Soap, etc. since DAO lets me create a DBCP pool 
or use the pool of the container (based on properties).
My Beans of type C are tied to the presentation layer.

OT: (Since my beans of type C are tied to the presentation, I do 
presentation first on my projects as a "contract" with 0 code until the 
presentation layers is accepted and signed of by a client.
The presentation just has actions that forward to "success", nothing 
else, maybe some other navigation logic.
The JSPs the client sees look real, as a finished app. It has tiles, and 
CSS, but no java code, no point in coding until the client signs of. 
Once the client says, yes, this is the what I want (Just blank actions 
and JSP) then I start coding the "simple beans" that I unit test. Then I 
create the bus. compound beans (is a/ has a) and unit test them. Thus I 
have benefits of layered iterative approach. The thing that I will be 
adding soon to "example app" , is more browser side procesing in XFORMS, 
and JavaScript.
Consider allways writing presentation and action mappings first in Model 
2, then beans come natural. That is why you do MVC layers, right, so you 
can unit test each!).

.V


** Some people do not realize that Java is OO capable.  Java does not 
produce OO reusable code on it's own, it compiles fine linear, but you 
could if you have experience make it reusable via OO. This lets me reuse 
beans, and other things.



John Bigboote wrote:
Hmm, I think that's implementation dependent.  For
example, the Oracle CachedRowSet implementation
doesn't support updating joined tables.  See:

http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a90211/rowset.htm#628357

I don't know for sure, but I'll wager the RI doesn't,
either...

John



--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:


My initial SQL SELECT statement that creates my
ResultSet pulls data from several tables.  I wasn't
sure if the RowSetWriter implementation would be
able to accommodate this scenario, so I've started
using the CachedRowSet object as a means of passing 
data from DAO to business logic and back.  I had to 
kill the writer in order to use the

'acceptChanges()'


method.  Does the default RowSetWriter handle 
updating multiple tables?

Jerry


-Original Message-
From: John Bigboote [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: [OT] Updating CachedRowSet



--- Jerry Jalenak <[EMAIL PROTECTED]>


wrote:


[...snip...]



	crs.updateString("userInfo", userInfo);
	crs.updateRow();
	crs.setWriter(null);   // kill default writer
	crs.acceptChanges();



Why are you setting the writer to null?  It's the
RowSetWriter that propagates changes back to the
database...

John


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up


now.


http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   





For additional commands, e-mail: 



This transmission (and any information attached to
it) may be confidential and is intended solely for
the use of the individual or entity to which it is
addressed. If you are not the intended recipient or
the person responsible for delivering the
transmiss

RE: Easy Question

2002-11-26 Thread Karr, David
Do you have a valid "action" element in your "struts-config.xml" file
specifying the "editRecord.do" action (assuming you're using extension
mapping)?

> -Original Message-
> From: John Mattos [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:29 PM
> To: [EMAIL PROTECTED]
> Subject: Easy Question
> 
> 
> 
> Hey,
> I'm getting the following error which makes me think that it 
> can't locate my classes, but the jar containing the classes 
> is in the CLASSPATH.
> Does anything about this jump out at anybody?Apache 
> Tomcat/4.0.6 - HTTP Status 500 - No action instance for path 
> /editRecord could be created
> -
> 
> type Status report
> 
> message No action instance for path /editRecord could be created
> 
> description The server encountered an internal error (No 
> action instance for path /editRecord could be created) that 
> prevented it from fulfilling this request.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now
> 

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




Easy Question

2002-11-26 Thread John Mattos

Hey,
I'm getting the following error which makes me think that it can't locate my classes, 
but the jar containing the classes is in the CLASSPATH.
Does anything about this jump out at anybody?Apache Tomcat/4.0.6 - HTTP Status 500 - 
No action instance for path /editRecord could be created
-

type Status report

message No action instance for path /editRecord could be created

description The server encountered an internal error (No action instance for path 
/editRecord could be created) that prevented it from fulfilling this request.



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


OT: Finding memory leaks

2002-11-26 Thread gus
Hi!

This is a little off topic:
I just wrote a struts app (Tomcat 4.1.12, Struts 1.1b2, Tiles, JDK 
1.4.0_01, Win2K) that unfortunately crashes Tomcat after a while with 
an OutOfMemory Exception. So I assume my app has a memory leak.

Does anybody have a hint on how to find memory leaks in a web app?

Thanks in advance
  gus


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



RE: [tiles] More tiles questions

2002-11-26 Thread Wendy Smoak
I wrote:
> Do I need an Action for the tab body that merely forwards to the
appropriate
> page?  Something like:
> 

If anyone is following along... my fix seems to have already been found.  In
tabsLayout.jsp, this appears:

<% // compute href
  String href = request.getRequestURI() + "?"+parameterName + "=" + index;
// Don't add request URI prefix , but let the client compute the
original URL
// This allows to use a Struts action as page URL, and perform a
forward.
// Bug reported by Don Peterkofsky 
  //String href = "" + "?"+parameterName + "=" + index;

So I switched the comments around and now the links for the tabs remain with
my testAction.do in the URL, plus the "selected=#" for whichever tab was
clicked.  

Success!  Thanks for everyone's help on this.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



[Nested Tags] Frustration..Should this work?

2002-11-26 Thread Jeff_Mychasiw
Greetings:
All I am trying to do is display a a selected item form a list.

 - pageList is standard java.util.List of LabelValueBeans set in page
scope.
 - cc is a String pulled out of the form bean and set to page scope.

Using the nested tags my first approach was this:

 
  

  
  


But to get it working I am forced to  redo it like this:

 

 


Before I report this to bugzilla, I would like it  if someone could tell me if I am 
doing something wrong.

The error I get is:
2002-11-26 15:32:23 ApplicationDispatcher[/ar] Servlet.service() for servlet jsp threw 
exception
java.lang.NullPointerException
  at java.util.Hashtable.put(Hashtable.java:394)
  at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImpl.java:229)
  at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:390)
  at 
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(NestedIterateTag.java:121)
  at 
org.apache.jsp.DetailedProfileReadOnlyForm$jsp._jspService(DetailedProfileReadOnlyForm$jsp.java:336)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)



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




RE: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Trieu, Danny
Chuck, I've got my copy from amazon yesterday.

Well done Chuck ...

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:40 PM
To: Struts Users Mailing List
Subject: Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available


I'm sorry the copy hasn't been shipped by bookpool yet. I noticed they are
still saying "not yet published" yesterday. If it's any consolation, I
haven't got my copies yet either. I haven't even seen the finished product
yet :( 

chuck

> 
> From: "Paananen, Tero" <[EMAIL PROTECTED]>
> Date: 2002/11/26 Tue PM 03:57:09 EST
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
> 
> > I just wanted to let everyone know that my Struts book
> > published by O'Reilly is 
> > now available and shipping. You can get it from Amazon, 
> > Bookpool, etc. 
> 
> http://www.bookpool.com/.x/3ezbbr1tf4/sm/0596003285
> 
> "Not-Yet-Published" :(
> 
> -TPP - patience is a virtue, I know, but I've had the
>book on preorder for 3 months now.
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail: 
> 
> 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Chuck Cavaness
I'm sorry the copy hasn't been shipped by bookpool yet. I noticed they are still 
saying "not yet published" yesterday. If it's any consolation, I haven't got my copies 
yet either. I haven't even seen the finished product yet :( 

chuck

> 
> From: "Paananen, Tero" <[EMAIL PROTECTED]>
> Date: 2002/11/26 Tue PM 03:57:09 EST
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
> 
> > I just wanted to let everyone know that my Struts book 
> > published by O'Reilly is 
> > now available and shipping. You can get it from Amazon, 
> > Bookpool, etc. 
> 
> http://www.bookpool.com/.x/3ezbbr1tf4/sm/0596003285
> 
> "Not-Yet-Published" :(
> 
> -TPP - patience is a virtue, I know, but I've had the
>book on preorder for 3 months now.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 


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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
Thanks for your suggestions.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:33 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties not reloading added keys


Yes, in these cases, it would probably be quicker to manually check (from
your
source all the way to the deployed application) that the file exists and was
updated.

If all else fails, blow away JBoss' work directory:
$JBOSS_HOME/server/default/tmp/deploy/server/default/deploy/{yourapp.war}

Hope that helps.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> The way I'm working is as follows:
>
> We have an ant task that will build an ear file.
> What we then do is through some ant tasks, extract the ear file into the
> deploy folder of jboss. Another task then extracts the war file into the
> deploy folder also. So what I end up with is as follows:
>
> $JBOSS_DEPLOY_DIRECTORY/$EAR_DIRECTORY
> $JBOSS_DEPLOY_DIRECTORY/$WAR_DIRECTORY
>
> Inside the $EAR_DIRECTORY is your typical J2EE stuff, and inside the
> $WAR_DIRECTORY is the web-app.
>
> Whenever I make a change to the properties file, I have an ant task that
> will touch the web.xml of the web-app, but this doesn't work. Shutting
down
> and restarting jboss from scratch does not do the trick either. Pretty
> weird
>
> Thanks for the quick reply.
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:14 PM
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> Please describe how you are working
>
> a, b, c, or some other way:
>
> a) building .war and deploy/redeploy
> b) changing the files in place (I don't think this is possible)
> c) working right in the deploy directory
>
> If a, are you sure you are not adding it to the .properties that gets
> overwritten when building?
> If c, the app will not redeploy itself when a property file changes (at
> least
> not last time I checked)
>
>
>
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "If you were plowing a field, which would you rather use? Two strong oxen
or
> 1024 chickens?"
> - Seymour Cray (1925-1996), father of supercomputing
>
>
> > -Original Message-
> > From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 4:04 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: ApplicationResources.properties not reloading added keys
> >
> >
> > Hi:
> >
> > I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> > ApplicationResources.properties to display newly added keys. I have
> > restarted jboss and still no luck. All I get is a message like this:
> > ???en_US.prompt.application.url???
> > I know that the file ApplicationResources.properties  is under
> > WEB-INF/classes and it does have the prompt.application.url key.
> >
> > If anyone has any idea how to solve this under the environment described
> > above, I'd appreciate if you could share them with me.
> >
> > Thanks in advance
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread James Mitchell
Yes, in these cases, it would probably be quicker to manually check (from your
source all the way to the deployed application) that the file exists and was
updated.

If all else fails, blow away JBoss' work directory:
$JBOSS_HOME/server/default/tmp/deploy/server/default/deploy/{yourapp.war}

Hope that helps.


--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:25 PM
> To: 'Struts Users Mailing List'
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> The way I'm working is as follows:
>
> We have an ant task that will build an ear file.
> What we then do is through some ant tasks, extract the ear file into the
> deploy folder of jboss. Another task then extracts the war file into the
> deploy folder also. So what I end up with is as follows:
>
> $JBOSS_DEPLOY_DIRECTORY/$EAR_DIRECTORY
> $JBOSS_DEPLOY_DIRECTORY/$WAR_DIRECTORY
>
> Inside the $EAR_DIRECTORY is your typical J2EE stuff, and inside the
> $WAR_DIRECTORY is the web-app.
>
> Whenever I make a change to the properties file, I have an ant task that
> will touch the web.xml of the web-app, but this doesn't work. Shutting down
> and restarting jboss from scratch does not do the trick either. Pretty
> weird
>
> Thanks for the quick reply.
>
> -Original Message-
> From: James Mitchell [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:14 PM
> To: Struts Users Mailing List
> Subject: RE: ApplicationResources.properties not reloading added keys
>
>
> Please describe how you are working
>
> a, b, c, or some other way:
>
> a) building .war and deploy/redeploy
> b) changing the files in place (I don't think this is possible)
> c) working right in the deploy directory
>
> If a, are you sure you are not adding it to the .properties that gets
> overwritten when building?
> If c, the app will not redeploy itself when a property file changes (at
> least
> not last time I checked)
>
>
>
> --
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "If you were plowing a field, which would you rather use? Two strong oxen or
> 1024 chickens?"
> - Seymour Cray (1925-1996), father of supercomputing
>
>
> > -Original Message-
> > From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 4:04 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: ApplicationResources.properties not reloading added keys
> >
> >
> > Hi:
> >
> > I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> > ApplicationResources.properties to display newly added keys. I have
> > restarted jboss and still no luck. All I get is a message like this:
> > ???en_US.prompt.application.url???
> > I know that the file ApplicationResources.properties  is under
> > WEB-INF/classes and it does have the prompt.application.url key.
> >
> > If anyone has any idea how to solve this under the environment described
> > above, I'd appreciate if you could share them with me.
> >
> > Thanks in advance
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




problem with commons-collections.jar in struts 1.1b2

2002-11-26 Thread Lloyd Meinholz
I am having problems with the struts webapps. There seems to be some kind of
problem with the commons-collections.jar. I have built everything myself and
I think it all built correctly. Here's my setup:

gentoo Linux, Sun JDK 1.4.1-01, tomcat 4.1.12, struts-1.1-b2, most recent
commons code, specifically collections-2.1.

I'm really confused as to what has caused this error and any help is
appreciated. Thanks,

Lloyd



2002-11-26 15:58:10 HostConfig[localhost]: Deploying web application
directory struts-blank
2002-11-26 15:58:10 StandardHost[localhost]: Installing web application at
context path /struts-blank from URL
file:/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-
blank
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploying class
repositories to work directory
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/work/Standalone/loca
lhost/struts-blank
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy class files
/WEB-INF/classes to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/classes
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-beanutils.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-collections.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-dbcp.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-dbcp.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-digester.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-fileupload.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-fileupload.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-lang.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-lang.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-logging.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-pool.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-pool.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-resources.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-resources.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-services.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-services.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/commons-validator.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/commons-validator.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/jakarta-oro.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/jakarta-oro.jar
2002-11-26 15:58:10 WebappLoader[/struts-blank]: Deploy JAR
/WEB-INF/lib/struts.jar to
/usr/local/apache/jakarta/tomcat-4.1.12/tomcat-mjollnir/webapps/struts-blank
/WEB-INF/lib/struts.jar
2002-11-26 15:58:10 ContextConfig[/struts-blank] Exception processing JAR at
resource path /WEB-INF/lib/commons-collections.jar
javax.servlet.ServletException: Exception processing JAR at resource path
/WEB-INF/lib/commons-collections.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:
243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3493)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:257)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostCon

RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
The way I'm working is as follows:

We have an ant task that will build an ear file.
What we then do is through some ant tasks, extract the ear file into the
deploy folder of jboss. Another task then extracts the war file into the
deploy folder also. So what I end up with is as follows:

$JBOSS_DEPLOY_DIRECTORY/$EAR_DIRECTORY
$JBOSS_DEPLOY_DIRECTORY/$WAR_DIRECTORY

Inside the $EAR_DIRECTORY is your typical J2EE stuff, and inside the
$WAR_DIRECTORY is the web-app.

Whenever I make a change to the properties file, I have an ant task that
will touch the web.xml of the web-app, but this doesn't work. Shutting down
and restarting jboss from scratch does not do the trick either. Pretty
weird

Thanks for the quick reply.

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:14 PM
To: Struts Users Mailing List
Subject: RE: ApplicationResources.properties not reloading added keys


Please describe how you are working

a, b, c, or some other way:

a) building .war and deploy/redeploy
b) changing the files in place (I don't think this is possible)
c) working right in the deploy directory

If a, are you sure you are not adding it to the .properties that gets
overwritten when building?
If c, the app will not redeploy itself when a property file changes (at
least
not last time I checked)



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: ApplicationResources.properties not reloading added keys
>
>
> Hi:
>
> I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> ApplicationResources.properties to display newly added keys. I have
> restarted jboss and still no luck. All I get is a message like this:
> ???en_US.prompt.application.url???
> I know that the file ApplicationResources.properties  is under
> WEB-INF/classes and it does have the prompt.application.url key.
>
> If anyone has any idea how to solve this under the environment described
> above, I'd appreciate if you could share them with me.
>
> Thanks in advance
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: [OT] Updating CachedRowSet

2002-11-26 Thread John Bigboote

Hmm, I think that's implementation dependent.  For
example, the Oracle CachedRowSet implementation
doesn't support updating joined tables.  See:

http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/web.902/a90211/rowset.htm#628357

I don't know for sure, but I'll wager the RI doesn't,
either...

John



--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
>
> My initial SQL SELECT statement that creates my
> ResultSet pulls data from several tables.  I wasn't
> sure if the RowSetWriter implementation would be
> able to accommodate this scenario, so I've started
> using the CachedRowSet object as a means of passing 
> data from DAO to business logic and back.  I had to 
> kill the writer in order to use the
'acceptChanges()'
> method.  Does the default RowSetWriter handle 
> updating multiple tables?
> 
> Jerry
> 
> > -Original Message-
> > From: John Bigboote [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 26, 2002 2:23 PM
> > To: Struts Users Mailing List
> > Subject: Re: [OT] Updating CachedRowSet
> > 
> > 
> > 
> > --- Jerry Jalenak <[EMAIL PROTECTED]>
> wrote:
> > > 
> >  [...snip...]
> > > 
> > > 
> > >   crs.updateString("userInfo", userInfo);
> > >   crs.updateRow();
> > >   crs.setWriter(null);   // kill default writer
> > >   crs.acceptChanges();
> > > 
> > 
> > Why are you setting the writer to null?  It's the
> > RowSetWriter that propagates changes back to the
> > database...
> > 
> > John
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> > http://mailplus.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:   
> >
> 
> > For additional commands, e-mail: 
> > 
> > 
> > 
> 
> This transmission (and any information attached to
> it) may be confidential and is intended solely for
> the use of the individual or entity to which it is
> addressed. If you are not the intended recipient or
> the person responsible for delivering the
> transmission to the intended recipient, be advised
> that you have received this transmission in error
> and that any use, dissemination, forwarding,
> printing, or copying of this information is strictly
> prohibited. If you have received this transmission
> in error, please immediately notify LabOne at the
> following email address:
> [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


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

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




RE: ApplicationResources.properties not reloading added keys

2002-11-26 Thread James Mitchell
Please describe how you are working

a, b, c, or some other way:

a) building .war and deploy/redeploy
b) changing the files in place (I don't think this is possible)
c) working right in the deploy directory

If a, are you sure you are not adding it to the .properties that gets
overwritten when building?
If c, the app will not redeploy itself when a property file changes (at least
not last time I checked)



--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Alvarado, Juan (c) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: ApplicationResources.properties not reloading added keys
>
>
> Hi:
>
> I am using jboss-3.03 with tomcat 4.05 and I cannot get my
> ApplicationResources.properties to display newly added keys. I have
> restarted jboss and still no luck. All I get is a message like this:
> ???en_US.prompt.application.url???
> I know that the file ApplicationResources.properties  is under
> WEB-INF/classes and it does have the prompt.application.url key.
>
> If anyone has any idea how to solve this under the environment described
> above, I'd appreciate if you could share them with me.
>
> Thanks in advance
>
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




RE: Using Struts Tags To Retrieve Map Entry

2002-11-26 Thread Karr, David
If you define a "mapped property" in your ActionForm, your Struts tags can specify the 
"property" notation for a mapped property using the supplied key.

> -Original Message-
> From: Vinh Tran [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 12:44 PM
> To: [EMAIL PROTECTED]
> Subject: Using Struts Tags To Retrieve Map Entry
> 
> 
> All:
> 
> Is there a way, using the Struts tags, to retrieve a 
> particular Entry from a
> Map by specifying a Key?  I want to retrieve an entry of the 
> Map based a key
> specified by the user.  Is this possible?
> 
> Vinh
> 

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




setting debug level for digester, sax, beanUtils...

2002-11-26 Thread Roy . Stephan

Hi,

I am trying to turn off logging for Struts and sub-components while keeping
logging on for my own code. I have put the debug and detail init parameter
to 0 in web.xml but I receive debug messages from digester, sax, beanUtils
and others.

Does anyone know how to confugure the struts-config or/and web.xml?

Thanks
Stephan



ApplicationResources.properties not reloading added keys

2002-11-26 Thread Alvarado, Juan (c)
Hi:

I am using jboss-3.03 with tomcat 4.05 and I cannot get my
ApplicationResources.properties to display newly added keys. I have
restarted jboss and still no luck. All I get is a message like this:
???en_US.prompt.application.url???
I know that the file ApplicationResources.properties  is under
WEB-INF/classes and it does have the prompt.application.url key.

If anyone has any idea how to solve this under the environment described
above, I'd appreciate if you could share them with me.

Thanks in advance




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




Re: Learning Struts

2002-11-26 Thread Johan
Eric,
I'm facing the same problem. I just started a week ago and found a few
pages on O'Reilly very usefull. As we speak I am one part 3 and building
my first Strtuts application

Check out the following urls
http://www.oreillynet.com/pub/a/onjava/2001/09/11/jsp_servlets.html

It's part one of a 3 part piece and there are 2 more about struts 1.1

Have fun

Johan

Eric Tse wrote:
> Dear all,
> 
> I am interested in learning struts framework and tried to search some articles and 
>kick-start my journey. However, it seems to me that all of the tutorial gave me much 
>information for the MVC architecture which I know already.
> 
> Do you have any simple war/jar file for my learning? I read through the 
>struts-example.war already. It does not give me guidance to me to learn. Anyone can 
>help?
> 
> Thanks a lot.
> 
> Eric




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




RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread jbaker

Amazon is shipping.  I received my pre-ordered copy yesterday.

Joe Baker
Director of Internet Communications
Amnesty International USA
600 Pennsylvania Ave SE 5th Floor
Washington, DC 20003
202-544-0200 x285
http://www.amnestyusa.org
[EMAIL PROTECTED]


   
   
"Paananen, Tero"   
   
  
ivine.com>  cc:
   
Subject: RE: [ANNOUNCE] O'Reilly 
Struts Book Now Available
11/26/02 03:57 
   
PM 
   
Please respond 
   
to "Struts Users   
   
Mailing List"  
   
   
   
   
   




> I just wanted to let everyone know that my Struts book
> published by O'Reilly is
> now available and shipping. You can get it from Amazon,
> Bookpool, etc.

http://www.bookpool.com/.x/3ezbbr1tf4/sm/0596003285

"Not-Yet-Published" :(

-TPP - patience is a virtue, I know, but I've had the
   book on preorder for 3 months now.

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





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




RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Paananen, Tero
> I just wanted to let everyone know that my Struts book 
> published by O'Reilly is 
> now available and shipping. You can get it from Amazon, 
> Bookpool, etc. 

http://www.bookpool.com/.x/3ezbbr1tf4/sm/0596003285

"Not-Yet-Published" :(

-TPP - patience is a virtue, I know, but I've had the
   book on preorder for 3 months now.

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




persistence errors in 1.1-b2

2002-11-26 Thread Jay Wright

I'm getting a persistent storage error that I've never seen before and it
seems to be tied to the struts validator:

2002-11-25 15:13:10 StandardManager[/waf] Exception loading sessions from
persistent storage

Is there a way to turn this off?  Or a reason it's happening?  I don't want
to persist sessions, I'd rather they die and go away if there's any problems
on the server.  

I'm running tomcat 4.1.12 in dev and 4.0.4 in production and just today I've
started seeing it in both places for the first time.  I'm running struts
1.1-b2.

Jay

java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.validator.ValidatorResult$ResultStatus
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1268)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at java.util.HashMap.readObject(HashMap.java:974)
.
.
.
Caused by: java.io.NotSerializableException:
org.apache.commons.validator.ValidatorResult$ResultStatus
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at java.util.HashMap.writeObject(HashMap.java:946)
.
.
.
2002-11-26 12:52:50 StandardManager[/web/cir/cingularvip] Exception loading
sessions from persistent storage
java.io.WriteAbortedException: writing aborted;
java.io.NotSerializableException:
org.apache.commons.validator.ValidatorResult$ResultStatus
at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1268)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
at java.util.HashMap.readObject(HashMap.java:974)
.
.
.
Caused by: java.io.NotSerializableException:
org.apache.commons.validator.ValidatorResult$ResultStatus
at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
.
.
.

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




RE: [OT] Safari

2002-11-26 Thread Paananen, Tero
> Just seen this, interested by the safari site, whats the feedback on 
> it's usefulness? Sounds too good to be true! (if my company'd 
> pay for it too! )

My company did the 30-day (or whatever) trial subscription
thingie and I was one of the people selected to evaluate
the service.

The selection of books was excellent, but the user interface
and the tools provided for you were somewhat...um...unpolished.
This was 6 months ago. They may have improved since then.

I, personally, found that the service is more valuable when
you're learning something new instead of when you're using
it as a reference. Since 90% of my time reading technical
books is for reference, I felt the service had not that much
to offer me. YMMV.

The service is expensive (for corporate accounts). We decided
that it was too expensive for the benefit and did not continue
our subscription after the trial period.

Convince your company do get the trial subscription and you
can try the service yourself. It costs nothing.

-TPP

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




Re: [OT] Updating CachedRowSet

2002-11-26 Thread V. Cekvenich
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/basicportal_07/src/basicWebLib/org/commons/DAO/BasicDAOImpl.java

Above has a working DAO implementation that uses RowSet.
The idea is that you can have many implementations using DAO.
(So, next to it is same DAO that uses SQL-Commons. I only use light 
weight DAO becuase they have higher performance and mostly zero copy beans).

After you review above, follow up.

.v

Jerry Jalenak wrote:
My initial SQL SELECT statement that creates my ResultSet pulls data from
several tables.  I wasn't sure if the RowSetWriter implementation would be
able to accommodate this scenario, so I've started using the CachedRowSet
object as a means of passing data from DAO to business logic and back.  I
had to kill the writer in order to use the 'acceptChanges()' method.  Does
the default RowSetWriter handle updating multiple tables?

Jerry



-Original Message-
From: John Bigboote [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 2:23 PM
To: Struts Users Mailing List
Subject: Re: [OT] Updating CachedRowSet



--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:

[...snip...]



	crs.updateString("userInfo", userInfo);
	crs.updateRow();
	crs.setWriter(null);   // kill default writer
	crs.acceptChanges();



Why are you setting the writer to null?  It's the
RowSetWriter that propagates changes back to the
database...

John


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

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




This transmission (and any information attached to it) may be confidential and is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient or the person responsible for delivering the transmission to the intended recipient, be advised that you have received this transmission in error and that any use, dissemination, forwarding, printing, or copying of this information is strictly prohibited. If you have received this transmission in error, please immediately notify LabOne at the following email address: [EMAIL PROTECTED]





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




Using Struts Tags To Retrieve Map Entry

2002-11-26 Thread Vinh Tran
All:

Is there a way, using the Struts tags, to retrieve a particular Entry from a
Map by specifying a Key?  I want to retrieve an entry of the Map based a key
specified by the user.  Is this possible?

Vinh



Re: perform() or execute()?

2002-11-26 Thread Jim Bruno Goldberg

I try it again, from the beginning and now this works. I don know what
I do before but I am happy now. Thanks for David and Patrice to help me.
Now I have a new (and diferent) problem. I construct the follow
validate() in a ActionForm class:


CODE BEGIN---

public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request) {

ActionErrors errors = new ActionErrors();

if ((username == null) || (username.length() < 1))
errors.add("username", new ActionError("errors.nousername"));

if ((password == null) || (username.length() < 1))
errors.add("password", new
ActionError("errors.nopassword"));

if ( !password.equals(again))
errors.add("passwordagain",new
ActionError("errors.passwordnotmatch"));

return errors;
}

CODE END

...and I have the follow entrys on my message resource file:

FILE BEGIN
(application.properties)--

# -- standard errors --
errors.nousername=O campo username deve ser preenchido
errors.nopassword=O campo senha deve ser preenchido
errors.passwordnotmatch=As senhas digitadas devem ser iguais
errors.header=
errors.prefix=
errors.suffix=
errors.footer=
# -- validator --
errors.invalid={0} is invalid.
errors.maxlength={0} can not be greater than {1} characters.
errors.minlength={0} can not be less than {1} characters.
--

 The behavior on form looks like OK, but the messages (inside the
 and ) are empty. No errors, behavior ok but empty Strings.
Please, can someone help to me again? Thanks a lot.



Patrice wrote:
> 
> - Original Message -
> From: "Jim Bruno Goldberg" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 26, 2002 6:27 PM
> Subject: perform() or execute()?
> 
> > Hi, people!
> >
> > I am trying to develop a little system in struts for 3 weeks now and I
> > can't solve some (very basic) problems. I try read the documentations,
> > but some I can resolve anyway. Please, I need some help!
> > My questions:
> >
> > 1. When I try to use the execute() in a Action, the method is nota
> > called. When I try with perform() works fine, but I known this is
> > deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result).
> 
> The  method has been deprecated since struts 1.1: so it can't work in struts
> 1.0.2
> 
> > 2. I try to prepopulate a form (request scope) and does not works. I
> > try to set: request.setAttribute("myfield","myvalue"), and nothing.
> 
> To populate a form from an action, you need to cast the ActionForm passed as
> parameter to the perform (or execute) method of your action and then, set
> the different properties to the appropriate values:
> for example:
> 
> MyForm myForm = (MyForm) form;
> myForm.setMyField("myValue");
> 
> > 3. To prepopulate a Form, I must to call a Action, prepopulate a bean
> > and then call a Form? That right?
> 
> I don't know what you mean with "call a Form".
> You just need to set the properties of the form with the values you want
> Then, the taglib will display the values in the field of the form, on your
> JSP.
> 
> >
> > Please, I need some help. Thanks to all.
> >
> 
> Hope it helps
> Patrice
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

-- 
CUL8R,[]s
Jim Bruno Goldberg
http://www.prosites.com.br

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




Re: J2EE-compliant class loading

2002-11-26 Thread Johan Eltes
This is going slightly OT :-)
Maybe I should switch to J2EE-INTEREST...

And I was responding to your statement on having multiple versions of the
same library in the same ear (i.e. In different modules of an ear). I would
say that the J2EE spec clearly advices component providers not to rely upon
this to work in all J2EE app servers. From your comments, this restriction
seem to be un-necessary for web modules.

Bottom line is that the class loader problem is fixed in struts 1.1. It
seems to be a general policy of the different apache projects (noticed that
log4j has also switched to using the thread context class loader for loading
resources).

We'll live with the patched 1.0.2 until 1.1. is released.

/Johan

 

Den 02-11-26 19.32, skrev "Craig R. McClanahan" <[EMAIL PROTECTED]>:

> 
> 
> On Tue, 26 Nov 2002, Johan Eltes wrote:
> 
>> Date: Tue, 26 Nov 2002 18:48:33 +0100 (CET)
>> From: Johan Eltes <[EMAIL PROTECTED]>
>> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>>  Johan Eltes <[EMAIL PROTECTED]>
>> To: Struts Users Mailing List <[EMAIL PROTECTED]>
>> Subject: Re: J2EE-compliant class loading
>> 
>> My understanding of the J2EE spec is that it may add restrictions /
>> requirements on top of the bundled specification. An application server
>> (including its containers) must implement restrictions imposed by the
>> J2EE spec to be compliant. It is not necessarily enough to fully
>> implement all bundled specs.
>> 
> 
> I'm quite familiar with these requirements (my "day job" is web layer
> architect for the J2EE platform at Sun :-).
> 
>> There are several examples of restrictions following this pattern. JDBC
>> 2.0 is another bundles specification of J2EE 1.3. The JDBC spec does
>> not mandate support for batch update. The J2EE specification requires
>> (J2EE compliant) JDBC drivers to support batch update.
>> 
> 
> I was responding to your concern that J2EE apps could not make the
> assumption that there was a separate class loader per web application,
> when in fact there must be one in all J2EE-compliant app servers (as well
> as any stand-alone servlet container that is tested against the servlet
> TCK tests).
> 
> For EJBs and other J2EE components, there are definitely fewer assumptions
> you can make.  But webapps wouldn't work at all according to the servlet
> spec if they were loaded from a single class loader.
> 
>>  /Johan
>> 
> 
> Craig
> 
> 
>> citerar "Craig R. McClanahan" <[EMAIL PROTECTED]>:
>> 
>>> 
>>> 
>>> On Tue, 26 Nov 2002, Johan Eltes wrote:
>>> 
 Date: Tue, 26 Nov 2002 07:15:14 +0100
 From: Johan Eltes <[EMAIL PROTECTED]>
 Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
 To: Struts Users Mailing List <[EMAIL PROTECTED]>
 Subject: Re: J2EE-compliant class loading
 
 Den 02-11-26 00.47, skrev "Craig R. McClanahan"
>> <[EMAIL PROTECTED]>:
 
> 
> IMHO, however, sharing JAR files has a very serious drawback,
>> IMHO --
>>> it
> *forces* a cross dependency between webapps that is not otherwise
> necessary.  Web appliations should be designed to be as completely
> independent of each other as possible, so that you can do things
>> like
> upgrade the Struts version in a suite of apps one application at a
>>> time,
> without forcing them to *all* be upgraded at once.
> 
 
 I'm not sure it is valid to assume that multiple wars within an ear
>> could
 use different versions of struts on their respective WEB-INF/lib.
>> The
>>> J2EE
 spec (1.3) states:
 
 "There must be only one version of each class in an application. If
>> one
 component depends on one version of an optional package, and another
 component depends on another version, it may not be possible to
>> deploy an
 Application Assembly application containing both components. A J2EE
 application should not assume that each component is loaded in a
>> separate
 class loader and has a separate namespace."
 
>>> 
>>> You might want to review section 9 of the Servlet Spec, which (among
>> other
>>> things) specifically describes the class loader that a servlet
>> container
>>> (in a J2EE server or not doesn't matter) is required to provide to
>> each
>>> web application.
>>> 
 /johan
>>> 
>>> Craig
>>> 
>>> 
>>> --
>>> To unsubscribe, e-mail:
>>> 
>>> For additional commands, e-mail:
>>> 
>>> 
>>> 
>> 
>> 
>> --
>> To unsubscribe, e-mail:   
>> For additional commands, e-mail: 
>> 
>> 
> 


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




RE: Tomcat Freezes when an Action or ActionForm is updated

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002, edgar wrote:

> Date: Tue, 26 Nov 2002 14:47:00 -0500
> From: edgar <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: Tomcat Freezes when an Action or ActionForm is updated
>
> Craig happened to point this out that Tomcat will reload automatically
> now:

You can indeed configure auto-reload -- you specify how many seconds in
between checks (Tomcat runs a background thread to actually perform them).
However, that's not my favorite approach when developing a webapp.

Instead, I set up the Ant build.xml file for my webapp to use the custom
Ant tasks that are shipped with Tomcat 4.1 (documented on the
manager-howto page).  I create targets for "install" and "reload" that are
dependent on the "compile" target, and an "unload" target for when I'm
done.

Now I fire up Tomcat (if not already running like it usually is), and my
development cycle goes like this:
 (0) ant install
 (1) test the app
 (2) modify something
 (3) ant reload
 (4) still testing ? goto (1) : goto (5)
 (5) ant remove

I find it much more effective to reload on command, rather than wait some
arbitrary number of seconds at step (3) for the container to notice that
something changed.  Note that this works whether or not you actually
configure the webapp as reloadable or not.

The top-level build.xml file in the Struts distribution has targets like
this for each of the webapps included with Struts (i.e.
"install.documentation", "install.example", and so on) that you can use
for examples.  For this to work, you need to copy the catalina-ant.jar
file (included in Tomcat's server/lib directory) to your $ANT_HOME/lib
directory.

Craig


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




RE: [OT] Updating CachedRowSet

2002-11-26 Thread Jerry Jalenak
My initial SQL SELECT statement that creates my ResultSet pulls data from
several tables.  I wasn't sure if the RowSetWriter implementation would be
able to accommodate this scenario, so I've started using the CachedRowSet
object as a means of passing data from DAO to business logic and back.  I
had to kill the writer in order to use the 'acceptChanges()' method.  Does
the default RowSetWriter handle updating multiple tables?

Jerry

> -Original Message-
> From: John Bigboote [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 2:23 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Updating CachedRowSet
> 
> 
> 
> --- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> > 
>  [...snip...]
> > 
> > 
> > crs.updateString("userInfo", userInfo);
> > crs.updateRow();
> > crs.setWriter(null);   // kill default writer
> > crs.acceptChanges();
> > 
> 
> Why are you setting the writer to null?  It's the
> RowSetWriter that propagates changes back to the
> database...
> 
> John
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



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




Re: [OT] Updating CachedRowSet

2002-11-26 Thread John Bigboote

--- Jerry Jalenak <[EMAIL PROTECTED]> wrote:
> 
 [...snip...]
> 
> 
>   crs.updateString("userInfo", userInfo);
>   crs.updateRow();
>   crs.setWriter(null);   // kill default writer
>   crs.acceptChanges();
> 

Why are you setting the writer to null?  It's the
RowSetWriter that propagates changes back to the
database...

John


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

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




Re: [OT] Updating CachedRowSet

2002-11-26 Thread David Graham
Sorry I don't know how to fix your problem but I do have some comments.  It 
looks like your DAO class has a bunch of static methods.  It's better to 
have your DAOs be singletons and be created with a DaoFactory.  This allows 
various DAO implementations to be plugged in later.  You lose this benefit 
when using static methods.

David






From: "Jerry Jalenak" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: [OT] Updating CachedRowSet
Date: Tue, 26 Nov 2002 13:46:19 -0600

I'm stumped.

In my DAO I return a disconnected CachedRowSet object back to my business
logic level, do some processing, then update the CachedRowSet so I can send
it back to my DAO and update my database.  The code basically looks like
this:

	
		CachedRowSet crs = new CachedRowSet();
		try {
			crs = DAO.findUserProfile(user);

			 do stuff 

			crs.updateString("userInfo", userInfo);
			crs.updateRow();
			crs.setWriter(null);	/* kill the default writer
*/
			crs.acceptChanges();
			DAO.updateUserProfile(crs);
		}
	

I can print out the updated userInfo and see that it has been changed.  But
when I print out the contents of the 'userInfo' column from the
CachedRowSet, it still has the original values.  I think it has something 
to
do with not being on the correct row, but all of the doc I can find leads 
me
to believe that the code above should work.  Does anyone have any ideas why
this doesn't?

TIA!


Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential 
and is intended solely for the use of the individual or entity to which it 
is addressed. If you are not the intended recipient or the person 
responsible for delivering the transmission to the intended recipient, be 
advised that you have received this transmission in error and that any use, 
dissemination, forwarding, printing, or copying of this information is 
strictly prohibited. If you have received this transmission in error, 
please immediately notify LabOne at the following email address: 
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



Re: forwarding to Actions expecting ActionForm

2002-11-26 Thread Troy Hart
On Tue, 2002-11-26 at 02:28, Affan Qureshi wrote:
> I want to forward the request from my Action to another action which expects an 
>ActionForm instance for processing. But my current Action does not have access to 
>that Form. Can I instantiate an ActionForm and store it in the request/session scope 
>on the fly? 
> 

When you forward to another action the ActionServlet will look up the
action mapping and automagically instantiate and populate the ActionForm
for you... you don't need to do anything except manage the mapping in
your struts-config.xml.

> I have a search page which displays results from where I can view details of the 
>results. On the details page if I click "Cancel" I want the user to come back on the 
>Search Results page but with the same results opened. 
> 
> Also if the user clicks on Search Tab from anywhere in the app I want the specific 
>(last) search results displayed.
> 

Use the "Bookmark" concept for this prupose. For more information refer
to: http://www.husted.com/about/scaffolding/catalog.htm

> Any ideas? Thanks a lot.

Good Luck


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




RE: Tomcat Freezes when an Action or ActionForm is updated

2002-11-26 Thread edgar
Craig happened to point this out that Tomcat will reload automatically
now:

At the same time as 1.1 was being developed, work progressed on things
like Tomcat's reload command via the Manager webapp (so you can have
reload-on-demand, scriptable with an Ant task in 4.1, running pretty
quickly, complete with saving and restoring your session), it really
doesn't make sense for Struts to half-implement a feature that
containers fully implement already.

-Original Message-
From: edgar [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:47 PM
To: 'Struts Users Mailing List'
Subject: RE: Tomcat Freezes when an Action or ActionForm is updated


Normal behavior, worst part of this development cycle.  Make as many
changes as possible at once to minimize restarting time.  I use Resin
which will do an automatic restart when one of the loaded java classes
is changed.

Edgar

-Original Message-
From: Jorge Ruben Macias Lopez [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:19 PM
To: 'Lista de Struts (E-mail)'
Subject: Tomcat Freezes when an Action or ActionForm is updated


Hello, I hope some of you guys has seen something like this and knows
how to prevent it, I'm running struts 1.02 with tomcat 4.0.1 on Win2K
Server. I'm using Eclipse for IDE and everytime I save one of my Action
or ActionForm classes on Eclipse, I see in the tomcat console the
message:
WebappClassLoader: Resource whatever  was modified, so it is fine.
But the problem is after that, tomcat will answer no more requests,
unitl I shut it down and restart it.  
 
Thanks for your time guys, 
 
Jorge Macias


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




[OT] Updating CachedRowSet

2002-11-26 Thread Jerry Jalenak
I'm stumped.

In my DAO I return a disconnected CachedRowSet object back to my business
logic level, do some processing, then update the CachedRowSet so I can send
it back to my DAO and update my database.  The code basically looks like
this:


CachedRowSet crs = new CachedRowSet();
try {
crs = DAO.findUserProfile(user);

 do stuff 

crs.updateString("userInfo", userInfo);
crs.updateRow();
crs.setWriter(null);/* kill the default writer
*/
crs.acceptChanges();
DAO.updateUserProfile(crs);
}


I can print out the updated userInfo and see that it has been changed.  But
when I print out the contents of the 'userInfo' column from the
CachedRowSet, it still has the original values.  I think it has something to
do with not being on the correct row, but all of the doc I can find leads me
to believe that the code above should work.  Does anyone have any ideas why
this doesn't?

TIA!


Jerry Jalenak
Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496
[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received this 
transmission in error, please immediately notify LabOne at the following email 
address: [EMAIL PROTECTED]



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




Re: Action mappings

2002-11-26 Thread Gemes Tibor
2002-11-26, k keltezéssel Mark Minnie ezt írta:
> This saves the customer phone number, but I get an error that the customer
> bean is not found in the scope null.  This is because the "success" forward
> is forwarding to /CustomerView.do with NO GET PARAMETER.  Since this get
> parameter is dynamic depending upon the customer, how do I return to the
> CustomerView.do?customerid=4 

I solve this kind of problem with session scope beans. The CustomerView
action will read from the appropriate ActionForm which is in session
scope, so untill you change the customerid it will be remembered across
requests.

Hth,

Tib


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




RE: [tiles] More tiles questions

2002-11-26 Thread Wendy Smoak
James wrote:

> Since you are using jsp under /WEB-INF, I would not use 
unless
> you are sure that all client side references (images, css, js, etc) are
> using to the correct url.

I'm not using .  The tabbed tiles code generated the URLs from
this in tiles-defs.xml:

  



  
  

  

And the first tab displays *perfectly* but you can't click on the tabs.

Do I need an Action for the tab body that merely forwards to the appropriate
page?  Something like:
   

But then I have to keep the setup in two places, in tiles-defs.xml and also
in struts-config.xml for the Action. :(

Obviously my  is wrong, because whatever is there is what is
used for the links on the tabs.  I was thinking of Actions always in
conjunction with ActionForms, but I think in this case there will be an
Action that does some setup and then just forwards to the view, with no Form
involved at all.

Thanks for helping me think through this!  I'm still not confident I've got
it right-- comments or questions are welcome.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



RE: [tiles] More tiles questions

2002-11-26 Thread James Mitchell

You probably already know this, but:

1. You cannot redirect if the jsp are under /WEB-INF, you ONLY forward
2. You must always go through an action (do not link from one jsp to another)
3. Make sure when you link or post to an action, that you do so with '/' as the
   first character for your action, if you don't, then you could potentially
   get: 1) a 'growing' URL
 or
2) incorrect path to your *.do


 can screw you up

Consider this ( #1 ):
(Not using )

Display

So you click on it and you see this in the address bar:

 http://www.mydomain.com/items/displayItem.do?foo=bar

ok, now if that same link is on the page, click it again:

  http://www.mydomain.com/items/items/displayItem.do?foo=bar
  ^

see what happens?




( #2 )
Now if you had used  then your link would do this:
 (assuming jsp is at /WEB-INF/jsp/)

 http://www.mydomain.com/WEB-INF/jsp/items/displayItem.do?foo=bar



Since you are using jsp under /WEB-INF, I would not use  unless
you are sure that all client side references (images, css, js, etc) are
using to the correct url.

Hope that helps you.

--
James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"If you were plowing a field, which would you rather use? Two strong oxen or
1024 chickens?"
- Seymour Cray (1925-1996), father of supercomputing


> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 1:30 PM
> To: Struts Users Mailing List (E-mail)
> Subject: [tiles] More tiles questions
>
>
>
> Finally!  I have a tabbed tiles page working.  Sort of...
>
> I go to http://host/dev/testAction.do and I see that URL with my brand new
> tabbed page with the first tab selected.  Then I click the second tab, and
> it tries to go to this URL:
>
> http://host/dev/WEB-INF/jsp/tilesTest/tabsTest.jsp?selected=1
>
> The 'jsp under WEB-INF' thing is popping up again!  I'm stuck.
>
> I think the tabbed links should go back to the Action.  In my case, I want
> to do a "Person Profile" with tabs.  It will come up with name and address
> on the first tab.  When the user clicks, say, the "Employment History" tab,
> I will need to talk to the database and put some beans in scope to be
> displayed.
>
> (In addition, I need to do some verification because not all of the users
> will be allowed to see data on all of the tabs.  But I'd be happy at present
> if *I* could just see all of them. :)
>
> I'm not quite sure where I've gone wrong, so I would appreciate any hints or
> advice you can offer.
>
> --
> Wendy Smoak
> Applications Systems Analyst, Sr.
> Arizona State University PA Information Resources Management
>


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




Action mappings

2002-11-26 Thread Mark Minnie
Maybe I am missing something, but.

I have a customer form (CustomerView.do) that takes a HTTP GET parameter to
show a customer.  (ie. CustomerView.do?customerid=4).  On this customer
form, there are links to JSP pages to modify the data of the customer.  If I
wanted to add a phone number, then I would call addcustomerphonenumber.jsp.
The AddCustomerPhoneNumber.do action mapping is as follows:

 
  
  
  
 

This action populates the customer form (puts a hidden input field
containing the customer number "4") and the addcustomerphonenumber.jsp is
displayed. When the user SUBMITS the addcustomerphonenumber.jsp the
SaveAddedCustomerPhoneNumber action is called.


  
  
  


MY PROBLEM IS:
This saves the customer phone number, but I get an error that the customer
bean is not found in the scope null.  This is because the "success" forward
is forwarding to /CustomerView.do with NO GET PARAMETER.  Since this get
parameter is dynamic depending upon the customer, how do I return to the
CustomerView.do?customerid=4 

Struts is designed to have the action mappings make the MVC design be
easier.  Do I manually have to put code into
SaveAddedCustomerPhoneNumber.java to have the servlet forward the request
back to the HTTP referrer?  I would be surprised is STRUTS does not have a c
lean method to handle something like this.

Thanks for any help in advance.

Mark



RE: Tomcat Freezes when an Action or ActionForm is updated

2002-11-26 Thread edgar
Normal behavior, worst part of this development cycle.  Make as many
changes as possible at once to minimize restarting time.  I use Resin
which will do an automatic restart when one of the loaded java classes
is changed.

Edgar

-Original Message-
From: Jorge Ruben Macias Lopez [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, November 26, 2002 1:19 PM
To: 'Lista de Struts (E-mail)'
Subject: Tomcat Freezes when an Action or ActionForm is updated


Hello, I hope some of you guys has seen something like this and knows
how to prevent it, I'm running struts 1.02 with tomcat 4.0.1 on Win2K
Server. I'm using Eclipse for IDE and everytime I save one of my Action
or ActionForm classes on Eclipse, I see in the tomcat console the
message:
WebappClassLoader: Resource whatever  was modified, so it is fine.
But the problem is after that, tomcat will answer no more requests,
unitl I shut it down and restart it.  
 
Thanks for your time guys, 
 
Jorge Macias


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




Order of error messages

2002-11-26 Thread Jordan Thomas
Hi,

How do I change the order of the error and javascript messages that are
generated by the validation framework?

Thanks

Jordan




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




HELP with controller class please!!!!

2002-11-26 Thread Alvarado, Juan (c)
I've looked all over the archives and cannot find any help with the
following and the tiles documentation...well there is really no
documentation.

I have a controller url class that does the following:

public void perform(ComponentContext context,
   HttpServletRequest request,
   HttpServletResponse response,
   ServletContext
servletContext)
throws
ServletException, IOException{

Logger logger =
Logger.getLogger(GetApplicationsAction.class);
logger.debug("perform on GetApplicationsAction was
called...");
String test = "TEST";
context.putAttribute( "test", test);
}

my tiles definiton looks as follows:






and in addApplication.jsp I have:


The problem is that I get the following error:
[ServletException in:/jsps/addApplication.jsp] Error - tag importAttribute :
property 'test' not found in context. Check tag syntax' 

Even though I set the variable into the component context, I cannot get the
page to pick it up.

What am I missing

Thanks






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




Re: J2EE-compliant class loading

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002, Johan Eltes wrote:

> Date: Tue, 26 Nov 2002 18:48:33 +0100 (CET)
> From: Johan Eltes <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>,
>  Johan Eltes <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: J2EE-compliant class loading
>
> My understanding of the J2EE spec is that it may add restrictions /
> requirements on top of the bundled specification. An application server
> (including its containers) must implement restrictions imposed by the
> J2EE spec to be compliant. It is not necessarily enough to fully
> implement all bundled specs.
>

I'm quite familiar with these requirements (my "day job" is web layer
architect for the J2EE platform at Sun :-).

> There are several examples of restrictions following this pattern. JDBC
> 2.0 is another bundles specification of J2EE 1.3. The JDBC spec does
> not mandate support for batch update. The J2EE specification requires
> (J2EE compliant) JDBC drivers to support batch update.
>

I was responding to your concern that J2EE apps could not make the
assumption that there was a separate class loader per web application,
when in fact there must be one in all J2EE-compliant app servers (as well
as any stand-alone servlet container that is tested against the servlet
TCK tests).

For EJBs and other J2EE components, there are definitely fewer assumptions
you can make.  But webapps wouldn't work at all according to the servlet
spec if they were loaded from a single class loader.

>  /Johan
>

Craig


> citerar "Craig R. McClanahan" <[EMAIL PROTECTED]>:
>
> >
> >
> > On Tue, 26 Nov 2002, Johan Eltes wrote:
> >
> > > Date: Tue, 26 Nov 2002 07:15:14 +0100
> > > From: Johan Eltes <[EMAIL PROTECTED]>
> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > > Subject: Re: J2EE-compliant class loading
> > >
> > > Den 02-11-26 00.47, skrev "Craig R. McClanahan"
> <[EMAIL PROTECTED]>:
> > >
> > > >
> > > > IMHO, however, sharing JAR files has a very serious drawback,
> IMHO --
> > it
> > > > *forces* a cross dependency between webapps that is not otherwise
> > > > necessary.  Web appliations should be designed to be as completely
> > > > independent of each other as possible, so that you can do things
> like
> > > > upgrade the Struts version in a suite of apps one application at a
> > time,
> > > > without forcing them to *all* be upgraded at once.
> > > >
> > >
> > > I'm not sure it is valid to assume that multiple wars within an ear
> could
> > > use different versions of struts on their respective WEB-INF/lib.
> The
> > J2EE
> > > spec (1.3) states:
> > >
> > > "There must be only one version of each class in an application. If
> one
> > > component depends on one version of an optional package, and another
> > > component depends on another version, it may not be possible to
> deploy an
> > > Application Assembly application containing both components. A J2EE
> > > application should not assume that each component is loaded in a
> separate
> > > class loader and has a separate namespace."
> > >
> >
> > You might want to review section 9 of the Servlet Spec, which (among
> other
> > things) specifically describes the class loader that a servlet
> container
> > (in a J2EE server or not doesn't matter) is required to provide to
> each
> > web application.
> >
> > > /johan
> >
> > Craig
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




[tiles] More tiles questions

2002-11-26 Thread Wendy Smoak

Finally!  I have a tabbed tiles page working.  Sort of... 

I go to http://host/dev/testAction.do and I see that URL with my brand new
tabbed page with the first tab selected.  Then I click the second tab, and
it tries to go to this URL:

http://host/dev/WEB-INF/jsp/tilesTest/tabsTest.jsp?selected=1

The 'jsp under WEB-INF' thing is popping up again!  I'm stuck.  

I think the tabbed links should go back to the Action.  In my case, I want
to do a "Person Profile" with tabs.  It will come up with name and address
on the first tab.  When the user clicks, say, the "Employment History" tab,
I will need to talk to the database and put some beans in scope to be
displayed.

(In addition, I need to do some verification because not all of the users
will be allowed to see data on all of the tabs.  But I'd be happy at present
if *I* could just see all of them. :)

I'm not quite sure where I've gone wrong, so I would appreciate any hints or
advice you can offer.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



Tomcat Freezes when an Action or ActionForm is updated

2002-11-26 Thread Jorge Ruben Macias Lopez
Hello, I hope some of you guys has seen something like this and knows how to
prevent it, I'm running struts 1.02 with tomcat 4.0.1 on Win2K Server.  I'm
using Eclipse for IDE and everytime I save one of my Action or ActionForm
classes on Eclipse, I see in the tomcat console the message:
WebappClassLoader: Resource whatever  was modified, so it is fine.  But
the problem is after that, tomcat will answer no more requests, unitl I shut
it down and restart it.  
 
Thanks for your time guys, 
 
Jorge Macias



Re: Struts-el strange behav.

2002-11-26 Thread kiuma
Thank you guys,

As usual we problems are so strange, one has to see in the xml file.

Now I think xml is a very good innovation, but sometimes it is the hell ;-P

thx,
kiuma

Beeson, Ashley wrote:


No you don't because they are form elements then the form to which they are
associated is inferred by the action path.

An element will attempt to populate itself with the get method of the form.
Make sure that you either declare the variable and give it a starting value
(even if it just blank - anything but null) or have your getter return a
non-null default value if the variable is currently null.

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 16:52
To: Struts Users Mailing List
Subject: RE: Struts-el strange behav.


You need to provide the name of your form bean in the "name" attribute.


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

hello,
I'm having the following problem (Furtunately I've found the 
solution).

if i use

The container reply with an error

WARNING: Exception for /webappointments/secure/specialitylistview.jsp
javax.servlet.jsp.JspException: No getter method for property 
selectedCode of bean org.apache.struts.taglib.html.BEAN


--
To unsubscribe, e-mail:

For additional commands, e-mail:


This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.

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

.





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




Re: J2EE-compliant class loading

2002-11-26 Thread Johan Eltes
My understanding of the J2EE spec is that it may add restrictions / 
requirements on top of the bundled specification. An application server 
(including its containers) must implement restrictions imposed by the 
J2EE spec to be compliant. It is not necessarily enough to fully 
implement all bundled specs.

There are several examples of restrictions following this pattern. JDBC 
2.0 is another bundles specification of J2EE 1.3. The JDBC spec does 
not mandate support for batch update. The J2EE specification requires 
(J2EE compliant) JDBC drivers to support batch update.

 /Johan

citerar "Craig R. McClanahan" <[EMAIL PROTECTED]>:

>
>
> On Tue, 26 Nov 2002, Johan Eltes wrote:
>
> > Date: Tue, 26 Nov 2002 07:15:14 +0100
> > From: Johan Eltes <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: J2EE-compliant class loading
> >
> > Den 02-11-26 00.47, skrev "Craig R. McClanahan" 
<[EMAIL PROTECTED]>:
> >
> > >
> > > IMHO, however, sharing JAR files has a very serious drawback, 
IMHO --
> it
> > > *forces* a cross dependency between webapps that is not otherwise
> > > necessary.  Web appliations should be designed to be as completely
> > > independent of each other as possible, so that you can do things 
like
> > > upgrade the Struts version in a suite of apps one application at a
> time,
> > > without forcing them to *all* be upgraded at once.
> > >
> >
> > I'm not sure it is valid to assume that multiple wars within an ear 
could
> > use different versions of struts on their respective WEB-INF/lib. 
The
> J2EE
> > spec (1.3) states:
> >
> > "There must be only one version of each class in an application. If 
one
> > component depends on one version of an optional package, and another
> > component depends on another version, it may not be possible to 
deploy an
> > Application Assembly application containing both components. A J2EE
> > application should not assume that each component is loaded in a 
separate
> > class loader and has a separate namespace."
> >
>
> You might want to review section 9 of the Servlet Spec, which (among 
other
> things) specifically describes the class loader that a servlet 
container
> (in a J2EE server or not doesn't matter) is required to provide to 
each
> web application.
>
> > /johan
>
> Craig
>
>
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
>
> 


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




Re: perform() or execute()?

2002-11-26 Thread Patrice

- Original Message -
From: "Jim Bruno Goldberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 6:27 PM
Subject: perform() or execute()?


> Hi, people!
>
> I am trying to develop a little system in struts for 3 weeks now and I
> can't solve some (very basic) problems. I try read the documentations,
> but some I can resolve anyway. Please, I need some help!
> My questions:
>
> 1. When I try to use the execute() in a Action, the method is nota
> called. When I try with perform() works fine, but I known this is
> deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result).

The  method has been deprecated since struts 1.1: so it can't work in struts
1.0.2

> 2. I try to prepopulate a form (request scope) and does not works. I
> try to set: request.setAttribute("myfield","myvalue"), and nothing.

To populate a form from an action, you need to cast the ActionForm passed as
parameter to the perform (or execute) method of your action and then, set
the different properties to the appropriate values:
for example:

MyForm myForm = (MyForm) form;
myForm.setMyField("myValue");

> 3. To prepopulate a Form, I must to call a Action, prepopulate a bean
> and then call a Form? That right?

I don't know what you mean with "call a Form".
You just need to set the properties of the form with the values you want
Then, the taglib will display the values in the field of the form, on your
JSP.

>
> Please, I need some help. Thanks to all.
>

Hope it helps
Patrice


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




RE: Tiles and parameters...

2002-11-26 Thread Van Riper, Mike
Unless I'm missing something here, you simply use:

  request.getParameter("fieldid");

in scriptlet code in any of your leaf JSPs to access this request parameter.
You can also use   in conjunction with this to define a bean at
the top of your page for use as a bean reference in other Struts tags within
your JSP pages. You must be new to JSP development. I recommend taking a
look at the JSP spec. In particular, section 2.8 of the JSP 1.1 spec lists
the implicit objects available to all JSP pages.

Good Luck,
  Mike "Van" Riper
  mailto:[EMAIL PROTECTED]

> -Original Message-
> From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 5:03 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tiles and parameters...
> 
> 
> 
> Anyone have any suggestions?
> 
> >From: "Craig Tataryn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Tiles and parameters...
> >Date: Sun, 24 Nov 2002 00:39:23 -0600
> >
> >I am using a tiles for a project where I have the following scenario:
> >
> >Forecast for Field 1
> >
> >The action for forecast.do, simply does some data extraction 
> and then 
> >returns a forward to a tiles def which displays this data.
> >
> >Here is what the existing tiles def looks like:
> >
> >
> >   
> >   
> >
> >
> >However, each of these jsp pages really should be passed the fieldid 
> >parameter that the Forecast action was passed.
> >
> >Is there anyway to get my Forecast action to pass this 
> fieldid parameter to 
> >the pages setup in the tiles def it is going to forward to?  
> Or is there 
> >any other technique you might suggest as a workaround (don't 
> particularly 
> >want to throw things in the session as I want the fieldid to 
> be at the 
> >request level so users can see forecasts for different 
> fields at the same 
> >time).
> >
> >Thanks,
> >
> >Craig.
> >Craig W. Tataryn
> >Programmer/Analyst
> >Compuware
> >
> >_
> >MSN 8 with e-mail virus protection service: 2 months FREE* 
> >http://join.msn.com/?page=features/virus
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> Craig W. Tataryn
> Programmer/Analyst
> Compuware
> 
> _
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 

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




Re: perform() or execute()?

2002-11-26 Thread David Graham
The execute method was introduced in 1.1.  Look at the struts-example webapp 
that comes with 1.1b2 for a clear example of how to do the things you 
described.

David






From: Jim Bruno Goldberg <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: perform() or execute()?
Date: Tue, 26 Nov 2002 15:27:18 -0200

Hi, people!

	I am trying to develop a little system in struts for 3 weeks now and I
can't solve some (very basic) problems. I try read the documentations,
but some I can resolve anyway. Please, I need some help!
	My questions:

	1. When I try to use the execute() in a Action, the method is nota
called. When I try with perform() works fine, but I known this is
deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result).
	2. I try to prepopulate a form (request scope) and does not works. I
try to set: request.setAttribute("myfield","myvalue"), and nothing.
	3. To prepopulate a Form, I must to call a Action, prepopulate a bean
and then call a Form? That right?

	Please, I need some help. Thanks to all.



--
CUL8R,[]s
Jim Bruno Goldberg
http://www.prosites.com.br

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



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


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



Managing a workflow with Struts-workflow.

2002-11-26 Thread ROSSEL Olivier
I want to have a workflow which is

MainPage.do -> FirstStep.do -> SecondStep.do -> ThirdStep.do -> Result.do ->
MainPage.do
  (1.jsp) (2.jsp)
(3.jsp)

where each step is supposed to fill one part of a big ActionForm.

I think each Step will test if the part of the ActionForm
it handles is already filled (then the current step must be skipped), 
and if so, it forwards to the next action.

Is it the good way to do the job?

I am not sure to see the benefit of using the workflow plug-in.
I declare the workflow in my struts-config.xml, but still have to hard 
code next/previous URLs in my JSPs.

The benefit is of course that the workflow detects if the user
broke the natural chaning by clicking several "Back" in his browser.
But if he did, he could have some reasons, and this may not be an error.

Well, I am sure I misunderstand something, but any help is welcome.

---cut here---


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

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




perform() or execute()?

2002-11-26 Thread Jim Bruno Goldberg
Hi, people!

I am trying to develop a little system in struts for 3 weeks now and I
can't solve some (very basic) problems. I try read the documentations,
but some I can resolve anyway. Please, I need some help!
My questions:

1. When I try to use the execute() in a Action, the method is nota
called. When I try with perform() works fine, but I known this is
deprecaced. (I try struts 1.0.2 and now struts 1.1 - same result).
2. I try to prepopulate a form (request scope) and does not works. I
try to set: request.setAttribute("myfield","myvalue"), and nothing.
3. To prepopulate a Form, I must to call a Action, prepopulate a bean
and then call a Form? That right?

Please, I need some help. Thanks to all.



-- 
CUL8R,[]s
Jim Bruno Goldberg
http://www.prosites.com.br

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




Re: J2EE-compliant class loading

2002-11-26 Thread Craig R. McClanahan


On Tue, 26 Nov 2002, Johan Eltes wrote:

> Date: Tue, 26 Nov 2002 07:15:14 +0100
> From: Johan Eltes <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: J2EE-compliant class loading
>
> Den 02-11-26 00.47, skrev "Craig R. McClanahan" <[EMAIL PROTECTED]>:
>
> >
> > IMHO, however, sharing JAR files has a very serious drawback, IMHO -- it
> > *forces* a cross dependency between webapps that is not otherwise
> > necessary.  Web appliations should be designed to be as completely
> > independent of each other as possible, so that you can do things like
> > upgrade the Struts version in a suite of apps one application at a time,
> > without forcing them to *all* be upgraded at once.
> >
>
> I'm not sure it is valid to assume that multiple wars within an ear could
> use different versions of struts on their respective WEB-INF/lib. The J2EE
> spec (1.3) states:
>
> "There must be only one version of each class in an application. If one
> component depends on one version of an optional package, and another
> component depends on another version, it may not be possible to deploy an
> Application Assembly application containing both components. A J2EE
> application should not assume that each component is loaded in a separate
> class loader and has a separate namespace."
>

You might want to review section 9 of the Servlet Spec, which (among other
things) specifically describes the class loader that a servlet container
(in a J2EE server or not doesn't matter) is required to provide to each
web application.

> /johan

Craig


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




RE: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Andy Kriger
right on - just added it to my books
i hope you get a decent cut of Safari subscriptions :)

-Original Message-
From: Chuck Cavaness [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 10:59
To: Struts Users Mailing List
Subject: Re: RE: [ANNOUNCE] O'Reilly Struts Book Now Available


The book is now available on Safari. I worked with them to get it up
yesterday. Here's a link to Safari - http://safari.oreilly.com

Chuck
>
> From: "Andy Kriger" <[EMAIL PROTECTED]>
> Date: 2002/11/26 Tue AM 10:48:34 EST
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
>
> According to a response from O'Reilly customer service 'in the next few
> days'
>
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, November 24, 2002 22:20
> To: 'Struts Users Mailing List'
> Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available
>
>
> Chuck wrote:
> > I just wanted to let everyone know that my Struts book published by
> O'Reilly is
> > now available and shipping. You can get it from Amazon, Bookpool, etc.
>
> Any idea if/when they will put it on Safari (http://safari.oreilly.com)?
> Technical books go out of date so fast that I like to make sure it's truly
> classic before adding it to the collection. Besides, work pays for the
> Safari subscription.  ;)
>
> --
> Wendy Smoak
> Application Systems Analyst, Sr.
> ASU IA Information Resources Management
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Controller class in tiles

2002-11-26 Thread Alvarado, Juan (c)
My definition looks as follows:






my controller class extends TilesAction and implements Controller. The
execute method is below:

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

Logger logger = Logger.getLogger(GetApplications.class);
logger.debug("execuite on GetApplications was called...");
context.putAttribute( "TEST", "TEST");
return null;
}

In my JSP I have the following:



The problem I have is that the controller action class is not getting
called. All I want for now is to be able to print the value of TEST to make
sure everything is working.

Can someone tell me if I've missed anything in my configuration. I've looked
at the samples, but I can't figure out how exactly you get your controller
to get called.

Thanks in advance




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




RE: Struts-el strange behav.

2002-11-26 Thread Beeson, Ashley
No you don't because they are form elements then the form to which they are
associated is inferred by the action path.

An element will attempt to populate itself with the get method of the form.
Make sure that you either declare the variable and give it a starting value
(even if it just blank - anything but null) or have your getter return a
non-null default value if the variable is currently null.

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2002 16:52
To: Struts Users Mailing List
Subject: RE: Struts-el strange behav.


You need to provide the name of your form bean in the "name" attribute.

> -Original Message-
> From: kiuma [mailto:[EMAIL PROTECTED]]
> 
> hello,
> I'm having the following problem (Furtunately I've found the 
> solution).
> 
> if i use
> 
> The container reply with an error
> 
> WARNING: Exception for /webappointments/secure/specialitylistview.jsp
> javax.servlet.jsp.JspException: No getter method for property 
> selectedCode of bean org.apache.struts.taglib.html.BEAN

--
To unsubscribe, e-mail:

For additional commands, e-mail:


This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

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




RE: Struts-el strange behav.

2002-11-26 Thread Karr, David
You need to provide the name of your form bean in the "name" attribute.

> -Original Message-
> From: kiuma [mailto:[EMAIL PROTECTED]]
> 
> hello,
> I'm having the following problem (Furtunately I've found the 
> solution).
> 
> if i use
> 
> The container reply with an error
> 
> WARNING: Exception for /webappointments/secure/specialitylistview.jsp
> javax.servlet.jsp.JspException: No getter method for property 
> selectedCode of bean org.apache.struts.taglib.html.BEAN

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




RE: Struts-el strange behav.

2002-11-26 Thread Wendy Smoak
> if i use
> 
> The container reply with an error
> If I use this form
> 
> No error is shown and I can access the page.

I *think* that if you provide the "value" then the getter method is not
called.  So I don't think you've solved your problem, just masked it.  I
assume there's JavaScript somewhere that's going to set a value for that
field before the form is submitted.

What does the 'set' method for selectedCode look like?  I've seen strange
issues crop up when the get/set methods do not match exactly (different data
type, for example.)  I haven't seen it in an official document, but someone
here (Craig??) said that your Forms must conform to the Bean spec.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



Re: make a call to external applications

2002-11-26 Thread Patrice
You can use the  tag:


  


  


Best Regards
Patrice

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 5:34 PM
Subject: make a call to external applications


> hi all,
>
> I have several struts applications that I would like to call mainly
> from a portal that users can access after a successful login.
>
> I do do it like the fragment code below.
>
> li>http://localhost:8080/intranetMailAdmin/listMailsToSend.do";
> >
> http://localhost:8080/intranetVL/listParamVL.do";> key="libelle.application.vl"/>
>
> How could I avoid hard coding these calls?
>
> Thankx in advance
>
> Meissa
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




Error - tag useAttribute : no tiles context found.

2002-11-26 Thread Tumi Mathibedi
Hi Cedric,

Please help with this error in the jsp file...

 Error - tag useAttribute : no tiles context found.

thank in advanced

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




make a call to external applications

2002-11-26 Thread meissa . Sakho
hi all,

I have several struts applications that I would like to call mainly
from a portal that users can access after a successful login.

I do do it like the fragment code below.

li>http://localhost:8080/intranetMailAdmin/listMailsToSend.do";
>
http://localhost:8080/intranetVL/listParamVL.do";>

How could I avoid hard coding these calls?

Thankx in advance

Meissa






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




RE: Include an Action in a page

2002-11-26 Thread shirishchandra . sakhare
I have not tried this but think this should work..

1: In Action 1, after getting the data,U say return 
maping.findForward("success");
2: success forward does a forward to u jsp1...

In jsp1,U first display data given by action1.
3: thenm after that u do a jsp:inlude which calls action 2.
4:action 2 gets the data and does a forward to jsp2 which shows data from 
action 2. and then does a jsp:include which calls action 3.
5:action 3 then gets the data and does a forward to jsp3 which displaya the 
data from action 3
So in effect u are doing something like
(Jsp1..includes jsp2 and jsp3.)

And if u want to use those actions in other context as well, then before doing 
those fiorwards, u will have to put a check to see where the request is coming 
from(you can use mapping.getParameter()).if its from some other page , then do 
the normal forward which may to another jsp without any includes..

Hope this helps,
Shirish

-Original Message-
From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:31 PM
To: struts-user
Subject: RE: Include an Action in a page


Hi,
I've got a page wich must execute 3 actions and print the page result of it:


 ACTION1

 AC2 | AC3


I wan't to make the three action independent, so I want to include them in
the principal with some include ( or  ...)

Some idea??

Thanks!!
Miguel

> -Mensaje original-
> De: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Enviado el: martes, 26 de noviembre de 2002 16:27
> Para: [EMAIL PROTECTED]
> Asunto: RE: Include an Action in a page
>
>
> Can u specify u r requirement please?
> Because if U need to show the output of 2 actions on the screen ,
> still they
> can use the forwards and use request as a shared container to
> pass along any
> data beans.
>
> but hwy a template needs to include action?
>
> -Original Message-
> From: miguel-angel.mulero [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:10 PM
> To: struts-user
> Subject: Include an Action in a page
>
>
> Hi all, I've got a little problem.
>
> I'm using Struts 1.0.2, and I'm using Templates (not Tiles). I use
>  to include a little page inside my page. This work great
> with HTML and JSP, but not with actions. How can I do it for:
>
> 
>
> Is there other way to do this?
>
> Thanks to all!!
> Miguel
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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



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




RE: Problem with struts-workflow distribution (0.9.2)

2002-11-26 Thread ROSSEL Olivier
It works fine.
You should probably append those Struts1.1 instructions
at the end of the INSTALL.TXT.

I have no easy web access, only the archive.
It was quite annoying. I was almost ready to 
think Workflow was a vaporware :-))

> -Message d'origine-
> De: Matthias Bauer [mailto:[EMAIL PROTECTED]]
> Date: mardi 26 novembre 2002 17:21
> À: ROSSEL Olivier
> Cc: Struts Users Mailing List
> Objet: Re: Problem with struts-workflow distribution (0.9.2)
> 
> 
> Olivier,
> 
> I guess you mean you are trying to build a war of the struts-workflow 
> test application. Please refer to 
> http://www.livinglogic.de/Struts/struts1_1.html for 
> instruction how to 
> modify the test application in order to get it working with 
> struts 1.1.
> 
> According to the stack trace, it looks to me like you have 
> not done the 
> first modification mentioned there: Adding "className" to 
> each action in 
> struts-config.xml.
> 
> When you have done this and still experience problems, let me 
> please know.
> 
> --- Matthias
> 
> 
> PS: I cc'ed to the struts user list, because these 
> conversations might 
> be relevant to other worklow users, too.
> 
> 
> 
> 
> ROSSEL Olivier wrote:
> 
> >I tried to make the war of struts-workflow.
> >It seems that it fails.
> >Because the build.xml forgets to include the commons jar.
> >I miss (at least) common-logging, common-beanutils and 
> common-collections.
> >
> >If I add them manually, it does not complain about missing classes.
> >But it tells me:
> >
> >
> >The server encountered an internal error (Internal Server Error) that
> >prevented it from fulfilling this request.
> >
> >exception
> >
> >javax.servlet.ServletException: 
> org.apache.struts.action.ActionMapping
> > at
> >org.apache.struts.action.RequestProcessor.processException(Re
> questProcessor.
> >java:507)
> > at
> >org.apache.struts.action.RequestProcessor.processActionPerfor
> m(RequestProces
> >sor.java:448)
> > at
> >org.apache.struts.action.RequestProcessor.process(RequestProc
> essor.java:266)
> > at
> >org.apache.struts.action.ActionServlet.process(ActionServlet.
> java:1292)
> > at
> >org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
> >org.apache.catalina.core.ApplicationFilterChain.internalDoFil
> ter(Application
> >FilterChain.java:247)
> > at
> >org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
> icationFilterCh
> >ain.java:193)
> > at
> >org.apache.catalina.core.StandardWrapperValve.invoke(Standard
> WrapperValve.ja
> >va:243)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >66)
> > at
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
> > at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >org.apache.catalina.core.StandardContextValve.invoke(Standard
> ContextValve.ja
> >va:190)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >66)
> > at
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
> > at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >org.apache.catalina.core.StandardContext.invoke(StandardConte
> xt.java:2347)
> > at
> >org.apache.catalina.core.StandardHostValve.invoke(StandardHos
> tValve.java:180
> >)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >66)
> > at
> >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorD
> ispatcherValve.
> >java:170)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >64)
> > at
> >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
> tValve.java:170
> >)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >64)
> > at
> >org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal
> ve.java:468)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >64)
> > at
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
> > at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >org.apache.catalina.core.StandardEngineValve.invoke(StandardE
> ngineValve.java
> >:174)
> > at
> >org.apache.catalina.core.StandardPipeline.invokeNext(Standard
> Pipeline.java:5
> >66)
> > at
> >org.apache.catalina.core.StandardPipeline.invoke(StandardPipe
> line.java:472)
> > at
> >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> >org.apache.catalina.connector.http.HttpProcessor.process(Http
> Processor.java:
> >1027)
> > at
> >org.apache.catalina.connector.ht

Re: Problem with struts-workflow distribution (0.9.2)

2002-11-26 Thread Matthias Bauer
Olivier,

I guess you mean you are trying to build a war of the struts-workflow 
test application. Please refer to 
http://www.livinglogic.de/Struts/struts1_1.html for instruction how to 
modify the test application in order to get it working with struts 1.1.

According to the stack trace, it looks to me like you have not done the 
first modification mentioned there: Adding "className" to each action in 
struts-config.xml.

When you have done this and still experience problems, let me please know.

--- Matthias


PS: I cc'ed to the struts user list, because these conversations might 
be relevant to other worklow users, too.




ROSSEL Olivier wrote:

I tried to make the war of struts-workflow.
It seems that it fails.
Because the build.xml forgets to include the commons jar.
I miss (at least) common-logging, common-beanutils and common-collections.

If I add them manually, it does not complain about missing classes.
But it tells me:


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

exception

javax.servlet.ServletException: org.apache.struts.action.ActionMapping
	at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.
java:507)
	at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:448)
	at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
	at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
	at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:484)

root cause

java.lang.ClassCastException: org.apache.struts.action.ActionMapping
	at
com.livinglogic.struts.workflow.GenericAction.perform(GenericAction.java:386
)
	at org.apache.struts.action.Action.execute(Action.java:401)
	at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:446)
	at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266)
	at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
	at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
v

Réf. : RE: Does an html:link could use a titleparameter from a resource file??? (struts 1.0.2)

2002-11-26 Thread christophe . godel

it seems it's not available on 1.0.2 :)
I will face every problem in the world as the courageous Struts newbies we
are in the team lol

Thanks for all your answers...




Extranet
[EMAIL PROTECTED] - 26/11/2002 17:00


Veuillez répondre à [EMAIL PROTECTED]
Pour : struts-user

cc :


Objet : RE: Does an html:link could use a title parameter from a
   resource file??? (struts 1.0.2)


Much as I'd like to see Struts-EL solve every problem in the world :) ,
you can just use the "titleKey" attribute of "html:link", like this:

  

However, I don't know whether this was available in Struts 1.0.2.

> >From: [EMAIL PROTECTED]
> >Reply-To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Does an html:link could use a title parameter from
> a resource
> >file??? (struts 1.0.2)
> >Date: Tue, 26 Nov 2002 16:24:58 +0100
> >
> >
> >I'm using struts for i18n and I try to get the title parameter from a
> >resource file. Is it allowed to use a taglib into a taglib
> like in the
> >following example (which doesn't works of course)?
> >
> >"/>
> >
> >If not, is there another solution??

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










This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


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




  1   2   >