[OT] AJAX talk at Google in Mountain View on 6/15 (new info!)

2005-06-06 Thread Van
Between 6:30 and 7:00pm, sign in for this free event, enjoy light dinner
fare provided by Google, and network with your peers. In order to ensure
there are enough refreshments for everyone, please register here in
advance:

http://services.google.com/events/baychi_rsvp

Next-Generation Interactivity for Web-Based Applications
Cris Perdue & Jing Lim

Cris Perdue will give a talk covering the following topics: Ajax in
particular, approaches closely related to Ajax, implementation issues
posed by these approaches, and approaches he is taking with his own
tools.

NEW INFO: Jing Lim from Google will also be speaking about the Ajax
approach used in the implementation of Google's Gmail service. At the
end of the evening, we will be raffling off *10* free passes to Bay Area
Interop:

http://tinyurl.com/dq7e8

This event is co-sponsored by the Silicon Valley Web Developer JUG
(sv-web-jug) and the Silicon Valley JUG (svjug). You will find full
meeting details including directions to the meeting site here:

http://www.baychi.org/bof/java/20050615/

That's All Folks, Van

Mike "Van" Riper
mailto:[EMAIL PROTECTED]

Silicon Valley Web Developer JUG
https://sv-web-jug.dev.java.net

A.K.A. Java Web Developer BayCHI BOF
http://www.baychi.org/bof/java/

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



Tomcat Struts form population problem in PRODUCTION

2005-06-06 Thread Mark Benussi
I am submitting a Struts form in my live application but the values seem to
be getting lost between my browser and the population of my ActionForm. This
only happens if the login page is the first request of the session.

 

If you click around on the site (even once) and then submit the form the
values are taken.

 

:S

 

NB This only happens in my live environment (Tomcat 5, LINUX).



Date UI

2005-06-06 Thread Martin Ravell
Hi all,

 

Having just joined the list I am unaware if this topic has been done to
death already but I was wondering what were peoples views on handling date
input with Struts? I'm scanning archives right now and don't see it come up
too often. If this is a little OT then please flame me. (Just kidding)
Perhaps there are taglib discussion lists or jsp groups that I would be
better off asking?

 

If however you are willing to throw in your $0.02 worth please respond to
either this address or the list. I will of course summarize and post back to
Struts User.

 

Are there favourite taglibs out there which are good for Dates? 

 

Do you split your dates into day, month and year fields in your HTML? 

 

How do you find is the best way to validate?

 

 

I am generally allergic to Javascript which I guess limits what can be done
with fancy pop-up pickers. Am open to suggestions should there be a nice
robust script out there I guess.

 

 

 

Regards

Marty

 

 

 



Re: struts - view, create, update user page

2005-06-06 Thread Larry Meadors
Give us some more info Tony.

Are you talking about a relational database with 20 tables, or is this
user information just a few bits in an xml file?

Larry


On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote:
> Hi, I am using struts to develop a webapp. One piece
> of work is the user information. I will allow user to
> create, view, and update his personal information.
> Usually, the three pages are very similar. What is the
> best way to do this with Struts? Is there any
> "Pattern" for this? I checked the Struts
> DispatchAction, but
> not sure how to do it...
> 
> 
> Thanks,
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: struts - view, create, update user page

2005-06-06 Thread Tony Smith
Hi, 

I read your article and found it very informative. But
in my situation, I have about 10 different "items". If
I use the technology described in the paper, I need to
create about 40 forms and even more actions. Is there
any other ways to get around of this?

Thanks,


--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote:
> > Hi, I am using struts to develop a webapp. One
> piece
> > of work is the user information. I will allow user
> to
> > create, view, and update his personal information.
> 
> Maybe you would like to reconsider your three pages,
> and split them
> into "edit new", "vew existing" and "edit existing"
> plus a separate
> action just to create a new userinfo? In that case
> you might find this
> worth reading:
>
http://www.theserverside.com/articles/article.tss?l=RedirectAfterPost2
> 
> > Usually, the three pages are very similar. What is
> the
> > best way to do this with Struts? Is there any
> > "Pattern" for this? I checked the Struts
> > DispatchAction, but
> > not sure how to do it...
> 
> DispatchAction simply allows you to define handler
> methods for events,
> usually triggered by submit buttons.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Discover Yahoo! 
Use Yahoo! to plan a weekend, have fun online and more. Check it out! 
http://discover.yahoo.com/

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



Re: date validation

2005-06-06 Thread Riyaz Mansoor


no i did not; but i cannot use it as i want to allow single digit 
months/days in user input.


more generally; i wud have expected the DateValidator to return FALSE if 
the user input is form "1980" for pattern "-MM-dd"


anybody wanna weigh in? :)

riyaz


[EMAIL PROTECTED] wrote:


Sorry if you get this twice.

Did you try DatePatternStrict?


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



Re: date validation

2005-06-06 Thread erikweber
Sorry if you get this twice.

Did you try DatePatternStrict?

Erik



-Original Message-
From: Riyaz Mansoor <[EMAIL PROTECTED]>
Sent: Jun 6, 2005 4:49 PM
To: Struts Users Mailing List 
Subject: date validation


i've got a date validation set up with datePattern "-MM-dd", ie 
standard JDBC SQL format.

but date validation seems to pass values of type "1980" (without month 
or day) and subsequently i get a SQL DATE conversion error.

is this expected behavior for date validation? is there a way to enforce 
that year-month-day be enforced?

riyaz


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



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



Re: Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
On Tuesday 07 June 2005 00:29, Craig McClanahan wrote:
> On 6/6/05, Emond Papegaaij <[EMAIL PROTECTED]> wrote:
> I don't suppose it is
>
> > possible to have a single rule like this:
> > 
> >   /*.jsp
> >   
> > *
> > /{1}.do
> >   
> > 
>
> The rule matching part of this is *almost* possible.  You can use a
> "*" wild card for  and  values.  But you
> don't get the automatic replacement on the  that you are
> looking for.
>
> > Is implementing my own NavigationHandler the only way to achieve this, or
> > am I missing something?
>
> Nope ... that's the way to do it.

Thank you very much for your help. As I don't plan to use the navigation rules 
from the faces config, I'll go for a straightforward NavigationHandler that 
only supports this single rule, maybe with an optional fallback.

Emond Papegaaij

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



Re: Transfering control with struts-faces

2005-06-06 Thread Craig McClanahan
On 6/6/05, Emond Papegaaij <[EMAIL PROTECTED]> wrote:
I don't suppose it is
> possible to have a single rule like this:
> 
>   /*.jsp
>   
> *
> /{1}.do
>   
> 

The rule matching part of this is *almost* possible.  You can use a
"*" wild card for  and  values.  But you
don't get the automatic replacement on the  that you are
looking for.

> 
> Is implementing my own NavigationHandler the only way to achieve this, or am I
> missing something?

Nope ... that's the way to do it.

> 
> Emond Papegaaij

Craig

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



Re: html:img tag question

2005-06-06 Thread Dave Newton

Scott Purcell wrote:


But today, I realized that a lot of sites use a fully qualified: http://mysite/mycontext/images/images/spacer.gif";>
for their sites. I would like to be able to do that. 
 

Why? Seems unnecessary if you're linking to your own site. If you're 
linking off-site, there's no good reason to use the html: tags anyway.



So using html: shortcuts, can this be done? Or do I have to go outside the 
framework?
 


I'm not aware of how it could be done w/o modifying tag source.

Dave



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



Re: html-el:checkbox quandary

2005-06-06 Thread Hubert Rabago
Yes.  Maybe if you include the actual mappings, JSP text, form
declaration, etc, someone will find something.  From what you've said,
it should work.

Hubert


On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Yes the form bean is associated with the HTML form.
> 
> If I simply do this:
> 
> It writes out the contents. This takes care of the value attribute.
> 
> My question is for the property.
> Can a nested bean property be used in the html-el:checkbox as the
> property?
> 
> - Glenn
> 
> 
> Hubert Rabago <[EMAIL PROTECTED]>
> 06/06/2005 04:24 PM
> 
> 
> 
> Is dependentForm is form bean associated with the HTML form that
> your checkbox is a part of?  There could be a typo in your
> struts-config, or your , or your form declaration.
> 
> Hubert
> 
> On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I gave it a go and I get this error now... more precise but an error
> none
> > the less...
> > [06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
> > Error]-[No getter method for property
> dependent.healthEligibilityIndicator
> > of bean org.apache.struts.taglib.html.BEAN]:
> > javax.servlet.jsp.JspException: No getter method for property
> > dependent.healthEligibilityIndicator of bean
> > org.apache.struts.taglib.html.BEAN
> >
> >

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



Re: html:img tag question

2005-06-06 Thread Aleksandar Matijaca
I believe that doing absolute addressing as you are proposing, is probably 
against all
"best practices" of HTML design. Do some research on best-practices of HTML 
before
doing this...
 Cheers, Alex.


 On 6/6/05, Scott Purcell <[EMAIL PROTECTED]> wrote: 
> 
> Hello,
> 
> I have build a site using the struts framework with a heavy use of the 
> html:img tag like so.
> 
> 
> 
> And it does a great job at including the context of the application and 
> therefore giving me a page source of such:
> 
> 
> And all is happy.
> But today, I realized that a lot of sites use a fully qualified:  src="http://mysite/mycontext/images/images/spacer.gif";>
> for their sites. I would like to be able to do that.
> 
> So using html: shortcuts, can this be done? Or do I have to go outside the 
> framework?
> 
> Thanks,
> Scott
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


html:img tag question

2005-06-06 Thread Scott Purcell
Hello,

I have build a site using the struts framework with a heavy use of the  
html:img tag like so.
 


And it does a great job at including the context of the application and 
therefore giving me a page source of such:


And all is happy. 
But today, I realized that a lot of sites use a fully qualified: http://mysite/mycontext/images/images/spacer.gif";>
for their sites. I would like to be able to do that. 

So using html: shortcuts, can this be done? Or do I have to go outside the 
framework?

Thanks,
Scott


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



Re: Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
On Monday 06 June 2005 22:21, Craig McClanahan wrote:
> On 6/6/05, Emond Papegaaij <[EMAIL PROTECTED]> wrote:
> > On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote:
> > > I believe that you can use a string instead of a binding expression,
> > > like you would a action forward (action='next')
> >
> > This is indeed possible, but EL makes no distinction between a constant
> > and an expression. To get the constant, the expression needs to be
> > evaluated. It is possible to evaluate this constant in a custom
> > ActionListener, but that would mean the expression is evaluated twice.
>
> Don't use an expression:
>
> instead, use a literal String:
> 
>
> The JSF runtime recognizes this scenario, and uses "next" as the
> logical outcome value to be fed in to the navigation rules, without
> calling an application action.  That means the only thing you need to
> do is define navigation rules that determine where to go next -- and
> with those, you can make "next" mean something different depending on
> which page you're currently on.

This means I have to create navigation rules for all actions and pages, even 
though they are all identical. This will result in a faces-config with lots 
of declarations like this (for every page):

  /a.jsp
  
action1
/a.do
  
  
action2
/a.do
  
  


Maybe I should explain a little more about the context of these pages. For the 
company I work for, I'm setting up a framework based on Struts and JSF. It 
uses a different configuration file containing modules (not Struts modules). 
These modules are translated into actions. I'm not planning to use the JSF 
navigation rules for navigation through the application, because all 
functionality for navigating through the application is provided by the 
framework with actions. Having to define the navigation rules in a static way 
severely limits the usability of the framework. I don't suppose it is 
possible to have a single rule like this:

  /*.jsp
  
*
/{1}.do
  


Is implementing my own NavigationHandler the only way to achieve this, or am I 
missing something?

Emond Papegaaij

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



date validation

2005-06-06 Thread Riyaz Mansoor


i've got a date validation set up with datePattern "-MM-dd", ie 
standard JDBC SQL format.


but date validation seems to pass values of type "1980" (without month 
or day) and subsequently i get a SQL DATE conversion error.


is this expected behavior for date validation? is there a way to enforce 
that year-month-day be enforced?


riyaz


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



Re: Error Handling Strategy

2005-06-06 Thread Xinsheng \[mike\] Huang
Validator Framework only validates against STATIC value, not dynamic ones. For 
example. a user input a deposit rate. the validator in web tier only validate 
whether it is a number or whether its value is positive and not excess 100( a 
static boundary). But the company's business rule also requires the rate value 
must not grater a certain value, which is dynamic. So the only way to validate 
this by accessing database. The DAO method check the value first. A business 
exception thrown if the value is invalid.

Martin Gainty <[EMAIL PROTECTED]> wrote:Huang-
I am a bit confused by statement 'by accessing database'
Could you explain why am error message must be done 'by accessing database' 
instead of by properties or ResourceBundles?
Thanks,
Martin-
- Original Message - 
From: "Xinsheng [mike] Huang" 
To: "Struts Users Mailing List" 
Sent: Monday, June 06, 2005 3:59 PM
Subject: Re: Error Handling Strategy


> Rule 1: let the global exception handler handle the 
> unwanted-exceptions,usually they are system exceptions.
> Rule 2: for business exceptions that your action catchs and put an action 
> error/message in request so that the jsp displays a message to user to 
> recovery. A business exception is required only the validation can't be 
> done in Validator Framework, and it is must be done by accessing database.
>
>
> "Frank W. Zammetti" wrote:
> I've gotten into the habit of using the Struts global exception handling
> mechanism... Anything that can be handled in my code I catch and handle
> (i.e., retrying a connection to a back-end system perhaps), anything else
> I let bubble up and handle it in the global handler.
>
> This to me is pretty much ideal as-is, I don't see much benefit in doing
> anything else. This keeps me from having to write all sorts of exception
> handling all over the place, except where it's truly needed/wanted. Could
> this maybe help you as well?
>
> -- 
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
>
> On Mon, June 6, 2005 12:21 pm, Matthew Hughes said:
>> I really do not like the way my current application handles errors as
>> every error requires three or four lines and it is very redundant.
>>
>> I have been reading a lot about Exception(s) and how developers are
>> slowly seeing the benefits of extending their Exception(s) from
>> RuntimeException freeing coders from writing catch blocks when they
>> can't do anything about it or just throwing it up again adding "throws
>> SQLException" to every method up the line.
>>
>> With the exception (no pun intended) of using ActionErrors in
>> ActionForm.validate(), could anyone tell me why it wouldn't be much
>> better to use Exceptions to handle errors.
>>
>>
>> Say I have three layers in my application: model, business,
>> controller/view. If the model error throws an Exception and not a
>> RuntimeException, both the business and the controller/view layers
>> have to catch it or pass it on. With RuntimeExceptions you have the
>> best of both worlds: you don't have to do ANYTHING if you don't know
>> what to do with it, or if you do know what to do with it, you can
>> catch it.
>>
>>
>> In my new application design I am employeeing this strategy and using
>> custom ExceptionHandler classes to catch, log, and redirect the user
>> to the appropriate pages. In my Exception classes, instead of a
>> non-localized string as the exception message, I use a message key
>> which I can then retrieve and translate into a localized string for
>> the end user. This has two main benefits: you are forced to actually
>> THINK about your error messages as you need to look them up in a
>> properties file and they can be organized somewhat categorically AND
>> you don't have to write two different error messages for both the
>> developer and the end user. If the developer wants more information,
>> he can look at the error log for the stack trace. Can anyone tell me
>> why this isn't a good idea?
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> Xinsheng [Mike] Huang
> SCJP -- Sun Certified Programmer for Java 2 Platform
> SCJD -- Sun Certified Developer for Java 2 Platform
> SCEA -- Sun Certified Enterprise Architect for J2EE
>
> 410-790-7462(C)
>
>
>
>
>
> -
> Yahoo! Mail
> Stay connected, organized, and protected. Take the tour 

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





Xinsheng [Mike] Huang
SCJP -- Sun Certified Programmer for Java 2 Platform
SCJD -- Sun Certified Developer for Java 2 Platform
SCEA -- Sun Certif

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
Yes the form bean is associated with the HTML form.

If I simply do this:

It writes out the contents. This takes care of the value attribute.

My question is for the property.
Can a nested bean property be used in the html-el:checkbox as the 
property?

- Glenn




Hubert Rabago <[EMAIL PROTECTED]> 
06/06/2005 04:24 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: html-el:checkbox quandary






Is dependentForm is form bean associated with the HTML form that
your checkbox is a part of?  There could be a typo in your
struts-config, or your , or your form declaration.

Hubert

On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I gave it a go and I get this error now... more precise but an error 
none
> the less...
> [06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
> Error]-[No getter method for property 
dependent.healthEligibilityIndicator
> of bean org.apache.struts.taglib.html.BEAN]:
> javax.servlet.jsp.JspException: No getter method for property
> dependent.healthEligibilityIndicator of bean
> org.apache.struts.taglib.html.BEAN
> 
> 
> Hubert Rabago <[EMAIL PROTECTED]>
> 06/06/2005 03:25 PM
> Please respond to
> "Struts Users Mailing List" 
> 
> If dependentForm is the form bean associated with the HTML form that
> your checkbox is a part of, try it with just
> property="dependent.healthEligibilityIndicator".
> 
> Hubert
>

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





Re: Error Handling Strategy

2005-06-06 Thread Martin Gainty

Huang-
I am a bit confused by statement 'by accessing database'
Could you explain why am error message must be done 'by accessing database' 
instead of by properties or ResourceBundles?

Thanks,
Martin-
- Original Message - 
From: "Xinsheng [mike] Huang" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, June 06, 2005 3:59 PM
Subject: Re: Error Handling Strategy


Rule 1: let the global exception handler handle the 
unwanted-exceptions,usually they are system exceptions.
Rule 2: for business exceptions that your action catchs and put an action 
error/message in request so that the jsp displays a message to user to 
recovery. A business exception is required only the validation can't be 
done in Validator Framework, and it is must be done by accessing database.



"Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
I've gotten into the habit of using the Struts global exception handling
mechanism... Anything that can be handled in my code I catch and handle
(i.e., retrying a connection to a back-end system perhaps), anything else
I let bubble up and handle it in the global handler.

This to me is pretty much ideal as-is, I don't see much benefit in doing
anything else. This keeps me from having to write all sorts of exception
handling all over the place, except where it's truly needed/wanted. Could
this maybe help you as well?

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, June 6, 2005 12:21 pm, Matthew Hughes said:

I really do not like the way my current application handles errors as
every error requires three or four lines and it is very redundant.

I have been reading a lot about Exception(s) and how developers are
slowly seeing the benefits of extending their Exception(s) from
RuntimeException freeing coders from writing catch blocks when they
can't do anything about it or just throwing it up again adding "throws
SQLException" to every method up the line.

With the exception (no pun intended) of using ActionErrors in
ActionForm.validate(), could anyone tell me why it wouldn't be much
better to use Exceptions to handle errors.


Say I have three layers in my application: model, business,
controller/view. If the model error throws an Exception and not a
RuntimeException, both the business and the controller/view layers
have to catch it or pass it on. With RuntimeExceptions you have the
best of both worlds: you don't have to do ANYTHING if you don't know
what to do with it, or if you do know what to do with it, you can
catch it.


In my new application design I am employeeing this strategy and using
custom ExceptionHandler classes to catch, log, and redirect the user
to the appropriate pages. In my Exception classes, instead of a
non-localized string as the exception message, I use a message key
which I can then retrieve and translate into a localized string for
the end user. This has two main benefits: you are forced to actually
THINK about your error messages as you need to look them up in a
properties file and they can be organized somewhat categorically AND
you don't have to write two different error messages for both the
developer and the end user. If the developer wants more information,
he can look at the error log for the stack trace. Can anyone tell me
why this isn't a good idea?

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





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




Xinsheng [Mike] Huang
SCJP -- Sun Certified Programmer for Java 2 Platform
SCJD -- Sun Certified Developer for Java 2 Platform
SCEA -- Sun Certified Enterprise Architect for J2EE

410-790-7462(C)





-
Yahoo! Mail
Stay connected, organized, and protected. Take the tour 


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



Re: html-el:checkbox quandary

2005-06-06 Thread Hubert Rabago
Is dependentForm is form bean associated with the HTML form that
your checkbox is a part of?  There could be a typo in your
struts-config, or your , or your form declaration.

Hubert

On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I gave it a go and I get this error now... more precise but an error none
> the less...
> [06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
> Error]-[No getter method for property dependent.healthEligibilityIndicator
> of bean org.apache.struts.taglib.html.BEAN]:
> javax.servlet.jsp.JspException: No getter method for property
> dependent.healthEligibilityIndicator of bean
> org.apache.struts.taglib.html.BEAN
> 
> 
> Hubert Rabago <[EMAIL PROTECTED]>
> 06/06/2005 03:25 PM
> Please respond to
> "Struts Users Mailing List" 
> 
> If dependentForm is the form bean associated with the HTML form that
> your checkbox is a part of, try it with just
> property="dependent.healthEligibilityIndicator".
> 
> Hubert
>

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



RE: Best Place for config values

2005-06-06 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Whats the best place / access method to storing and retriving 
> config attributes like administrator email addresses and directories
> to store uploaded files in a multi-tiered webapp, web.xml?  
> Resources file?  Both servlets and non servlets need to access 
> these values.  Opinions greatly appreciated.

Here's a properties manager: 


public class PropertiesManager {

private final static String PROPERTIES_FILE =
"/application.properties";
private static Properties props = null;
private static Log log = LogFactory.getLog(PropertiesManager.class);

//  Load the properties from properties file into memory.
static {
props = new Properties();
InputStream is =
PropertiesManager.class.getResourceAsStream(PROPERTIES_FILE);
try {
props.load(is);
} catch (IOException e) {
log.error(e);
} finally {
try {
is.close();
} catch (IOException e) {
log.error(e);
}

}
}

/**
 * Gets a property value
 * @param key a property key
 * @return a property value.
 */
public static String getProperty(String key) {
return props.getProperty(key);
}

}


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



Re: Best Place for config values

2005-06-06 Thread gdeschen
Currently we have an XML.
This file is loaded in a filter using apache digester.

HTH,
Glenn




"Brian McGovern" <[EMAIL PROTECTED]> 
06/06/2005 03:51 PM
Please respond to
"Struts Users Mailing List" 


To

cc

Subject
Best Place for config values






Whats the best place / access method to storing and retriving config 
attributes like administrator email addresses and directories to store 
uploaded files in a multi-tiered webapp, web.xml?  Resources file?  Both 
servlets and non servlets need to access these values.  Opinions greatly 
appreciated.

thanks
-



Re: Transfering control with struts-faces

2005-06-06 Thread Craig McClanahan
On 6/6/05, Emond Papegaaij <[EMAIL PROTECTED]> wrote:
> On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote:
> > > Currently I'm using a construction similar to the one used in the
> > > struts-faces examples. A backing bean contains the forwards and these are
> > > called from the JSF with the following code:
> > > 'action="#{backing.forward}"'. However this solution is not very
> > > flexible, as the backing bean needs to have a forward method for every
> > > forward used.
> >
> > I believe that you can use a string instead of a binding expression, like
> > you would a action forward (action='next')
> 
> This is indeed possible, but EL makes no distinction between a constant and an
> expression. To get the constant, the expression needs to be evaluated. It is
> possible to evaluate this constant in a custom ActionListener, but that would
> mean the expression is evaluated twice.
> 

Don't use an expression:

   

instead, use a literal String:




The JSF runtime recognizes this scenario, and uses "next" as the
logical outcome value to be fed in to the navigation rules, without
calling an application action.  That means the only thing you need to
do is define navigation rules that determine where to go next -- and
with those, you can make "next" mean something different depending on
which page you're currently on.

Craig

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



Re: Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
On Monday 06 June 2005 18:06, [EMAIL PROTECTED] wrote:
> > Currently I'm using a construction similar to the one used in the
> > struts-faces examples. A backing bean contains the forwards and these are
> > called from the JSF with the following code:
> > 'action="#{backing.forward}"'. However this solution is not very
> > flexible, as the backing bean needs to have a forward method for every
> > forward used.
>
> I believe that you can use a string instead of a binding expression, like
> you would a action forward (action='next')

This is indeed possible, but EL makes no distinction between a constant and an 
expression. To get the constant, the expression needs to be evaluated. It is 
possible to evaluate this constant in a custom ActionListener, but that would 
mean the expression is evaluated twice.

> >In the future, the menu will be dynamic,
> > making this approach impossible to use. Futhermore I've got several JSF
> > pages, all using the same menu, but with different actions. How do I make
> > struts-faces forward the control from the JSF page back to the action
> > that has this page as its 'input'?
>
> I'm not familiar with the 'x:commandNavigation' component but if the
> navigation is not thru a javascript (form post), I think you would make
> your links to struts actions (xyz.do).  I'm not sure how you would handle
> it with components that used javascript posts and not part of the
> struts-faces integration library because it would assume that you would be
> dispatched thru the faces servlet and the lifecycle on the component tree
> invoked.  You might try a global navigation rule in the faces-confg but I
> doubt that would work.
>
>   
> *
> 
>   next
>   /xyz.do
> 
>   

I'm trying to not make any difference between different implementations of 
actions (either form submits or links, javascript or not). Configuration the 
action to transfer to in a navigation rule like you did is not possible, 
because I've got several actions with JSF pages for the input. All actions on 
'a.faces' need to transfer control to 'a.do', actions on 'b.faces' to 'b.do' 
etc. The control path will always be: .do -> .faces -> .do.

I'm trying to leave the JSF navigation out of this, because it will make 
things a lot less transparent. For submits of a form, it is easy. The action 
to submit to is in the 'action' attribute of the form. However for links and 
pages without a form things are more complicated. Basically I'm looking for a 
way to transfer control to the request processor after evaluation of the 
action binding. I am thinking of implementing my own NavigationHandler that 
starts the request processor instead of using faces-config, but maybe I'm 
missing something?

Emond Papegaaij

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



Re: struts - view, create, update user page

2005-06-06 Thread Leandro_Dorileo/ABACO
Let me see if I undertood well, are you willing a paper about "patterns to 
work with struts"?
Try to read about MVC, I think it's a good startup.


* Leandro Dorilêo
Desenvolvedor Java
ÁBACO Tecnologia de Informação Ltda 
Qualidade: Um Compromisso de todos!
( (0xx65) 617-0777  ( FAX 623-0646



Tony Smith <[EMAIL PROTECTED]> 
06/06/2005 11:42
Favor responder a
"Struts Users Mailing List" 


Para
user@struts.apache.org
cc

Assunto
struts - view, create, update user page






Hi, I am using struts to develop a webapp. One piece
of work is the user information. I will allow user to
create, view, and update his personal information.
Usually, the three pages are very similar. What is the
best way to do this with Struts? Is there any
"Pattern" for this? I checked the Struts
DispatchAction, but 
not sure how to do it... 


Thanks, 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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




Re: Error Handling Strategy

2005-06-06 Thread Xinsheng \[mike\] Huang
Rule 1: let the global exception handler handle the unwanted-exceptions,usually 
they are system exceptions.
Rule 2: for business exceptions that your action catchs and put an action 
error/message in request so that the jsp displays a message to user to 
recovery. A business exception is required only the validation can't be done in 
Validator Framework, and it is must be done by accessing database.
 

"Frank W. Zammetti" <[EMAIL PROTECTED]> wrote:
I've gotten into the habit of using the Struts global exception handling
mechanism... Anything that can be handled in my code I catch and handle
(i.e., retrying a connection to a back-end system perhaps), anything else
I let bubble up and handle it in the global handler.

This to me is pretty much ideal as-is, I don't see much benefit in doing
anything else. This keeps me from having to write all sorts of exception
handling all over the place, except where it's truly needed/wanted. Could
this maybe help you as well?

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, June 6, 2005 12:21 pm, Matthew Hughes said:
> I really do not like the way my current application handles errors as
> every error requires three or four lines and it is very redundant.
>
> I have been reading a lot about Exception(s) and how developers are
> slowly seeing the benefits of extending their Exception(s) from
> RuntimeException freeing coders from writing catch blocks when they
> can't do anything about it or just throwing it up again adding "throws
> SQLException" to every method up the line.
>
> With the exception (no pun intended) of using ActionErrors in
> ActionForm.validate(), could anyone tell me why it wouldn't be much
> better to use Exceptions to handle errors.
>
>
> Say I have three layers in my application: model, business,
> controller/view. If the model error throws an Exception and not a
> RuntimeException, both the business and the controller/view layers
> have to catch it or pass it on. With RuntimeExceptions you have the
> best of both worlds: you don't have to do ANYTHING if you don't know
> what to do with it, or if you do know what to do with it, you can
> catch it.
>
>
> In my new application design I am employeeing this strategy and using
> custom ExceptionHandler classes to catch, log, and redirect the user
> to the appropriate pages. In my Exception classes, instead of a
> non-localized string as the exception message, I use a message key
> which I can then retrieve and translate into a localized string for
> the end user. This has two main benefits: you are forced to actually
> THINK about your error messages as you need to look them up in a
> properties file and they can be organized somewhat categorically AND
> you don't have to write two different error messages for both the
> developer and the end user. If the developer wants more information,
> he can look at the error log for the stack trace. Can anyone tell me
> why this isn't a good idea?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




Xinsheng [Mike] Huang
SCJP -- Sun Certified Programmer for Java 2 Platform
SCJD -- Sun Certified Developer for Java 2 Platform
SCEA -- Sun Certified Enterprise Architect for J2EE

410-790-7462(C)

 



-
Yahoo! Mail
 Stay connected, organized, and protected. Take the tour

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
Apolgies it is my typo... I have property twice... one should be value.

- Glenn



"Martin Gainty" <[EMAIL PROTECTED]> 
06/06/2005 03:46 PM
Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" , "Hubert Rabago" 
<[EMAIL PROTECTED]>
cc

Subject
Re: html-el:checkbox quandary






Good catch Hubert..Thats what I noticed ..2 property references and no 
value=

In the future you may want to debug with display statement like


Martin-
- Original Message - 
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Monday, June 06, 2005 3:25 PM
Subject: Re: html-el:checkbox quandary


On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Okay okay it is one of those mondays where your physically at work but
> mentally still Saturday afternoon !
>

I'm feeling the same way.

> I have a form bean:
> DependentForm
> which also contains  a value object bean:
> dependent
> which has a property called: healthEligibilityIndicator
>
> Now I'd liket to reference the property in the JSP.
>
> Currently this is what I have:
>  "${dependentForm.dependent.healthEligibilityIndicator}"
> property="${dependentForm.dependent.healthEligibilityIndicator}"/>
>
> This is the error I'm getting:
> [06/06/05 15:17:59:889 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
> Error]-[No getter method for property  of bean
> org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: No
> getter method for property  of bean org.apache.struts.taglib.html.BEAN
>
> Why is this happening?
> I'm more upset that I can't figure it out myself !
>
> Any input is appreciated !
> - Glenn
>

If dependentForm is the form bean associated with the HTML form that
your checkbox is a part of, try it with just
property="dependent.healthEligibilityIndicator".

Hubert

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


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





Re: html-el:checkbox quandary

2005-06-06 Thread Martin Gainty
Good catch Hubert..Thats what I noticed ..2 property references and no 
value=


In the future you may want to debug with display statement like


Martin-
- Original Message - 
From: "Hubert Rabago" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, June 06, 2005 3:25 PM
Subject: Re: html-el:checkbox quandary


On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Okay okay it is one of those mondays where your physically at work but
mentally still Saturday afternoon !



I'm feeling the same way.


I have a form bean:
DependentForm
which also contains  a value object bean:
dependent
which has a property called: healthEligibilityIndicator

Now I'd liket to reference the property in the JSP.

Currently this is what I have:


This is the error I'm getting:
[06/06/05 15:17:59:889 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
Error]-[No getter method for property  of bean
org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: No
getter method for property  of bean org.apache.struts.taglib.html.BEAN

Why is this happening?
I'm more upset that I can't figure it out myself !

Any input is appreciated !
- Glenn



If dependentForm is the form bean associated with the HTML form that
your checkbox is a part of, try it with just
property="dependent.healthEligibilityIndicator".

Hubert

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


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



Best Place for config values

2005-06-06 Thread Brian McGovern
Whats the best place / access method to storing and retriving config attributes 
like administrator email addresses and directories to store uploaded files in a 
multi-tiered webapp, web.xml?  Resources file?  Both servlets and non servlets 
need to access these values.  Opinions greatly appreciated.

thanks
-


Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
I gave it a go and I get this error now... more precise but an error none 
the less...
[06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet 
Error]-[No getter method for property dependent.healthEligibilityIndicator 
of bean org.apache.struts.taglib.html.BEAN]: 
javax.servlet.jsp.JspException: No getter method for property 
dependent.healthEligibilityIndicator of bean 
org.apache.struts.taglib.html.BEAN




Hubert Rabago <[EMAIL PROTECTED]> 
06/06/2005 03:25 PM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: html-el:checkbox quandary






On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Okay okay it is one of those mondays where your physically at work but
> mentally still Saturday afternoon !
> 

I'm feeling the same way.

> I have a form bean:
> DependentForm
> which also contains  a value object bean:
> dependent
> which has a property called: healthEligibilityIndicator
> 
> Now I'd liket to reference the property in the JSP.
> 
> Currently this is what I have:
>  "${dependentForm.dependent.healthEligibilityIndicator}"
> property="${dependentForm.dependent.healthEligibilityIndicator}"/>
> 
> This is the error I'm getting:
> [06/06/05 15:17:59:889 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
> Error]-[No getter method for property  of bean
> org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: No
> getter method for property  of bean org.apache.struts.taglib.html.BEAN
> 
> Why is this happening?
> I'm more upset that I can't figure it out myself !
> 
> Any input is appreciated !
> - Glenn
> 

If dependentForm is the form bean associated with the HTML form that
your checkbox is a part of, try it with just
property="dependent.healthEligibilityIndicator".

Hubert

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





Re: html-el:checkbox quandary

2005-06-06 Thread Hubert Rabago
On 6/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Okay okay it is one of those mondays where your physically at work but
> mentally still Saturday afternoon !
> 

I'm feeling the same way.

> I have a form bean:
> DependentForm
> which also contains  a value object bean:
> dependent
> which has a property called: healthEligibilityIndicator
> 
> Now I'd liket to reference the property in the JSP.
> 
> Currently this is what I have:
>  "${dependentForm.dependent.healthEligibilityIndicator}"
> property="${dependentForm.dependent.healthEligibilityIndicator}"/>
> 
> This is the error I'm getting:
> [06/06/05 15:17:59:889 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet
> Error]-[No getter method for property  of bean
> org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: No
> getter method for property  of bean org.apache.struts.taglib.html.BEAN
> 
> Why is this happening?
> I'm more upset that I can't figure it out myself !
> 
> Any input is appreciated !
> - Glenn
> 

If dependentForm is the form bean associated with the HTML form that
your checkbox is a part of, try it with just
property="dependent.healthEligibilityIndicator".

Hubert

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



Re: Error Handling Strategy

2005-06-06 Thread Frank W. Zammetti
I've gotten into the habit of using the Struts global exception handling
mechanism... Anything that can be handled in my code I catch and handle
(i.e., retrying a connection to a back-end system perhaps), anything else
I let bubble up and handle it in the global handler.

This to me is pretty much ideal as-is, I don't see much benefit in doing
anything else.  This keeps me from having to write all sorts of exception
handling all over the place, except where it's truly needed/wanted.  Could
this maybe help you as well?

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Mon, June 6, 2005 12:21 pm, Matthew Hughes said:
> I really do not like the way my current application handles errors as
> every error requires three or four lines and it is very redundant.
>
> I have been reading a lot about Exception(s) and how developers are
> slowly seeing the benefits of extending their Exception(s) from
> RuntimeException freeing coders from writing catch blocks when they
> can't do anything about it or just throwing it up again adding "throws
> SQLException" to every method up the line.
>
> With the exception (no pun intended) of using ActionErrors in
> ActionForm.validate(), could anyone tell me why it wouldn't be much
> better to use Exceptions to handle errors.
>
>
> Say I have three layers in my application: model, business,
> controller/view.  If the model error throws an Exception and not a
> RuntimeException, both the business and the controller/view layers
> have to catch it or pass it on.  With RuntimeExceptions you have the
> best of both worlds: you don't have to do ANYTHING if you don't know
> what to do with it, or if you do know what to do with it, you can
> catch it.
>
>
> In my new application design I am employeeing this strategy and using
> custom ExceptionHandler classes to catch, log, and redirect the user
> to the appropriate pages.  In my Exception classes, instead of a
> non-localized string as the exception message, I use a message key
> which I can then retrieve and translate into a localized string for
> the end user.  This has two main benefits: you are forced to actually
> THINK about your error messages as you need to look them up in a
> properties file and they can be organized somewhat categorically AND
> you don't have to write two different error messages for both the
> developer and the end user.  If the developer wants more information,
> he can look at the error log for the stack trace.  Can anyone tell me
> why this isn't a good idea?
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



html-el:checkbox quandary

2005-06-06 Thread gdeschen
Okay okay it is one of those mondays where your physically at work but 
mentally still Saturday afternoon !

I have a form bean:
DependentForm
which also contains  a value object bean:
dependent
which has a property called: healthEligibilityIndicator

Now I'd liket to reference the property in the JSP.

Currently this is what I have:


This is the error I'm getting:
[06/06/05 15:17:59:889 EDT] 5dc35dc3 WebGroup  E SRVE0026E: [Servlet 
Error]-[No getter method for property  of bean 
org.apache.struts.taglib.html.BEAN]: javax.servlet.jsp.JspException: No 
getter method for property  of bean org.apache.struts.taglib.html.BEAN

Why is this happening?
I'm more upset that I can't figure it out myself !

Any input is appreciated !
- Glenn

Re: Oracle 10g and 'forward with redirect'

2005-06-06 Thread Martin Gainty
relatively certain that 2.2 Servlet spec says encodeRedirectUrl(string url) 
is deprecated

I believe interface HttpServletResponse now only supports
encodeRedirectURL(String url) *note URL is all uppercase*

HTH,
Martin-
- Original Message - 
From: "Michael Rasmussen" <[EMAIL PROTECTED]>

To: "Struts User" 
Sent: Monday, June 06, 2005 1:52 PM
Subject: Oracle 10g and 'forward with redirect'


I am working with Oracle Application Server 10G (version 9.0.4.0.0
according to help) with an application using Struts 1.1.  We want to
use Struts' forward with redirect option, but have had intermittent
success.  Meaning, sometimes the forward re-direct will work and other
times it returns an http status of 400 (malformed url).  When we
receive the 400, we copy the url from our log file, paste it into the
url of a browser, press enter and it works every time.

When I worked at a previous client using WebSphere Application Server
with Struts 1.1, we had a similar problem.  In order to get it to work
with WAS, we had to add the following parameter to the "Environment
Options":  com.ibm.websphere.sendredirect.compliance=1

In the interim, we've traced through the Struts code to the following
statement, where upon executing it, our application blows up with an
http status of 400:
response.sendRedirect(response.encodeRedirectURL(url));

We copied this code into our program and of course it works just fine.

After searching the world over, or at least the www and coming away
empty,  Ideally, we'd like to be able to use Struts' forward with
redirect option, ActionForward(String path, boolean redirect), instead
of the response.sendR . . .  Does Oracle's app server require an
environment parameter similar to WAS to play nicely with Struts 1.1?
Basically, I'd like to know why the Oracle app server and Struts 1.1
are not cooperating with one another!


Thanks,
Michael

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


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



Oracle 10g and 'forward with redirect'

2005-06-06 Thread Michael Rasmussen
I am working with Oracle Application Server 10G (version 9.0.4.0.0
according to help) with an application using Struts 1.1.  We want to
use Struts' forward with redirect option, but have had intermittent
success.  Meaning, sometimes the forward re-direct will work and other
times it returns an http status of 400 (malformed url).  When we
receive the 400, we copy the url from our log file, paste it into the
url of a browser, press enter and it works every time.

When I worked at a previous client using WebSphere Application Server
with Struts 1.1, we had a similar problem.  In order to get it to work
with WAS, we had to add the following parameter to the "Environment
Options":  com.ibm.websphere.sendredirect.compliance=1

In the interim, we've traced through the Struts code to the following
statement, where upon executing it, our application blows up with an
http status of 400:
response.sendRedirect(response.encodeRedirectURL(url));

We copied this code into our program and of course it works just fine.

After searching the world over, or at least the www and coming away
empty,  Ideally, we'd like to be able to use Struts' forward with
redirect option, ActionForward(String path, boolean redirect), instead
of the response.sendR . . .  Does Oracle's app server require an
environment parameter similar to WAS to play nicely with Struts 1.1?
Basically, I'd like to know why the Oracle app server and Struts 1.1
are not cooperating with one another!


Thanks,
Michael

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



Re: Error Handling Strategy

2005-06-06 Thread Rick Reumann

Matthew Hughes wrote the following on 6/6/2005 12:21 PM:

 Can anyone tell me
why this isn't a good idea?


I've found it easiest to not have any try/catch logic in my Actions, and 
I just define the global exceptions I want to catch in my struts-config 
which forwards to an action that logs my error and then fowards to the 
appropriate page for displaying a nicer error page to the user.


--
Rick

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



Re: Tricky configuration?

2005-06-06 Thread Michael Jouravlev
I wonder, what kind of usability issue that could be? I see two cases:

1) At best, URL should show the path to the object, like
app/task/itemid/actiontype or something. I think this is better than
artificial breadcrumbs, which do basically the same. And, if a user
tries to go one "directory" up, application still would have to make
sense out of it, like app/task/itemid would show possible actions for
the item, and app/task would show... I don' t know what. I guess, my
task tree is faulted ;)

2) If the above scheme does not work, why bother at all about some
"usability issues" with URLs? Don't you have links? Can your app
autogenerate proper links to needed items?

Michael.

On 6/3/05, amol k <[EMAIL PROTECTED]> wrote:
> > Why not just map  /do/* to the action servlet insted of *.do
> 
> http://myserver/Login.do to http://myserver/do/Login, etc is not an issue but
> Making the users type http://myserver/do/user/blahblah instead of
> http://myserver/user/blahblah is a usability issue.
> (will have to ultimately do that if there's no other option but I want
> to avoid /do before user/blahblah as far as possible)
> 
> 
> 
> On 6/3/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> > Why not just map
> >
> > /do/* to the action servlet insted of *.do
> >
> > Then all of these would go through Struts..
> >
> > http://myserver/do/Login
> > http://myserver/do/Logout
> > http://myserver/do/user/blahblah
> >
> > This obviously wouldn't go through struts..
> >
> > http://myserver/pages/blahblah.jsp
> >
> > amol k wrote the following on 6/3/2005 2:39 PM:
> > > Here is what I am trying to achieve:
> > >
> > > http://myserver/Login.do --> (maps to) LoginAction
> > > http://myserver/Logout.do --> (maps to) LogoutAction
> > > http://myserver/user/blahblah --> UserPageAction (notice that there is
> > > no .do in this case. blahblah can be replaced by anything at runtime)
> > >
> > > http://myserver/pages/blahblah.jsp --> not handled by ActionServlet 
> > > (obviously)
> > >
> > > I am trying various combinations in web.xml and struts-config.xml
> > > (including configuring /user as a module) but havent yet found a
> > > decent solution.
> > > Any thoughts?
> > >
> > > Thanks in advance.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > --
> > Rick
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: struts - view, create, update user page

2005-06-06 Thread Tony Smith
Thank yoy very much.


--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote:
> > Hi, I am using struts to develop a webapp. One
> piece
> > of work is the user information. I will allow user
> to
> > create, view, and update his personal information.
> 
> Maybe you would like to reconsider your three pages,
> and split them
> into "edit new", "vew existing" and "edit existing"
> plus a separate
> action just to create a new userinfo? In that case
> you might find this
> worth reading:
>
http://www.theserverside.com/articles/article.tss?l=RedirectAfterPost2
> 
> > Usually, the three pages are very similar. What is
> the
> > best way to do this with Struts? Is there any
> > "Pattern" for this? I checked the Struts
> > DispatchAction, but
> > not sure how to do it...
> 
> DispatchAction simply allows you to define handler
> methods for events,
> usually triggered by submit buttons.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Error Handling Strategy

2005-06-06 Thread Matthew Hughes
I really do not like the way my current application handles errors as
every error requires three or four lines and it is very redundant.

I have been reading a lot about Exception(s) and how developers are
slowly seeing the benefits of extending their Exception(s) from
RuntimeException freeing coders from writing catch blocks when they
can't do anything about it or just throwing it up again adding "throws
SQLException" to every method up the line.

With the exception (no pun intended) of using ActionErrors in
ActionForm.validate(), could anyone tell me why it wouldn't be much
better to use Exceptions to handle errors.


Say I have three layers in my application: model, business,
controller/view.  If the model error throws an Exception and not a
RuntimeException, both the business and the controller/view layers
have to catch it or pass it on.  With RuntimeExceptions you have the
best of both worlds: you don't have to do ANYTHING if you don't know
what to do with it, or if you do know what to do with it, you can
catch it.


In my new application design I am employeeing this strategy and using
custom ExceptionHandler classes to catch, log, and redirect the user
to the appropriate pages.  In my Exception classes, instead of a
non-localized string as the exception message, I use a message key
which I can then retrieve and translate into a localized string for
the end user.  This has two main benefits: you are forced to actually
THINK about your error messages as you need to look them up in a
properties file and they can be organized somewhat categorically AND
you don't have to write two different error messages for both the
developer and the end user.  If the developer wants more information,
he can look at the error log for the stack trace.  Can anyone tell me
why this isn't a good idea?

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



Re: Dispatch action and validation, howto?

2005-06-06 Thread Michael Jouravlev
Turn validation off by setting validate="false" in your action mapping
difinition in struts-config.xml file, and call form.validate()
manually from appropriate handler methods.

On 6/6/05, delbd <[EMAIL PROTECTED]> wrote:
> Hello, i have a form using a dispatch action, amongst the actions in the
> DispatchAction is the add of new fields to the form. I need some of those
> dispatch action to be validated. But some actions need to take place whever
> the form is valid or not (eg adding field to the form should add the fields
> whether or not the users has finished his work).
> If validation occurs and the form is invalid, the action to add fields never
> occurs.
> 
> Any suggestion on how to deactivate validation based on the action choosen? I
> thought about setting this in the form validate methode (if (dispatch.equals
> ("blabal")) no error), but this mean i need to put some dispatch logic in the
> form.
> 
> --
> David Delbecq
> Royal Meteorological Institute of Belgium
> 
> -
> Is there life after /sbin/halt -p?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: struts - view, create, update user page

2005-06-06 Thread Michael Jouravlev
On 6/6/05, Tony Smith <[EMAIL PROTECTED]> wrote:
> Hi, I am using struts to develop a webapp. One piece
> of work is the user information. I will allow user to
> create, view, and update his personal information.

Maybe you would like to reconsider your three pages, and split them
into "edit new", "vew existing" and "edit existing" plus a separate
action just to create a new userinfo? In that case you might find this
worth reading: 
http://www.theserverside.com/articles/article.tss?l=RedirectAfterPost2

> Usually, the three pages are very similar. What is the
> best way to do this with Struts? Is there any
> "Pattern" for this? I checked the Struts
> DispatchAction, but
> not sure how to do it...

DispatchAction simply allows you to define handler methods for events,
usually triggered by submit buttons.

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



Re: Transfering control with struts-faces

2005-06-06 Thread gvanmatre
> Hello,
> 
> I'm looking for a elegant way of transfering control from a JSF page back to 
> an action. The situation is as follows:
> An action has its 'input' set to the JSF page and forwards control to 
> 'getInputForward'. The JSF page contains several input fields and a 
> navigation panel, using 'x:commandNavigation' (taking directly from the 
> MyFaces examples). The page also has a normal submit button. When a user 
> presses one of the navigation links or the submit button, control should be 
> transfered back to the action. This action contains the logic to decide where 
> to continue.
> 
> Currently I'm using a construction similar to the one used in the 
> struts-faces 
> examples. A backing bean contains the forwards and these are called from the 
> JSF with the following code: 'action="#{backing.forward}"'. However this 
> solution is not very flexible, as the backing bean needs to have a forward 
> method for every forward used. 

I believe that you can use a string instead of a binding expression, like you 
would a action forward (action='next')


>In the future, the menu will be dynamic, 
> making this approach impossible to use. Futhermore I've got several JSF 
> pages, all using the same menu, but with different actions. How do I make 
> struts-faces forward the control from the JSF page back to the action that 
> has this page as its 'input'?

I'm not familiar with the 'x:commandNavigation' component but if the navigation 
is not thru a javascript (form post), I think you would make your links to 
struts actions (xyz.do).  I'm not sure how you would handle it with components 
that used javascript posts and not part of the struts-faces integration library 
because it would assume that you would be dispatched thru the faces servlet and 
the lifecycle on the component tree invoked.  You might try a global navigation 
rule in the faces-confg but I doubt that would work.  

  
*

  next
  /xyz.do

  


Gary


> 
> Best regards,
> Emond Papegaaij
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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



Re: Exception Handler

2005-06-06 Thread Leandro_Dorileo/ABACO
Hi Joe!

When I posted the initial mail I didn't understand well how 
ExceptionHandler works, but now I think already do, I'll tell you how I 
figure it out and if perhaps I'm wrong please correct me, ok?

- We can have as many exceptionHandler as we need, and we configure who 
will be or ExceptionHandler indicatting in the struts-cfg.xml as well the 
Exception type to be handled;
- The default ExceptionHandler receives this request and looks for the 
action scope and then stores ActionErrors objects;
- In the JSP side the  taglib looks in the pageContext the 
ActionErros, read the ApplicationResources and mount the output as defined 
in the taglib(but it allways want a key and the ApplicationResources);

I had a specific need, and didn't want to work the way described bellow, I 
wanted an *Exception* to be in the pageContext not an *ActionErrors* cause 
what is printed is got from an XML file. I created my SisprevException 
with cause, action and code attributes, I needed this attributes to be 
printed out to user. So I created my own ExceptionHandler and handled my 
exceptions according to my needs, put my SisprevException in the 
request/session.

I also create my own taglib to handle this SisprevException in the 
request/session and print out its attributes values.

The question: did I reinvented the wheel? is there already a way to do 
what I did without the need to write what I wrote?

thanks


* Leandro Dorilêo
Desenvolvedor Java
ÁBACO Tecnologia de Informação Ltda 
Qualidade: Um Compromisso de todos!
( (0xx65) 617-0777  ( FAX 623-0646



Joe Germuska <[EMAIL PROTECTED]> 
03/06/2005 13:57

Para
Leandro_Dorileo/[EMAIL PROTECTED], user@struts.apache.org
cc

Assunto
Re: Exception Handler






At 1:41 PM -0400 6/3/05, Leandro_Dorileo/[EMAIL PROTECTED] wrote:
>I'm working in a project where I'm planning to use my own implementation
>of ExceptionHander, I know that I need extend the
>org.apache.struts.action.ExceptionHandler and overwrite the execute
>method, I also know that I need use the  taglib and
>configure my action to work with my own ExceptionHandler class.
>
>Everything is working properly till the ExceptionHandler but nothing is
>done in the JSP, the taglib doesn't do anything as waited. What perhaps
>I'm doing wrong, when I debug my application I go up to the
>ExceptionHalder but in the jsp nothing happens.

This isn't much to go on.  One common error which might be related to 
what you're seeing is when the ExceptionHandler is invoked during 
Tiles evaluation; in this case, the response is usually already 
committed, so the ExceptionHandler can't forward to the configured 
JSP.

If you aren't using Tiles, then you probably have a different kind of 
misconfiguration.  I'd suggest posting some of your config info to 
this list to see if anyone can help you.

I have been using a local ExceptionHandler which tests to see if the 
response is committed and uses "include" instead of "forward" when it 
is; this works pretty well if your error page would look OK inlined 
in a subregion of a page as well as in the main page body.  I'm 
hoping to refine this a little and introduce some kind of support for 
it in Struts 1.3

joe

-- 
Joe Germuska 
[EMAIL PROTECTED] 
http://blog.germuska.com 
"Narrow minds are weapons made for mass destruction"  -The Ex



struts - view, create, update user page

2005-06-06 Thread Tony Smith
Hi, I am using struts to develop a webapp. One piece
of work is the user information. I will allow user to
create, view, and update his personal information.
Usually, the three pages are very similar. What is the
best way to do this with Struts? Is there any
"Pattern" for this? I checked the Struts
DispatchAction, but 
not sure how to do it... 


Thanks, 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Transfering control with struts-faces

2005-06-06 Thread Emond Papegaaij
Hello,

I'm looking for a elegant way of transfering control from a JSF page back to 
an action. The situation is as follows:
An action has its 'input' set to the JSF page and forwards control to 
'getInputForward'. The JSF page contains several input fields and a 
navigation panel, using 'x:commandNavigation' (taking directly from the 
MyFaces examples). The page also has a normal submit button. When a user 
presses one of the navigation links or the submit button, control should be 
transfered back to the action. This action contains the logic to decide where 
to continue.

Currently I'm using a construction similar to the one used in the struts-faces 
examples. A backing bean contains the forwards and these are called from the 
JSF with the following code: 'action="#{backing.forward}"'. However this 
solution is not very flexible, as the backing bean needs to have a forward 
method for every forward used. In the future, the menu will be dynamic, 
making this approach impossible to use. Futhermore I've got several JSF 
pages, all using the same menu, but with different actions. How do I make 
struts-faces forward the control from the JSF page back to the action that 
has this page as its 'input'?

Best regards,
Emond Papegaaij

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



Re: access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Thibaut Lassalle

thank you for your help. I find the solution.

To access to database in a plugin method you can do:
   javax.sql.DataSource  aDataSource = 
(DataSource)servletc.getServletContext().getAttribute("dataBase1");
where dataBase1 is the key witch identify the data-source in the 
struts-config.xml



Martin Gainty a écrit :


Thibault-

Have you had the opportunity to look at
http://www.docjar.com/html/api/org/apache/struts/action/ActionServlet.java.html 
?
This is a customised ActionServlet which initialises data-sources thru 
initModuleDataSources method
and the initModulePlugIns method which initialises the PlugIns found 
in the config file

Is there a specific plugin you wish to use?

Bonne Chance,
Martin-
- Original Message - From: "Thibaut Lassalle" 
<[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, June 06, 2005 10:20 AM
Subject: access to dataSource configured in struts-config.xml in a Plugin


hi, i'd like to access to dataSource configured in struts-config.xml 
in the Plugin init method.

But i don't have a clue how to do that.
Thanks.


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




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





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



Re: access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Martin Gainty

Thibault-

Have you had the opportunity to look at
http://www.docjar.com/html/api/org/apache/struts/action/ActionServlet.java.html 
?
This is a customised ActionServlet which initialises data-sources thru 
initModuleDataSources method
and the initModulePlugIns method which initialises the PlugIns found in the 
config file

Is there a specific plugin you wish to use?

Bonne Chance,
Martin-
- Original Message - 
From: "Thibaut Lassalle" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Monday, June 06, 2005 10:20 AM
Subject: access to dataSource configured in struts-config.xml in a Plugin


hi, i'd like to access to dataSource configured in struts-config.xml in 
the Plugin init method.

But i don't have a clue how to do that.
Thanks.


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




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



access to dataSource configured in struts-config.xml in a Plugin

2005-06-06 Thread Thibaut Lassalle
hi, i'd like to access to dataSource configured in struts-config.xml in 
the Plugin init method.

But i don't have a clue how to do that.
Thanks.


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



Re: Tricky configuration?

2005-06-06 Thread amol k
I tried that but it doesnt exactly help.
I think I'll go the "manipulate URLs @ the web server" route. It looks
the best option.
Thanks all.


On 6/3/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Another option might be to use two URL mappings: *.do and /users/*.
> Would that get you what you want?
> 
> L.
> 
> amol k wrote:
> 
> >>There are several ways to make this transparent to the user!  I can
> >
> > send details if >you don't know how?
> >
> > Do send details if you can.
> > Something like what Martin is suggesting looks like one way.
> >
> > Thanks.
> >
> >
> > On 6/3/05, Ray Madigan <[EMAIL PROTECTED]> wrote:
> >
> >>Why are you making your users type in the action anyway.  Why don't you mask
> >>this so they don't know how you implemented it.  There are several ways to
> >>make this transparent to the user!  I can send details if you don't know
> >>how?
> >>
> >>
> >>
> >>-Original Message-
> >>From: amol k [mailto:[EMAIL PROTECTED]
> >>Sent: Friday, June 03, 2005 11:50 AM
> >>To: Struts Users Mailing List
> >>Subject: Re: Tricky configuration?
> >>
> >>
> >>
> >>>Why not just map  /do/* to the action servlet insted of *.do
> >>
> >>http://myserver/Login.do to http://myserver/do/Login, etc is not an issue
> >>but
> >>Making the users type http://myserver/do/user/blahblah instead of
> >>http://myserver/user/blahblah is a usability issue.
> >>(will have to ultimately do that if there's no other option but I want
> >>to avoid /do before user/blahblah as far as possible)
> >>
> >>
> >>
> >>On 6/3/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> >>
> >>>Why not just map
> >>>
> >>>/do/* to the action servlet insted of *.do
> >>>
> >>>Then all of these would go through Struts..
> >>>
> >>>http://myserver/do/Login
> >>>http://myserver/do/Logout
> >>>http://myserver/do/user/blahblah
> >>>
> >>>This obviously wouldn't go through struts..
> >>>
> >>>http://myserver/pages/blahblah.jsp
> >>>
> >>>amol k wrote the following on 6/3/2005 2:39 PM:
> >>>
> Here is what I am trying to achieve:
> 
> http://myserver/Login.do --> (maps to) LoginAction
> http://myserver/Logout.do --> (maps to) LogoutAction
> http://myserver/user/blahblah --> UserPageAction (notice that there is
> no .do in this case. blahblah can be replaced by anything at runtime)
> 
> http://myserver/pages/blahblah.jsp --> not handled by ActionServlet
> >>
> >>(obviously)
> >>
> I am trying various combinations in web.xml and struts-config.xml
> (including configuring /user as a module) but havent yet found a
> decent solution.
> Any thoughts?
> 
> Thanks in advance.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> >>>
> >>>
> >>>--
> >>>Rick
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Business Layer Ideas (the blog entry)

2005-06-06 Thread Simon Chappell
Alright, after receiving permission from Frank, I posted his summary
of the recent thread with this same name to my blog.

http://uab.blogspot.com/2005/06/funny-thread-on-struts-mailing-list.html

Enjoy. Remember, the summary is Frank's and the blog is mine. So don't
blame Frank if you don't like anything else you read there. (I have
strong opinions and I'm not afraid to use them! :-)

Simon

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



Dispatch action and validation, howto?

2005-06-06 Thread delbd
Hello, i have a form using a dispatch action, amongst the actions in the 
DispatchAction is the add of new fields to the form. I need some of those 
dispatch action to be validated. But some actions need to take place whever 
the form is valid or not (eg adding field to the form should add the fields 
whether or not the users has finished his work).
If validation occurs and the form is invalid, the action to add fields never 
occurs.

Any suggestion on how to deactivate validation based on the action choosen? I 
thought about setting this in the form validate methode (if (dispatch.equals 
("blabal")) no error), but this mean i need to put some dispatch logic in the 
form. 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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



RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Abhinav Bhatnagar

Sorry Martin,

Due to official purposes I have it as the default setting.

Regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, June 06, 2005 6:38 PM
To: Abhinav Bhatnagar; Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

Mr Bhatnagar:

I do not answer registered return receipt emails as I find the behavior
quite disrepectful.

Martin-

Privacy and Confidentiality Notice:
Please do not email me directly

- Original Message -
From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Martin
Gainty"
<[EMAIL PROTECTED]>
Sent: Monday, June 06, 2005 8:34 AM
Subject: RE: how do I switch off Struts - internal logging?



Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

 in - Original Message -
From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?



I am using struts 1.2.6.



Thanks in advance.



Abhinav


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


*** CAUTION - Disclaimer ** This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the
use
of the addressee(s). If you are not the intended recipient, please
notify
the sender by e-mail and delete the original message. Further, you are
not
to copy, disclose, or distribute this e-mail or its contents to any
other
person and any such actions are unlawful. This e-mail may contain
viruses.
Infosys has taken every reasonable precaution to minimize this risk, but
is
not liable for any damage you may sustain as a result of any virus in
this
e-mail. You should carry out your own virus checks before opening the
e-mail
or attachment. Infosys reserves the right to monitor and review the
content
of all messages sent to or from this e-mail address. Messages sent to or

from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

*** CAUTION - Disclaimer ** This e-mail 
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of 
the addressee(s). If you are not the intended recipient, please notify the 
sender by e-mail and delete the original message. Further, you are not to copy, 
disclose, or distribute this e-mail or its contents to any other person and any 
such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment. 
Infosys reserves the right to monitor and review the content of all messages 
sent to or from this e-mail address. Messages sent to or from this e-mail 
address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Re: how do I switch off Struts - internal logging?

2005-06-06 Thread Martin Gainty

Mr Bhatnagar:

I do not answer registered return receipt emails as I find the behavior 
quite disrepectful.


Martin-

Privacy and Confidentiality Notice:
Please do not email me directly

- Original Message - 
From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Martin Gainty" 
<[EMAIL PROTECTED]>

Sent: Monday, June 06, 2005 8:34 AM
Subject: RE: how do I switch off Struts - internal logging?



Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

in - Original Message -
From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?



I am using struts 1.2.6.



Thanks in advance.



Abhinav


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


*** CAUTION - Disclaimer ** This e-mail 
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use 
of the addressee(s). If you are not the intended recipient, please notify 
the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is 
not liable for any damage you may sustain as a result of any virus in this 
e-mail. You should carry out your own virus checks before opening the e-mail 
or attachment. Infosys reserves the right to monitor and review the content 
of all messages sent to or from this e-mail address. Messages sent to or 
from this e-mail address may be stored on the Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***

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



RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Nils Liebelt
Try something like this:

# Whattaa logga
log4j.logger=FATAL
log4j.logger.fr.improve.struts=INFO
log4j.logger.org.apache.ojb=INFO
log4j.logger.org.apache.struts=INFO
log4j.logger.com.candor.hummingbird=DEBUG


GreetZ

Nils

-Original Message-
From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 06, 2005 2:34 PM
To: Struts Users Mailing List; Martin Gainty
Subject: RE: how do I switch off Struts - internal logging?


Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]

Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

 in - Original Message -

From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?




I am using struts 1.2.6.




Thanks in advance.




Abhinav


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


*** CAUTION - Disclaimer ** This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use
of the addressee(s). If you are not the intended recipient, please notify
the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is
not liable for any damage you may sustain as a result of any virus in this
e-mail. You should carry out your own virus checks before opening the e-mail
or attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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


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



RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Nils Liebelt
Try something like this:

# Whattaa logga
log4j.logger=FATAL
log4j.logger.fr.improve.struts=INFO
log4j.logger.org.apache.ojb=INFO
log4j.logger.org.apache.struts=INFO
log4j.logger.com.candor.hummingbird=DEBUG


GreetZ

Nils

-Original Message-
From: Abhinav Bhatnagar [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 06, 2005 2:34 PM
To: Struts Users Mailing List; Martin Gainty
Subject: RE: how do I switch off Struts - internal logging?


Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]

Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

 in - Original Message -

From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?




I am using struts 1.2.6.




Thanks in advance.




Abhinav


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


*** CAUTION - Disclaimer ** This e-mail
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use
of the addressee(s). If you are not the intended recipient, please notify
the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is
not liable for any damage you may sustain as a result of any virus in this
e-mail. You should carry out your own virus checks before opening the e-mail
or attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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


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



RE: how do I switch off Struts - internal logging?

2005-06-06 Thread Abhinav Bhatnagar

Thanks Martin,

I have these parameters in my log4j xml file, but that's for my
application's logs.

If I change it there, my application logging will also stop, which I
don't want.

Can I do it specifically for struts internal logging only?

Thanks and regards,
Abhinav

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 8:30 PM
To: Struts Users Mailing List
Subject: Re: how do I switch off Struts - internal logging?

commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log =
org.apache.commons.logging.impl.NoOpLog

log4j.properties
log4j.enable=OFF

consult the applicable doc for either package
Martin-

 in - Original Message -
From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To: 
Sent: Friday, June 03, 2005 10:37 AM
Subject: how do I switch off Struts - internal logging?


how do I switch off Struts - internal logging?



I am using struts 1.2.6.



Thanks in advance.



Abhinav


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


*** CAUTION - Disclaimer ** This e-mail 
contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of 
the addressee(s). If you are not the intended recipient, please notify the 
sender by e-mail and delete the original message. Further, you are not to copy, 
disclose, or distribute this e-mail or its contents to any other person and any 
such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any 
damage you may sustain as a result of any virus in this e-mail. You should 
carry out your own virus checks before opening the e-mail or attachment. 
Infosys reserves the right to monitor and review the content of all messages 
sent to or from this e-mail address. Messages sent to or from this e-mail 
address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



Tiles: Howto nest attributes! Is it possible?

2005-06-06 Thread Nils Liebelt
Hi all,

Let's say I got a typical tile main layout definition:







Now the content has to split into 2 panes. But not always. So I would like
to have definition who looks like this:


  




The syntax is not right but it explains what I want. Is it possible some
how. I can only access "menu" and "body" as beans. All other tiles insert
tags are useless.



GreetZ

Nils


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



Tiles: Howto nest attributes! Is it possible?

2005-06-06 Thread Nils Liebelt
Hi all,

Let's say I got a typical tile main layout definition:







Now the content has to split into 2 panes. But not always. So I would like
to have definition who looks like this:


  




The syntax is not right but it explains what I want. Is it possible some
how. I can only access "menu" and "body" as beans. All other tiles insert
tags are useless.



GreetZ

Nils


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



Message resource exception caused by bean:write inside logic:iterate

2005-06-06 Thread redford
Hey all,

I get an exception and cannot find any explanation or solution.

An OverviewBody.jsp page intends to list all data items from a database.
It therefore cretaes an appropriate table, the table body is implemented using a
logic:iterate tag, the single table columns/cells are supposed to get populated
using bean:write tags.

Doing this leads to an exception 

[ERROR] InsertTag - ServletException in '/pages/OverviewBody.jsp': Cannot find
message resources under key org.apache.struts.action.MESSAGE
javax.servlet.ServletException: Cannot find
message resources under key org.apache.struts.action.MESSAGE

when calling the appropriate action.

However, all othe pages work fine with the specified ressource bundles. If I
eliminate all bean:write tags in the page, the exception does not occur.
I therefore assume that the exception does not really mean in my case that the
system cannot access the resource bundles.

Unfortunately, I have no other idea of how to solve the problem...

Any idea or hint would help and is highly appreciated.
Thanks 
Robert


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



Re: Problems with tiles

2005-06-06 Thread lk

Davi G. Friedman wrote:

Luke,

Your settings look normal.  I've checked the 1.2.4 code relating to your
error and somehow the struts initialization isn't loading or loading
correctly.   Have you turned on any sort of debugging and can show the
webapp startup messages?  Have you done any logging in your class to prove
it is loading?  Is your struts-config.xml spelled correctly, located in
/WEB-INF/struts-config.xml AND mentioned with the exact path in your
/WEB-INF/web.xml?

Regards,
David


Thanks David,

I think I found the problem: I was using MyEclipse 3.8.4 with Struts 
1.2. I've tried to use Struts 1.1 and everything runs well.


Bye

LuKe




--

Email.it, the professional e-mail, gratis per te: http://www.email.it/f



Sponsor:

Scarica la Rana Pazza sul tuo cellulare - come vista in televisione!

* La prima suoneria è GRATIS!

Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3539&d=6-6

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