html:link and two dynamic parameter

2003-03-07 Thread shashi_struts
hi

i has been work on a html:linka and want some parameter to next page.
this is my code that i am using


this runs fine 

 i want to add a one more paramater with name 'surveyId' and the value comes from the 
bean 'survey' 
i tried too much but not write down the proper code.

i know we could use the Map for sending multiple parameter but that's not fit on my 
program 'use i have a table in which multiple question but only one survey id.

i think u understand my point.


help me to find out the solution.

thanks

shashi




[OT] Learning Curve Management or Confusions of a Newbie

2003-03-07 Thread Jeff Smith
I have to confess, I'm a newbie. I've been a C/C++ programmer for 20 years, but after 
dinking around for a few months with ASP, VBScript, PHP and a few other technologies, 
I decided that Java was the language to build my web apps in.

A month ago I was completely cold. Didn't know the first thing about any of this 
stuff. But I knew I wanted to learn it, so off I went, marching into the high weeds. 
First I had to learn Java. Then came servlets and JSPs and Tomcat. And along that path 
I also had to absorb Ant. And JUnit. And Log4J. And then there was a bunch of time 
lost exploring NetBeans/Eclipse/WebSphere before settling on JEdit as my environment 
of choice.

Then came Struts, and all the various taglibs. An experiment with Cayenne. And Cactus. 
And god-knows what else I've explored.

And through it all, I am continually amazed at the strength and breadth of the 
resources and support available. And equally frustrated by it. I can never remember 
where I saw a particular bit of information. So when I finally learn enough to 
understand what Ted was talking about in his monograph on Connection Pooling, I can't 
remember where I saw it.

And when I want to learn enough about EJBs to figure out if I need to care about them, 
or if they are relevant to my planned project, I have to wade through another day of 
voluminous coverage before I have enough of a handle on what they are to make some 
intelligent guesses about where to look next.

My point is that I believe the Apache/Java/Struts/... universe is quickly reaching a 
point where its very breadth is becoming a barrier to entry for people who don't have 
a couple of months to devote to bootstrapping themselves.

Is there any thought being given to creating a higher-level resource interface that 
could serve as a single point of reference for all things Apache? (I realize that "all 
things java" would be going way too far.) As a simple solution, if every document in 
the Apache infrastructure had a meta tag that listed the questions answered by the 
document, then a very powerful, automated FAQ could be maintained. And such a system 
would make it much easier (I believe) to find things quickly than simply searching the 
site for key words.

This may not be the best (or only) solution, but I do believe that for all the very 
specific support and discussions there are, there is really very little over-view 
material to assist newcomers or people looking for information outside of their core 
area.

Or maybe I'm the only one who feels overwhelmed by it all. :-)

Jefficus



Re: Avoiding refresh stomping

2003-03-07 Thread Max Cooper
Dan's suggestion to use redirects is a good one. I redirect in response to
most POST operations to avoid these problems. It adds a bit of network
overhead to some of the pages, but the exipred POST data, double submits,
and the browser's address bar not matching what the user is seeing are all
worse, in my opinion. Bookmarking the page after a POST is another
troublesome area, so redirecting (which always results in the browser making
a GET request) solves a lot of those problems.

> Its not just refreshes you need to worry about. The back button is
> particularly dangerous in this regard!

Oh yes, the Back button is a problem, too. I reject the idea that you can
tell users not to use it -- that just isn't a reasonable position. But
handling it properly is admittedly a big challenge. Most browsers will drop
the POST request from the history since the response is a redirect, which
seems to work out perfectly most of the time.

> First thing you want to look at is the "transaction token" stuff in
struts.

That is a wise additional measure to take.

> This is designed to detect multiple requests of the nature you describe -
> especially users clicking submit multiple times (which they tend to do on
> any submit that takes more than about half a second)

In watching people (even ones who should know better) I find that an
alarming number of users double-click everything. Links, submit buttons, you
name it -- people double click them all the time. I guess they just like to
show off their double-clicking prowess or something.

-Max

> -Original Message-
> From: Jeff Smith [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 15:25
> To: Struts Users Mailing List
> Subject: Avoiding refresh stomping
>
>
> I worry about users. I've been one. I know how unpredictable we can be.
:-)
>
> Take this case. I have a struts app and I want users to be able to log in.
> Pretty simple. In fact, it is probably the most common scenario
implemented
> in samples and tutorials.
>
> Being a good host, I like to keep track of my guests. So when my users log
> in, I want to time-stamp them so I know how long they've been connected.
>
> My action-forward for login success takes me to a pretty page that gives
my
> users stats about their last logon (in case somebody is using their
account
> without their knowledge) and a bunch of other stuff.
>
> So they tend to sit on that page and read it for a while.
>
> Then (and here's the unpredictable user part) for some reason, they hit
the
> refresh button on their browser. Well, since they got here as an action
> forward from the authentication sequence, the refresh resubmits all their
> logon credentials, the system re-authenticates them and then takes them,
> finally, back to the page they've been reading and refreshes it. And in
that
> process, my login timestamp is stomped with a newer one.
>
> Now, I have already figured out a few ways to short circuit the
> re-authentication (like, don't authenticate a user who is already logged
> in.) But the question is, where else could my users be inadvertently
causing
> spurious recursions into potentially costly sequences by ignorantly
hitting
> the refresh button? I can imagine that some of my action sequences might
> invoke some fairly expensive computations before displaying the results.
But
> do I *REALLY* want to recompute the whole thing when my users hit refresh?
> In the case of rendering dynamic content, maybe I do. But for
transactional
> stuff like logging in, or submitting a credit card for authentication, I
> probably don't want to re-compute on refresh.
>
> Am I the only one who worries about stuff like this?
>
> I want my site to be bullet proof, idiot proof and
> all-kinds-of-other-things-proof. I'd be curious to know how other people
> handle this situation.
>
>
> Jefficus
>
>
> -
> 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: Avoiding refresh stomping

2003-03-07 Thread Andrew Hill
Another problem I encountered with going direct from a post instead of
redirecting is that all the submitted parameters are carried along too -
which means that data submitted for form A can end up populating fields on
action form B where the parameter names match...

...handling the back button gracefully can be very difficult - especially if
many of your GETs are more in the nature of state-changing events rather
than navigational requests. (Of course its better to use posts for such, but
its not always practical)

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 16:10
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Avoiding refresh stomping


Dan's suggestion to use redirects is a good one. I redirect in response to
most POST operations to avoid these problems. It adds a bit of network
overhead to some of the pages, but the exipred POST data, double submits,
and the browser's address bar not matching what the user is seeing are all
worse, in my opinion. Bookmarking the page after a POST is another
troublesome area, so redirecting (which always results in the browser making
a GET request) solves a lot of those problems.

> Its not just refreshes you need to worry about. The back button is
> particularly dangerous in this regard!

Oh yes, the Back button is a problem, too. I reject the idea that you can
tell users not to use it -- that just isn't a reasonable position. But
handling it properly is admittedly a big challenge. Most browsers will drop
the POST request from the history since the response is a redirect, which
seems to work out perfectly most of the time.

> First thing you want to look at is the "transaction token" stuff in
struts.

That is a wise additional measure to take.

> This is designed to detect multiple requests of the nature you describe -
> especially users clicking submit multiple times (which they tend to do on
> any submit that takes more than about half a second)

In watching people (even ones who should know better) I find that an
alarming number of users double-click everything. Links, submit buttons, you
name it -- people double click them all the time. I guess they just like to
show off their double-clicking prowess or something.

-Max

> -Original Message-
> From: Jeff Smith [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 15:25
> To: Struts Users Mailing List
> Subject: Avoiding refresh stomping
>
>
> I worry about users. I've been one. I know how unpredictable we can be.
:-)
>
> Take this case. I have a struts app and I want users to be able to log in.
> Pretty simple. In fact, it is probably the most common scenario
implemented
> in samples and tutorials.
>
> Being a good host, I like to keep track of my guests. So when my users log
> in, I want to time-stamp them so I know how long they've been connected.
>
> My action-forward for login success takes me to a pretty page that gives
my
> users stats about their last logon (in case somebody is using their
account
> without their knowledge) and a bunch of other stuff.
>
> So they tend to sit on that page and read it for a while.
>
> Then (and here's the unpredictable user part) for some reason, they hit
the
> refresh button on their browser. Well, since they got here as an action
> forward from the authentication sequence, the refresh resubmits all their
> logon credentials, the system re-authenticates them and then takes them,
> finally, back to the page they've been reading and refreshes it. And in
that
> process, my login timestamp is stomped with a newer one.
>
> Now, I have already figured out a few ways to short circuit the
> re-authentication (like, don't authenticate a user who is already logged
> in.) But the question is, where else could my users be inadvertently
causing
> spurious recursions into potentially costly sequences by ignorantly
hitting
> the refresh button? I can imagine that some of my action sequences might
> invoke some fairly expensive computations before displaying the results.
But
> do I *REALLY* want to recompute the whole thing when my users hit refresh?
> In the case of rendering dynamic content, maybe I do. But for
transactional
> stuff like logging in, or submitting a credit card for authentication, I
> probably don't want to re-compute on refresh.
>
> Am I the only one who worries about stuff like this?
>
> I want my site to be bullet proof, idiot proof and
> all-kinds-of-other-things-proof. I'd be curious to know how other people
> handle this situation.
>
>
> Jefficus
>
>
> -
> 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 PROT

RE: Association between Session object and Cookies/URL rewriting

2003-03-07 Thread Mohan Radhakrishnan
Hi,
 It is not CMS. Will take a look at the security filter.
Mohan

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 1:30 PM
To: Struts Users Mailing List
Subject: Re: Association between Session object and Cookies/URL
rewriting


> Requirement is this : My login page itself expires even if the user
> doesn't login for the session timeout period. We want to prevent that.

Hmm... I don't think there is much you can do in that case with
container-managed security. If the user fails to login within the session
expiration time, their session will expire. When the user then submits the
login form, it will look like a spontaneous login to the server, which is
not supported with container-managed security, and will cause an error (on
Tomcat at least; WebLogic does something a little different, but I think the
different behaviors just highlight the reason why depending on this setup is
risky).

The SecurityFilter project supports this kind of operation to some extent.
The session will still expire, so the server will not be able to take the
user directly to the protected page that caused the login form to appear.
But SecurityFilter supports the configuration of a 'default page' to send
the user to if they login without an active session, or simply submit a
login form without being sent there by the filter.
http://securityfilter.sourceforge.net/

-Max



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



minLength && maxLength javascript inconsistent

2003-03-07 Thread Dan Allen
Why are fields of type = 'password' excluded from minLength and
maxLength checks?  Seems to be a bug to me.  Surely just because the
form input is using hidden characters does not mean that they should
be excluded from these checks, especially since the server-side
check will handle password and text fields as one in the same.

By the way, I checked CVS and the issue is still current.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
[Frodo]: "He deserves death." 
[Gandalf]: "Deserves it! I daresay he does. Many that live 
deserve death. And some that die deserve life.  Can you give 
it to them?  Then do not be too eager to deal out death in 
judgement. For even the very wise cannot see all ends."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Multiple application support

2003-03-07 Thread Manfred Wolff
Hi

I have some problems with struts multiple application support. I have 
build a second struts-config.xml called common-struts-config.xml and I 
have registered it in the web.xml.

  
action
org.apache.struts.action.ActionServlet
  
config
/WEB-INF/struts-config.xml
  
  
config/common
/WEB-INF/struts-config-common.xml
  

  debug
  4


  detail
  4

2
  
In my Index.jsp I have the folloging tag:



and I get an exception. I have debuged struts and I might have found the 
problem in the html:form tag but in the requestUtils.

In FormTag.java line 713:

moduleConfig = RequestUtils.getModuleConfig(pageContext);

And the procedure in RequestUtils:

public static ModuleConfig getModuleConfig(PageContext pageContext) {
ModuleConfig moduleConfig =
(ModuleConfig) 
pageContext.getRequest().getAttribute(Globals.MODULE_KEY);
if (moduleConfig == null) { // Backwards compatibility hack
moduleConfig =
(ModuleConfig) 
pageContext.getServletContext().getAttribute(Globals.MODULE_KEY);
}
return moduleConfig;
}

It searches only in the default module and not in the several 
modul-configuration. So I think here is one problem.

Just my question: Has anyone have succeed with multiple 
struts-config-modules. Perhaps I make a mistake.

Manfred

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


Re: mail settings

2003-03-07 Thread James
as long as its in your class path you can write a propertyreader factory
class (singleton) and your actions can use that to access your mail
properties..

"Dan Allen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> As it is typical to have a *.properties file for any general
> settings for a server application, I was curious to know how
> developers handle mail settings.  An example file I had in mind
> would be something like
>
> mailer.transport.protocol=smtp
> mailer.transport.host=localhost
> mailer.transport.port=25
> mailer.from.name=Webmaster
> [EMAIL PROTECTED]
>
> If I were to use a file like this, where in the struts hierarchy
> would I put it and how would I read it in to make it available to
> my actions()?
>
> Dan
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Daniel Allen, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "If you still don't like it, that's ok: that's why I'm boss. I
> simply know better than you do."
>  -- Linus Torvalds
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -




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



Re: getPathInfo with Struts/Resin?

2003-03-07 Thread usha
Hi

Can anybody help me. i have the similar problem i was trying to get the 
solution for this. i wanted to know is this possible in struts to give 
the URL like this. in servlets we can have the URL like this. if this 
not possible in struts is there any other way to achieve this. plz help 
me...

usha

Kevin Tung wrote:

Hi,

I have searched the archives and the newsgroups but couldn't find an answer
that applies to my specific environment, hopefully someone here has done
this before.
I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6

I want to be able to do the following

www.somehost.com/myapp/execute/edit/username/
www.somehost.com/myapp/execute/view/username/
where view and edit will map to different Actions.  And within each action,
I want to be able to retrieve the username by using getPathInfo().
in my web.xml

 
   action
   /execute/*
 
in my struts_config.xml

   

But when I point the browser to

www.somehost.com/myapp/execute/edit/username/ I end up with a

400 Invalid path /edit/username/

And www.somehost.com/myapp/execute/edit/ gets me

400 Invalid path /

But And www.somehost.com/myapp/execute/edit (without the slash)

Works fine, but it's without the path info..

Is this a resin issues? or could this be a struts config issue?  Has anyone
gotten this scenario to work with Struts and Resin? or even another
container?  Some config samples would be very helpful!!
Thanks,
Kevin




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





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


Re: [OT] Learning Curve Management or Confusions of a Newbie

2003-03-07 Thread Simon Kelly
Jeff you are not alone in this.  I've been at this for six months and have
gone through pretty much the same set of problems.  The thing with what you
are suggesting (and this is only my opinion) is, "Who will do it *AND* look
after it?".  The trouble is (and I have found this through searching the
net) the shear volume of papers, documents, examples and postings (150+ per
day) that would have to be referenced and collected to make this of any use
to people.  And I have to say, I DO NOT want the job :-)

Cheers

Simon


- Original Message -
From: "Jeff Smith" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 9:05 AM
Subject: [OT] Learning Curve Management or Confusions of a Newbie


I have to confess, I'm a newbie. I've been a C/C++ programmer for 20 years,
but after dinking around for a few months with ASP, VBScript, PHP and a few
other technologies, I decided that Java was the language to build my web
apps in.

A month ago I was completely cold. Didn't know the first thing about any of
this stuff. But I knew I wanted to learn it, so off I went, marching into
the high weeds. First I had to learn Java. Then came servlets and JSPs and
Tomcat. And along that path I also had to absorb Ant. And JUnit. And Log4J.
And then there was a bunch of time lost exploring NetBeans/Eclipse/WebSphere
before settling on JEdit as my environment of choice.

Then came Struts, and all the various taglibs. An experiment with Cayenne.
And Cactus. And god-knows what else I've explored.

And through it all, I am continually amazed at the strength and breadth of
the resources and support available. And equally frustrated by it. I can
never remember where I saw a particular bit of information. So when I
finally learn enough to understand what Ted was talking about in his
monograph on Connection Pooling, I can't remember where I saw it.

And when I want to learn enough about EJBs to figure out if I need to care
about them, or if they are relevant to my planned project, I have to wade
through another day of voluminous coverage before I have enough of a handle
on what they are to make some intelligent guesses about where to look next.

My point is that I believe the Apache/Java/Struts/... universe is quickly
reaching a point where its very breadth is becoming a barrier to entry for
people who don't have a couple of months to devote to bootstrapping
themselves.

Is there any thought being given to creating a higher-level resource
interface that could serve as a single point of reference for all things
Apache? (I realize that "all things java" would be going way too far.) As a
simple solution, if every document in the Apache infrastructure had a meta
tag that listed the questions answered by the document, then a very
powerful, automated FAQ could be maintained. And such a system would make it
much easier (I believe) to find things quickly than simply searching the
site for key words.

This may not be the best (or only) solution, but I do believe that for all
the very specific support and discussions there are, there is really very
little over-view material to assist newcomers or people looking for
information outside of their core area.

Or maybe I'm the only one who feels overwhelmed by it all. :-)

Jefficus



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



Re: Multiple application support

2003-03-07 Thread Thomas CORNET
Had the same problem.. You need to pass through the struts controller to 
use the modules, because this is the controller which is able to determine 
in which module you are. So you need to browse the result of an action to 
use modules. Just create an action without form in your 
struts-config-common.xml such as :



With a void action such as

public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
return mapping.findForward("ok");
}
And try to test 'http://localhost/app/common/index.do' instead of 
'http://localhost/app/common/index.jsp', this should work well :)

 Thomas

At 09:42 07/03/2003, you wrote:
Hi

I have some problems with struts multiple application support. I have 
build a second struts-config.xml called common-struts-config.xml and I 
have registered it in the web.xml.

  
action
org.apache.struts.action.ActionServlet
  
config
/WEB-INF/struts-config.xml
  
  
config/common
/WEB-INF/struts-config-common.xml
  

  debug
  4


  detail
  4

2
  
In my Index.jsp I have the folloging tag:

and I get an exception. I have debuged struts and I might have found the 
problem in the html:form tag but in the requestUtils. In FormTag.java line 
713: moduleConfig = RequestUtils.getModuleConfig(pageContext); And the 
procedure in RequestUtils: public static ModuleConfig 
getModuleConfig(PageContext pageContext) { ModuleConfig moduleConfig = 
(ModuleConfig) pageContext.getRequest().getAttribute(Globals.MODULE_KEY); 
if (moduleConfig == null) { // Backwards compatibility hack moduleConfig = 
(ModuleConfig) 
pageContext.getServletContext().getAttribute(Globals.MODULE_KEY); } return 
moduleConfig; } It searches only in the default module and not in the 
several modul-configuration. So I think here is one problem. Just my 
question: Has anyone have succeed with multiple struts-config-modules. 
Perhaps I make a mistake. Manfred 
- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For 
additional commands, e-mail: [EMAIL PROTECTED]


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


Re: [OT] Java method size limitations

2003-03-07 Thread Davor Cengija
Craig R. McClanahan wrote:

> 
> 
> On Thu, 6 Mar 2003, Davor Cengija wrote:
> 
>>
>> I had that problem in a compiled JSP page (therefore, in the created
>> servlet): a table with 150 rows and 8  columns (some
>> financial data).
>>
>> The solution was to split the table into 3 files and in the first one
>> just included the second and the third using . Now it
>> works just fine.
> 
> You might also be assisted by updated JSP page compilers that do not put
> the entire page into a single method.  For example, the Jasper2 compiler
> in Tomcat 4.1.18 takes care of this -- it splits your page into multiple
> methods as long as you are not using scriptlets.  (As an extra added
> benefit, the compiled pages run *much* faster than older Tomcat versions
> also :-).
> 

Thanks for the tip!

However, I didn't mention that I used WebSphere 4.0.3 and WebSphere 
Application Developer 4.0.3 (with WAS test environment 4.0.2 in it) for 
development. I don't know how to replace the JSP engine in WAS, and I don't 
think it would by very clever idea, anyway.

Has anyone tried it? Any tips?

Cheers,
Davor
-- 
[EMAIL PROTECTED]


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



RE: Struts and Cocoon Integration

2003-03-07 Thread ROSSEL Olivier
> There are at least two ways to handle the forwards: 
> explicitly using some
> sort of suffix/prefix (e.g. all paths that end in ".coc" will 
> be handled
> by the cocoon plugin) or simply pass all the request first to 
> cocoon and
> if cocoon doesn't handle it, process it normally.  The stxx plugin
> (http://sf.net/projects/stxx) uses the former while I chose 
> the latter.
> In my implementation, if you don't create a pipeline to match 
> the forward,
> it is processed by Struts normally.  It is trival to write code to use
> either method.
> 
> Hope that helps.

Cocoon has an impressive URl management system (for example, it can trigger
not on the URL but on some combination of request parameters if you want :-)
So Cocoon as the front-end is the best, IMHO.

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

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



Re: [Q] extends DynaValidatorActionForm

2003-03-07 Thread Jose Gonzalez Gomez
   Try this:

   ModuleConfig moduleConfig = (ModuleConfig) 
httpServletRequest.getAttribute( Globals.MODULE_KEY );
   FormBeanConfig supplierConfig = moduleConfig.findFormBeanConfig( 
"whateverYourBeanNameInStrutsConfig" );
   DynaValidatorActionForm actionForm = (DynaValidatorActionForm) 
DynaActionFormClass.createDynaActionFormClass( supplierConfig )
 
.newInstance(  );

   Regards
   Jose
WILLIAMS,RAND (HP-USA,ex1) wrote:

(Craig?)

I try to extend DynaValidatorActionForm,
using a no-argument constructor (as it has),
but when instantiating using the DynaBeanClass.newInstance( x, y, z ),
I am required to use a constructor( DynaClass ),
which DynaValidatorActionForm does not have...
Has anyone a working example of extending DynaValidatorForm, or
DynaActionForm?
Please let me know 

Thank you in advance!!

(PS Thank you for your answers so far!!)

Rand Williams
Hewlett-Packard
And It would be a bonus to show me how I can instantiate the new class
using something like this:
  824  BasicDynaClass dynaClass =
  825new BasicDynaClass(
  826   "DynaSmModelValidatorFormClass",
  827DynaSmModelValidatorForm.class,
  828props);
  829
  830  try {
  831DynaSmModelValidatorForm elementBean =
(DynaSmModelValidatorForm) dynaClass.newInstance();
java.lang.IllegalArgumentException: 
Class com.hp.sm.model.DynaSmModelValidatorForm does not have an appropriate
constructor
	at
org.apache.commons.beanutils.BasicDynaClass.setDynaBeanClass(BasicDynaClass.
java:310)
	at
org.apache.commons.beanutils.BasicDynaClass.(BasicDynaClass.java:128)

public class DynaSmModelValidatorForm extends DynaValidatorActionForm
{
 public DynaSmModelValidatorForm() {
   super();
 }
}
-
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]


Search result page with logic:iterate

2003-03-07 Thread Renato Romano
The  tag has attributes "offset" and "length" that
defines the starting element and the maximum number of elements to
iterate; I'd like to use those attributes to display the "X results per
page" navigation style of a search, but i'm looking for an easy way to
dynamically generate those values, and also adding links for 
and  page, or maybe (better) something like
 <1> <2> <3> ...  like in search engine result pages...
I'm sure there something ready to do the work.
Thanks

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



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



How do you keep your session junk free?

2003-03-07 Thread julian green
How do you prevent the session from filling up with junk from previous 
screens?  Or to put it another way:

I have written some screens that have to store the form bean in the 
session scope as each screen is interconnected and uses the same 
instance of the form bean.   If I change the scope to request a new form 
bean is created for each screen (every time a jsp file is rendered).  Is 
there a way of implementing multiple screens with the same form bean 
with a request scope?

Julian

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


Re: Struts-Tiles causes charset problem!!!

2003-03-07 Thread Cedric Dumoulin
 So you have a encoding type problem on the server side. This is not 
related to Tiles because you have the same problem with jsp:include.

  Have you try to specify the encoding in each faulty jsp:
<%@ page pageEncoding ..%>.
 You can also specify the encoding of the tiles-config.xml file:

 Hope this help,

   Cedric

Eric Chow wrote:

Hi Cedric,

The returned page has appropriate encoding tag.

Eric

- Original Message -
From: "Cedric Dumoulin" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 7:05 PM
Subject: Re: Struts-Tiles causes charset problem!!!
 

 Check if the returned page (the page source in the browser) has the
appropriate encoding tag.
The page encoding is usually set in your template.jsp file.
   Cedric

Eric Chow wrote:

   

Hi,

I want to display some Chinese in JSP(Customer Tag).

If my JSP as following: (showChineseContent.jsp)
===
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="/WEB-INF/tld/test.tld" prefix="test" %>
<%@ taglib uri="/WEB-INF/tld/share.tld" prefix="share" %>




Chinese Form






ID
Name











The above JSP works very well, I can retrieve those Chinese from database
 

and display them correctly.
 

After I change it to use Tiles as a template as following:

tiles-def.xml
=




in my showChinese.jsp
===



After changed to tiles, everything is wrong, all the Chinese displayed as
 

some QUESTION-MARKS !
 

Is there any problem in Tiles?  And, I tried to use 
 

page="showChineseContent.jsp" flush="true"/> instead of Tiles, it also not
worked.
 

Any idea on it?



Best regards,
Eric


 

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


custom validator IllegalAccessException

2003-03-07 Thread Dan Allen
I am attempting to get this identical field validator working and
after a long night I feel as if I am almost there.  However, this is
the latest ERROR reported when the field is undergoing validation.

java.lang.IllegalAccessException: Class
ERROR org.apache.commons.validator.Validator - reflection: Class
org.apache.commons.validator.Validator can not access a member of
class net.creativerge.struts.validator.FieldChecks with modifiers
"public static"

Okay, so what the heck does that mean?  My custom class has a single
method

public static boolean validateIdentical()

???

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Windows: where do you want your data to disappear to today?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: Tiles and appending request parameters

2003-03-07 Thread Cedric Dumoulin
 Hi,

Brandon Goodin wrote:

Thanks,

let me provide a more real world example and see what you would do.

- I have a menu that is customized according to the user.
- I have a tile that displays the menu data.
- I have a layout that has a 
- In my tiles-defs.xml I give the following definition for the "menu"
insert.

 


- The "tile.menu" contollerUrl needs to retrieve the userid from the
original action that called the mypage definition. Since the tile.menu
definition spawns it's own request I assume it does not have access to the
request of the parent page. Therefore, I was wondering if there is a way to
pass the userId down into the request that is spawned by the controllerUrl.
 Tiles use RequestDispatcher.include() to include a tile or call a 
controller. The original request is accessible in all the included tiles 
or controller. So, you can access the userId.

Here is a step through of the process I envision

request ->
Action ->
page that contains controllerUrl tile definition ->
menu tile calls controllerUrl Action ->
(Here is where I want to pass parameters into the request spawned by the
controllerUrl)
 Here you retrieve the userId, and create the appropriate user menu. 
There is several solutions:

   * set a tile attribute to a predefined menu definition
   * create dynamically a list of menu entry
   * ...
Action does it's magic ->
Action returns a page with a menu customized to a particular user.
 The action forward to the menu tile which retrieve the appropriate 
attribute and show it as a menu ...

 Check the example in struts-documentation/example: there is a user 
customizable menu. This menu is set in a controller according to what 
the user has chosen. The corresponding definition is in 
tiles-examples-def.xml (examples.userMenu).

  Cedric

Thanks for your help.

Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
-Original Message-
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 4:06 AM
To: Struts Users Mailing List
Subject: Re: Tiles and appending request parameters


 Hi,

 I think that the problem is not related to the Tiles. What you want is
to be able to add a request parameter to the current requestResponse.
 When Tiles include the controller via its url, is simply do an
include, and doesn't modify the requestResponse object. So, you still
have all the http parameters that are associated to the request. You can
yourself modify the requestResponse object in your action before
inserting the tiles. Check the jsp and servlet spec to know if it is
possible to add an http parameter. Personally I use to pass such extra
parameters in the request context or Tile context rather than a new http
parameter.
 Hope this help,

  Cedric

Brandon Goodin wrote:

 

Hey all,

I have asked this question in the past and have lived with the limitation
   

of
 

not being able to do it. The only reason why I ask now is that I recently
gave a quickstart presentation on tiles and wasn't sure if somethin had
   

been
 

added to remedy the problem. So, I wanted to pose it again to see if there
has been an enhancement that supports it or there is a viable workaround
that can produce the same results (without scriplets).
I have a layout that has an  that uses the controllerUrl attribute.
I want to append a parameter to the controllerUrl. Is this possible yet?
For example:

I have this definition:


When the page renders I want to attach the following request paramters to
the controllerUrl value:
?weatherStationID=KFCA

So that the controllerUrl ultimately calls:

...
controllerUrl="/do/weather?weatherStationID=KFCA"
...
The parameters will be supplied by the action that called the parent
   

layout.
 

This is not a realworld example. It is just a simple illustration. Please
   

do
 

not send me alternate approaches. I just want to know if dynamic parameter
appending is possible with tiles.
Thanks all.
Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


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


   



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


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



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


Re: custom validator IllegalAccessException

2003-03-07 Thread Dan Allen
Dan Allen ([EMAIL PROTECTED]) wrote:

> I am attempting to get this identical field validator working and
> after a long night I feel as if I am almost there.  However, this is
> the latest ERROR reported when the field is undergoing validation.
> 
> java.lang.IllegalAccessException: Class
> ERROR org.apache.commons.validator.Validator - reflection: Class
> org.apache.commons.validator.Validator can not access a member of
> class net.creativerge.struts.validator.FieldChecks with modifiers
> "public static"
> 
> Okay, so what the heck does that mean?  My custom class has a single
> method
> 
> public static boolean validateIdentical()

Ignore me, I am a fool.  My class was not declared as "public" so
obviously I could not have a public method.  Keep that in mind.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"I'm old enough to know better, but still too young to care."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Dynamic clientside validation checks?

2003-03-07 Thread Gunter D' Hondt
Hi,

We are generating our formbeans dynamically which results that the
regular way of clientside validation checks doesn't work anymore since
our validation.xml should only contain one form but we don't know which
formfields it will have.

Is there a way how we can dynamically send the xml stream (so not from
an xml file but built at runtime) and let the client validation get
imported to the JSP page? Or just another way of making the
validation.xml somewhere dynamic?

Any help is welcome!

Greetings,
Gunter D'Hondt.
 


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



Re: DynamicForwardAction

2003-03-07 Thread Eric Jain
> You can define an "unknown" action that responds to requests that no
> other actions are mapped to.  See section 4.7:
> http://jakarta.apache.org/struts/userGuide/building_controller.html

Finally got it working... If no action exists for a request that was
mapped to the Struts servlet, the request is forwarded to the default
servlet. This could be extended somewhat to handle forwarding to
specific servlets for handling other kinds of dynamic content. One minor
issue however is that I am not sure whether the default servlet has the
same name on all servlet containers.


public class DefaultAction
 extends Action
{
 public ActionForward execute(...)
  throws Exception
 {
  servlet.getServletContext().
getNamedDispatcher("default").
forward(request, response);
  return null;
 }
}


  


--
Eric Jain


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



Problem mapping/url

2003-03-07 Thread modena
Hi, i've a problem with url..how i retrieve the mapping of url in a jsp? for
example i have an jsp as index and an action-mapping as it:

now in another jsp call homeA.do and i see index.jsp in my browser, the url in
my browser is .../homeA.do but if i try to obtain this url (with
request.getRequestURI() )i obtain /index.jsp and not homeA.do that i would..
It's possible in a jsp retrieve the url that i see in my browser (in this case
homeA.do) instead of the real url???
i'm new to Struts..sorry for my stupid question.
Modena


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



broken in Strtus 1.1 rc1, html-el?

2003-03-07 Thread Jose Gonzalez Gomez
   It seems that  is broken in Struts 1.1rc1. I have a 
jsp with the following code:

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %>

   This page works fine, but whenever I change the uri to use the 
html-el taglib (http://jakarta.apache.org/struts/tags-html), the page no 
longer shows error messages. Has anybody else experienced this?

   Regards
   Jose


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


Re: Problem mapping/url

2003-03-07 Thread Eric Jain
> (with request.getRequestURI() )i obtain /index.jsp and not homeA.do

getRequestURI() should return the exact address the client requested,
minus query string. Perhaps you set redirect to true? But then the
address displayed in the browser should have been updated to index.jsp
as well.


--
Eric Jain


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



Re: Problem mapping/url

2003-03-07 Thread Nicolas De Loof


> > (with request.getRequestURI() )i obtain /index.jsp and not
homeA.do
>
> getRequestURI() should return the exact address the client
requested,
> minus query string. Perhaps you set redirect to true? But then the
> address displayed in the browser should have been updated to
index.jsp
> as well.
>
>
> --
> Eric Jain
>
>
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: How do you keep your session junk free?

2003-03-07 Thread Jörg Maurer
AFAIK, why not put form bean in hashtable under well known name in
application scope - last resort, cause as you mentioned request not
applicable, session not available you are in full charge of form
bean. populate that bean in application scope as you like from newly
created form bean or replace it all at once. Have to e.g. prepend key
with user information(getSessionID()) to get same bean for user back?

Greets Jörg

-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]
Sent: Freitag, 07. März 2003 10:33
To: Struts Users Mailing List
Subject: How do you keep your session junk free?


How do you prevent the session from filling up with junk from previous 
screens?  Or to put it another way:

I have written some screens that have to store the form bean in the 
session scope as each screen is interconnected and uses the same 
instance of the form bean.   If I change the scope to request a new form

bean is created for each screen (every time a jsp file is rendered).  Is

there a way of implementing multiple screens with the same form bean 
with a request scope?

Julian


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


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



Is Initial "" allowed in Struts

2003-03-07 Thread Pradeep . Ravle
Hi All,

Any body has encountered or know this problem.

I have got this entry for a particular field in struts

 

I have made the initial as "".

When I run in my development environment it works fine but when I
put it in Websphere 4.0 the application fails with NullPointerException.

I think this may be the problem line. Does the inital value of "" gives
this problem ??



Thanks in advance / Pradeep Ravle




Misys International Financial Systems Pvt Ltd
9th Floor Innovator Building
International Tech Park
Whitefield Road
Bangalore - 560 066 India

T  + 91 (0) 80 841 0666
F  + 91 (0) 80 841 0695

www.misys.com

This email message is intended for the named recipient only. It may be privileged 
and/or confidential. If you are not the intended named recipient of this email then 
you should not copy it or use it for any purpose, nor disclose its contents to any 
other person. You should contact Misys International Financial Systems at the address 
given above so that we can take appropriate action at no cost to yourself.

Misys International Financial Systems Pvt. Ltd. is part of Misys International Banking 
Systems (Misys-IBS) a member of the Misys Group of Companies.

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



Re: Problem mapping/url

2003-03-07 Thread Nicolas De Loof
(Sorry for previous empty message : too quickly clicked !)


On tomcat, websphere and Weblogic I get CURRENT servlet (and JSP) URI
when using
request.getRequestURI(). API Javadoc says :
"Returns the part of this request's URL from the protocol name up to
the query string in the first line of the HTTP request"

I think this appends :

When a forward is used, the RequestDispatcher object updates the
request, to put the "forwarded" URI :
(from javadoc) "For a RequestDispatcher obtained via
getRequestDispatcher(), the ServletRequest object has its path
elements and parameters adjusted to match the path of the target
resource".

So I don't this it is possible to get the "as in browser" URI.

Nico.

> > (with request.getRequestURI() )i obtain /index.jsp and not
homeA.do
>
> getRequestURI() should return the exact address the client
requested,
> minus query string. Perhaps you set redirect to true? But then the
> address displayed in the browser should have been updated to
index.jsp
> as well.
>
>
> --
> Eric Jain
>
>
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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



Re: How do you keep your session junk free?

2003-03-07 Thread Jose Gonzalez Gomez
   A few years ago, when Struts was not still available, we programmed 
a web layer framework much more primitive than Struts but with similar 
functionality for the project I was involved. One of the functionalities 
we had was request flow control, so we were sure that the user wasn't 
going back and forth and we had the right information in the session. 
Whenever there was a request that was not proper following the current 
flow, a message error was showed to the user, with the suggestion to 
begin the flow again.

   We didn't reach that far, but I think such a functionality may 
provide a way to define "wizards" or page flows and let the application 
have a callback method to clean the session stored in data in case the 
user leaves the wizard. This is a functionality that I'd love to have in 
Struts. Right now, I try to clean the session when I reach the final 
step of such a series of pages, but you are not guaranteed that the user 
ever reaches it.

   The other solution is having all the data introduced so far by the 
user in hidden fields (though I don't recommend it).

   Jose

Jörg Maurer wrote:

AFAIK, why not put form bean in hashtable under well known name in
application scope - last resort, cause as you mentioned request not
applicable, session not available you are in full charge of form
bean. populate that bean in application scope as you like from newly
created form bean or replace it all at once. Have to e.g. prepend key
with user information(getSessionID()) to get same bean for user back?
Greets Jörg

-Original Message-
From: julian green [mailto:[EMAIL PROTECTED]
Sent: Freitag, 07. März 2003 10:33
To: Struts Users Mailing List
Subject: How do you keep your session junk free?
How do you prevent the session from filling up with junk from previous 
screens?  Or to put it another way:

I have written some screens that have to store the form bean in the 
session scope as each screen is interconnected and uses the same 
instance of the form bean.   If I change the scope to request a new form

bean is created for each screen (every time a jsp file is rendered).  Is

there a way of implementing multiple screens with the same form bean 
with a request scope?

Julian

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



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


RE: How do you keep your session junk free?

2003-03-07 Thread Andrew Hill
Take a look at the workflow extension. I think it does something along those
lines.

http://www.livinglogic.de/Struts/

-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 20:23
To: Struts Users Mailing List
Subject: Re: How do you keep your session junk free?



A few years ago, when Struts was not still available, we programmed
a web layer framework much more primitive than Struts but with similar
functionality for the project I was involved. One of the functionalities
we had was request flow control, so we were sure that the user wasn't
going back and forth and we had the right information in the session.
Whenever there was a request that was not proper following the current
flow, a message error was showed to the user, with the suggestion to
begin the flow again.

We didn't reach that far, but I think such a functionality may
provide a way to define "wizards" or page flows and let the application
have a callback method to clean the session stored in data in case the
user leaves the wizard. This is a functionality that I'd love to have in
Struts. Right now, I try to clean the session when I reach the final
step of such a series of pages, but you are not guaranteed that the user
ever reaches it.

The other solution is having all the data introduced so far by the
user in hidden fields (though I don't recommend it).

Jose

Jörg Maurer wrote:

>AFAIK, why not put form bean in hashtable under well known name in
>application scope - last resort, cause as you mentioned request not
>applicable, session not available you are in full charge of form
>bean. populate that bean in application scope as you like from newly
>created form bean or replace it all at once. Have to e.g. prepend key
>with user information(getSessionID()) to get same bean for user back?
>
>Greets Jörg
>
>-Original Message-
>From: julian green [mailto:[EMAIL PROTECTED]
>Sent: Freitag, 07. März 2003 10:33
>To: Struts Users Mailing List
>Subject: How do you keep your session junk free?
>
>
>How do you prevent the session from filling up with junk from previous
>screens?  Or to put it another way:
>
>I have written some screens that have to store the form bean in the
>session scope as each screen is interconnected and uses the same
>instance of the form bean.   If I change the scope to request a new form
>
>bean is created for each screen (every time a jsp file is rendered).  Is
>
>there a way of implementing multiple screens with the same form bean
>with a request scope?
>
>Julian
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


-
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:text property problem

2003-03-07 Thread Mohan Radhakrishnan
Hi,

  I am trying to use the following



to set the property in a html:text box. The property is of type String[]. So
I am using the above indexed property access method.



I have also put the following check in my form.

public String getStartDateIndexed( int index ) {
if( startDate_ == null ){
startDate_ = new String[]{ new
DateUtility().getCurrentDate() };
}
return startDate_[ index ];
}

along with pre-population of the html:text boxes. Inspite of all this
sometimes the following exception is thrown.

  Anybody see any chinks in the armour above. What more error checks does it
need ? Is it the right way with Struts 1.0 ?

java.lang.NullPointerException
at
org.apache.struts.util.PropertyUtils.getIndexedProperty(PropertyUtils.java:3
72)
at
org.apache.struts.util.PropertyUtils.getIndexedProperty(PropertyUtils.java:3
14)
at
org.apache.struts.util.PropertyUtils.getNestedProperty(PropertyUtils.java:42
4)
at
org.apache.struts.util.PropertyUtils.getProperty(PropertyUtils.java:453)
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:503)
at
org.apache.struts.taglib.bean.DefineTag.doStartTag(DefineTag.java:200)
at
org.apache.jsp.visibleleftpanel_jsp._jspService(visibleleftpanel_jsp.java:21
7)

Thanks
Mohan

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



WebWork vs Struts

2003-03-07 Thread Nicolas De Loof
Hi,

Reading Hibernate doc, I discovered xPetstore
(http://xpetstore.sourceforge.net/index.html), an implementation of
SUN java pet store with xDoclet.
In fact, they're is 2 implementations :
- one based on Struts & EJB
- the other based on WebWork & Hibernate.

As I don't know about Webwork (http://www.opensymphony.com/webwork/),
does anyone have info about differences (or commons) between Struts an
WebWork ?

Nico.


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



Re: Problem mapping/url

2003-03-07 Thread Eric Jain
> So I don't this it is possible to get the "as in browser" URI.


You're right, just checked SRV.8.4. Strange that this had never bitten
me, of course I always use html:link @page or @action...

Perhaps one workaround would be to store the original request object as
a request attribute in the Action class?


--
Eric Jain


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



How to compare two beans using logic tags

2003-03-07 Thread Renato Romano
Does anyone knows how to compare two beans (or beans properties) using
logic:equal or logic:greaterThan tags ?In the docs it is said that the
"value" attribute should be a constant value ...
Thanks


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_




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



error in action

2003-03-07 Thread modena
Hi, if i've an a page that call an action if in this action i've an error how i
return to page that invoked the action? i try to use mapping.getInputForward(),
but this return me the path of my action...i try to save the url but have a
problem (see my preavious mail Problem mapping/url)...there is an method like
javascript:history.go(-1)??
sorry for my stupid question,thanks.
Ale


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



Re: How to compare two beans using logic tags

2003-03-07 Thread Nicolas De Loof


 ...


Nico.

> Does anyone knows how to compare two beans (or beans properties)
using
> logic:equal or logic:greaterThan tags ?In the docs it is said that
the
> "value" attribute should be a constant value ...
> Thanks
>
> 
> Renato Romano
> Sistemi e Telematica S.p.A.
> Calata Grazie - Vial Al Molo Giano
> 16127 - GENOVA
>
> e-mail: [EMAIL PROTECTED]
> Tel.:   010 2712603
> _
>
>
>
>
> 
-
> 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]



Sessions Again (Last Time)

2003-03-07 Thread JONATHAN PHILIP HOLLOWAY
Ok can somebody clarify this, I have one JSP that uses two actions,
If I use Action A exclusively then only one session will be used but if
I try to use Action B from the same JSP will a new session be
created?

Jon.

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


RE: [OT] IDE / ERD modeling (Was: Re: struts IDE)

2003-03-07 Thread Chappell, Simon P
Might have been "dia". That is a standard part of most Redhat installs. I haven't made 
it to 8.0 yet. My last Redhat install was 7.3

Simon

>-Original Message-
>From: Simon Kelly [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 07, 2003 1:08 AM
>To: Struts Users Mailing List
>Subject: Re: [OT] IDE / ERD modeling (Was: Re: struts IDE)
>
>
>I was insalling Red Hat 8.0 last night, and am damn sure I saw 
>a modling
>package being installed.  I'll have a look through it tonight 
>and mail if I
>find anything.
>
>Cheers
>
>Simon
>
>
>- Original Message -
>From: "Becky Norum" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Thursday, March 06, 2003 5:44 PM
>Subject: [OT] IDE / ERD modeling (Was: Re: struts IDE)
>
>
>> I've stayed quiet on this since I've used IDEs rarely.  I stick with
>> xemacs and vi when necessary.  I've been curious how much an IDE like
>> JDeveloper speeds up the process, once you are familiar with it.  I
>> tried it for a couple of hours once, but found it kind of a pain to
>> use.  Is spending time learning one's way around really worth it?
>>
>> OTOH, there are times when a typo in my struts-config.xml or web.xml
>> waste an hour or two my time, and having some sort of 
>validation would
>> be great.
>>
>> And _really_ off-topic, what do you folks use for ERD 
>modeling in *nix?
>> I haven't been able to get DIA or xfig to generate decent 
>looking .eps
>> for papers, so I.. um.. do them in Windows.  Any other (free 
>- we are a
>> poor academic research center :D) modeling software out there people
>> use?  Or tips on maximizing xfig/DIA?
>>
>> --
>> Becky Norum <[EMAIL PROTECTED]>
>> Becky Norum
>> Database Administrator
>> Center for Subsurface Sensing and Imaging Systems (CenSSIS)
>> Northeastern University
>> http://www.censsis.neu.edu
>> >
>> > --- Dejan Krsmanovic <[EMAIL PROTECTED]>
>> > wrote:
>> > > I have used 9.0.3 for building few struts
>> > > applications and I can say it
>> > > saved me a lot of time. They have integrated few
>> > > wizards for working with
>> > > config files and support for taglibs (autocomplete
>> > > etc.). However I have
>> > > found few bugs (for example when specifying data
>> > > source configuration in
>> > > struts-config). Also, there was no support for tiles
>> > > and validator.
>> > >
>> > > These days I saw Oracle has released maintainance
>> > > version - 9.0.3.1, but I
>> > > haven't downloaded it yet.
>> > >
>> > > Dejan
>>
>>
>>
>>
>> -
>> 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: Where can I find Example

2003-03-07 Thread rasy chet
I can't see anything wrong with your code. If you
want, you can download the source code from the book's
website at www.wiley.com/compbooks/goodwill 

rc
--- Rama <[EMAIL PROTECTED]> wrote:
> Hi,
> I have been trying to implement Struts for a simple
> applicaiton.
> I am using WLS 6.1 and Struts 1.02. 
> 
> 
> Application: User enters a stock symbol and clicks
> submit button in the index page.
> if the value is "SUNW" , it is success and value is
> displayed,
> else it is failure , user is forwarded to starting
> index page.
> 
> Here is the following code
> 
> 
> index.jsp
> 
> <%@ page language ="java" %>
> <%@ taglib uri="/WEB-inf/struts-html.tld"
> prefix="html" %>
> 
>  type="LookupForm" >
> Symbol : 
>   
> 
> .
> 
> 
> 
> 
> LookupAction.java
> import java.io.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import org.apache.struts.action.*;
> 
> public class  LookupAction extends Action
> {
>   protected Double getQuote(String symbol)
>   {
>   if (symbol.equalsIgnoreCase("SUNW") )
>   {
>   return new Double(25.00);
> 
>   }
>   return null;
>   }
> 
>   public ActionForward execute(ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest request,
>   HttpServletResponse response) throws
> ServletException,IOException
>   {
>   Double price = null;
>   // set default target to success
> 
>   String target = new String("success");
> 
>   if (form != null)
>   {
>   // use the LookupFoprm to get request parameters.
> 
>   LookupForm lookupForm = (LookupForm)form;
> 
>   String symbol = lookupForm.getSymbol();
> 
>   price = getQuote(symbol);
> 
>   }
>   // set the target to failure
>   if (price == null)
>   {
>   target = new String("failure");
> 
>   }
>   else
>   {
>   request.setAttribute("PRICE", price);
>   }
> 
>   // forward to the appropriate view
>   return(mapping.findForward(target) );
> 
>   }
> }
> 
> 
> 
> LookupForm.java
> import java.io.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import org.apache.struts.action.ActionForm;
> import org.apache.struts.action.ActionMapping;
> 
> public class  LookupForm extends ActionForm
> {
>   private String symbol = null;
> 
>   public String getSymbol()
>   { 
>   return (symbol);
>   }
>   public void setSymbol(String symbol)
>   {
>   this.symbol = symbol;
>   }
> 
>   public void reset(ActionMapping mapping,
> HttpServletRequest request)
>   {
>   this.symbol=null;
>   }
> 
> }
> 
> 
> 
> 
>  struts-config.xml
> 
>  Foundation//DTD Struts Configuration 1.0//EN"
>
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> 
>   
>   
>   
>   
>   
>name="lookupForm" input="/index.jsp">
>   
>   
>  
>   
> 
> 
> 
> 
> 
> This is the excerpt from web.xml
>   
>   /WEB-INF/struts-html.tld
> 
>
/WEB-INF/struts-html.tld
>   
> 
>  
>   action
> 
>
org.apache.struts.action.ActionServlet
>   
>   config
>   
>
/WEB-INF/struts-config.xml
>   
>   1
> 
> 
> 
>   action
>   *.do
> 
>  quote.jsp
> .
> 
>   Current Price : <%= request.getAttribute("PRICE")
> %>
>   
> ...
> 
> 
> When I entered the SUNW in the text box, I am
> forwarded to a blank page. 
> I am not seeing any results... why??? 
> 
> Please anyone let me know what I am missing?
> Any ideas are really appreciated
> Thanks in Advance
> Rama
> 
> 
> 



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

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



Re: Sessions Again (Last Time)

2003-03-07 Thread Nicolas De Loof
>
> Ok can somebody clarify this, I have one JSP that uses two actions,
> If I use Action A exclusively then only one session will be used but
if
> I try to use Action B from the same JSP will a new session be
> created?
>
> Jon.

Do you mean JSP has two forms (with different action) ?

In any case, if a session has been created on server by a first
browser request, every new request will be linked to this session
(until timeout or browser restart). What server resource is requested
(JSP, action ...) doesn't matter.

(Don't forget session is not a struts feature but a J2EE servlet
container feature.)

Nico.



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



[Repost] Cannot Cast to Map

2003-03-07 Thread Jerry Jalenak

I'm in dire need of some help on this.  I can't seem to figure out
what has changed.  This worked with a mid-Feb build of 1.1b3, but has quit
working since I swapped in the 1.1rc1 build from both 03/05 and 03/06.
Please?  Anyone?





I'm getting the following message from the  tags following
conversion to the 1.1rc1 nightly build from 3/5:

[ServletException in:/WEB-INF/tiles/membersolutions/menu.jsp] Cannot
cast to Map for name=Authenticated_UserKey property=null scope=null' 

The jsp looks like

<%@ taglib uri="/bean"  prefix="bean"   %>
<%@ taglib uri="/display"   prefix="display"%>
<%@ taglib uri="/html"  prefix="html"   %>
<%@ taglib uri="/logic" prefix="logic"  %>
<%@ taglib uri="/nested"prefix="nested" %>
<%@ taglib uri="/tiles" prefix="tiles"  %>
<%@ page language="java" %>








 







 

 












Any ideas?



TIA.

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

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



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



RE: Sessions Again (Last Time)

2003-03-07 Thread Andrew Hill
Of course you have to be sure that the session id is included in the action
url (afaik struts form tag will do this for you) if your not using cookies
or all requests might end up creating a new session!

-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 21:56
To: Struts Users Mailing List; JONATHAN PHILIP HOLLOWAY
Subject: Re: Sessions Again (Last Time)


>
> Ok can somebody clarify this, I have one JSP that uses two actions,
> If I use Action A exclusively then only one session will be used but
if
> I try to use Action B from the same JSP will a new session be
> created?
>
> Jon.

Do you mean JSP has two forms (with different action) ?

In any case, if a session has been created on server by a first
browser request, every new request will be linked to this session
(until timeout or browser restart). What server resource is requested
(JSP, action ...) doesn't matter.

(Don't forget session is not a struts feature but a J2EE servlet
container feature.)

Nico.



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



GET/POST in Actions & Form Validation

2003-03-07 Thread Stefan Arentz
Hi,

This is my first web app with Struts, so please be gentle :-)

I am trying to implement the following pattern:

 On GET:

  - Populate a form with fields OR show an empty form
  - Show the form
 On POST:

  - Validate the form, show it again if it has errors.

Very basic, but yet, I can't find the correct way to do this with 
Struts.

I have not seen one piece of example code that looks at the request 
method to make the distinction between showing the initial empty form 
(GET) or processing it (POST).

In my code I do basically this:

 execute()
 {
if (request.getMethod().compareTo("GET") == 0)
{
   ... code to setup the session ...
   return mapping.findForward("AddRecord"); // Shows the form
}
if (request.getMethod().compareTo("POST") == 0)
{
   ... execute some business logic ...
   return mapping.findForward("Success"); // Goes back to were we 
came from
}
  }

But the problem here is that when I forward to the AddRecord forward, 
the form is validated, which in case of an empty initial form will show 
errors for each field. I can set validate to false in my action 
definition but then validation is also skipped when I need it.

The forward is defined like this:

  

This must be very basic, but it is very difficult to find a clear 
answer in the large amount of Struts related resources :-/

 S.

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


Re: WebWork vs Struts

2003-03-07 Thread Mark
I'm sure that subject has come up a lot in the past, perhaps consult the mailing list 
archives.

After starting our project with struts, and fumbling over configuration stuff, I had a 
cursory look at webwork and decided that "i just dont get it" and stuck with struts.

Good luck,
Mark

*** REPLY SEPARATOR  ***

On 03/07/2003 at 1:34 PM Nicolas De Loof wrote:

>Hi,
>
>Reading Hibernate doc, I discovered xPetstore
>(http://xpetstore.sourceforge.net/index.html), an implementation of
>SUN java pet store with xDoclet.
>In fact, they're is 2 implementations :
>- one based on Struts & EJB
>- the other based on WebWork & Hibernate.
>
>As I don't know about Webwork (http://www.opensymphony.com/webwork/),
>does anyone have info about differences (or commons) between Struts an
>WebWork ?
>
>Nico.
>
>
>-
>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: Avoiding refresh stomping

2003-03-07 Thread Mark
I've resolved this type of problem by using a redirect instead.  This way, if they 
refresh, they only refresh the current page (which should just render a view, not 
process any business logic).

It also depends on where you have your business logic.

Regards,
Mark

*** REPLY SEPARATOR  ***

On 03/07/2003 at 12:25 AM Jeff Smith wrote:

>I worry about users. I've been one. I know how unpredictable we can be. :-)
>
>Take this case. I have a struts app and I want users to be able to log in. Pretty 
>simple. In fact, it is probably the most common scenario implemented in samples and 
>tutorials.
>
>Being a good host, I like to keep track of my guests. So when my users log in, I want 
>to time-stamp them so I know how long they've been connected.
>
>My action-forward for login success takes me to a pretty page that gives my users 
>stats about their last logon (in case somebody is using their account without their 
>knowledge) and a bunch of other stuff.
>
>So they tend to sit on that page and read it for a while.
>
>Then (and here's the unpredictable user part) for some reason, they hit the refresh 
>button on their browser. Well, since they got here as an action forward from the 
>authentication sequence, the refresh resubmits all their logon credentials, the 
>system re-authenticates them and then takes them, finally, back to the page they've 
>been reading and refreshes it. And in that process, my login timestamp is stomped 
>with a newer one.
>
>Now, I have already figured out a few ways to short circuit the re-authentication 
>(like, don't authenticate a user who is already logged in.) But the question is, 
>where else could my users be inadvertently causing spurious recursions into 
>potentially costly sequences by ignorantly hitting the refresh button? I can imagine 
>that some of my action sequences might invoke some fairly expensive computations 
>before displaying the results. But do I *REALLY* want to recompute the whole thing 
>when my users hit refresh? In the case of rendering dynamic content, maybe I do. But 
>for transactional stuff like logging in, or submitting a credit card for 
>authentication, I probably don't want to re-compute on refresh.
>
>Am I the only one who worries about stuff like this?
>
>I want my site to be bullet proof, idiot proof and all-kinds-of-other-things-proof. 
>I'd be curious to know how other people handle this situation.
>
>
>Jefficus




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



Re: GET/POST in Actions & Form Validation

2003-03-07 Thread modena
You can set validate="false" and call the validation method from action if you
would..
try it.


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



Re: GET/POST in Actions & Form Validation

2003-03-07 Thread Stefan Arentz
On Friday, Mar 7, 2003, at 15:13 Europe/Amsterdam, [EMAIL PROTECTED] 
wrote:

You can set validate="false" and call the validation method from 
action if you
would..
try it.
Ah! Good advise. I didn't think of that :-/

I also got it to work with an extra action where validation was set to 
false, but doing the validation programatically is much nicer.

Thanks!

 S.

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


RE: date format problems

2003-03-07 Thread apachep2
Never try to store a date as a string. It creates a lot of date format
problems. As I have said, store it as a long so that you can easily do
the conversion.

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: March 6, 2003 6:42 PM
To: 'Struts Users Mailing List'
Subject: SV: date format problems

Hi.
Thanks for all the answers

I was trying different things because nothing would work for me.

I need one thing:

Convert the String value theForm.GetMyDate() so that I can insert it in
my sql as -MM-dd.

I get the error java.lang.IllegalArgumentException: Cannot format given
Object as a Date

I will look at BeanUtils.copyProperties( beanToCopyTo, beanCopyingFrom
);, but it is probably to complicated for me just now!

What is the best way to fix it?

-Oprindelig meddelelse-
Fra: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sendt: 6. marts 2003 16:31
Til: 'Struts Users Mailing List'
Emne: RE: date format problems

The "standard" for an actionForm is to have every field as String.
All conversion (which should really be thought of as business logic)
should
occur in the Action classes or further down the food chain. If this is
not
possible in your case or does not solve what your working on then can
you
please give more details?
-Tim


-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 10:21 AM
To: Struts Users Mailing List
Subject: RE: date format problems


I'm no expert at struts but I  convert and validate my dates in my
Action or
Business Class instead of the Form.  I could be completely off-base here
in
my interpretation of the struts ActionForm though  

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 10:07 AM
To: [EMAIL PROTECTED]
Subject: date format problems


Hi.

I have an action that gets a date from the MS SQL 2000 in -MM-dd. I
convert it with simpledateformat as dd-MM- and put it in a jsp form.
When submitting the form the date must be coverted back to -MM-DD
before another actions update the db.

I am trying to convert the date value in the ActionForm, but I am
getting the following error.

Any idears? I am lost and it is very urgent

Søren Blidorf


HTTP Status 500 - 




type Exception report

message 

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

exception 

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.jav
a:2061)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catali

SV: date format problems

2003-03-07 Thread Søren Blidorf
Yes, it's a good point, but the only place my date is a String, is in
the ActionForm.

Would you store the date as long there?

-Oprindelig meddelelse-
Fra: apachep2 [mailto:[EMAIL PROTECTED] 
Sendt: 7. marts 2003 15:22
Til: 'Struts Users Mailing List'
Emne: RE: date format problems

Never try to store a date as a string. It creates a lot of date format
problems. As I have said, store it as a long so that you can easily do
the conversion.

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED] 
Sent: March 6, 2003 6:42 PM
To: 'Struts Users Mailing List'
Subject: SV: date format problems

Hi.
Thanks for all the answers

I was trying different things because nothing would work for me.

I need one thing:

Convert the String value theForm.GetMyDate() so that I can insert it in
my sql as -MM-dd.

I get the error java.lang.IllegalArgumentException: Cannot format given
Object as a Date

I will look at BeanUtils.copyProperties( beanToCopyTo, beanCopyingFrom
);, but it is probably to complicated for me just now!

What is the best way to fix it?

-Oprindelig meddelelse-
Fra: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sendt: 6. marts 2003 16:31
Til: 'Struts Users Mailing List'
Emne: RE: date format problems

The "standard" for an actionForm is to have every field as String.
All conversion (which should really be thought of as business logic)
should
occur in the Action classes or further down the food chain. If this is
not
possible in your case or does not solve what your working on then can
you
please give more details?
-Tim


-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 10:21 AM
To: Struts Users Mailing List
Subject: RE: date format problems


I'm no expert at struts but I  convert and validate my dates in my
Action or
Business Class instead of the Form.  I could be completely off-base here
in
my interpretation of the struts ActionForm though  

-Original Message-
From: Søren Blidorf [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 10:07 AM
To: [EMAIL PROTECTED]
Subject: date format problems


Hi.

I have an action that gets a date from the MS SQL 2000 in -MM-dd. I
convert it with simpledateformat as dd-MM- and put it in a jsp form.
When submitting the form the date must be coverted back to -MM-DD
before another actions update the db.

I am trying to convert the date value in the ActionForm, but I am
getting the following error.

Any idears? I am lost and it is very urgent

Søren Blidorf


HTTP Status 500 - 




type Exception report

message 

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

exception 

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.jav
a:2061)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:550)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
5)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipeli

Re: SV: date format problems

2003-03-07 Thread Rick Reumann
On Fri, 7 Mar 2003 15:26:49 +0100
Søren Blidorf <[EMAIL PROTECTED]> wrote:

> Yes, it's a good point, but the only place my date is a String, is in
> the ActionForm.
> 
> Would you store the date as long there?


With all due respect to apachep2 I would store myDate as a String in an
ActionForm bean and then in your business class you store your Date as
the Date you want (I prefer java.util.Date).

So now the question becomes how do you quickly copy all of your String
form bean properties into this business bean that has a type:
java.util.Date.\

In your action you submit to you do:

BeanUtils.copyProperties( yourBusinessBean, yourActionFormBean )


BUT, as you have realized copyProperties will not work for
java.util.Date. So you need to register a converter.


I posted about this a while a back and a search of the archives reveals
the link below. I would change one thing though... following Craig's
suggestion it's cleaner to register the converter as a Plugin which you
can do easily in your struts-config file. Since all my DispatchAction
classes extend a BaseAction I registered the converter there in a static
block, which works, but it's just cleaner as a Plugin since you could
easily swap out the converter at a later time.

Let me know if this link helps. If you are still having trouble let me
know.

http://marc.theaimsgroup.com/?l=struts-user&m=103487187525032&w=2


-- 
Rick Reumann

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



Re: broken in Strtus 1.1 rc1, html-el?

2003-03-07 Thread David M. Karr
> "Jose" == Jose Gonzalez Gomez <[EMAIL PROTECTED]> writes:

Jose> It seems that  is broken in Struts 1.1rc1. I have a jsp 
with
Jose> the following code:

Jose> <%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" %>
Jose> 

Jose> This page works fine, but whenever I change the uri to use the html-el
Jose> taglib (http://jakarta.apache.org/struts/tags-html), the page no longer shows
Jose> error messages. Has anybody else experienced this?

There was a bug in the el Errors tag in rc1, which is fixed in the nightly
build.  The fix will be in the next RC (if there is one), and in the final
release.

-- 
===
David M. Karr  ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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



Re: [NESTED-TAGS]Anyone using nested tags with the latest nightly build?

2003-03-07 Thread Jeff_Mychasiw

Thanks for the reply:

-- IMG Tag -
Thanks for the guideline on the use of the property property.
I really thought I covered the doc's but I guess that did not jump out at
me.  Now that I look back, you clearly state it at the top of the API docs.
". The original tags on occasion provide options that don't use the "name"
and "property" attributes. These uses will then fall outside the nested
context, and will most likely cause error. To take advantage of these
options, markup using the original tag for these cases."

My only issue:
The release of the nested  tags from  1.1b2 let you get away with some
nested tag "mis-use".
My problem with the IMG tag is not present on 1.1b2. My first thought is
that if any nested:tags  *may* fail without at least *name* or *property*
then the tag should indicate so.
I will admit that when building many pages, if the tag works and does not
complain I move on.
It seemed I got different errors with the nested:img tag:
Both were solve by replacing with the html:img tag, as you said.

javax.servlet.jsp.JspException: No getter method for property  of bean
taskListForm
 at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:881)
 at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:622)

and

javax.servlet.jsp.JspException: Object must be of type Map
  at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:628)
  at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410)
  at 
org.apache.struts.taglib.nested.html.NestedImgTag.doEndTag(NestedImgTag.java:106)


So I guess in summary a message such as: "You must have at least one of
these properties: "
-- Radio Tag ---

 I should say again that the following file works under TC4.0.4/1.1b2
but not with the last nightly and TC4.0.4  ***

I use the radio button as in this file:


 
 
 
 

 
  <>
 
 

  
   
  
  


This first include works:

<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>




  Customer:
   


  Invoice:
  




This the include that gives the compile error in my previous email:

<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>




  All
  
  Open
  





Thanks again

Jeff Mychasiw




"Arron Bates" <[EMAIL PROTECTED]> on 03/07/2003 12:08:10 AM

Please respond to "Struts Users Mailing List"
   <[EMAIL PROTECTED]>

To:"Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:

Subject:Re: [NESTED-TAGS]Anyone using nested tags with the latest
   nightly build?


Jeff,

I can fix the first problem with the  tag... don't use it. :P

Use the  tag instead. The error's coming through because of the
old nested mantra that if you don't want the "property" property to be
managed
and set, then use the original tags. You're using "pageKey" instead of the
name/property duo, and internally the nested tags are evaluating the
property
property to an empty string, and the attempting to dance.


As for the radio tag in the include file... it will depend on the context
of
where it's included in the parent file. Can I get a snippet of the tag
layout
that it's nesting against in the parent JSP?... it holds the key to the
problem. Once I have that detail, I may be able to get somewhere.

And there's nothing wrong with long emails. :)


Arron*


* ...somewhere in the back of my head was the possibility I'd get out of
this
update without a bug being raised. what fools these monkeys be...

> I Had read that Arron had submitted patches to the nested tags to allow
the
> upgrade to tomcat 4.1.x.
> (I assume that the zip jakarta-struts-20030306 contains the nested fixes)
>
> We are currently developing on TC4.04 with 1.1b2.
>
> I dropped that latest binaries in and got several problems (compile
errors)
> on many pages that work fine other wise.
>
> If I understand the upgrade.I just replace the JARS, *.tld, and the
> *.dtd 's...?
>
> This is not all the problems but two main ones are the nested:img tag and
> the nested:radio tag
>
> With a usage such as:
> 
> I get:
> javax.servlet.jsp.JspException: No getter method for property  of bean
taskListForm
> at
org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:881)
> at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:622)
> at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410)
> at
org.apache.struts.taglib.nested.html.NestedImgTag.doEndTag(NestedImgTag.java:106)

> at
org.apache.jsp.TaskListMainForm$jsp.
_jspService(TaskListMainForm$jsp.java:390)
> at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> ..
>
> If I replace it with:
> 
> It will work Fine.
>
> The nested:radio tag gives me this:

RE: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- Early Access Version Now Available

2003-03-07 Thread PILGRIM, Peter, FM
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
> 
> 
> I'm happy to announce the immediate availability of an 
> integration library
> that allows you to use the recently published EA3 release of 
> JavaServer
> Faces  with a recent Struts
> build (nightly build 20030216 or later, or the upcoming 
> 1.1-rc2 or final
> release).  Nightly builds of this package are available at:

*CONGRATULATIONS*

----

> * The design goal of this library was to allow Struts application
>   developers to migrate the view tier of their applications from the
>   existing Struts tags, to pages that use corresponding 
> JavaServer Faces
>   component tags, with no changes to the corresponding business logic.
>   This goal has been substantially achieved for simple applications
>   so far; additional work will be necessary for more advanced apps.
>   As a proof of concept, the JavaServer Faces based version of the
>   canonical "struts-example" web application is included in the
>   distribution, so that you can see for yourself how little had to be
>   changed.
> 

Are the Struts tags including the Struts-EL going to deprecated?
Some applications in production will still use these tags,
especially for this concise XML writing forms, even though
they are JSTL.

What is the future of custom tags in Struts? Will you off-load
them to the JSTL and third party altogether or do intend
to support just a small subset like the Tiles and Validations
tags.

----

> 
> * The JavaServer Faces distribution is an EA release, not suitable for
>   use in production environments.  In addition, the license terms
>   under which it can be downloaded prohibit redistribution.  
> Therefore,
>   you will need to download your own copy of JavaServer Faces EA3 and
>   integrate it with the example application before it can be deployed.
> 

----

So it is not production ready. But it is exciting to see something now.
In Expresso we also have legacy tag libs, which really be upgraded
to JSTL and Expression Language support. So I be interested in your
views on the tag lib issues.

BTW: I got a Expresso Framework working Struts 1.1 beta 3 successfully.
I decided to use a plug-in and request processor configured from XML
config instead. It is a lot less hastle, and easy to write a README
document with instructions.

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



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

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


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



Struts & Tiles & Validator Logging

2003-03-07 Thread Brown, Melonie S. - Contractor
Title: Struts & Tiles & Validator Logging





I have noticed a number of posts by people asking how to restrict the logging for struts/tiles/validator and have noticed responses ranging from RTFM to detailed info with sample log4j properties files.  

Wishing to reduce the verbosity of the logs, I downloaded the latest log4j jar, added it in to my lib folder and to the project library, created a log4j.properties file and commons-logging.properties file and placed both into my src folder so they would be in my classpath (I'm using Eclipse, so it gets copied to the classes folder).  I used the properties files from Eddie Bush's posting (at the end of post), rebuilt my project, fired up Tomcat and *voila* the log messages continued to spew.  

Trying to cover all of my bases,  I went to the Struts website and looked under the FAQ's and HowTo's.  None of these documents address logging.  I then went to the User & Developer Guides.  Section 4.10 says that Struts uses commons logging and has a link to the commons section of the jakarta site, but no details on how to configure for Struts.

The Learning More About Struts section of the Jakarta site has a link to the BaseBeans NewsGroup version of the Struts mailing list - but the Basebeans server has been down since last fall, so the link doesn't work.  [Suggestion - change to news.gmane.org]. No wonder this question gets asked so frequently!  Anyway, what steps am I missing in configuring the logging?   I'm using Struts 11B3.

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



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

Re: paginator tags

2003-03-07 Thread Ashish Kulkarni
Hi
here is how to define the taglib in web-inf

http://jsptags.com/tags/navigation/pager
/WEB-INF/pager-taglib.tld



Here is in nutshell all u need to do for setting
paging tablib in jsp
//declare jsp tag in taglib
<%@ taglib
uri="http://jsptags.com/tags/navigation/pager";
prefix="pg" %>


CachedRowSet crs = result.getCachedData();

<% while (crs.next())
  {
  %>
  
  <%

  

 



 

   




 <%=
pageNumber %>
  




 

 

 




 
I hope this helps
I am also attaching one of the jsp along this mail for
your reference

Ashish








--- Richard Raquepo <[EMAIL PROTECTED]> wrote:
> Can you give me actual jsp code on how you used the
> pager tag. i find it
> hard to customize it. thanks
> - Original Message -
> From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 5:36 AM
> Subject: Re: paginator tags
> 
> 
> > Hi
> > u may wanna have a look at this
> > http://jsptags.com/tags/navigation/pager/index.jsp
> >
> > it works well for me
> >
> > Ashish
> >
> > --- alexj <[EMAIL PROTECTED]> wrote:
> > > you may use  or struts-el
> > > here is a sample from JSTL in Action :
> > > <%@ taglib prefix="c"
> > > uri="http://java.sun.com/jstl/core"; %>
> > >
> > >  > > value="100"/>
> > >
> > >  value="20"/>
> > >
> > >  > >
> > > var="boundaryStart"
> > >
> > > begin="0"
> > >
> > > end="${totalCount - 1}"
> > >
> > > step="${perPage}">
> > >
> > > ">
> > >
> > > [
> > >
> > > 
> > >
> > > -
> > >
> > > 
> > >
> > > ]
> > >
> > > 
> > >
> > > 
> > >
> > >  > >
> > > var="current"
> > >
> > > varStatus="status"
> > >
> > > begin="${param.start}"
> > >
> > > end="${param.start + perPage - 1}">
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > --
> > > Alexandre Jaquet
> > > - Original Message -
> > > From: "Jacky Kimmel" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, March 06, 2003 9:22 PM
> > > Subject: paginator tags
> > >
> > >
> > > >
> > > > Does anyone know how to implement paginator
> tags?
> > > Ie: you have a list of
> > > 30 items out of 100.  You now want to display
> the
> > > next 30 and so on.
> > > >
> > > >
> > > >
> > > > Also, I am using application.resource for all
> > > labels.  I want to have a
> > > name with a trademark symbol as a superscript.
> > > Anyone know how to do this?
> > > >
> > > >
> > > >
> > > > -
> > > > Do you Yahoo!?
> > > > Yahoo! Tax Center - forms, calculators, tips,
> and
> > > more
> > >
> > >
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> >
> >
> > =
> > A$HI$H
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [Repost] Cannot Cast to Map

2003-03-07 Thread Sri Sankaran
Jerry:
  If the only thing that's changed is the version of Struts you are using, we can 
safely (?) assume that there is no need to dig through the JSP.

  We can take a few gumshoe steps.  One at a time:

* Use 1.1rc1 but remove the nested classes from the jar and place
  the (extracted) nested classes from 1.1b3 in your WEB-INF/lib.
  In this manner you are using 1.1b3 version of nested but 1.1rc1
  for everything else.
* Place the updated nested jar that Arron had posted 
  http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar
  I don't know if this has made it into any of the recent nightlies.
  If you use this jar, you can simply put it along with the struts.jar
  in the WEB-INF/lib.  This jar will be loaded first (since k < s)
* Last, but not least, I don't know if there have been any *feature*
  enhancements since 1.1b3, and even if there *are*, if you are
  interested in them.  If push comes to shove -- as I sense it
  is -- just stick with what works: 1.1b3

  Hope this gets you going.

Sri

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:58 AM
To: '[EMAIL PROTECTED]'
Subject: [Repost] Cannot Cast to Map



I'm in dire need of some help on this.  I can't seem to figure out what has 
changed.  This worked with a mid-Feb build of 1.1b3, but has quit working since I 
swapped in the 1.1rc1 build from both 03/05 and 03/06. Please?  Anyone?





I'm getting the following message from the  tags following conversion to the 
1.1rc1 nightly build from 3/5:

[ServletException in:/WEB-INF/tiles/membersolutions/menu.jsp] Cannot cast to 
Map for name=Authenticated_UserKey property=null scope=null' 

The jsp looks like

<%@ taglib uri="/bean"  prefix="bean"   %>
<%@ taglib uri="/display"   prefix="display"%>
<%@ taglib uri="/html"  prefix="html"   %>
<%@ taglib uri="/logic" prefix="logic"  %>
<%@ taglib uri="/nested"prefix="nested" %>
<%@ taglib uri="/tiles" prefix="tiles"  %>
<%@ page language="java" %>








 







 

 












Any ideas?



TIA.

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

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



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


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



RE: [Repost] Cannot Cast to Map

2003-03-07 Thread Sri Sankaran
The first test below 

  ...place the (extracted) nested classes from 1.1b3 
  in your WEB-INF/lib...

should read

  ...place the (extracted) nested classes from 1.1b3 
  in your WEB-INF/classes...

Sri
-Original Message-
From: Sri Sankaran 
Sent: Friday, March 07, 2003 10:24 AM
To: Struts Users Mailing List
Subject: RE: [Repost] Cannot Cast to Map


Jerry:
  If the only thing that's changed is the version of Struts you are using, we can 
safely (?) assume that there is no need to dig through the JSP.

  We can take a few gumshoe steps.  One at a time:

* Use 1.1rc1 but remove the nested classes from the jar and place
  the (extracted) nested classes from 1.1b3 in your WEB-INF/lib.
  In this manner you are using 1.1b3 version of nested but 1.1rc1
  for everything else.
* Place the updated nested jar that Arron had posted 
  http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar
  I don't know if this has made it into any of the recent nightlies.
  If you use this jar, you can simply put it along with the struts.jar
  in the WEB-INF/lib.  This jar will be loaded first (since k < s)
* Last, but not least, I don't know if there have been any *feature*
  enhancements since 1.1b3, and even if there *are*, if you are
  interested in them.  If push comes to shove -- as I sense it
  is -- just stick with what works: 1.1b3

  Hope this gets you going.

Sri

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:58 AM
To: '[EMAIL PROTECTED]'
Subject: [Repost] Cannot Cast to Map



I'm in dire need of some help on this.  I can't seem to figure out what has 
changed.  This worked with a mid-Feb build of 1.1b3, but has quit working since I 
swapped in the 1.1rc1 build from both 03/05 and 03/06. Please?  Anyone?





I'm getting the following message from the  tags following conversion to the 
1.1rc1 nightly build from 3/5:

[ServletException in:/WEB-INF/tiles/membersolutions/menu.jsp] Cannot cast to 
Map for name=Authenticated_UserKey property=null scope=null' 

The jsp looks like

<%@ taglib uri="/bean"  prefix="bean"   %>
<%@ taglib uri="/display"   prefix="display"%>
<%@ taglib uri="/html"  prefix="html"   %>
<%@ taglib uri="/logic" prefix="logic"  %>
<%@ taglib uri="/nested"prefix="nested" %>
<%@ taglib uri="/tiles" prefix="tiles"  %>
<%@ page language="java" %>








 







 

 












Any ideas?



TIA.

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

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



-
To unsubscribe, e-mail: [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: [Repost] Cannot Cast to Map

2003-03-07 Thread Jerry Jalenak
Sri,

Thanks for the reply.  I managed to track it to the  tag
actually. The way that the paramName attribute looks up its value has
apparently changed.  I switched back to using  and specifying the
actual bean name and property that I wanted and everything started working
again.

Thanks again.

Jerry

> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 9:24 AM
> To: Struts Users Mailing List
> Subject: RE: [Repost] Cannot Cast to Map
> 
> 
> Jerry:
>   If the only thing that's changed is the version of Struts 
> you are using, we can safely (?) assume that there is no need 
> to dig through the JSP.
> 
>   We can take a few gumshoe steps.  One at a time:
> 
> * Use 1.1rc1 but remove the nested classes from the jar and place
>   the (extracted) nested classes from 1.1b3 in your WEB-INF/lib.
>   In this manner you are using 1.1b3 version of nested but 1.1rc1
>   for everything else.
> * Place the updated nested jar that Arron had posted 
>   http://www.keyboardmonkey.com/downloads/km-nested-v2.03.jar
>   I don't know if this has made it into any of the recent nightlies.
>   If you use this jar, you can simply put it along with the struts.jar
>   in the WEB-INF/lib.  This jar will be loaded first (since k < s)
> * Last, but not least, I don't know if there have been any *feature*
>   enhancements since 1.1b3, and even if there *are*, if you are
>   interested in them.  If push comes to shove -- as I sense it
>   is -- just stick with what works: 1.1b3
> 
>   Hope this gets you going.
> 
> Sri
> 
> -Original Message-
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 07, 2003 8:58 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Repost] Cannot Cast to Map
> 
> 
> 
>   I'm in dire need of some help on this.  I can't seem to 
> figure out what has changed.  This worked with a mid-Feb 
> build of 1.1b3, but has quit working since I swapped in the 
> 1.1rc1 build from both 03/05 and 03/06. Please?  Anyone?
> 
> 
> 
> 
> 
> I'm getting the following message from the  tags 
> following conversion to the 1.1rc1 nightly build from 3/5:
> 
>   [ServletException 
> in:/WEB-INF/tiles/membersolutions/menu.jsp] Cannot cast to 
> Map for name=Authenticated_UserKey property=null scope=null' 
> 
> The jsp looks like
> 
> <%@ taglib uri="/bean"prefix="bean"   %>
> <%@ taglib uri="/display" prefix="display"%>
> <%@ taglib uri="/html"prefix="html"   %>
> <%@ taglib uri="/logic"   prefix="logic"  %>
> <%@ taglib uri="/nested"  prefix="nested" %>
> <%@ taglib uri="/tiles"   prefix="tiles"  %>
> <%@ page language="java" %>
> 
> 
>   
>   
>   
>src="/images/navButton.jpg"/>
>   
>   
>     property="applicationMenuHeading"/>
>   
>   
>   
>   
>   
>property="description"/>
>   
>    
>   
>    
>paramId="lob" paramName="lobName" styleClass="bodytextsmall" 
> title="<%= urlDescription %>">
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> 
> Any ideas?
> 
> 
> 
> TIA.
> 
> Jerry Jalenak
> Web Publishing
> LabOne, Inc.
> 10101 Renner Blvd.
> Lenexa, KS  66219
> (913) 577-1496
> [EMAIL PROTECTED]
> 
> This transmission (and any information attached to it) may be 
> confidential and is intended solely for the use of the 
> individual or entity to which it is addressed. If you are not 
> the intended recipient or the person responsible for 
> delivering the transmission to the intended recipient, be 
> advised that you have received this transmission in error and 
> that any use, dissemination, forwarding, printing, or copying 
> of this information is strictly prohibited. If you have 
> received this transmission in error, please immediately 
> notify LabOne at the following email address: 
> [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and is 
intended solely for the use of the individual or entity to which it is addressed. If 
you are not the intended recipient or the person responsible for delivering the 
transmission to the intended recipient, be advised that you have received this 
transmission in error and that any use, dissemination, forwarding, printing, or 
copying of this information is strictly prohibited. If you have received t

Re: broken in Strtus 1.1 rc1, html-el?

2003-03-07 Thread David Graham
More accurately, the Struts-EL version may be broken.  The uri you supplied 
is the same as the normal html taglib.

David



From: Jose Gonzalez Gomez <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject:  broken in Strtus 1.1 rc1, html-el?
Date: Fri, 07 Mar 2003 12:31:39 +0100
   It seems that  is broken in Struts 1.1rc1. I have a jsp 
with the following code:

<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"; prefix="html" 
%>


   This page works fine, but whenever I change the uri to use the html-el 
taglib (http://jakarta.apache.org/struts/tags-html), the page no longer 
shows error messages. Has anybody else experienced this?

   Regards
   Jose


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


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

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


RE: JspException: Exception thrown by getter for property XXX of bean YYY?

2003-03-07 Thread Chen, Gin
Actually its in the same stack trace as what you posted but further down.
Make sure that you are looking at the console when getting the stack trace
and not the web page.
If you can't find it in the console then look into your log files.
I dont know if the root cause stack trace is application server specific but
either way, there should be something like it that will point you to a
better description of what caused the error.

-Original Message-
From: Viggio, Alex [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 6:18 PM
To: 'Struts Users Mailing List'
Subject: RE: JspException: Exception thrown by getter for property XXX
of bean YYY?


Thanks for the responses. I'm obviously missing some basic JSP debugging
skills ;) Although I've been working on a "50% Struts" app for a year+ (i.e.
tons of scriptlet code in JSPs), I've only just started using Struts
properly with ActionForm's and taglibs so I'm still a noob when it comes to
debugging JSPs. 

When you say, "look further down the trace", do you mean the stack trace I
forwarded in my posting or some other stack dump? I don't see anything
labelled "root cause" in that trace.

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 3:35 PM
To: 'Struts Users Mailing List'
Subject: RE: JspException: Exception thrown by getter for property XXX
of bean YYY?


look further down the trace.
there's a line that says root cause.
the exception after that is your true error.
-Tim

-Original Message-
From: Viggio, Alex [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 5:19 PM
To: 'Struts Users Mailing List'
Subject: JspException: Exception thrown by getter for property XXX of
bean YYY?


We've had some additions to our production Struts app out for two months,
and today is the first time I have seen this specific error (see below).
I've includded the getter method below. How could an exception be thrown by
this method? It should handle the case where previousUrl is null.

Thanks,
- Alex

*** code ***

public String getPreviousUrl() {
return ((null != previousUrl) ? "«" : "«");
}

*** stack ***

javax.servlet.jsp.JspException: Exception thrown by getter for property
calendar.previousUrl of bean meetingWizardForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
at
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
at
org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
g.java:93)
at
_0002fmeetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3._jspService(_0002f
meetingWizardTimes_0002ejspmeetingWizardTimes_jsp_3.java:709)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.doForward(RequestDispatcherIm
pl.java:222)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:162)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.cfer.servlet.ChainControllerServlet.serviceChain(ChainControllerServlet.
java:201)
at
com.cfer.servlet.ChainControllerServlet.service(ChainControllerServlet.java:
143)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at
org.apache.tomcat.service.conn

RE: [Q] extends DynaValidatorActionForm

2003-03-07 Thread WILLIAMS,RAND (HP-USA,ex1)
True for if the bean config was in the struts-config,
but what if I want to extend DynaValidatorForm?

I wonder what format constructor it needs to have.?

-Rand


-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 4:05 AM
To: Struts Users Mailing List
Subject: Re: [Q] extends DynaValidatorActionForm



Try this:

ModuleConfig moduleConfig = (ModuleConfig) 
httpServletRequest.getAttribute( Globals.MODULE_KEY );
FormBeanConfig supplierConfig = moduleConfig.findFormBeanConfig( 
"whateverYourBeanNameInStrutsConfig" );
DynaValidatorActionForm actionForm = (DynaValidatorActionForm) 
DynaActionFormClass.createDynaActionFormClass( supplierConfig )
 

.newInstance(  );

Regards
Jose


WILLIAMS,RAND (HP-USA,ex1) wrote:

>(Craig?)
>
>I try to extend DynaValidatorActionForm,
>using a no-argument constructor (as it has),
>but when instantiating using the DynaBeanClass.newInstance( x, y, z ),
>I am required to use a constructor( DynaClass ),
>which DynaValidatorActionForm does not have...
>
>Has anyone a working example of extending DynaValidatorForm, or
>DynaActionForm?
>Please let me know 
>
>Thank you in advance!!
>
>(PS Thank you for your answers so far!!)
>
>Rand Williams
>Hewlett-Packard
>
>
>And It would be a bonus to show me how I can instantiate the new class
>using something like this:
>
>
>   824  BasicDynaClass dynaClass =
>   825new BasicDynaClass(
>   826   "DynaSmModelValidatorFormClass",
>   827DynaSmModelValidatorForm.class,
>   828props);
>   829
>   830  try {
>   831DynaSmModelValidatorForm elementBean =
>(DynaSmModelValidatorForm) dynaClass.newInstance();
>
>
>java.lang.IllegalArgumentException: 
>Class com.hp.sm.model.DynaSmModelValidatorForm does not have an appropriate
>constructor
>   at
>org.apache.commons.beanutils.BasicDynaClass.setDynaBeanClass(BasicDynaClass
.
>java:310)
>   at
>org.apache.commons.beanutils.BasicDynaClass.(BasicDynaClass.java:128)
>
>
>public class DynaSmModelValidatorForm extends DynaValidatorActionForm
>{
>  public DynaSmModelValidatorForm() {
>super();
>  }
>}
>
>-
>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: How do you keep your session junk free?

2003-03-07 Thread Sundar Narasimhan
Over on another mailing list I'm on the consensus is that
continuation-style programming is much better than the present
approaches suggested by struts and other frameworks. In particular,
they solve the back button/refresh type problems much more cleanly
than other languages/frameworks.

As a Lisp programmer I find that appealing, and I just wish people in
the Java camp knew more about it.. here are a few links that I've been
suggested to follow up (I haven't had the time yet to fully evaluate
them :) Unfortunately there doesn't seem to be much by way of tool
support for these frameworks (yet).

http://www.beta4.com/seaside2
http://segment7.net/ruby-code/borges/borges.html
Schecoon -- does anyone know the status on this project btw?

http://youpou.lip6.fr/queinnec/Papers/www.ps.gz
http://youpou.lip6.fr/queinnec/Papers/webcont.ps.gz

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



RE: [Q] extends DynaValidatorActionForm

2003-03-07 Thread WILLIAMS,RAND (HP-USA,ex1)
I will try instantiation using 
DynaActionFormClass instead of Basic and 
see where it leads...

(PS Thanks Jose!)
-Rand

-Original Message-
From: WILLIAMS,RAND (HP-USA,ex1) [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 10:33 AM
To: 'Struts Users Mailing List'
Subject: RE: [Q] extends DynaValidatorActionForm


True for if the bean config was in the struts-config,
but what if I want to extend DynaValidatorForm?

I wonder what format constructor it needs to have.?

-Rand


-Original Message-
From: Jose Gonzalez Gomez [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 4:05 AM
To: Struts Users Mailing List
Subject: Re: [Q] extends DynaValidatorActionForm



Try this:

ModuleConfig moduleConfig = (ModuleConfig) 
httpServletRequest.getAttribute( Globals.MODULE_KEY );
FormBeanConfig supplierConfig = moduleConfig.findFormBeanConfig( 
"whateverYourBeanNameInStrutsConfig" );
DynaValidatorActionForm actionForm = (DynaValidatorActionForm) 
DynaActionFormClass.createDynaActionFormClass( supplierConfig )
 

.newInstance(  );

Regards
Jose


WILLIAMS,RAND (HP-USA,ex1) wrote:

>(Craig?)
>
>I try to extend DynaValidatorActionForm,
>using a no-argument constructor (as it has),
>but when instantiating using the DynaBeanClass.newInstance( x, y, z ),
>I am required to use a constructor( DynaClass ),
>which DynaValidatorActionForm does not have...
>
>Has anyone a working example of extending DynaValidatorForm, or
>DynaActionForm?
>Please let me know 
>
>Thank you in advance!!
>
>(PS Thank you for your answers so far!!)
>
>Rand Williams
>Hewlett-Packard
>
>
>And It would be a bonus to show me how I can instantiate the new class
>using something like this:
>
>
>   824  BasicDynaClass dynaClass =
>   825new BasicDynaClass(
>   826   "DynaSmModelValidatorFormClass",
>   827DynaSmModelValidatorForm.class,
>   828props);
>   829
>   830  try {
>   831DynaSmModelValidatorForm elementBean =
>(DynaSmModelValidatorForm) dynaClass.newInstance();
>
>
>java.lang.IllegalArgumentException: 
>Class com.hp.sm.model.DynaSmModelValidatorForm does not have an appropriate
>constructor
>   at
>org.apache.commons.beanutils.BasicDynaClass.setDynaBeanClass(BasicDynaClass
.
>java:310)
>   at
>org.apache.commons.beanutils.BasicDynaClass.(BasicDynaClass.java:128)
>
>
>public class DynaSmModelValidatorForm extends DynaValidatorActionForm
>{
>  public DynaSmModelValidatorForm() {
>super();
>  }
>}
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>



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

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

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



Re: [OT] IDE / ERD modeling (Was: Re: struts IDE)

2003-03-07 Thread Joel Wickard
I don't like dia too much.  Kivio is a pretty good program (The Kompany) 
comes with most linux installs.  The only thing I don't like about Kivio 
is the inablity to make a diagram that spans multiple pages. ( you can 
but you can't design with it spanning multiple "virtual" 
representations, you have to start a new page for every page )

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


Re: How do you keep your session junk free?

2003-03-07 Thread Rick Reumann
On Fri, 7 Mar 2003 10:34:13 -0500
Sundar Narasimhan <[EMAIL PROTECTED]> wrote:

> Over on another mailing list I'm on the consensus is that
> continuation-style programming is much better than the present
> approaches suggested by struts and other frameworks. In particular,
> they solve the back button/refresh type problems much more cleanly
> than other languages/frameworks.

Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?

-- 
Rick Reumann

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



Sharing resources among multiple Struts modules

2003-03-07 Thread Moyer, Alan L
Hi,

I'm working on an application where there are muliple Struts modules. In
each struts config file there is a  element with
parameter set to a property file containing resources for the module.
However, there are a number of properties that are common to all the
modules. 

Is is possible for each module to access multiple resource property files so
that common properties can be put into a single file which is then shared? I
haven't figured out how to do this so I've had to use a single property file
for all the modules which makes the file large and hard to share between
developers. If this is necessary, it seems to defeat some of the advantages
of using modules.

Thanks,

Al

This transmission is intended only for use by the addressee(s) named herein and may 
contain information that is proprietary, confidential and/or legally privileged. If 
you are not the intended recipient, you are hereby notified that any disclosure, 
copying, distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, 
please immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you.

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



Re: How do you keep your session junk free?

2003-03-07 Thread David Graham

Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?
The token approach is an easy solution.  One of the sites listed was a 
Smalltalk web framework.  It's good to look at things in different ways but 
you could probably count the number of Smalltalk web applications on one 
hand :-).

David

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

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


Re: How do you keep your session junk free?

2003-03-07 Thread Jose Gonzalez Gomez
   Maybe what we need is an abstraction over the current request 
mapping stuff. If you think about it, what Struts basically does is 
mapping a request from a browser to some class that then executes a 
method (I know Struts has a lot more things, but this is the main one). 
Maybe we could go a step further, and think about wizards, page flows, 
data associated with those flows, and why not, set the bases for a 
direct translation from use cases to one of these abstractions.

   Please, don't take this as criticism to Struts. I think Struts is a 
great framework and I'm using it and will be using it in whatever J2EE 
project I do, but maybe we could start thinking a level above... what do 
you think?

Rick Reumann wrote:

On Fri, 7 Mar 2003 10:34:13 -0500
Sundar Narasimhan <[EMAIL PROTECTED]> wrote:
 

Over on another mailing list I'm on the consensus is that
continuation-style programming is much better than the present
approaches suggested by struts and other frameworks. In particular,
they solve the back button/refresh type problems much more cleanly
than other languages/frameworks.
   

Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?
 



Re: How do you keep your session junk free?

2003-03-07 Thread julian green
It would be neat if you could group a bunch of action definitions 
together and have the form bean persist while the group remianed active.

Julian

David Graham wrote:

Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?
The token approach is an easy solution.  One of the sites listed was a 
Smalltalk web framework.  It's good to look at things in different ways 
but you could probably count the number of Smalltalk web applications on 
one hand :-).

David

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

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


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


[Q] Presentation of confirmation information that is meaningful touser?

2003-03-07 Thread Rick Reumann
I'm wondering how many of you handles a typical situation that comes up
for me:

Say you are working on an application that requires the user to enter in
Employee information so that it could be inserted into a database.

You have a select options field created which displays the list of
departments and the user needs to select the appropriate one for the
Employee. Since the database cares about the department ID and not the
department name it makes sense to have the value for your options be
this "ID" and then you just display the department names from your
colleciton so that a typical option viewed as source would look like:

Accounting

Obviously I then have a form bean which will hold this department ID
when the form is submitted. 

The problem I run into though is that I often want to display back
confirmation information that might include the actual department name
the user selected (displaying the id would mean nothing to the user).

How do you guys accomplish this?

There are several ways I can accomplish it but none of them that I'm
aware of are very pretty. 

-- 
Rick Reumann

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



RE: error in action

2003-03-07 Thread Sri Sankaran
Are you saying that you have a problem with:

public execute(...) {
 .
 .
 return mapping.getInputForward();
}

Sri
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 8:16 AM
To: Struts Users Mailing List
Subject: error in action


Hi, if i've an a page that call an action if in this action i've an error how i return 
to page that invoked the action? i try to use mapping.getInputForward(), but this 
return me the path of my action...i try to save the url but have a problem (see my 
preavious mail Problem mapping/url)...there is an method like 
javascript:history.go(-1)?? sorry for my stupid question,thanks. Ale


-
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 you keep your session junk free?

2003-03-07 Thread Jose Gonzalez Gomez
   I was thinking exactly about that... usually you could identify that 
bunch of actions as steps inside an use case of the system. The data 
collected inside that use case usually is useless outside that use case 
and is usually used to make a call to business logic sitting in EJBs, or 
business objects with JDO or whatever. (Wow, what a useful word, use). 
There could be some automated way to keep the data as far as you were 
inside those actions, and once the use case is finished, or the user 
aborts this use case and initiates another, the data could be deleted. 
For this to happen, beans should be associated to these "use cases", 
"groups", whatever you call it, instead of being associated to an action.

   Jose

julian green wrote:

It would be neat if you could group a bunch of action definitions 
together and have the form bean persist while the group remianed active.

Julian

David Graham wrote:


Explain how some other approach handles it in any better way? Use of
token to prevent duplicate submissions works for me. And what do you
mean by a continuation-style programming?
The token approach is an easy solution.  One of the sites listed was 
a Smalltalk web framework.  It's good to look at things in different 
ways but you could probably count the number of Smalltalk web 
applications on one hand :-).

David

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

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


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




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


RE: Search result page with logic:iterate

2003-03-07 Thread Sri Sankaran
Look at the display tag library at http://edhill.its.uiowa.edu/display-0.8/.  Some 
folks on this list have continued work on it; you can find developments at 
http://sourceforge.net/projects/displaytag.

I'm sure this should help with your pagination needs.

Sri

-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 4:19 AM
To: 'Struts Users Mailing List'
Subject: Search result page with logic:iterate


The  tag has attributes "offset" and "length" that defines the starting 
element and the maximum number of elements to iterate; I'd like to use those 
attributes to display the "X results per page" navigation style of a search, but i'm 
looking for an easy way to dynamically generate those values, and also adding links 
for  and  page, or maybe (better) something like  <1> <2> 
<3> ...  like in search engine result pages... I'm sure there something ready to 
do the work. Thanks

Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_



-
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 you keep your session junk free?

2003-03-07 Thread Sloan Seaman
I kinda have a class that does that if you want.

I have an Action called ChainAction that can call N number of actions in a
row and passes the same form and request info through all the actions.

The last action in the chain is then used to do a foward to whatever.

This is how I control all application flow via the struts-config file.

Example:
  
   
   
   
   
   
   
   
  

This action does security first (we have a custom system that does role
based security down to the action level).  If the user does not have access
it send them up the chain one step.  They continue up the chain till they
hit a point where they do have access.  This way we get them to ass deep as
they can go (get your mind out of the gutter). Anway..

The chains work by defining a PROPERTY_NAME that relates to an any element
in a form.  In this case, submit buttons.  If the user clicked "Do Delete"
it sends them to introSaveMessageAdd and then to deleteBitmap, and then to
the introAddPage.

This way my actions a very modular.

You can also do a DECHAIN which will run through the actions like normal but
the last one is treated as a seperate request and gets a new form and
request object (good for going from one form to another and not having bean
issues).

It also does other things like you can defined a message to put into the
session at the end of the chain, etc...

Anyway.. I can see if I can release the code if you want.

- Original Message -
From: "julian green" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 11:04 AM
Subject: Re: How do you keep your session junk free?


> It would be neat if you could group a bunch of action definitions
> together and have the form bean persist while the group remianed active.
>
> Julian
>
> David Graham wrote:
> >
> >> Explain how some other approach handles it in any better way? Use of
> >> token to prevent duplicate submissions works for me. And what do you
> >> mean by a continuation-style programming?
> >>
> > The token approach is an easy solution.  One of the sites listed was a
> > Smalltalk web framework.  It's good to look at things in different ways
> > but you could probably count the number of Smalltalk web applications on
> > one hand :-).
> >
> > David
> >
> >
> > _
> > Help STOP SPAM with the new MSN 8 and get 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: [OT] Learning Curve Management or Confusions of a Newbie

2003-03-07 Thread Jeff Smith
I understand the problem of volume. I'm not suggesting that we try to index
the entire internet for all apache-related information.

I'm suggesting that we explore a mechanism that ensures that everything
hosted directly in the apache infrastructure be tagged at creation/posting
time so that an automated FAQ engine can index it on a more meaningful level
than a simple key-word search. I call it a key-question search.

Imagine the difference between searching the apache site for all documents
containing the words "logging", "ant" and "config". You would get spanked by
the number of hits.

But now consider how many responses you would get if you were searching the
site for all the QUESTIONS (in that "what questions are answered by what
documents" index) that contained those words. Suddenly your response volumes
go way down.

Furthermore, the site could tag each document with a "Add another question
answered by this document" feature that would allow people to log the
questions they are finding usefully answered by particular documents.

Such a system is not particularly complex. And it relies on existing
"business" processes to populate and manage the index, once the
comparatively simple engine is integrated.

I have created similar systems in the past for integration with help systems
in desktop software packages. It allows a corporate user to develop
context-specific help for their staff that is more directly relevant to
their business and job functions than a developer can possibly hope to
anticipate at help-writing time.

And when you think about it, one way to view the apache site infrastructure
is as a giant help system.

Jefficus

- Original Message -
From: "Simon Kelly" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 2:01 AM
Subject: Re: [OT] Learning Curve Management or Confusions of a Newbie


> Jeff you are not alone in this.  I've been at this for six months and have
> gone through pretty much the same set of problems.  The thing with what
you
> are suggesting (and this is only my opinion) is, "Who will do it *AND*
look
> after it?".  The trouble is (and I have found this through searching the
> net) the shear volume of papers, documents, examples and postings (150+
per
> day) that would have to be referenced and collected to make this of any
use
> to people.  And I have to say, I DO NOT want the job :-)
>
> Cheers
>
> Simon
>
>
> - Original Message -
> From: "Jeff Smith" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 9:05 AM
> Subject: [OT] Learning Curve Management or Confusions of a Newbie
>
>
> I have to confess, I'm a newbie. I've been a C/C++ programmer for 20
years,
> but after dinking around for a few months with ASP, VBScript, PHP and a
few
> other technologies, I decided that Java was the language to build my web
> apps in.
>
> A month ago I was completely cold. Didn't know the first thing about any
of
> this stuff. But I knew I wanted to learn it, so off I went, marching into
> the high weeds. First I had to learn Java. Then came servlets and JSPs and
> Tomcat. And along that path I also had to absorb Ant. And JUnit. And
Log4J.
> And then there was a bunch of time lost exploring
NetBeans/Eclipse/WebSphere
> before settling on JEdit as my environment of choice.
>
> Then came Struts, and all the various taglibs. An experiment with Cayenne.
> And Cactus. And god-knows what else I've explored.
>
> And through it all, I am continually amazed at the strength and breadth of
> the resources and support available. And equally frustrated by it. I can
> never remember where I saw a particular bit of information. So when I
> finally learn enough to understand what Ted was talking about in his
> monograph on Connection Pooling, I can't remember where I saw it.
>
> And when I want to learn enough about EJBs to figure out if I need to care
> about them, or if they are relevant to my planned project, I have to wade
> through another day of voluminous coverage before I have enough of a
handle
> on what they are to make some intelligent guesses about where to look
next.
>
> My point is that I believe the Apache/Java/Struts/... universe is quickly
> reaching a point where its very breadth is becoming a barrier to entry for
> people who don't have a couple of months to devote to bootstrapping
> themselves.
>
> Is there any thought being given to creating a higher-level resource
> interface that could serve as a single point of reference for all things
> Apache? (I realize that "all things java" would be going way too far.) As
a
> simple solution, if every document in the Apache infrastructure had a meta
> tag that listed the questions answered by the document, then a very
> powerful, automated FAQ could be maintained. And such a system would make
it
> much easier (I believe) to find things quickly than simply searching the
> site for key words.
>
> This may not be the best (or onl

crazy error

2003-03-07 Thread Rajesh . Jayabalan
Hi,

 I have a action calls which populates the formbean and forward to JSP where I
can see the values but when I submit the jsp back to the same action the values
or lost.

 the jsp code is ( from the javasript I can see the values I print in the
alerts) and I get the value I set to "actionstr" in the action servlet but none
of the other values like "product_id" or "period_end_date".  What is wrong??

Regards
Rajesh J
function cancelr()
{
  allo.actionstr.value="cancel";
  alert(allo.period_end_date.value);
  alert(allo.product_id.value);
  allo.submit();
}








  

 MFFS
  
  

 
  
  
 
  


  Period End Date  
  
  
  



  Product ID  
  
  
  





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



RE: crazy error

2003-03-07 Thread Sri Sankaran
Remove the 'name' and 'type' attribute out of your .  Why?  

* They are deprecated (in Struts 1.1)
* If the name doesn't exactly match what you have in your config, 
  it'll result in a new instance of the bean
* You don't need it -- you action mapping definition
  for the allocationAction should handle it

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 12:10 PM
To: [EMAIL PROTECTED]
Subject: crazy error


Hi,

 I have a action calls which populates the formbean and forward to JSP where I can see 
the values but when I submit the jsp back to the same action the values or lost.

 the jsp code is ( from the javasript I can see the values I print in the
alerts) and I get the value I set to "actionstr" in the action servlet but none of the 
other values like "product_id" or "period_end_date".  What is wrong??

Regards
Rajesh J
function cancelr()
{
  allo.actionstr.value="cancel";
  alert(allo.period_end_date.value);
  alert(allo.product_id.value);
  allo.submit();
}








  
 
 MFFS
  
  
  
  
  
 
  


  Period End Date  
  
  
  



  Product ID  
  
  
  





-
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 you keep your session junk free?

2003-03-07 Thread Margarita Manterola
El vie, 07-03-2003 a las 13:00, Jose Gonzalez Gomez escribió:

> Please, don't take this as criticism to Struts. I think Struts is a 
> great framework and I'm using it and will be using it in whatever J2EE 
> project I do, but maybe we could start thinking a level above... what do 
> you think?

I'm no expert, and I apologyse if I'm wrong here, but I think Expresso
Framework has this "wizard" functionality.  Doesn't it?

Love,
Margarita.


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



RE: crazy error

2003-03-07 Thread Rajesh . Jayabalan

Hi,

 That does not solve the problem. I have a system.out in the validate method of
the bean also even ther I get null for all properties except actionstr.  Does
this have anything to do with the fact I am submitting the form via Javascript.

Regards
Rajesh J


   
 
   
 
 To: "Struts Users Mailing List" <[EMAIL 
PROTECTED]>   
 "Sri Sankaran"  cc:   
 
 <[EMAIL PROTECTED]Subject: RE: crazy error
   
 m>
 
 07 Mar 2003 12:48 PM  
 
 Please respond to 
 
 "Struts Users 
 
 Mailing List" 
 
   
 
   
 



Remove the 'name' and 'type' attribute out of your .  Why?

* They are deprecated (in Struts 1.1)
* If the name doesn't exactly match what you have in your config,
  it'll result in a new instance of the bean
* You don't need it -- you action mapping definition
  for the allocationAction should handle it

Sri

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2003 12:10 PM
To: [EMAIL PROTECTED]
Subject: crazy error


Hi,

 I have a action calls which populates the formbean and forward to JSP where I
can see the values but when I submit the jsp back to the same action the values
or lost.

 the jsp code is ( from the javasript I can see the values I print in the
alerts) and I get the value I set to "actionstr" in the action servlet but none
of the other values like "product_id" or "period_end_date".  What is wrong??

Regards
Rajesh J
function cancelr()
{
  allo.actionstr.value="cancel";
  alert(allo.period_end_date.value);
  alert(allo.product_id.value);
  allo.submit();
}








  

 MFFS
  
  

 
  
  
 
  


  Period End Date  
  
  
  



  Product ID  
  
  
  





-
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 and Cocoon Integration

2003-03-07 Thread Dave Patton
But if performance is a concern, shouldnt I user Struts as the front end
and then provide a mapping for all *.xml (or whatever other pattern I
use) requests to the cocoon servlets?  This way I only incur the cocoon
performance penalty on those requests which absolutely require cocoon? 
Im sure there are more ways to skin this cat.

Dave Patton

On Fri, 2003-03-07 at 01:36, ROSSEL Olivier wrote:

> > There are at least two ways to handle the forwards: 
> > explicitly using some
> > sort of suffix/prefix (e.g. all paths that end in ".coc" will 
> > be handled
> > by the cocoon plugin) or simply pass all the request first to 
> > cocoon and
> > if cocoon doesn't handle it, process it normally.  The stxx plugin
> > (http://sf.net/projects/stxx) uses the former while I chose 
> > the latter.
> > In my implementation, if you don't create a pipeline to match 
> > the forward,
> > it is processed by Struts normally.  It is trival to write code to use
> > either method.
> > 
> > Hope that helps.
> 
> Cocoon has an impressive URl management system (for example, it can trigger
> not on the URL but on some combination of request parameters if you want :-)
> So Cocoon as the front-end is the best, IMHO.
> 
> This e-mail is intended only for the above addressee. It may contain
> privileged information. If you are not the addressee you must not copy,
> distribute, disclose or use any of the information in it. If you have
> received it in error please delete it and immediately notify the sender.
> Security Notice: all e-mail, sent to or from this address, may be
> accessed by someone other than the recipient, for system management and
> security reasons. This access is controlled under Regulation of
> Investigatory Powers Act 2000, Lawful Business Practises.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



_
David H. Patton
[EMAIL PROTECTED]
(202) 276-8998 - pcs

-BEGIN PGP PUBLIC KEY BLOCK- 

Version: PGPfreeware 7.0.3 for non-commercial use  

mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w 
3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa 
2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w 
YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl 
X0UMXBehnsFK1mjbtQgfy2fdk0KT4NxKSD5s8ojoSdJ7R5CMwvh1UM4v2aAEqKvE 
CYaCWrAfZ7+TQGHXu75ejJz1iIuUno1fVsgLABEBAAG0IkRhdmUgUGF0dG9uIDxk 
cGF0dG9uQG52ZW50dXJlLmNvbT6JAS4EEAECABgFAjui6osICwMJCAcCAQoCGQEF 
GwMACgkQ5ZDkPqeKwH9Xswf/aP2WGiAU+HFxV136uKW5oDtZtSvm0YuW69Ra 
A2dPKFPp6E7v+w2c7yEV4+ZkVxbfk+VOh3p1MpXR367nQl9C+jMAD7MvPU6/KI+T 
5WDzzKEGsyxOI+GYeGRKO0ZAYITG9HxevvKa1GMHBwRYNr2Qv62ckkHTy5rdmzZe 
PFM/am8B9maH5gKg6oIqzJwfmvb+ll8DRbhfI25trLqzggifrFcZHkOwTVGLNfdM 
cPWK/Yu4dOLAKCow06q0G/tDmXNkcyx12R6Z4Y/cQ5Qyvt1WP+eQAM/HBJI8rR9c 
cxS80pEorJIx4a7x9EsiwmB8milqBrXqHN2GRe/PnZSM9czBK7kBDQQ7ouqNAQgA 
sWO4lchFwK6leJClCpdaCjL4oUGjiZorW+XG2YKtQW6a+oYlplcHFkMSibkTN6Jc 
RdPEkarRvJ7sj+UgsUfkj4//EtqARuHTXhnMlsjqISTXlS2l61fQFg1d0iwvinyV 
sq6lVDtrr7UBe2b5TOuoRe13CzGWyhNQafV1gMcpBx9KxNi24UowJiT+cJpnxMCu 
+DNElC2AmG7phPagSFL8F4f++dGL2l8kAkxCSCl3Kr+8HUlFmOwwZ1PGSSM83pM/ 
NNZKDAdGUiBRKqC32oOhKacxb6cf4ta1kZ6GDZcqVo+5qlz4OtUKbRLtW5Y8tiFc 
PwkDePX/F1490V3YWgHVzwARAQABiQEiBBgBAgAMBQI7ouqNBRsMAAoJEOWQ 
5D6nisB/8xsIAJLNUQC8SOQF5txBrO22W7uAJ9xU9RK66Pyf9a+KjdNf4rE6vK4n 
vhbSGmtoPB4bzOQ9RKpo8ihBQp1cY9mLnwuJDKSuzpkaOK5pd+bifwY20tweULR6 
4rtU8uLL1H0eom2IBjSXhf4n8DEdyrGKKHYNO/GRLx/UHHcLEFvz+4buHrCPoiBP 
JwjS/Ifg5xc3nTJnZmG2HzapoRwgXxGitbNTArUZWkqHYLygA1/ilmnFs8POj/s+ 
TD4wSuDlrwE2CE2O8XbRuRVPryzn8mXXdZ1pSwrrvZjRU5rnDRAOqhHZQQbudVd3 
XvnDDBDoURSqwDqnwOkoOSTC95aj+vy5WW0= 
=/zoc 

-END PGP PUBLIC KEY BLOCK-


Want to stop tomcat's info messages from printing to console

2003-03-07 Thread Scott Power
I was wondering if there is a way to stop tomcat from printing its
messages to the console.  I know how to configure the log4j message from
within the application, by setting the level in the log4j.configuration
file but I still get message on the console like the ones below.  I
would like to stop these from showing up, I only want to see message
from my app and the fact that tomcat has started and stopped.  I tried
to change my CATALINA_OPTS variable in my CATALINA.bat file but I think
I might either have incorrect syntax or something, I am using win 2000,
with tomcat 4.1.  I have checked all my debug levels in the server xml,
web.xml both for tomcat and the app itself.  I know its not a really big
deal, but I want to make some clean log files for later use.  If anyone
has ideas I would like to hear them.

Once again thanks in advance.

Scott 




7-Mar-2003 2:11:56 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
7-Mar-2003 2:11:56 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
7-Mar-2003 2:11:57 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
7-Mar-2003 2:11:59 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
 .
 .
 .
 .
\/


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



Re: Sharing resources among multiple Struts modules

2003-03-07 Thread Thomas CORNET


   Don't worry, it's possible since struts 1.1 :)

   Two steps are needed :

a) in your struts-config.xml file (default module), you can declare several 
ressources files




in this example, you declare three ressources files, which are identified 
by the key parameter.

b) in your JSPs, just access them



just specify the bundle parameter to let struts access the right 
properties files.

If you define several ressources in your default module, all of them will 
be accessible by your modules.

 Thomas

BTW, has anyone succeeded in defining several resources files in the config 
of a module ?? I tried, but it doesn't seem to identify the bundle I 
provide in my JSPs...



At 16:47 07/03/2003, you wrote:
Hi,

I'm working on an application where there are muliple Struts modules. In
each struts config file there is a  element with
parameter set to a property file containing resources for the module.
However, there are a number of properties that are common to all the
modules.
Is is possible for each module to access multiple resource property files so
that common properties can be put into a single file which is then shared? I
haven't figured out how to do this so I've had to use a single property file
for all the modules which makes the file large and hard to share between
developers. If this is necessary, it seems to defeat some of the advantages
of using modules.
Thanks,

Al

This transmission is intended only for use by the addressee(s) named 
herein and may contain information that is proprietary, confidential 
and/or legally privileged. If you are not the intended recipient, you are 
hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY 
PROHIBITED. If you received this transmission in error, please immediately 
contact the sender and destroy the material in its entirety, whether in 
electronic or hard copy format. Thank you.

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


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


RE: Struts and Cocoon Integration

2003-03-07 Thread Don Brown
Exactly.  When performance is key, you can have Struts use JSP directly.
Of course, with how the plugin is now, the request will still be sent to
Cocoon which would reject it.  As for the processing time it takes for
Cocoon to reject it, I don't know.  My guess is it would depend on whether
Cocoon was using compiled sitemaps or not.

Again, of course you could rewrite the plugin so it only processes
requests ending with "coc", but then you couldn't wrap existing struts
applications without modifying all the forwards in struts-config.xml.

Don

On 7 Mar 2003, Dave Patton wrote:

> But if performance is a concern, shouldnt I user Struts as the front end
> and then provide a mapping for all *.xml (or whatever other pattern I
> use) requests to the cocoon servlets?  This way I only incur the cocoon
> performance penalty on those requests which absolutely require cocoon?
> Im sure there are more ways to skin this cat.
>
> Dave Patton
>
> On Fri, 2003-03-07 at 01:36, ROSSEL Olivier wrote:
>
> > > There are at least two ways to handle the forwards:
> > > explicitly using some
> > > sort of suffix/prefix (e.g. all paths that end in ".coc" will
> > > be handled
> > > by the cocoon plugin) or simply pass all the request first to
> > > cocoon and
> > > if cocoon doesn't handle it, process it normally.  The stxx plugin
> > > (http://sf.net/projects/stxx) uses the former while I chose
> > > the latter.
> > > In my implementation, if you don't create a pipeline to match
> > > the forward,
> > > it is processed by Struts normally.  It is trival to write code to use
> > > either method.
> > >
> > > Hope that helps.
> >
> > Cocoon has an impressive URl management system (for example, it can trigger
> > not on the URL but on some combination of request parameters if you want :-)
> > So Cocoon as the front-end is the best, IMHO.
> >
> > This e-mail is intended only for the above addressee. It may contain
> > privileged information. If you are not the addressee you must not copy,
> > distribute, disclose or use any of the information in it. If you have
> > received it in error please delete it and immediately notify the sender.
> > Security Notice: all e-mail, sent to or from this address, may be
> > accessed by someone other than the recipient, for system management and
> > security reasons. This access is controlled under Regulation of
> > Investigatory Powers Act 2000, Lawful Business Practises.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> _
> David H. Patton
> [EMAIL PROTECTED]
> (202) 276-8998 - pcs
>
> -BEGIN PGP PUBLIC KEY BLOCK-
>
> Version: PGPfreeware 7.0.3 for non-commercial use 
>
> mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w
> 3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa
> 2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w
> YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl
> X0UMXBehnsFK1mjbtQgfy2fdk0KT4NxKSD5s8ojoSdJ7R5CMwvh1UM4v2aAEqKvE
> CYaCWrAfZ7+TQGHXu75ejJz1iIuUno1fVsgLABEBAAG0IkRhdmUgUGF0dG9uIDxk
> cGF0dG9uQG52ZW50dXJlLmNvbT6JAS4EEAECABgFAjui6osICwMJCAcCAQoCGQEF
> GwMACgkQ5ZDkPqeKwH9Xswf/aP2WGiAU+HFxV136uKW5oDtZtSvm0YuW69Ra
> A2dPKFPp6E7v+w2c7yEV4+ZkVxbfk+VOh3p1MpXR367nQl9C+jMAD7MvPU6/KI+T
> 5WDzzKEGsyxOI+GYeGRKO0ZAYITG9HxevvKa1GMHBwRYNr2Qv62ckkHTy5rdmzZe
> PFM/am8B9maH5gKg6oIqzJwfmvb+ll8DRbhfI25trLqzggifrFcZHkOwTVGLNfdM
> cPWK/Yu4dOLAKCow06q0G/tDmXNkcyx12R6Z4Y/cQ5Qyvt1WP+eQAM/HBJI8rR9c
> cxS80pEorJIx4a7x9EsiwmB8milqBrXqHN2GRe/PnZSM9czBK7kBDQQ7ouqNAQgA
> sWO4lchFwK6leJClCpdaCjL4oUGjiZorW+XG2YKtQW6a+oYlplcHFkMSibkTN6Jc
> RdPEkarRvJ7sj+UgsUfkj4//EtqARuHTXhnMlsjqISTXlS2l61fQFg1d0iwvinyV
> sq6lVDtrr7UBe2b5TOuoRe13CzGWyhNQafV1gMcpBx9KxNi24UowJiT+cJpnxMCu
> +DNElC2AmG7phPagSFL8F4f++dGL2l8kAkxCSCl3Kr+8HUlFmOwwZ1PGSSM83pM/
> NNZKDAdGUiBRKqC32oOhKacxb6cf4ta1kZ6GDZcqVo+5qlz4OtUKbRLtW5Y8tiFc
> PwkDePX/F1490V3YWgHVzwARAQABiQEiBBgBAgAMBQI7ouqNBRsMAAoJEOWQ
> 5D6nisB/8xsIAJLNUQC8SOQF5txBrO22W7uAJ9xU9RK66Pyf9a+KjdNf4rE6vK4n
> vhbSGmtoPB4bzOQ9RKpo8ihBQp1cY9mLnwuJDKSuzpkaOK5pd+bifwY20tweULR6
> 4rtU8uLL1H0eom2IBjSXhf4n8DEdyrGKKHYNO/GRLx/UHHcLEFvz+4buHrCPoiBP
> JwjS/Ifg5xc3nTJnZmG2HzapoRwgXxGitbNTArUZWkqHYLygA1/ilmnFs8POj/s+
> TD4wSuDlrwE2CE2O8XbRuRVPryzn8mXXdZ1pSwrrvZjRU5rnDRAOqhHZQQbudVd3
> XvnDDBDoURSqwDqnwOkoOSTC95aj+vy5WW0=
> =/zoc
>
> -END PGP PUBLIC KEY BLOCK-
>


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



RE: [OT] Learning Curve Management or Confusions of a Newbie

2003-03-07 Thread Van Riper, Mike
I think the Java Tutorial "trail" approach would be a good fit for this:

  http://java.sun.com/docs/books/tutorial/reallybigindex.html

For example, there already is a "Creating a GUI with JFC/Swing" trail:

  http://java.sun.com/docs/books/tutorial/uiswing/index.html

Similar to this in concept, there could be a "Building a webapp with Struts"
trail. Granted, this may not belong in the "reallybigindex" maintained by
Sun because Struts is under the Apache umbrella. However, it might be time
to setup a "reallybigindex" for an online Apache Tutorial comprised of
trails similar to the way trails are used in Sun's online Java Tutorial.

Specifically with respect to learning Struts though, there is already a
significant amount of online learning material to be found directly or
indirectly from here:

  http://jakarta.apache.org/struts/learning.html

Still, I do see the value in having trails that organize some of the online
information in various trails to follow through this wealth of information.
I'm not sure how to go about initiating such a project at Apache, but, I am
willing to volunteer some time to contribute to the creation of a "Building
a webapp with Struts" trail. Does anyone else think this would be a good
idea? Anyone else interested in volunteering some time to build a Struts
trail? If there is enough interest, I would be glad to setup a separate
mailing list for further discussion among interested volunteers on creation
of this trail.

Thanks,
  Mike Van Riper
  mailto:[EMAIL PROTECTED] 

> -Original Message-
> From: Simon Kelly [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 1:01 AM
> To: Struts Users Mailing List
> Subject: Re: [OT] Learning Curve Management or Confusions of a Newbie
> 
> 
> Jeff you are not alone in this.  I've been at this for six 
> months and have
> gone through pretty much the same set of problems.  The thing 
> with what you
> are suggesting (and this is only my opinion) is, "Who will do 
> it *AND* look
> after it?".  The trouble is (and I have found this through 
> searching the
> net) the shear volume of papers, documents, examples and 
> postings (150+ per
> day) that would have to be referenced and collected to make 
> this of any use
> to people.  And I have to say, I DO NOT want the job :-)
> 
> Cheers
> 
> Simon
> 
> 
> - Original Message -
> From: "Jeff Smith" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 9:05 AM
> Subject: [OT] Learning Curve Management or Confusions of a Newbie
> 
> 
> I have to confess, I'm a newbie. I've been a C/C++ programmer 
> for 20 years,
> but after dinking around for a few months with ASP, VBScript, 
> PHP and a few
> other technologies, I decided that Java was the language to 
> build my web
> apps in.
> 
> A month ago I was completely cold. Didn't know the first 
> thing about any of
> this stuff. But I knew I wanted to learn it, so off I went, 
> marching into
> the high weeds. First I had to learn Java. Then came servlets 
> and JSPs and
> Tomcat. And along that path I also had to absorb Ant. And 
> JUnit. And Log4J.
> And then there was a bunch of time lost exploring 
> NetBeans/Eclipse/WebSphere
> before settling on JEdit as my environment of choice.
> 
> Then came Struts, and all the various taglibs. An experiment 
> with Cayenne.
> And Cactus. And god-knows what else I've explored.
> 
> And through it all, I am continually amazed at the strength 
> and breadth of
> the resources and support available. And equally frustrated 
> by it. I can
> never remember where I saw a particular bit of information. So when I
> finally learn enough to understand what Ted was talking about in his
> monograph on Connection Pooling, I can't remember where I saw it.
> 
> And when I want to learn enough about EJBs to figure out if I 
> need to care
> about them, or if they are relevant to my planned project, I 
> have to wade
> through another day of voluminous coverage before I have 
> enough of a handle
> on what they are to make some intelligent guesses about where 
> to look next.
> 
> My point is that I believe the Apache/Java/Struts/... 
> universe is quickly
> reaching a point where its very breadth is becoming a barrier 
> to entry for
> people who don't have a couple of months to devote to bootstrapping
> themselves.
> 
> Is there any thought being given to creating a higher-level resource
> interface that could serve as a single point of reference for 
> all things
> Apache? (I realize that "all things java" would be going way 
> too far.) As a
> simple solution, if every document in the Apache 
> infrastructure had a meta
> tag that listed the questions answered by the document, then a very
> powerful, automated FAQ could be maintained. And such a 
> system would make it
> much easier (I believe) to find things quickly than simply 
> searching the
> site for key words.
> 
> This may not be the best (or only) solution, but I do believe 
> that for all
>

opener.location.reload(true)

2003-03-07 Thread Søren Blidorf
Hi.
It may be off topic!

In my STRUTS application I open a window and updates the db. After that
I use the opener.location.reload(true) to update the page that displays
the db values.

When I do that I get the normal alert that the page is being refreshed,
but normally when I use that code I do not get that alert.

Could it be the Tomcat or a STRUTS thing!!!

Søren Blidorf



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



RE: How do you keep your session junk free?

2003-03-07 Thread Joe Barefoot
Does this model include a means of managing the session objects (I would assume yes, 
but didn't see anything to that effect)?  That is the real problem with wizards or 
wizard-like control flows.

I had cooked up a similar idea, but haven't implemented it yet, because all the 
wizards already had been built here using hidden fields to pass along values before I 
started.  I'll prolly test it out if we have another wizard come along.

In the idea outlined below, I'm using the single "parameter" attribute, but you could 
use the "set-property" attribs as well I guess...do these only exist in Struts 1.1?  
Note that the part at the bottom, "Extension", is something that I would definitely 
do...I just haven't reformated these notes yet.

In a nutshell:


Notes for a 1-per-session wizard framework:
1.  Use a single "wizard bag" in session, just an object that contains a hashtable 
plus identifying logical name for the wizard for which we are storing objects.
2.  Use the "parameter" attribute in action mapping to give logical name of wizard 
that this action is a part of, if it is a wizard action.  Action classes that are used 
both in and out of wizards should have multiple mappings-a mapping with a wizard 
parameter should be used only inside a wizard flow.
3.  In abstract action superclass, test to see if actionmapping's parameter has a 
value. 
4.  If parameter has no value, remove the wizard bag from the session if it 
exists, as we are no longer in a wizard.
5.  If parameter has a value:  If no wizard bag exists in session, create one with 
the parameter's value as the logical name.   If the wizard bag does exist in the 
session, see if it's logical name matches the parameter value-if it doesn't, remove 
the wizard bag and create a new one with the current parameter value, as we have 
jumped to a new wizard.
6.  Our abstract superclass will have protected methods to access the wizard bag, 
for use by wizard subclasses:  
storeWizardObject(String key, Object o);
getWizardObject(String key);
removeWizardObject(String key);

Extension:
Use a naming scheme for the parameter values in our wizard actionmappings:  
wizardName_step#.  For example:  createEmployee_1, createEmployee_2, etc.  We would 
use the same rules as above, except we would always create a new wizard bag in step 
one of the wizard (and drop the current one even if it already exists).  We would also 
verify that the wizard bag with our current wizard's logical name already exists in 
subsequent steps, and if it doesn't, forward to an exception page (because this means 
we either lost the wizard bag in the middle of the process due to another client 
browser's request (in the same session), or we jumped into the middle of the wizard 
somehow - see #2 above).  Having the step number may be useful for other purposes as 
well.



--joe

> -Original Message-
> From: Sloan Seaman [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 8:33 AM
> To: Struts Users Mailing List
> Subject: Re: How do you keep your session junk free?
> 
> 
> I kinda have a class that does that if you want.
> 
> I have an Action called ChainAction that can call N number of 
> actions in a
> row and passes the same form and request info through all the actions.
> 
> The last action in the chain is then used to do a foward to whatever.
> 
> This is how I control all application flow via the struts-config file.
> 
> Example:
>path="/app/campaign/promotion/type/pantryLoading/introAddChain"
>
> className="com.symbol.mobilecommerce.analysis.struts.ChainActi
> onMapping"
>  type="com.symbol.mobilecommerce.analysis.struts.ChainAction"
>name="pantryLoadingIntro"
>>
>
>
>
>
>
> path="/app/campaign/promotion/type/pantryLoading/introAddPage.do"/>
> path="/app/campaign/promotion/mainPage.do"/>
>   
> 
> This action does security first (we have a custom system that 
> does role
> based security down to the action level).  If the user does 
> not have access
> it send them up the chain one step.  They continue up the 
> chain till they
> hit a point where they do have access.  This way we get them 
> to ass deep as
> they can go (get your mind out of the gutter). Anway..
> 
> The chains work by defining a PROPERTY_NAME that relates to 
> an any element
> in a form.  In this case, submit buttons.  If the user 
> clicked "Do Delete"
> it sends them to introSaveMessageAdd and then to 
> deleteBitmap, and then to
> the introAddPage.
> 
> This way my actions a very modular.
> 
> You can also do a DECHAIN which will run through the actions 
> like normal but
> the last one is treated as a seperate request and gets a new form and
> request object (good for going from one form to another and 
> not having bean
> issues).
> 
> It also does other things like you can defined a message to 
> put into the
> session at the end of the chain, etc...
> 
> Anyway.. I can see if I can release the code if you want.
> 
> - O

Re: How do you keep your session junk free?

2003-03-07 Thread Sundar Narasimhan
>Explain how some other approach handles it in any better way? Use of
>token to prevent duplicate submissions works for me. And what do you
>mean by a continuation-style programming?
Hi, Rick: CPS is a commonly accepted idiom for representing "what a
program does next" in your language. Some languages such as
Scheme (a lisp variant/dialect) have strong support for it.. 

In languages such as these.. you can actually write

   int x = 5;
   x = getValue1();
   y = getValue2();

where getValue1 and getValue2 display the appropriate pages etc., and when
the user hits the back button your program's state gets unwound to the
point where it should be.. w/out ANY extra coding! You as a coder
wouldn't have to write any code to "set" the variable x's value back
to what it was etc.

Obviuosly in languages w/out continuations and closures, people tend
to simulate them w/ tokens, inner classes etc., but these are VERY
POOR substitutes for these things. 

If you google those terms I'm sure you'll get enough hits to keep you
busy for a while (I personally learnt cps stuff when I worked w/ Jeff
Siskind's Screamer which augmented Lisp with non-deterministic
primitives :). I think some of the scheme papers wrt. continuations
are classics, and explain how you can do things like co-routines
etc. w/ them. Be prepared to bend your mind a lot though -- I've never
been able to teach continuations easily -- most programmers (me
included) who grew up with Fortran, Pascal and C etc. have a *very
hard* time grokking them initially. If you run across good
explanations that help you understand it, let me know.. I'm always
looking for new pedagogical tools for this. (I understand that both
Python and Ruby camps are investigating adding support for this sort
of thing :)
 

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



Re: crazy error

2003-03-07 Thread Ashish Kulkarni
Hi,
How do u pass the bean to jsp from Action, do u pass
it through request, if yes then u will loose the bean
when u submit it back from jsp as it is a new request,

and so loose all the values
I hope this makes sense, 
Ashish
--- [EMAIL PROTECTED] wrote:
> Hi,
> 
>  I have a action calls which populates the formbean
> and forward to JSP where I
> can see the values but when I submit the jsp back to
> the same action the values
> or lost.
> 
>  the jsp code is ( from the javasript I can see the
> values I print in the
> alerts) and I get the value I set to "actionstr" in
> the action servlet but none
> of the other values like "product_id" or
> "period_end_date".  What is wrong??
> 
> Regards
> Rajesh J
> function cancelr()
> {
>   allo.actionstr.value="cancel";
>   alert(allo.period_end_date.value);
>   alert(allo.product_id.value);
>   allo.submit();
> }
> 
> 
> 
> 
> 
> name="allocationActionForm"
>   
> type="lam.mffs.form.AllocationActionForm"
>styleId="allo"
>scope="session">
>  styleId="actionstr"/>
>  cellspacing="0" cellpadding="0">
>   
>  style="color: #FF">
>   face="ATSackLightRomNoBalls"> height="45" src="images/top.bmp"
> border="0"/>MFFS
>   
>   
>  style="color: #FF">
>  
>   
>   
>  ="center"> 
>cellspacing="1" bordercolor
> ="#00" bordercolorlight="#00"
> bordercolordark="#00">
> 
>  width="312" bordercolor="#FF"
> bordercolorlight="#FF" bordercolordark="#FF"
> align="right" nowrap>
>   Period End Date  
>width="324" bordercolor="
> #FF" bordercolorlight="#FF"
> bordercolordark="#FF">
>property="period_end_date" styleId
> ="period_end_date" size="10"/>
>   
> 
> 
>  width="312" bordercolor="#FF"
> bordercolorlight="#FF" bordercolordark="#FF"
> align="right" nowrap>
>   Product ID  
>width="324" bordercolor="
> #FF" bordercolorlight="#FF"
> bordercolordark="#FF">
>property="product_id" styleId="product_id"
> size="10"/>
>   
> 
> 
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

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

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



Re: Want to stop tomcat's info messages from printing to console

2003-03-07 Thread Ashish Kulkarni
Hi,
I have a following setup and works for me, may be u
also wanna try it
in my Log4J properties file i have defined
 
  
 
  
   

 
  

  
   

also in web.xml file i have setup debug parameter in
action servlet definiation to 4

  debug
  4
 
which stoped all the debug messages, 
Ashish


--- Scott Power <[EMAIL PROTECTED]> wrote:
> I was wondering if there is a way to stop tomcat
> from printing its
> messages to the console.  I know how to configure
> the log4j message from
> within the application, by setting the level in the
> log4j.configuration
> file but I still get message on the console like the
> ones below.  I
> would like to stop these from showing up, I only
> want to see message
> from my app and the fact that tomcat has started and
> stopped.  I tried
> to change my CATALINA_OPTS variable in my
> CATALINA.bat file but I think
> I might either have incorrect syntax or something, I
> am using win 2000,
> with tomcat 4.1.  I have checked all my debug levels
> in the server xml,
> web.xml both for tomcat and the app itself.  I know
> its not a really big
> deal, but I want to make some clean log files for
> later use.  If anyone
> has ideas I would like to hear them.
> 
> Once again thanks in advance.
> 
> Scott 
> 
> 
> 
> 
> 7-Mar-2003 2:11:56 PM
> org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> 7-Mar-2003 2:11:56 PM
> org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> 7-Mar-2003 2:11:57 PM
> org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> 7-Mar-2003 2:11:59 PM
> org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
>  .
>  .
>  .
>  .
> \/
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

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

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



Re: Want to stop tomcat's info messages from printing to console

2003-03-07 Thread Rick Reumann
On Fri, 07 Mar 2003 14:17:34 -0400
"Scott Power" <[EMAIL PROTECTED]> wrote:

> I was wondering if there is a way to stop tomcat from printing its
> messages to the console.  I know how to configure the log4j message
> from within the application, by setting the level in the
> log4j.configuration file but I still get message on the console like
> the ones below.   

How are you setting your log4j.properties up?

I usually start out setting it up like:

log4j.rootCategory=ERROR, stdout
log4j.logger.startOfMyPackage=DEBUG, rolling

This makes sure errors go to stdout and I also set up a rolling file
appender for my application which logs everything in MyPackage and
below. (I won't get INFO messages from stuff the container sets up this
way).


-- 
Rick Reumann

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



RE: crazy error

2003-03-07 Thread Joe Barefoot

> Hi,
> How do u pass the bean to jsp from Action, do u pass
> it through request, if yes then u will loose the bean
> when u submit it back from jsp as it is a new request,

If your ActionForm is set to scope="request" in your ActionMapping (this is the 
default if not specified, I believe), then yes, the ActionForm is on the 
HttpServletRequest.  When you submit from the JSP, the ActionForm will ONLY be 
populate with the values that were in the form that was submitted from the JSP.  So, 
yes, the ActionForm from the previous request is lost.

If you want to keep the data, either stick the ActionForm in session scope (not a good 
idea unless you are sure to remove it at some point), or use hidden fields on your 
forms to maintain data that will be re-populated into the ActionForm when you submit.



hope this helps,
Joe


> 
> and so loose all the values
> I hope this makes sense, 
> Ashish
> --- [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> >  I have a action calls which populates the formbean
> > and forward to JSP where I
> > can see the values but when I submit the jsp back to
> > the same action the values
> > or lost.
> > 
> >  the jsp code is ( from the javasript I can see the
> > values I print in the
> > alerts) and I get the value I set to "actionstr" in
> > the action servlet but none
> > of the other values like "product_id" or
> > "period_end_date".  What is wrong??
> > 
> > Regards
> > Rajesh J
> > function cancelr()
> > {
> >   allo.actionstr.value="cancel";
> >   alert(allo.period_end_date.value);
> >   alert(allo.product_id.value);
> >   allo.submit();
> > }
> > 
> > 
> > 
> > 
> > 
> >  >name="allocationActionForm"
> >   
> > type="lam.mffs.form.AllocationActionForm"
> >styleId="allo"
> >scope="session">
> >  > styleId="actionstr"/>
> >  > cellspacing="0" cellpadding="0">
> >   
> >  > style="color: #FF">
> >   > face="ATSackLightRomNoBalls"> > height="45" src="images/top.bmp"
> > border="0"/>MFFS
> >   
> >   
> >  > style="color: #FF">
> >  
> >   
> >   
> >  > ="center"> 
> >> cellspacing="1" bordercolor
> > ="#00" bordercolorlight="#00"
> > bordercolordark="#00">
> > 
> >  > width="312" bordercolor="#FF"
> > bordercolorlight="#FF" bordercolordark="#FF"
> > align="right" nowrap>
> >   Period End Date  
> >> width="324" bordercolor="
> > #FF" bordercolorlight="#FF"
> > bordercolordark="#FF">
> >> property="period_end_date" styleId
> > ="period_end_date" size="10"/>
> >   
> > 
> > 
> >  > width="312" bordercolor="#FF"
> > bordercolorlight="#FF" bordercolordark="#FF"
> > align="right" nowrap>
> >   Product ID  
> >> width="324" bordercolor="
> > #FF" bordercolorlight="#FF"
> > bordercolordark="#FF">
> >> property="product_id" styleId="product_id"
> > size="10"/>
> >   
> > 
> > 
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: crazy error

2003-03-07 Thread Mark Galbreath
session is the default

mark

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 2:10 PM
To: Struts Users Mailing List
Subject: RE: crazy error



> Hi,
> How do u pass the bean to jsp from Action, do u pass
> it through request, if yes then u will loose the bean
> when u submit it back from jsp as it is a new request,

If your ActionForm is set to scope="request" in your ActionMapping (this is
the default if not specified, I believe), then yes, the ActionForm is on the
HttpServletRequest.  When you submit from the JSP, the ActionForm will ONLY
be populate with the values that were in the form that was submitted from
the JSP.  So, yes, the ActionForm from the previous request is lost.

If you want to keep the data, either stick the ActionForm in session scope
(not a good idea unless you are sure to remove it at some point), or use
hidden fields on your forms to maintain data that will be re-populated into
the ActionForm when you submit.



hope this helps,
Joe


> 
> and so loose all the values
> I hope this makes sense,
> Ashish
> --- [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> >  I have a action calls which populates the formbean
> > and forward to JSP where I
> > can see the values but when I submit the jsp back to
> > the same action the values
> > or lost.
> > 
> >  the jsp code is ( from the javasript I can see the
> > values I print in the
> > alerts) and I get the value I set to "actionstr" in
> > the action servlet but none
> > of the other values like "product_id" or
> > "period_end_date".  What is wrong??
> > 
> > Regards
> > Rajesh J
> > function cancelr()
> > {
> >   allo.actionstr.value="cancel";
> >   alert(allo.period_end_date.value);
> >   alert(allo.product_id.value);
> >   allo.submit();
> > }
> > 
> > 
> > 
> > 
> > 
> >  >name="allocationActionForm"
> >   
> > type="lam.mffs.form.AllocationActionForm"
> >styleId="allo"
> >scope="session">
> >  > styleId="actionstr"/>
> >  > cellspacing="0" cellpadding="0">
> >   
> >  > style="color: #FF">
> >   > width="61" height="45" src="images/top.bmp"
> > border="0"/>MFFS
> >   
> >   
> >  > style="color: #FF">
> >  
> >   
> >   
> >  > ="center"> 
> >> cellspacing="1" bordercolor
> > ="#00" bordercolorlight="#00"
> > bordercolordark="#00">
> > 
> >  > width="312" bordercolor="#FF"
> > bordercolorlight="#FF" bordercolordark="#FF"
> > align="right" nowrap>
> >   Period End Date  
> >> width="324" bordercolor="
> > #FF" bordercolorlight="#FF"
> > bordercolordark="#FF">
> >> property="period_end_date" styleId
> > ="period_end_date" size="10"/>
> >   
> > 
> > 
> >  > width="312" bordercolor="#FF"
> > bordercolorlight="#FF" bordercolordark="#FF"
> > align="right" nowrap>
> >   Product ID  
> >> width="324" bordercolor="
> > #FF" bordercolorlight="#FF"
> > bordercolordark="#FF">
> >> property="product_id" styleId="product_id"
> > size="10"/>
> >   
> > 
> > 
> > 
> > 
> > 
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more 
> http://taxes.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
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 you keep your session junk free?

2003-03-07 Thread Rick Reumann
On Fri, 7 Mar 2003 14:03:08 -0500
Sundar Narasimhan <[EMAIL PROTECTED]> wrote:

> >Explain how some other approach handles it in any better way? Use of
> >token to prevent duplicate submissions works for me. And what do you
> >mean by a continuation-style programming?
> Hi, Rick: CPS is a commonly accepted idiom for representing "what a
> program does next" in your language. Some languages such as
> Scheme (a lisp variant/dialect) have strong support for it.. 
> 
> In languages such as these.. you can actually write
> 
>int x = 5;
>x = getValue1();
>y = getValue2();
> 
> where getValue1 and getValue2 display the appropriate pages etc., and
> when the user hits the back button your program's state gets unwound
> to the point where it should be.. w/out ANY extra coding! You as a
> coder wouldn't have to write any code to "set" the variable x's value
> back to what it was etc.

Very interesting, thanks for the information. Can this kind of behavior
be achieved though simply by hitting a "browser" back button? I wouldn't
think that would be possible without using javascript to resubmit the
page or to make sure a fresh page was always being looked at?

-- 
Rick Reumann

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



RE: crazy error

2003-03-07 Thread Joe Barefoot
thanks.  For the record, I don't condone relying on defaults.  Never leave to 
assumption what you can explicitly specify. :)

--joe

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 11:14 AM
> To: 'Struts Users Mailing List'
> Subject: RE: crazy error
> 
> 
> session is the default
> 
> mark
> 
> -Original Message-
> From: Joe Barefoot [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 07, 2003 2:10 PM
> To: Struts Users Mailing List
> Subject: RE: crazy error
> 
> 
> 
> > Hi,
> > How do u pass the bean to jsp from Action, do u pass
> > it through request, if yes then u will loose the bean
> > when u submit it back from jsp as it is a new request,
> 
> If your ActionForm is set to scope="request" in your 
> ActionMapping (this is
> the default if not specified, I believe), then yes, the 
> ActionForm is on the
> HttpServletRequest.  When you submit from the JSP, the 
> ActionForm will ONLY
> be populate with the values that were in the form that was 
> submitted from
> the JSP.  So, yes, the ActionForm from the previous request is lost.
> 
> If you want to keep the data, either stick the ActionForm in 
> session scope
> (not a good idea unless you are sure to remove it at some 
> point), or use
> hidden fields on your forms to maintain data that will be 
> re-populated into
> the ActionForm when you submit.
> 
> 
> 
> hope this helps,
> Joe
> 
> 
> > 
> > and so loose all the values
> > I hope this makes sense,
> > Ashish
> > --- [EMAIL PROTECTED] wrote:
> > > Hi,
> > > 
> > >  I have a action calls which populates the formbean
> > > and forward to JSP where I
> > > can see the values but when I submit the jsp back to
> > > the same action the values
> > > or lost.
> > > 
> > >  the jsp code is ( from the javasript I can see the
> > > values I print in the
> > > alerts) and I get the value I set to "actionstr" in
> > > the action servlet but none
> > > of the other values like "product_id" or
> > > "period_end_date".  What is wrong??
> > > 
> > > Regards
> > > Rajesh J
> > > function cancelr()
> > > {
> > >   allo.actionstr.value="cancel";
> > >   alert(allo.period_end_date.value);
> > >   alert(allo.product_id.value);
> > >   allo.submit();
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > >name="allocationActionForm"
> > >   
> > > type="lam.mffs.form.AllocationActionForm"
> > >styleId="allo"
> > >scope="session">
> > >  > > styleId="actionstr"/>
> > >  > > cellspacing="0" cellpadding="0">
> > >   
> > >  > > style="color: #FF">
> > >   face="ATSackLightRomNoBalls"> > > width="61" height="45" src="images/top.bmp"
> > > border="0"/>MFFS
> > >   
> > >   
> > >  > > style="color: #FF">
> > >  
> > >   
> > >   
> > >  > > ="center"> 
> > >> > cellspacing="1" bordercolor
> > > ="#00" bordercolorlight="#00"
> > > bordercolordark="#00">
> > > 
> > >  > > width="312" bordercolor="#FF"
> > > bordercolorlight="#FF" bordercolordark="#FF"
> > > align="right" nowrap>
> > >   Period End Date  
> > >> > width="324" bordercolor="
> > > #FF" bordercolorlight="#FF"
> > > bordercolordark="#FF">
> > >> > property="period_end_date" styleId
> > > ="period_end_date" size="10"/>
> > >   
> > > 
> > > 
> > >  > > width="312" bordercolor="#FF"
> > > bordercolorlight="#FF" bordercolordark="#FF"
> > > align="right" nowrap>
> > >   Product ID  
> > >> > width="324" bordercolor="
> > > #FF" bordercolorlight="#FF"
> > > bordercolordark="#FF">
> > >> > property="product_id" styleId="product_id"
> > > size="10"/>
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > =
> > A$HI$H
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more 
> > http://taxes.yahoo.com/
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> 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: How do you keep your session junk free?

2003-03-07 Thread Robert S. Sfeir
On Friday, Mar 7, 2003, at 14:16 US/Eastern, Rick Reumann wrote:

Very interesting, thanks for the information. Can this kind of behavior
be achieved though simply by hitting a "browser" back button? I 
wouldn't
think that would be possible without using javascript to resubmit the
page or to make sure a fresh page was always being looked at?
Sorry to drop in like that, but what is the problem with using Tokens?  
just doing a setToken() before you forward to a jsp page, then doing a 
isTokenValid() when the action is called, usually on page submit, is 
enough to stop anything.  Even if they click the back button then hit 
submit, won't work.  If they reload the page with the form, they get a 
new token since reloading calls the action which sent them to the page 
with the token in the first place.  So far it works for me, and in the 
isTokenValid() check I just forward to a 'you can't resubmit this page 
dorkie, or you'll give me headaches' page, and all is just fine... plus 
you can do it in different languages by putting the warning text in the 
resources.properties file.  what more is needed here?


RE: crazy error

2003-03-07 Thread Mark Galbreath
no argument here!  I initialize every variable...in any language.

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 07, 2003 2:22 PM
To: Struts Users Mailing List
Subject: RE: crazy error


thanks.  For the record, I don't condone relying on defaults.  Never leave
to assumption what you can explicitly specify. :)

--joe

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 11:14 AM
> To: 'Struts Users Mailing List'
> Subject: RE: crazy error
> 
> 
> session is the default
> 
> mark
> 
> -Original Message-
> From: Joe Barefoot [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 07, 2003 2:10 PM
> To: Struts Users Mailing List
> Subject: RE: crazy error
> 
> 
> 
> > Hi,
> > How do u pass the bean to jsp from Action, do u pass
> > it through request, if yes then u will loose the bean
> > when u submit it back from jsp as it is a new request,
> 
> If your ActionForm is set to scope="request" in your
> ActionMapping (this is
> the default if not specified, I believe), then yes, the 
> ActionForm is on the
> HttpServletRequest.  When you submit from the JSP, the 
> ActionForm will ONLY
> be populate with the values that were in the form that was 
> submitted from
> the JSP.  So, yes, the ActionForm from the previous request is lost.
> 
> If you want to keep the data, either stick the ActionForm in
> session scope
> (not a good idea unless you are sure to remove it at some 
> point), or use
> hidden fields on your forms to maintain data that will be 
> re-populated into
> the ActionForm when you submit.
> 
> 
> 
> hope this helps,
> Joe
> 
> 
> > 
> > and so loose all the values
> > I hope this makes sense,
> > Ashish
> > --- [EMAIL PROTECTED] wrote:
> > > Hi,
> > > 
> > >  I have a action calls which populates the formbean
> > > and forward to JSP where I
> > > can see the values but when I submit the jsp back to
> > > the same action the values
> > > or lost.
> > > 
> > >  the jsp code is ( from the javasript I can see the values I print 
> > > in the
> > > alerts) and I get the value I set to "actionstr" in
> > > the action servlet but none
> > > of the other values like "product_id" or "period_end_date".  What 
> > > is wrong??
> > > 
> > > Regards
> > > Rajesh J
> > > function cancelr()
> > > {
> > >   allo.actionstr.value="cancel";
> > >   alert(allo.period_end_date.value);
> > >   alert(allo.product_id.value);
> > >   allo.submit();
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > >name="allocationActionForm"
> > >   
> > > type="lam.mffs.form.AllocationActionForm"
> > >styleId="allo"
> > >scope="session">
> > >  > > styleId="actionstr"/>
> > >  > > cellpadding="0">
> > >   
> > >  > > style="color: #FF">
> > >   face="ATSackLightRomNoBalls"> > > width="61" height="45" src="images/top.bmp" 
> > > border="0"/>MFFS
> > >   
> > >   
> > >  > > style="color: #FF">
> > >  
> > >   
> > >   
> > >  > > ="center"> 
> > >> > cellspacing="1" bordercolor ="#00" bordercolorlight="#00"
> > > bordercolordark="#00">
> > > 
> > >  > > width="312" bordercolor="#FF"
> > > bordercolorlight="#FF" bordercolordark="#FF"
> > > align="right" nowrap>
> > >   Period End Date  
> > >> > width="324" bordercolor="
> > > #FF" bordercolorlight="#FF"
> > > bordercolordark="#FF">
> > >> > property="period_end_date" styleId
> > > ="period_end_date" size="10"/>
> > >   
> > > 
> > > 
> > >  > > width="312" bordercolor="#FF"
> > > bordercolorlight="#FF" bordercolordark="#FF"
> > > align="right" nowrap>
> > >   Product ID  
> > >> > width="324" bordercolor="
> > > #FF" bordercolorlight="#FF"
> > > bordercolordark="#FF">
> > >> > property="product_id" styleId="product_id"
> > > size="10"/>
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: 
> > > [EMAIL PROTECTED]
> > > 
> > 
> > 
> > =
> > A$HI$H
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> > http://taxes.yahoo.com/
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

--

Re: [OT] Learning Curve Management or Confusions of a Newbie

2003-03-07 Thread Micael
No, you are right.  This is an ongoing problem.  The truth is, however, I 
think, that there is no easy solution.  Java is easy enough to learn and 
open enough to all that there is just a lot there.  No way to change that.

At 01:05 AM 3/7/03 -0700, you wrote:
I have to confess, I'm a newbie. I've been a C/C++ programmer for 20 
years, but after dinking around for a few months with ASP, VBScript, PHP 
and a few other technologies, I decided that Java was the language to 
build my web apps in.

A month ago I was completely cold. Didn't know the first thing about any 
of this stuff. But I knew I wanted to learn it, so off I went, marching 
into the high weeds. First I had to learn Java. Then came servlets and 
JSPs and Tomcat. And along that path I also had to absorb Ant. And JUnit. 
And Log4J. And then there was a bunch of time lost exploring 
NetBeans/Eclipse/WebSphere before settling on JEdit as my environment of 
choice.

Then came Struts, and all the various taglibs. An experiment with Cayenne. 
And Cactus. And god-knows what else I've explored.

And through it all, I am continually amazed at the strength and breadth of 
the resources and support available. And equally frustrated by it. I can 
never remember where I saw a particular bit of information. So when I 
finally learn enough to understand what Ted was talking about in his 
monograph on Connection Pooling, I can't remember where I saw it.

And when I want to learn enough about EJBs to figure out if I need to care 
about them, or if they are relevant to my planned project, I have to wade 
through another day of voluminous coverage before I have enough of a 
handle on what they are to make some intelligent guesses about where to 
look next.

My point is that I believe the Apache/Java/Struts/... universe is quickly 
reaching a point where its very breadth is becoming a barrier to entry for 
people who don't have a couple of months to devote to bootstrapping themselves.

Is there any thought being given to creating a higher-level resource 
interface that could serve as a single point of reference for all things 
Apache? (I realize that "all things java" would be going way too far.) As 
a simple solution, if every document in the Apache infrastructure had a 
meta tag that listed the questions answered by the document, then a very 
powerful, automated FAQ could be maintained. And such a system would make 
it much easier (I believe) to find things quickly than simply searching 
the site for key words.

This may not be the best (or only) solution, but I do believe that for all 
the very specific support and discussions there are, there is really very 
little over-view material to assist newcomers or people looking for 
information outside of their core area.

Or maybe I'm the only one who feels overwhelmed by it all. :-)

Jefficus


LEGAL NOTICE

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



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


RE: crazy error

2003-03-07 Thread Rajesh . Jayabalan

Hi,

  The scope to session until I have finished testing..

  The feild in the jsp page are directly related to the field int he formbean..
so on submitting it should be populated automatically.. which is not happening.

 I found this is because I of conversionexception  so when I created a servlet
extending actionservlet and

public void init() throws ServletException
  {
super.init();
ConvertUtils.register(new BigDecimalConverter(null),
java.math.BigDecimal.class);
  }

added the above method the problem has disappeared.

Regards
Rajesh J


   
   
   
   
   To: "Struts Users Mailing List" <[EMAIL 
PROTECTED]>   
 "Joe Barefoot"cc: 
   
 <[EMAIL PROTECTED]Subject: RE: crazy error
   
 om>   
   
 07 Mar 2003 02:10 PM  
   
 Please respond to 
   
 "Struts Users Mailing 
   
 List" 
   
   
   
   
   




> Hi,
> How do u pass the bean to jsp from Action, do u pass
> it through request, if yes then u will loose the bean
> when u submit it back from jsp as it is a new request,

If your ActionForm is set to scope="request" in your ActionMapping (this is the
default if not specified, I believe), then yes, the ActionForm is on the
HttpServletRequest.  When you submit from the JSP, the ActionForm will ONLY be
populate with the values that were in the form that was submitted from the JSP.
So, yes, the ActionForm from the previous request is lost.

If you want to keep the data, either stick the ActionForm in session scope (not
a good idea unless you are sure to remove it at some point), or use hidden
fields on your forms to maintain data that will be re-populated into the
ActionForm when you submit.



hope this helps,
Joe


>
> and so loose all the values
> I hope this makes sense,
> Ashish
> --- [EMAIL PROTECTED] wrote:
> > Hi,
> >
> >  I have a action calls which populates the formbean
> > and forward to JSP where I
> > can see the values but when I submit the jsp back to
> > the same action the values
> > or lost.
> >
> >  the jsp code is ( from the javasript I can see the
> > values I print in the
> > alerts) and I get the value I set to "actionstr" in
> > the action servlet but none
> > of the other values like "product_id" or
> > "period_end_date".  What is wrong??
> >
> > Regards
> > Rajesh J
> > function cancelr()
> > {
> >   allo.actionstr.value="cancel";
> >   alert(allo.period_end_date.value);
> >   alert(allo.product_id.value);
> >   allo.submit();
> > }
> >
> > 
> > 
> >
> > 
> >  >name="allocationActionForm"
> >
> > type="lam.mffs.form.AllocationActionForm"
> >styleId="allo"
> >scope="session">
> >  > styleId="actionstr"/>
> >  > cellspacing="0" cellpadding="0">
> >   
> >  > style="color: #FF">
> >   > face="ATSackLightRomNoBalls"> > height="45" src="images/top.bmp"
> > border="0"/>MFFS
> >   
> >   
> >  > style="color: #FF">
> >  
> >   
> >   
> >  > ="center"> 
> >> cellspacing="1" bordercolor
> > ="#00" bordercolorlight="#00"
> > bordercolordark="#00">
> > 
> >  > width="312" bordercolor="#FF"
> > bordercolorlight="#FF" bordercolordark="#FF"
> > align="right" nowrap>
> >   Period End Date  
> >> width="324" bordercolor="
> > #FF" bordercolorlight="#FF"
> > bordercolordark="#FF">
> >> property="period_end_date" styleId
> > ="period_end_date" size="10"/>
> >   
> > 
> > 
> >  > width="312" bordercolor="#FF"
> > bordercolorlight="#FF" bordercolordark="#FF"
> > align="right" nowrap>
> >   Product ID  
> >> width="324" bordercolor="
> > #FF" bordercolorlight="#FF"
> > bordercolordark="#FF">
> >> property="product_id" styleId="product_id"
> > size="10"/>
> >   
> >
> >
> >
> >
> >
> >
> --

Re: Want to stop tomcat's info messages from printing to console

2003-03-07 Thread Dave Patton
Yes.  You set this in the server.xml file of tomcat with the 
entry.  Check your server.xml file and I will bet you are using a
ConsoleLogger at some level.  Change those to FileLogger types instead. 
Check the Tomcat docs
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html) for
more info.

Dave Patton

On Fri, 2003-03-07 at 10:17, Scott Power wrote:

> I was wondering if there is a way to stop tomcat from printing its
> messages to the console.  I know how to configure the log4j message from
> within the application, by setting the level in the log4j.configuration
> file but I still get message on the console like the ones below.  I
> would like to stop these from showing up, I only want to see message
> from my app and the fact that tomcat has started and stopped.  I tried
> to change my CATALINA_OPTS variable in my CATALINA.bat file but I think
> I might either have incorrect syntax or something, I am using win 2000,
> with tomcat 4.1.  I have checked all my debug levels in the server xml,
> web.xml both for tomcat and the app itself.  I know its not a really big
> deal, but I want to make some clean log files for later use.  If anyone
> has ideas I would like to hear them.
> 
> Once again thanks in advance.
> 
> Scott 
> 
> 
> 
> 
> 7-Mar-2003 2:11:56 PM org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> 7-Mar-2003 2:11:56 PM org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> 7-Mar-2003 2:11:57 PM org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> 7-Mar-2003 2:11:59 PM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 8080
>  .
>  .
>  .
>  .
> \/
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



_
David H. Patton
[EMAIL PROTECTED]
(202) 276-8998 - pcs

-BEGIN PGP PUBLIC KEY BLOCK- 

Version: PGPfreeware 7.0.3 for non-commercial use  

mQENBDui6osBCADP9OqVftQ2qxZz2fsxEf6GT6V2Fu0c2iIIMeWGyc5Pwl+xXe2w 
3wx2pmNkLy3Zjp2/5q4nhvJd/GVn5gRR9OVTKgAz4o+xcOcAVIbgz3xFICbLozKa 
2aZOUDtOu0TuYGhI9iIeGuPjnMjsS38EfZQ2DWwd+p5UW6wnsSuG7xniUT372v8w 
YrtUwnKQwjRUGUlZoX1zwvJj50xEzipyyHosMuzjoHme+d+MEECRhAK81p0487kl 
X0UMXBehnsFK1mjbtQgfy2fdk0KT4NxKSD5s8ojoSdJ7R5CMwvh1UM4v2aAEqKvE 
CYaCWrAfZ7+TQGHXu75ejJz1iIuUno1fVsgLABEBAAG0IkRhdmUgUGF0dG9uIDxk 
cGF0dG9uQG52ZW50dXJlLmNvbT6JAS4EEAECABgFAjui6osICwMJCAcCAQoCGQEF 
GwMACgkQ5ZDkPqeKwH9Xswf/aP2WGiAU+HFxV136uKW5oDtZtSvm0YuW69Ra 
A2dPKFPp6E7v+w2c7yEV4+ZkVxbfk+VOh3p1MpXR367nQl9C+jMAD7MvPU6/KI+T 
5WDzzKEGsyxOI+GYeGRKO0ZAYITG9HxevvKa1GMHBwRYNr2Qv62ckkHTy5rdmzZe 
PFM/am8B9maH5gKg6oIqzJwfmvb+ll8DRbhfI25trLqzggifrFcZHkOwTVGLNfdM 
cPWK/Yu4dOLAKCow06q0G/tDmXNkcyx12R6Z4Y/cQ5Qyvt1WP+eQAM/HBJI8rR9c 
cxS80pEorJIx4a7x9EsiwmB8milqBrXqHN2GRe/PnZSM9czBK7kBDQQ7ouqNAQgA 
sWO4lchFwK6leJClCpdaCjL4oUGjiZorW+XG2YKtQW6a+oYlplcHFkMSibkTN6Jc 
RdPEkarRvJ7sj+UgsUfkj4//EtqARuHTXhnMlsjqISTXlS2l61fQFg1d0iwvinyV 
sq6lVDtrr7UBe2b5TOuoRe13CzGWyhNQafV1gMcpBx9KxNi24UowJiT+cJpnxMCu 
+DNElC2AmG7phPagSFL8F4f++dGL2l8kAkxCSCl3Kr+8HUlFmOwwZ1PGSSM83pM/ 
NNZKDAdGUiBRKqC32oOhKacxb6cf4ta1kZ6GDZcqVo+5qlz4OtUKbRLtW5Y8tiFc 
PwkDePX/F1490V3YWgHVzwARAQABiQEiBBgBAgAMBQI7ouqNBRsMAAoJEOWQ 
5D6nisB/8xsIAJLNUQC8SOQF5txBrO22W7uAJ9xU9RK66Pyf9a+KjdNf4rE6vK4n 
vhbSGmtoPB4bzOQ9RKpo8ihBQp1cY9mLnwuJDKSuzpkaOK5pd+bifwY20tweULR6 
4rtU8uLL1H0eom2IBjSXhf4n8DEdyrGKKHYNO/GRLx/UHHcLEFvz+4buHrCPoiBP 
JwjS/Ifg5xc3nTJnZmG2HzapoRwgXxGitbNTArUZWkqHYLygA1/ilmnFs8POj/s+ 
TD4wSuDlrwE2CE2O8XbRuRVPryzn8mXXdZ1pSwrrvZjRU5rnDRAOqhHZQQbudVd3 
XvnDDBDoURSqwDqnwOkoOSTC95aj+vy5WW0= 
=/zoc 

-END PGP PUBLIC KEY BLOCK-


  1   2   >