Re: Working sample struts application

2002-07-26 Thread Taranjeet Kathoor

Hi,

http://jakarta.apache.org/struts/resources/examples.html

will help u.

Taranjeet

- Original Message -
From: "Tarun Sainanee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 8:46 PM
Subject: Working sample struts application


> Is there a working sample struts application available on the internet? If
> yes, can someone please send me the link.
> I need to know how some things are implemented.
> Thnx

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




Question about Struts and XSL

2002-07-26 Thread John Owen



I inherited an application that uses a Model-1 MVC approach. I was hoping to 
migrate the application to the Model-2 approach that Struts offers. My 
problem is that a particular jsp page uses xsl to render a form and its 
elements. This particular page is the heart of a module that performs 
several tasks and I am unsure of how to proceed. My concern is that I will 
have to completely re-design the jsp/xsl combo to remove the form elements 
from the xsl in order to use the Struts html taglib and Action/Form classes. 
I was hoping to move code that resides in the jsp page into an Action class.

I looked through the message archive here briefly and found a few posts 
about stxx (I think), but I'm not sure it would help without a re-design. 
Any ideas or alternate approaches would be greatly appreciated.

Thanks,
John

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




Re: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Eddie Bush

I appreciate all suggestions ;-)  I'll start off with the book I 
mentioned and proceed from there as I feel the need.  I love to learn 
about "processes" though - they are what enable us to do what we do 
easier/faster/better.  I especially like to hear comments like "Oh - 
that was a super read.  It presented enough material I could apply the 
concepts right away!"  I think the end goal in reading any book (of a 
technical nature) is to improve your abilities by doing so.  I know I 
have room for improvement :-)  UML/UP is one (really quite large) thing 
that I think would help me out tons.

Thanks :-)

Eddie

Michael Delamere wrote:

>just to confuse you :-)
>
>I bought the bool called "UML and the unified process" and thought it to be
>very well  structured and easy to learn.
>
>Regards,
>
>Michael
>



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




Re: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Eddie Bush

Andrew Hill wrote:

>Personally I think JSPs are the devils work (mixing code and layout/chrome
>like that. Yuck!) - but the idea of writing servlets with lots of printlns()
>is absolutely obscene. The sort of thing that would give HP Lovecraft
>nightmares!
>
Hehehe - they'll have to hog-tie me and beat me into submission before I 
do it willingly ...

... but they save TWO SECONDS on each request!!! LOL - what 
justification ;-)

>Instead of JSP Im using XHTML and inserting my dynamic content into DOMs. No
>ugly mixing of code and layout.
>All the dynamic stuff is done in a good clean pure java classes, while the
>layout is in nice well formed xhtml.
>And yes! this IS a struts based application! - thats one of the great things
>about doing mvc with struts - you arent tied to using JSP as your
>presentation technology (though the wealth of tags struts provided makes it
>very tempting.)
>
Yes, struts is super when it comes to flexibility :-)  Personally, 
having the view that each developer is responsible for the quaity and 
correctness of whatever he turns out, I don't mind JSPs for 
presentation.  I mean - I know what good and bad is - I choose good. 
 It's kind of like when I was in college and one of my peers said 
something about arrays in C not having bounds-checking.  This came up 
because there was a BOOK teaching people that ARRAYS IN C START AT 1!  LOL

What it comes down to is knowing your tools, knowing how to use them to 
the best of your ability, and being willing not to compromise on things 
that "really matter".  Scriplets in JSP, IMHO, really matter - they 
don't belong there.  I'd rather have JSPs than have the overhead of 
having to dynamically translate XML into something else for each request 
(that _is_ how it works, right?)  Just use them "correctly" and there's 
no issue :-)  This is why organizations have policy - to enforce things 
like this.  Make a policy :-)

Peace,

Eddie


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




Re: SSL+Tiles

2002-07-26 Thread Eddie Bush

I'm not finding it :-/

You should be able to take the principals Ditlinger gives and transfer 
those concepts to 1.1 idealogies.  In other words, you probably want to 
extend RequestProcessor instead of ActionServlet.  I would think, with 
the advent of servlet specification 2.3, you may also find a more 
"container-centric" solution using a filter mechanism.

Enjoy,

Eddie

(Sorry, I honestly thought that article was out there.  Obviously I'm 
either wrong or incompetent when it comes to doing my own STFW!)


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




Re: struts submitting form when validating javascript

2002-07-26 Thread Stan Baranek

If you're like me you may have specified a  Hi all,
>
> Thanks in advance for any help.
>
> Has anyone encountered an instance in which struts 1.0.2 submits a form without a 
>submit button or a javascript call to submit()?
>
> I'm using javascript to validate my form.  This is an extensive library of 
>validation functions i've built up over many years and is fully tested, reliable, 
>etc.  In short, i recurse through the javascript DOM to find any fields that require 
>validation.  If the required fields pass the validation, I call "document.forms[ 
>xx].submit()" otherwise an error message is displayed via an alert popup and no call 
>to submit is made.
>
> Somehow Struts is submitting the form anyway, even when I have no submit button or 
>js call to submit ANYWHERE on the page.  The server logs show that struts starts 
>processing the post after the javascript finishes (and no submit is called).
>
> I'm running this on JRun 3.1
>
> Here's the relevant code:
>
> 
> ...
> ...
> ...
>   3 is the dom order of the form (4th form on page)
>
> 
>
> ---struts log - (reverse chronological)
>
> 07/26 11:13:59 info (JRun) payroll: Looking for Action instance for class 
>com.xxx.payroll.action.UpdateEmployeePlanAction
>   [1176]   07/26 11:13:59 info (JRun) payroll: No errors detected, accepting input
>   [1175]   07/26 11:13:59 info (JRun) payroll: Validating input form properties
>   [1174]   07/26 11:13:59 info (JRun) payroll: Populating bean properties from this 
>request
>   [1173]   07/26 11:13:59 info (JRun) payroll: Storing instance under attribute 
>'employeePlanForm' in scope 'request'
>   [1172]   07/26 11:13:59 info (JRun) payroll: Creating new ActionForm instance of 
>class 'com.xxx.payroll.form.EmployeePlanForm'
>   [1171]   07/26 11:13:59 info (JRun) payroll: Looking for ActionForm bean under 
>attribute 'employeePlanForm'
>   [1170]
>
> -Brian
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


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




Conversion from templates (Struts 1.0.2) to Tiles

2002-07-26 Thread Tim T. Young


I am converting a couple of test pages from templates in Struts 1.0.2 to
use Tiles.  My question is, how do I do something like this:

 
  
 
 
 



 


Can I use "extends" to turn the "sidebar" off?  From a couple of quick
tests this seems not to work (it tries to load a file called "" and
understandably fails)  The template stuff in Struts 1.0.2 was forgiving
enough to treat "" as nothing and would just return null or empty string or
something from the tag, not an error or anything.

Any info would be appreciated...
Tim


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




Re: basicPortal comments

2002-07-26 Thread @Basebeans.com

Subject: Re: basicPortal comments
From: Vic C <[EMAIL PROTECTED]>
 ===
(thnx, I responed on mvc-programmers, V.)

Mete Kural wrote:
> Hello Vic and others,
> 
> The basicPortal presentation was very nice. Thank you
> for your efforts. I think providing verticals for the
> J2EE community would be a very good effort, because
> after all we're doing very similar things over and
> over. Everybody is implementing user authentication,
> shopping cart/web store, content management, site
> administration, etc. The basic 80/20 rule applies here
> also. 80% of our requirements for the above listed are
> the same, while 20% of it is specific to our business.
> Each one of us is implementing that 80% on our own
> over and over again. Instead we could join efforts and
> implement that 80% together, then finish up the rest
> 20% on our own, which may be very specific to what are
> business is involved in. This way we can save time,
> money, and improve reliability and performance.
> 
> Are you inviting other contributors for basicPortal? I
> would be happy to help.
> 
> Thanks,
> Mete Kural
> 
> 
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


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




Re: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Daniel Jaffa

Though some times this approach can back fire on you.

Some companies would rather shot them selves is the foot then do something
a person in management does not want to do (IF you did not ask first).  I
found that instead of trying to
make the person hang themselves it is easier to make it look like you are
following
their rules, and that is why you went with struts.





- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 10:10 AM
Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns


> Chappell, Simon P wrote:
>
> >>Sometimes, the best technique is to just sit back and give
> >>people enough
> >>rope to hang themselves.  I've done it in the past, I'm doing
> >>it right now
> >>on the contract I am on, and I'm sure I'll have to do it in the future.
> >>
> >
> >I don't even wait to see if they hang themselves, I usually just get on
and do it and hope for their sakes that they try to catch up with me. On my
current project, I started using Struts and got the rest of the team using
Struts and then when we had enough work done that ripping it out would have
been difficult, we asked if we could get approval from our architecture
group for using Struts. :-)
> >
> LOL - S M O O T H, man - really S M O O T H :-)  I like that!  LOL
>
> Eddie
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Token Functionality

2002-07-26 Thread Kesava Achanala



Hi All,
I just got one question on Token Functionality.
I written the saveToken and isTokenValid and
resetToken. They are working fine for reloading and
multiple submits. I have only one problem here when user using back button 
and modified the form and submit it again. even though the  request got 
changed but it is still going into the (!isTokenValid(request)) and showing 
the error message. Here what I am doing...

if(!isTokenValid(request))
{
  errors.add(",...");
}
resetToken(request);

if(!errors.empty())
{
  saveErrors();
  saveToken(request);

}

Is there anyway we can avoid this... Thanks in advance...

Kumar


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




java.lang.LinkageError: loader constraints violated... org/apache/commons/logging/Log...

2002-07-26 Thread Colin Wilson-Salt

I'm getting a lot of these when I redeploy applications (on JBoss 3.0 with
Tomcat 4.0.3, Struts 1.1 beta):

java.lang.LinkageError: loader constraints violated when linking
org/apache/commons/logging/Log class
at org.apache.struts.action.ActionServlet.(ActionServlet.java:331)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

I can prevent it by blowing away the work directory under jboss' catalina
directory, so I'm guessing it's got something to do with classes being
loaded by different classloaders.

Is there anything I can do to avoid this? I've made all my Log variables
transient in classes that can be serialized (which is just about everything
except for my Actions), but I don't think that's my problem.

Any ideas?

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




Re: which tag for if else statement?

2002-07-26 Thread Eddie Bush

The condition will be evaluated - yes.  It has to be.  Are comparisons 
really that slow though?  I wouldn't think it would add super-great-deal 
of overhead.  Isn't this functionality addressed by the JSTL?  I ... if 
memory serves correctly, it is.  You may want to check out the commons 
taglibs project.  They host the JSTL RI.

Vikramjit Singh wrote:

>Yeah logic:equal and logic:notEqual are there, but i dont think, that they
>do what if-else statment does. 
>I dont think if logic:equal tag condition is satisfied, then logic:notEqual
>tag is not checked, like in if-else statements. coz if if statement is
>satisfied, then the control does not go in else statement, which is much
>faster than while writting if and if statements.
>
>If above what i am saying is correct, These could slow down the performance
>if there are too many conditions to be checked.
>
>I know i have to write these tags, but thought how do they get processed.
>
>Regards,
>Vikram.
>



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




Re: How do I navigate from one subApp to another in Struts1.1?

2002-07-26 Thread Craig R. McClanahan



On 26 Jul 2002, Troy Hart wrote:

> Date: 26 Jul 2002 18:02:29 -0600
> From: Troy Hart <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: How do I navigate from one subApp to another in Struts1.1?
>
> Craig,
>
> What do you mean below??? I am trying to understand how sub-applications
> work and I thought I had a handle on it, but I am now confused. Why/how
> are you bypassing the controller servlet when using
>
> 
>

Let's assume that you have the "foo" forward defined as something like:

  
  

and you use an  tag as above.  What does the generated HTML
look like?  Assuming the context path is "/myapp" it looks like:

  

which goes *directly* to the JSP page, not through the controller servlet.
The Struts tags on this page will not understand that they are part of the
"/bar" sub-application, because the controller never had a chance to set
the right request attributes.

> Can you tell me where my understanding of the this process breaks down?
> I will spell out the major steps that are related to the sub-application
> stuff as I see it:
>
> 1) A request comes in to ActionServlet, which inspects the request path
> to determine the sub-application to use (which may be the default app --
> sub-app prefix = ""), and fetches the application configuration for that
> sub-application.

This is the key step, isn't it?  What happens when a requst does *not*
come in to the controller servlet?

The answer is that the request attribute set by step 3) (I guess step 2 is
so magical nobody knows what it is :-) never gets set -- and Struts
consistently assumes that this means you are running in the default
sub-app.

> 3) The application configuration request attribute is updated to hold
> the current sub-app configuration.
> 4) The process() method of the sub-app specific request processor is
> invoked, which ultimately may end up forwarding to a jsp page that
> contains 
> 5) html:link taglib code accesses the current sub-application
> configuration to lookup the global forward "foo" and renders the link
> appropriately. That is to say, if the current sub-app has defined a
> contextRelative forward named "foo" that references an action in the
> "goo" sub-app a link to some "goo" sub-app action will be rendered in
> the browser.
> 6) Now the page is rendered and the user clicks the link to the "goo"
> sub-app action.
>
> Is this request not bound for the action servlet? And/or will it not
> cause the action servlet to select the "goo" sub-application
> configuration?
>
> Also, I would like to be able to use the SwitchAction, but can not tet
> it to work. Does it really work for you in practice? From what I am able
> to gather no one has ever been successful at getting it to work and I
> wonder what you are doing differently.
>
> I've posted a few messages already on this topic, but I've never had a
> single response. If you could spare a few minutes to point me in the
> right direction I would greatly appreciate it. The company I work for is
> collaborating with 2 other companies to build a single struts
> application for the department of defense EMall. As you can well
> imagine, the sub-application features of struts are very desirable given
> our situation.
>
> Many thanks for any help I can get on this issue!
>
> Troy
>

Craig


> >
> > The tempting way to do this is to do something like
> >
> >   
> >
> > and mark the "foo" forward as being context relative.  However, this will
> > ONLY work if you are switching to the default sub-app, because you'd be
> > bypassing the controller servlet where sub-app selection is performed.
> >
> > The better way is to make your link go through an  that uses the
> > standard SwitchAction class.  This wants you to send along the application
> > prefix of the sub-app you want to switch to, as well as a resource in that
> > sub-app to forward to after the switch.
> >
> > > danny
> > >
> >
> > Craig
> >
>
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>
>


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




RE: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Andrew Hill

Hehe. I only learned enough to parse in my XHTML (which is just html with a
few / in the right places) and get a DOM (which is basically a glorified
tree with several types of nodes, and 90% of the time im just interested in
the element node type)). So if my xhtml has  I could use something like
document.getElementById("bob").setAttribute("value","yada yada yada");
(Actually I do a lot more and at an abstract level - but its still not very
technically complicated - the complexity is all stuff Ive added. For
example, if the bob element was a  or a  or a  etc... my
code is smart enough to figure it out and modify the DOM in an appropriate
manner, so I can fool around with the layout to a certain degree with no
code changes required).

Still havent learnt all that xPath, and xslt stuff... now THAT looks hard
;-)

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 12:51
To: Struts Users Mailing List
Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns


Andrew Hill wrote:

>C arrays start at one! rofl! Which book was that!
>
I don't recall now.  The dept chair was giving the computer club books
to sell for funds at the time, and I think general consensus was that
_that_ book should simply be burned - which we did, with great pleasure,
while consuming large amounts of alcoholic beverages ;-)  Ah - the joys
of college.  LOL

>Yep. One can certainly do very good code in JSPs, and one can do very bad
>code in Java, so in the end, as you say its up to the developer concerned.
>Personally I find JSPs somewhat ugly, and I dont like having to wait till
>deploytime or runtime to see if I made a stupid typo somewhere (I do this a
>lot), and I find normal java source code a lot easier to debug when I get
>exceptions or other such errors (which is also quite often!). I also didnt
>have time to learn JSP in depth when I started this project and found it
>quicker to develop using skills I already had (plain xhtml, and 'normal'
>java).
>Its really a matter of preference.
>
Yes, it really is :-)  I'm in your reverse position though.  I found it
much easier to pick up JSP than XML.  To this day, I have an XML
aversion that I hope to eventually cure.

>Ive implemented a simple caching mechanism, so I only have to parse the XML
>into a DOM once for a particular page (XMLC, which is also DOM based, takes
>another approach here and actually generates a java class file at compile
>time with code that will assemble the DOM at runtime), but of course the
DOM
>still has to be written out as text at the end of the day. Im not sure how
>much slower this is than straight print() calls in the compiled jsp code.
>Shouldlnt be too bad I would think as its really just a case of the
>XHTMLSerializer walking the tree, but obviously theres somewhat more
>overhead there. I dont think the 2 second servlet folk would appreciate it
>;-)
>
Ahh - you probably don't suffer as much as I thought you did.
 PFT!  You know - some companies think they are "so bright".  It's
amazing to know that some of them are indoctorinating folks into such
habits.  ... sad really.

>Off topic, but still talking xml, I gather most modern browsers now support
>xml and xsl so you can return xml and have the stylesheet on your server
>where the broswer will pull it up and do the conversion. Your presentation
>code here would return xml and a neat opportunity this presents it that you
>could supply different stylesheets for different locales, client devices,
>etc... (For clients that cant do the conversion, you would do it for them
of
>course and then return the final *ml). Theres a library for doing this sort
>of thing in struts (stxx I think its called?). Alas, I never had time to
>look into this. Seems pretty cool though.
>
Love the concept - hate the XML ;-)  No offense.  As I said, I have an
aversion to XML I need to overcome.  I do see it's utility - lots of
power.  I just haven't had time to put forth brain-power actually trying
to learn it well yet :-/ ... but I'm sure that day will come.

Bed-time :-/



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Eddie Bush

Jacob Hookom wrote:

>The book I recommend is "The Unified Software Development Process", it
>was required reading last year for software engineering.
>
>Btw, if you ever need books, go to bookpool.com, comparatively, books
>are anywhere from 5-15 dollars cheaper.
>
I always order through bookpool - but I check reviews at amazon :-) 
 Thanks for the tip though - very sound advice!



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




RE: Oh my gosh!

2002-07-26 Thread James Ward

Eddie,
Perfect!!!  A How-To can be as simple as "Look here, and Here and Here".
Thanks!!!  Your How-TO is much appreciated.  :)

-James


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 7:44 AM
To: Struts Users Mailing List
Subject: Re: Oh my gosh!

LOL - It's actually kind of all "declarative" in a way.  Have you read 
the stuff Chuck wrote on this topic?  That's where I got my footing at 
:-)  Go dig into Chapter 11 (I think it's 11) of Chuck's book and 
_really_ dig into it - and then let us know if you have problems ;-)

I'm just making use of what Dave has in validation-rules.xml and have 
pruned (ok, massacred!) validation.xml down to just what I wanted. 
 Initially, I just started (after reading Chuck's chapter) coding in a 
super-simple form from the dyna-forms examples.  Once I was satisfied I 
understood that (nope - never used them before - always coded them - no 
more!), I then changed it to a dyna validator form - with absolutely no 
validation associated with it.  Then, I incrementally built it - adding 
"depends='required'" to everything that needed it, adding masks for 
things that needed them.  I had seen several people were having issues 
with how Dave had done the JS, and so I didn't want to over-load myself.

 All in all, the form validation rules remind me of ant tasks 
sorta-kinda.  I guess the only similarity is really the depends= 
attribute ... but I always tend to think "ant" when I look at that file.

 The concept is the same - well kind of.

David builds up constructors for each requirement (in JavaScript that 
is) that is placed upon a given field.  For instance, all "required" 
fields are grouped together into a "required()" constructor.  This 
constructor builds up a collection of objects that he then iterates 
over.  Since each of the items in the collection has it's own validation

rules, he just iterates over the collection and validates as he goes. 
 He then does the same thing with masks (in my case).  It's pretty neat,

really :-)  Having written enough JavaScript to be "semi-comfortable" 
with what the output from Validator really helped me understand what was

going on.  It's amazing what you get when you "View Source" on a page 
with a form controlled by the Validator.  Ok - maybe not amazing - but 
it sure is neat :-)

If you have any specific questions/issues, I'd be glad to try to answer 
them.  I highly recommend Chuck's chapter on it though.

Regards,

Eddie

James Ward wrote:

>Can you write the How-To or give us some code examples?   I want to be
>as blessed too!
>
>-James
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




struts submitting form when validating javascript

2002-07-26 Thread Brian Steele

Hi all,

Thanks in advance for any help.

Has anyone encountered an instance in which struts 1.0.2 submits a form without a 
submit button or a javascript call to submit()?

I'm using javascript to validate my form.  This is an extensive library of validation 
functions i've built up over many years and is fully tested, reliable, etc.  In short, 
i recurse through the javascript DOM to find any fields that require validation.  If 
the required fields pass the validation, I call "document.forms[ xx].submit()" 
otherwise an error message is displayed via an alert popup and no call to submit is 
made.

Somehow Struts is submitting the form anyway, even when I have no submit button or js 
call to submit ANYWHERE on the page.  The server logs show that struts starts 
processing the post after the javascript finishes (and no submit is called).

I'm running this on JRun 3.1

Here's the relevant code:


...
...
...
  3 is the dom order of the form (4th form on page)



---struts log - (reverse chronological)

07/26 11:13:59 info (JRun) payroll: Looking for Action instance for class 
com.xxx.payroll.action.UpdateEmployeePlanAction 
  [1176]   07/26 11:13:59 info (JRun) payroll: No errors detected, accepting input 
  [1175]   07/26 11:13:59 info (JRun) payroll: Validating input form properties 
  [1174]   07/26 11:13:59 info (JRun) payroll: Populating bean properties from this 
request 
  [1173]   07/26 11:13:59 info (JRun) payroll: Storing instance under attribute 
'employeePlanForm' in scope 'request' 
  [1172]   07/26 11:13:59 info (JRun) payroll: Creating new ActionForm instance of 
class 'com.xxx.payroll.form.EmployeePlanForm' 
  [1171]   07/26 11:13:59 info (JRun) payroll: Looking for ActionForm bean under 
attribute 'employeePlanForm' 
  [1170]

-Brian
   

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




Working sample struts application

2002-07-26 Thread Tarun Sainanee

Is there a working sample struts application available on the internet? If 
yes, can someone please send me the link.
I need to know how some things are implemented.
Thnx


Sending response to browser as a ZIP

2002-07-26 Thread Jan Fetyko

Hi all,

I'm looking for some advice or solution that'd help me send the response 
to the browser as a zip file. I did found a tag that does it on :

http://www.servletsuite.com/servlets/opttags.htm

but I'm getting some errors while the page is rendered ( see bellow ), 
so I'm looking for a different way to do it. Does anybody know how to ?

My config is :
Tomcat 4.1.7 Beta
Java 1.4.0_01-b03
Struts

The error:

2002-07-26 06:46:45 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
org.apache.jasper.JasperException: java.io.IOException: Cannot flush a 
closed output stream
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1759)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2350)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:469)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
javax.servlet.ServletException: java.io.IOException: Cannot flush a 
closed output stream
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:492)
at org.apache.jsp.ship$jsp._jspService(ship$jsp.java:322)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:202)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.s

Re: Login Question

2002-07-26 Thread @Basebeans.com

Subject: Re: Login Question
From: Vic C <[EMAIL PROTECTED]>
 ===
Now that you buttered me up:

basicPortal does not handle it, it just uses JAAS and Web.xml relms so 
it just illustrates how to do this.
(just like it illustrates how to do tiles action or how to use JSTL tags 
with Struts, how to store xml in DB and use Standard X:transform tag, 
several good practices that I teach implementation from)

In basicPortal users can see the first page without login in (list of 
content tiles) but if they want to see issues, submit content, add 
comments, add an issue, etc. they are forced to login.
If they have the right "relm" they can approve content.

So "relms" do not work without login, but once they are logged in, 
different groups can see different things (and auto passes parms, 
forwards, etc.) And of course you can leave some pages unprotected, 
and allow person to login in before going to the protected areas.

Like theServerSide.com:
You can see discussion topics "free". But if you want to comment or add 
content, you have to authethicate; except I did it in web.xml.
And a 3rd level might be, if users is in a "paid" relm, they might get a 
different layout and a different css, etc.


Vic

(if you are on a Struts project, consider using 
basicPortal.sourceforge.net for issue tracking at least - 800 downloads 
in 2 days;
I will write a few more verticals for it; is't it time that Open Source 
started doing verticals? - I will so smoke JetSpeed.
and ... mvc-programmers on group.yahoo, you can keep track play by play, 
or don't stand on the side lines; I welcome contributors)

Eddie Bush wrote:
> Ok, Vic, but what if you want to "let" the user login instead of "make" 
> the user login?  CMA won't allow that, will it?  ... at least, not 
> without a nasty work-around.  Do you have a solution for this scenario? 
> Let me explain let/make:
> 
> let:
>The user may login at any point they choose.
>This (explicitly) involves CMA
> 
> make:
>The user has requested a restricted area and must login to access it.
>This (implicitly) involves CMA
> 
> Crag had mentioned that spec 2.4 would make available a "logoff" 
> functionality that a person could employ when using CMA and invalidating 
> a users session.  He eluded to no equivalent for logging a user in 
> though.  Ideally, a login implementation would allow the developer to 
> (programatically and perhaps declaratively as well) specify where the 
> user should end up - ie where they should be forwarded/redirected to.
> 
> Does basicportal handle this?  Does it do CMA on a "let" basis?
> 
> Thanks!
> 
> Eddie
> 
> Struts Newsgroup (@Basebeans.com) wrote:
> 
>> Subject: Re: Login Question
>> From: "Vic C." <[EMAIL PROTECTED]>
>> ===
>> As this post says
>> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg36670.html
>>
>> to extend JAAS you do this:
>> (i cut and paste now)
>> "
>> Then if you want more you do servlet api, getuserpricipal or 
>> getremoteuser, snipet:
>> String authenUser = ae.getReq().getUserPrincipal().getName(); 
>> //security
>> UserBean userBn = new UserBean();
>> userBn.find(authenUser);
>> String userid = userBn.getId();
>> frm.setUserid(userid);
>>
>> Here is a link on servlet api
>> http://java.sun.com/webservices/docs/ea2/api/";
>>
>> V
>>
> 
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


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




Re: XML resources (was RE: Initialization Question)

2002-07-26 Thread Eddie Bush

Martin Cooper wrote:

>>-Original Message-
>>From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
>>Sent: Thursday, July 25, 2002 6:07 PM
>>To: Struts Users Mailing List
>>Subject: Re: Initialization Question
>>
>[lots of stuff snipped]
>
>>NOTE:  Someone took a crack at abstracting the message 
>>resources stuff out
>>of STruts and into a jakarta-commons-sandbox project called 
>>"resources",
>>like we've extracted other useful things that are not (by themselves)
>>Struts dependent.  It would be cool if someone wanted to 
>>finish that work,
>>including an implementation that reads XML files and an implementation
>>that loads resources from a database.
>>
>
>So the real question is, what would a "good" XML-based implementation look
>like? We know we need to get locales, keys and message text. But do we want
>to dictate the XML DTD to be used, or do we want to try to come up with an
>implementation that is configurable (probably using XML files :) so that it
>can read from arbitrary XML files?
>
... yet one more reason I couldn't do an XML implementation - I have no 
clue :-(




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




Re: SSL+Tiles

2002-07-26 Thread Eddie Bush

Search is a powerful tool.  Upon searching Java World for "Ditlinger", I 
found many articles he authored.  One you may find particularly 
interesting is:

http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html

Gilmar J. Alves de Souza Jr. wrote:

>Hello Eddie,
>
>   Thanks for your help, but I didn't find the update.
>   I've just found the original article:
>http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html
>   And the url from Struts resources page:
>   http://struts.ditlinger.com/
>   Any of them refer to an update for Struts 1.1.
>
>thanks again
>



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




RE: First Web Application: Really Need Help

2002-07-26 Thread Singh, Sandeep

Probably if you are going to use IBM tools
you can get a quote from IBM itself for all these things.
Even Websphere App server standard edition will
serve the purpose.You can use your existing Database(DB2UDB or Oracle etc)
where you business data is residing.



-Original Message-
From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 2:31 PM
To: [EMAIL PROTECTED]
Subject: First Web Application: Really Need Help


Hi to all,

I need really an urgent help. I have been given opportunities to build my 
first web application. It is a very simple application. It is basically a 
kind of time tracking application. Using this application a employee can 
enter the information for pay period (like any vacation sick, jury
duty.) 
and submit this for supervisor review. Supervisor is going to review and 
approve it. Once supervisor approved the information for a employee then 
employee can not change anything for a pay period. Finally few report based 
on the information. There would be around 1000 users who are going to use it

probably on Friday only.


I am sun certified Java programmer. i have been working in application 
development since last 6 years. I never build any web application. I need 
help to figure out some basic things. Please advise me ASAP.

Q#1
What is the best hardware for me keeping in mind that 1000 user is going to 
use it probably on Friday only?

Q#2
Do I need separate hardware for database or I can use same machine?

Q#3
Which server is best for me (like weblogic , websphere, )? What is the 
difference between websphere application server and apache webserver? How 
does this whole thing works? Probably we are going to use IBM's tool.

Q#4
Which database?

Q#5
Is Struts helpful for this kind of small project?

Q#7
Does websphere  work well with struts?

Any advice you guys think would be helpful for me are most welcome.


Please help me ASAP.

vivek


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:

For additional commands, e-mail:




Resin 2.1.3 and struts: Problem

2002-07-26 Thread Will Jaynes

FYI. The latest Resin 2.1.3 does not work with Struts. It has a bug that 
prevents the ActionServlet from locating the web.xml and 
struts-config.xml files. So don't bother to upgrade until 2.1.4 comes out.


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




RE: First Web Application: Really Need Help

2002-07-26 Thread Chappell, Simon P

See comments below ...

>-Original Message-
>From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
>Sent: Friday, July 26, 2002 1:31 PM
>To: [EMAIL PROTECTED]
>Subject: First Web Application: Really Need Help
>
>
>Hi to all,
>
>I need really an urgent help. I have been given opportunities 
>to build my 
>first web application. It is a very simple application. It is 
>basically a 
>kind of time tracking application. Using this application a 
>employee can 
>enter the information for pay period (like any vacation sick, 
>jury duty.) 
>and submit this for supervisor review. Supervisor is going to 
>review and 
>approve it. Once supervisor approved the information for a 
>employee then 
>employee can not change anything for a pay period. Finally few 
>report based 
>on the information. There would be around 1000 users who are 
>going to use it 
>probably on Friday only.
>
>
>I am sun certified Java programmer. i have been working in application 
>development since last 6 years. I never build any web 
>application. I need 
>help to figure out some basic things. Please advise me ASAP.
>
>Q#1
>What is the best hardware for me keeping in mind that 1000 
>user is going to 
>use it probably on Friday only?

Some might use it on Monday mornings. That's what happens around here. Also, some of 
our folks enter their time at the end of each day. Will your system allow for that? My 
gut feel for hardware would be for a smallish Unix server or a medium sized Windows 
server. At least two CPUs.


>Q#2
>Do I need separate hardware for database or I can use same machine?

Need - no. Might be useful - yes. Design the system in layers and you can put the DB 
anywhere you want.

>Q#3
>Which server is best for me (like weblogic , websphere, )? What is the 
>difference between websphere application server and apache 
>webserver? How 
>does this whole thing works? Probably we are going to use IBM's tool.

Your company most likely has a STANDARD that you should follow for fear that the sky 
will fall and cats and dogs will start sleeping together. If you like your job, follow 
the STANDARD. Me  I'm quite happy hacking around with JBoss.

>Q#4
>Which database?

See my previous comment about STANDARDS from upon high. We use DB2 here because our 
STANDARDS say so. I quite like HSQLDB for my own tinkering.

>Q#5
>Is Struts helpful for this kind of small project?

Yes and no. Struts is VERY helpful if you are building an MVC web frontend. Struts 
will not help or hinder anything that you do on the back end. On my current project, 
struts stuff is about one third of the whole project (100% of what the users see), 
while our back end is the other two thirds. We have found struts very helpful for the 
"V" and "C" in MVC, but remember that the "M" is huge! :-)

>Q#7
>Does websphere  work well with struts?

Don't know. I try to avoid W.A.S. as much as possible. See my previous comment about 
JBoss. Our tactically approved App Server for internal apps at this time is JRun. It 
works and no one swears at it.

>Any advice you guys think would be helpful for me are most welcome.

A web application is like an iceberg, the pretty bits are only the top 10%. Get an 
experienced web developer on your team. Contract in a mentor. This has worked well for 
a number of teams that I have been on.

>Please help me ASAP.
>
>vivek

Hope this helps.

Simon

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

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




RE: eclipse and Struts

2002-07-26 Thread Mark Nichols



> -Original Message-
> From: Will Jaynes [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 6:27 AM
> To: Struts Users Mailing List
> Subject: Re: eclipse and Struts
>
>
> There is no capability in Eclipse to step through the JSP page code
> itself. You can do this in IBM's WSAD, which is built on Eclipse, but
> WSAD costs.

FWIW, there is a "trial edition" of WSAD that you can download and use for
free. I've had it running since January now with no troubles at all.



 You *can* step through the classes that are compiled from
> the JSPs, but who would want to. I agree with you that debugging forms,
> actions, and business layer classes is enough. If I have to debug a JSP
> then I've probably made it too complicated.
>
>
> Andrew Cunningham wrote:
> ...
> > strangely, I never seem to get jsps to debug properly in eclipse (can
> > anybody help?), but since I'm relying on taglibs all the time, I don't
> > find I need to step through jsp anyway - placing breakpoints in actions
> > and forms is just fine for me
> >
> > A
> >







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




FW: invalid e-mail address

2002-07-26 Thread Tero P Paananen

Somebody please remove the invitrogen.com subscriber that's
causing these bounces, please.

-TPP

-Original Message-
From: AutoReply, Invitrogen.com [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 9:00 AM
To: Tero P Paananen
Subject: invalid e-mail address


You have sent an e-mail to an address at invitrogen.com that is no longer
valid.

If you would like to place an order, please resend your email to
"[EMAIL PROTECTED] "

If you require Technical Service, please resend your email to
"[EMAIL PROTECTED] "

If you require immediate assistance, please call us at 1-800-955-6288.

Thank you,

Invitrogen Corporation



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




RE: digest unsubscribe prob

2002-07-26 Thread Mark Nichols

Did you reply to the mail your request generated, following the directions
contained in that e-mail?




> -Original Message-
> From: slickdev [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 1:25 PM
> To: Struts Users Mailing List
> Subject: digest unsubscribe prob
>
>
> yeah, i know: there's "no problem" with unsubscribing from the
> struts user digest.
> well, not for me.  i've sent an unsubscribe request at least 10
> times, and still get all that crap.
>
> does anyone know the solution, other than changing my email address?
>


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




Re: Extending DynaActionForm

2002-07-26 Thread @Basebeans.com

Subject: Re: Extending DynaActionForm
From: "Kevin Henrikson" <[EMAIL PROTECTED]>
 ===
Yes simply subclass it and add your custom validate() and reset() methods.
Make sure you have dynamic="true" when you define the form bean in
struts-config.xml (unless you are running the nightly build) where this is
no longer required.

-kevin

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
>
> Is it possible to extend the DynaActionForm or something similar into a
> new Form Bean?
>
> What I want to do is have an object for a formbean, but be able to add
> in my own validate and reset code...
>
> The things I have tried have not worked for me...
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: redirect

2002-07-26 Thread Billy Ng

Sorry, I am a new Struts user and slow.  I need to hit the Action2's
perform() from Action1's perform() to have further business logic to do.
Also, I will have query string in the url.  If I only put the
"redirect='true'" in the ? tag, it won't do the work.  Would you
please tell me how to do it, thanks!

Billy Ng

- Original Message -
From: "Erich Meier" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 3:01 AM
Subject: Re: redirect


> On Fri, Jul 26, 2002 at 11:07:14AM +0800, Tuck Wai wrote:
> > Hi,
> >   ActionForward newAF=new ActionForward( > redirect>);//for example 'yourAction.do?action=first'
> >   newAF.setRedirect(true);
> >   return newAF
>
> This won't work with the upcoming struts 1.1 release. You should better
use
> the "redirect='true'" attribute of the action statement in the
> struts-config.xml.
>
> Erich
>
> > - Original Message -
> > From: "Billy Ng" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, July 26, 2002 10:10 AM
> > Subject: redirect
> >
> >
> > This question may have asked so many time.  Would anybody tell me how to
do
> > redirect.  If I have 2 Action objects, The Action1 finsihes the business
> > logic and want to rediect to Action2 to display the jsp page.  How can I
do
> > it?
> >
> > Billy Ng
> >
> >
> > --
> > To unsubscribe, e-mail:

> > For additional commands, e-mail:

> >
>
> --
> Dr. Erich Meier, Software Process Improvement
> method park Software AG, Wetterkreuz 19a, 91058 Erlangen, Germany
> Tel. +49-9131-97206-316  mailto:[EMAIL PROTECTED]
> Fax. +49-9131-97206-200  http://www.methodpark.de/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




RE: First Web Application: Really Need Help

2002-07-26 Thread wbchmura




Q#1 - how many transactions each over how long?  1000 people entering in 
between 4:45 and 5:00pm or over 3 shifts...  Makes an incredible 
difference
(over 24 hours on a friday it could be as low as 1 users per minute or a 
focused timeframe could be 70 per minute.  We just finished analysis for 
a corporate wide timeclock system for the plants.  Usage spiked at the 
start and end of shifts and a half hour each way.  We are also in 
different time zones, so it spread out nicely...


Q#4 - We are MySQL and Oracle (Guess which one is cheaper?)


Q#5 - Struts good, especially if you are just getting started on the web 
side




-Original Message-
From: viveksri [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 2:31 PM
To: struts-user
Subject: First Web Application: Really Need Help


Hi to all,

I need really an urgent help. I have been given opportunities to build 
my 
first web application. It is a very simple application. It is basically 
a 
kind of time tracking application. Using this application a employee can 

enter the information for pay period (like any vacation sick, jury 
duty…..) 
and submit this for supervisor review. Supervisor is going to review and 

approve it. Once supervisor approved the information for a employee then 

employee can not change anything for a pay period. Finally few report 
based 
on the information. There would be around 1000 users who are going to 
use it 
probably on Friday only.


I am sun certified Java programmer. i have been working in application 
development since last 6 years. I never build any web application. I 
need 
help to figure out some basic things. Please advise me ASAP.

Q#1
What is the best hardware for me keeping in mind that 1000 user is going 
to 
use it probably on Friday only?

Q#2
Do I need separate hardware for database or I can use same machine?

Q#3
Which server is best for me (like weblogic , websphere, )? What is the 
difference between websphere application server and apache webserver? 
How 
does this whole thing works? Probably we are going to use IBM’s tool.

Q#4
Which database?

Q#5
Is Struts helpful for this kind of small project?

Q#7
Does websphere  work well with struts?

Any advice you guys think would be helpful for me are most welcome.


Please help me ASAP.

vivek


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




RE: Digester finding file, parsing, not outputting any debugging info

2002-07-26 Thread Nelson, Laird

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Are you using recent nightlies of Digester?  They use 
> commons-logging for
> debug output instead of the old System.out stuff now.

My mistake; I'm using struts 1.0.2 and its copy of Digester.

Cheers,
Laird

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




Re: which tag for if else statement?

2002-07-26 Thread Craig R. McClanahan



On Fri, 26 Jul 2002, Eddie Bush wrote:

> Date: Fri, 26 Jul 2002 12:10:53 -0500
> From: Eddie Bush <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: which tag for if else statement?
>
> The condition will be evaluated - yes.  It has to be.  Are comparisons
> really that slow though?  I wouldn't think it would add super-great-deal
> of overhead.  Isn't this functionality addressed by the JSTL?  I ... if
> memory serves correctly, it is.  You may want to check out the commons
> taglibs project.  They host the JSTL RI.
>

JSTL does address this -- see the  tag, with nested  and
 tags.  Although this is slightly more general than if-else,
you can use it to simulate if-else without having to learn another tag.

Craig


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




Re: Login Question

2002-07-26 Thread Eddie Bush

Ok, Vic, but what if you want to "let" the user login instead of "make" 
the user login?  CMA won't allow that, will it?  ... at least, not 
without a nasty work-around.  Do you have a solution for this scenario? 
 Let me explain let/make:

let:
The user may login at any point they choose.
This (explicitly) involves CMA

make:
The user has requested a restricted area and must login to access it.
This (implicitly) involves CMA

Crag had mentioned that spec 2.4 would make available a "logoff" 
functionality that a person could employ when using CMA and invalidating 
a users session.  He eluded to no equivalent for logging a user in 
though.  Ideally, a login implementation would allow the developer to 
(programatically and perhaps declaratively as well) specify where the 
user should end up - ie where they should be forwarded/redirected to.

Does basicportal handle this?  Does it do CMA on a "let" basis?

Thanks!

Eddie

Struts Newsgroup (@Basebeans.com) wrote:

>Subject: Re: Login Question
>From: "Vic C." <[EMAIL PROTECTED]>
> ===
>As this post says
>http://www.mail-archive.com/struts-user@jakarta.apache.org/msg36670.html
>
>to extend JAAS you do this:
>(i cut and paste now)
>"
>Then if you want more you do servlet api, getuserpricipal or 
>getremoteuser, snipet:
> String authenUser = ae.getReq().getUserPrincipal().getName(); 
>//security
> UserBean userBn = new UserBean();
> userBn.find(authenUser);
> String userid = userBn.getId();
> frm.setUserid(userid);
>
>Here is a link on servlet api
>http://java.sun.com/webservices/docs/ea2/api/";
>
>V
>



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




wont this work???

2002-07-26 Thread Hemanth Setty

Hi,
I am trying to forward and action, but it seems I can't specify a path in
the forward names..

struts-config.xml

  
  
  

in the jsp



I am getting this exception

javax.servlet.jsp.JspException: Exception forwarding for name
/buyer/buyerMain:
javax.servlet.jsp.JspException: Cannot create rewrite URL:
java.net.MalformedURLException:
Cannot retrive ActionForward named buyerMain
at org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:180)
at _home__jsp._jspService(C:\Buildview_SalesAssistant\webapp\Home.jsp:18)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:485)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocation.java:311)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:21
3)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:10
0)
at
com.caucho.server.http.QRequestDispatcher.forward(QRequestDispatcher.java:77
)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:97
2)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:408)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:470)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:9
6)
at com.caucho.server.http.Invocation.service(Invocation.java:311)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:342)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:484)



Any suggestion on how to get this working?
-h


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




Re: ERROR -- Must specify type attribute if name is specified

2002-07-26 Thread Eddie Bush

Have you tried examining the source of the generated page? :-)  I 
believe the name you will get comes from your form-bean declaration.  In 
your case (View -> Source to double-check me ;-) the name would be 
ldapsearchform.

Chuck has a really good book you should read ... buy ... advocate ;-) 
 (not necessarily in that order)

Don't specify the name for your form in the html:form tag - use whatever 
name you want to use in the form-bean declaration.

Ramu, Manjukumar [PRDUS] wrote:

>Hi,
>   I am using  in JSP
>and
>   type="com.jnj.prd.action.LdapSearchAction"
>   name="ldapsearchform"
>   scope="request"
>   input="/jjedslookup.jsp"
>   validate="false">
>
>
>in Struts-Config.xml
>



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




struts unwillingly submitting form when using javascript to validate

2002-07-26 Thread Brian Steele

Hi all,

Thanks in advance for any help.

Has anyone encountered an instance in which struts 1.0.2 submits a form without a 
submit button or a javascript call to submit()?

I'm using javascript to validate my form.  This is an extensive library of validation 
functions i've built up over many years and is fully tested, reliable, etc.  In short, 
i recurse through the javascript DOM to find any fields that require validation.  If 
the required fields pass the validation, I call "document.forms[ xx].submit()" 
otherwise an error message is displayed via an alert popup and no call to submit is 
made.

Somehow Struts is submitting the form anyway, even when I have no submit button or js 
call to submit ANYWHERE on the page.  The server logs show that struts starts 
processing the post after the javascript finishes (and no submit is called).

I'm running this on JRun 3.1

Here's the relevant code:


...
...
...
  3 is the dom order of the form (4th form on page)



---struts log - (reverse chronological)

07/26 11:13:59 info (JRun) payroll: Looking for Action instance for class 
com.xxx.payroll.action.UpdateEmployeePlanAction 
  [1176]   07/26 11:13:59 info (JRun) payroll: No errors detected, accepting input 
  [1175]   07/26 11:13:59 info (JRun) payroll: Validating input form properties 
  [1174]   07/26 11:13:59 info (JRun) payroll: Populating bean properties from this 
request 
  [1173]   07/26 11:13:59 info (JRun) payroll: Storing instance under attribute 
'employeePlanForm' in scope 'request' 
  [1172]   07/26 11:13:59 info (JRun) payroll: Creating new ActionForm instance of 
class 'com.xxx.payroll.form.EmployeePlanForm' 
  [1171]   07/26 11:13:59 info (JRun) payroll: Looking for ActionForm bean under 
attribute 'employeePlanForm' 
  [1170]   07/26 11:13:59 info (JRun) payroll: Processing a POST for /updateEmployee

-Brian
   

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




Re: Lists, lists, lists (The Friday poll)

2002-07-26 Thread Eddie Bush

go to basebeans.com and register for it ;-)

I initially joined it because of the fact that Ted publishes his Struts 
Tips there before they hit anywhere else.  He generally has sound, 
practical, _useful_ advice - and ways to look at Struts that I don't 
always find obvious.  There are many other topics covered as well.  I 
don't know how to give a good synopsis of it :-/  Subscribe - test the 
water - if you don't like it unsubscribe ;-)  Personally, I think it's 
worth it just to grab Ted's tips.

Chappell, Simon P wrote:

>Now, I'm curious about this MVC programmers list. Can you share anything interesting?
>
>Simon
>



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




First Web Application: Really Need Help

2002-07-26 Thread vivek shrivastava

Hi to all,

I need really an urgent help. I have been given opportunities to build my 
first web application. It is a very simple application. It is basically a 
kind of time tracking application. Using this application a employee can 
enter the information for pay period (like any vacation sick, jury duty…..) 
and submit this for supervisor review. Supervisor is going to review and 
approve it. Once supervisor approved the information for a employee then 
employee can not change anything for a pay period. Finally few report based 
on the information. There would be around 1000 users who are going to use it 
probably on Friday only.


I am sun certified Java programmer. i have been working in application 
development since last 6 years. I never build any web application. I need 
help to figure out some basic things. Please advise me ASAP.

Q#1
What is the best hardware for me keeping in mind that 1000 user is going to 
use it probably on Friday only?

Q#2
Do I need separate hardware for database or I can use same machine?

Q#3
Which server is best for me (like weblogic , websphere, )? What is the 
difference between websphere application server and apache webserver? How 
does this whole thing works? Probably we are going to use IBM’s tool.

Q#4
Which database?

Q#5
Is Struts helpful for this kind of small project?

Q#7
Does websphere  work well with struts?

Any advice you guys think would be helpful for me are most welcome.


Please help me ASAP.

vivek


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: First Web Application: Really Need Help

2002-07-26 Thread @Basebeans.com

Subject: Re: First Web Application: Really Need Help
From: Vic C <[EMAIL PROTECTED]>
 ===
vivek shrivastava wrote:
> Hi to all,
> 
> I need really an urgent help. I have been given opportunities to build 
> my first web application. It is a very simple application. It is 
> basically a kind of time tracking application. Using this application a 
> employee can enter the information for pay period (like any vacation 
> sick, jury duty.) and submit this for supervisor review. Supervisor is 
> going to review and approve it. Once supervisor approved the information 
> for a employee then employee can not change anything for a pay period. 
> Finally few report based on the information. There would be around 1000 
> users who are going to use it probably on Friday only.
> 
> 
> I am sun certified Java programmer. i have been working in application 
> development since last 6 years. I never build any web application. I 
> need help to figure out some basic things. Please advise me ASAP.
> 
> Q#1
> What is the best hardware for me keeping in mind that 1000 user is going 
> to use it probably on Friday only?

Almost any with 1.5 gig of RAM. A cheap PC on Ebay with enough RAM. That 
is not a lot of transactions.


> Q#2
> Do I need separate hardware for database or I can use same machine?
> 

Same is ok.

> Q#3
> Which server is best for me (like weblogic , websphere, )? What is the 
> difference between websphere application server and apache webserver? 
> How does this whole thing works? Probably we are going to use IBM's tool.
> 

Tomcat is Free. What IBM tool? Eclipse?


> Q#4
> Which database?


PostgreSQL is fast and free.

> 
> Q#5
> Is Struts helpful for this kind of small project?
> 

Timcard is tricky, becuase of the cross reference table (many employes 
can work on many jobs)


> Q#7
> Does websphere  work well with struts?

Why waste $?

> 
> Any advice you guys think would be helpful for me are most welcome.
> 

If you get a mentor who deployed Struts before, it would be cost 
effective. Why not build an Swing/AWT application/applet first (since 
you have 6 years) as a prototype with a delegated DAO and then port to 
web app?

v.

> 
> Please help me ASAP.
> 
> vivek
> 
> 
> _
> MSN Photos is the easiest way to share and print your photos: 
> http://photos.msn.com/support/worldwide.aspx
> 
> 
> -- 
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 


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




Re: Working sample struts application

2002-07-26 Thread Craig R. McClanahan



On Fri, 26 Jul 2002, Tarun Sainanee wrote:

> Date: Fri, 26 Jul 2002 20:46:18 +0530
> From: Tarun Sainanee <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Working sample struts application
>
> Is there a working sample struts application available on the internet? If
> yes, can someone please send me the link.
> I need to know how some things are implemented.
> Thnx

You could always start with the example webapp that comes with Struts --
it's named (gasp! :-) struts-example.war -- just drop it in to your
servlet container and run.  The source code is included.

Among its many other links, the Struts Resources pages have links to
worked-out examples .

Nearly every article and book referenced here also has worked out
examples.

Craig



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




RE: Lists, lists, lists (The Friday poll)

2002-07-26 Thread Chappell, Simon P

Now, I'm curious about this MVC programmers list. Can you share anything interesting?

Simon

>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: Friday, July 26, 2002 11:08 AM
>To: Struts Users Mailing List
>Subject: Re: Lists, lists, lists (The Friday poll)
>
>
>Ant
>Commons
>Log4J
>OJB
>Struts
>Tomcat
>MVC Programmers
>
>This is, by far, my favorite list :-)  Thanks to Mark, James, and all 
>you other bozos out there that keep it interesting! ;-)  Some folks 
>don't like pointless messages floating around.  Personally, I dislike 
>messages that indicate that someone just wants me to do their work for 
>them - but humorous ones are always appreciated to help break the 
>monotony of the day ;-)
>
>Thanks to all that participate here to help acheive that end! :-)
>
>Eddie
>
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




Re: redirect

2002-07-26 Thread Billy Ng

I ddi try this 
in the struts-config.xml, it will hit the Action2's perform().  However, how
can I put the query string in the path?

Thanks in advance!

Billy Ng

- Original Message -
From: "Billy Ng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 10:40 AM
Subject: Re: redirect


> Sorry, I am a new Struts user and slow.  I need to hit the Action2's
> perform() from Action1's perform() to have further business logic to do.
> Also, I will have query string in the url.  If I only put the
> "redirect='true'" in the ? tag, it won't do the work.  Would you
> please tell me how to do it, thanks!
>
> Billy Ng
>
> - Original Message -
> From: "Erich Meier" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, July 26, 2002 3:01 AM
> Subject: Re: redirect
>
>
> > On Fri, Jul 26, 2002 at 11:07:14AM +0800, Tuck Wai wrote:
> > > Hi,
> > >   ActionForward newAF=new ActionForward( > > redirect>);//for example 'yourAction.do?action=first'
> > >   newAF.setRedirect(true);
> > >   return newAF
> >
> > This won't work with the upcoming struts 1.1 release. You should better
> use
> > the "redirect='true'" attribute of the action statement in the
> > struts-config.xml.
> >
> > Erich
> >
> > > - Original Message -
> > > From: "Billy Ng" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > > Sent: Friday, July 26, 2002 10:10 AM
> > > Subject: redirect
> > >
> > >
> > > This question may have asked so many time.  Would anybody tell me how
to
> do
> > > redirect.  If I have 2 Action objects, The Action1 finsihes the
business
> > > logic and want to rediect to Action2 to display the jsp page.  How can
I
> do
> > > it?
> > >
> > > Billy Ng
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> 
> > > For additional commands, e-mail:
> 
> > >
> >
> > --
> > Dr. Erich Meier, Software Process Improvement
> > method park Software AG, Wetterkreuz 19a, 91058 Erlangen, Germany
> > Tel. +49-9131-97206-316  mailto:[EMAIL PROTECTED]
> > Fax. +49-9131-97206-200  http://www.methodpark.de/
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>

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




Re: SSL+Tiles

2002-07-26 Thread Eddie Bush

Have you tried to STFW?  I know it's out there.  You're right though - 
that one covers 1.0

Gilmar J. Alves de Souza Jr. wrote:

>On Fri, 2002-07-26 at 12:44, Eddie Bush wrote:
>
>>Search is a powerful tool.  Upon searching Java World for "Ditlinger", I 
>>found many articles he authored.  One you may find particularly 
>>interesting is:
>>
>>http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html
>>
>Hi Eddie,
>
>   That's the original article, using the 1.0.1 release.
>
>thanks again,
>



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




RE: [OT] What do you do with your SQL?

2002-07-26 Thread Dan Petrie

Hi Chris,

You may want to explore the idea of a DAO Factory.  We currently use such a
mechanism to retrieve a runtime interface to handle all database
interaction. The implementation of the interface (i.e. class name) is
specified in a properties file that is read at deploy time.  So...to handle
multiple clients you would simply need to implement this interface for the
client and specify the implemented class name in the properties files that
the DAOFactory reads from.  This allows you to keep the structure of the
application in tact with only needing to modify a properties file when
building the app for the individual client.  The business object classes
would then retrieve a DAO interface from the Factory.  This could work as
follows:

InterfaceName interface =
(InterfaceName)Class.forName(FullyQualifiedImplementedClassName).newInstance
();

We currently use this to handle multiple database servers (Sybase, Oracle,
etc) for our apps.

I hope this helps.

-Dan -

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 4:17 PM
To: 'Struts Users Mailing List'
Subject: [OT] What do you do with your SQL? 


Hi all, 

Been a while since I last wrote, but I've been lurking to observe all the
crazy antics. :)  Anyway, I've got a question of an [ot] nature that I
believe you folks will have an answer for. 

Our application is highly data-driven and as such a lot of our "business
logic" is written to build SQL statements and handle query results.  Pretty
typical stuff.  Using Struts we pass data objects to a stateless session EJB
where all the SQL is directly embedded into the java source one way or
another.  

We're currently converting this custom app into a product. As such, we need
to be able to have easily modifiable SQL statements without requiring
recompilation of code.  For example, if client A decides to buy our app and
they have xyz infrastructure or business rules, we need to be able to easily
modify sql, hints and the like while also supporting the client-specific
sql, hints, etc. of client B.  

A lot of our SQL is built on the fly so using properties files may be a
little cumbersome, though certainly not beyond our means.  I have other
ideas floating around, but I'd rather just hear yours - any suggestions? 

Thanks,

Chris


--
To unsubscribe, e-mail:

For additional commands, e-mail:



**
Note: By opening this email and/or any attachments 
contained within this file, you assume sole responsibility for 
any alteration of data that may occur as a consequence of 
any data transfer or copying process.

The information contained in this message may be 
privileged and confidential and protected from disclosure.
If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.

For more information on Harbor Fund's privacy policy please
visit http://www.harborfund.com/privacy.htm

Thank you.

Harbor Capital Advisors, Inc. One SeaGate. Toledo, OH-43666. 
Tel: 419-247-1940  
Email: [EMAIL PROTECTED]
**


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




Re: How do I navigate from one subApp to another in Struts1.1?

2002-07-26 Thread Troy Hart

Craig,

What do you mean below??? I am trying to understand how sub-applications
work and I thought I had a handle on it, but I am now confused. Why/how
are you bypassing the controller servlet when using



Can you tell me where my understanding of the this process breaks down?
I will spell out the major steps that are related to the sub-application
stuff as I see it:

1) A request comes in to ActionServlet, which inspects the request path
to determine the sub-application to use (which may be the default app --
sub-app prefix = ""), and fetches the application configuration for that
sub-application. 
3) The application configuration request attribute is updated to hold
the current sub-app configuration.
4) The process() method of the sub-app specific request processor is
invoked, which ultimately may end up forwarding to a jsp page that
contains 
5) html:link taglib code accesses the current sub-application
configuration to lookup the global forward "foo" and renders the link
appropriately. That is to say, if the current sub-app has defined a
contextRelative forward named "foo" that references an action in the
"goo" sub-app a link to some "goo" sub-app action will be rendered in
the browser.
6) Now the page is rendered and the user clicks the link to the "goo"
sub-app action.

Is this request not bound for the action servlet? And/or will it not
cause the action servlet to select the "goo" sub-application
configuration?

Also, I would like to be able to use the SwitchAction, but can not tet
it to work. Does it really work for you in practice? From what I am able
to gather no one has ever been successful at getting it to work and I
wonder what you are doing differently. 

I've posted a few messages already on this topic, but I've never had a
single response. If you could spare a few minutes to point me in the
right direction I would greatly appreciate it. The company I work for is
collaborating with 2 other companies to build a single struts
application for the department of defense EMall. As you can well
imagine, the sub-application features of struts are very desirable given
our situation.

Many thanks for any help I can get on this issue!

Troy

> 
> The tempting way to do this is to do something like
> 
>   
> 
> and mark the "foo" forward as being context relative.  However, this will
> ONLY work if you are switching to the default sub-app, because you'd be
> bypassing the controller servlet where sub-app selection is performed.
> 
> The better way is to make your link go through an  that uses the
> standard SwitchAction class.  This wants you to send along the application
> prefix of the sub-app you want to switch to, as well as a resource in that
> sub-app to forward to after the switch.
> 
> > danny
> >
> 
> Craig
> 



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




Re: Error tag returning "null" on either side of message

2002-07-26 Thread Dan

Celestino Pena answered this in an earlier post:
 
In your properties file you are missing entries for
"errors" as in...

errors.header=Validation
ErrorYou must correct the following
errors) before proceeding:
errors.footer=

Thanks Celestino!

--- Dan Paul <[EMAIL PROTECTED]> wrote:
> I am using the Struts 1.0.2 and Tomcat 4.0.4 B1. 
> When
> I use the standard  tag I get the
> proper
> message but there is "null" on either side.
> 
> Thanks,
> 
> Dan
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




Re: Struts 1.1 DB sample post

2002-07-26 Thread @Basebeans.com

Subject: Re: Struts 1.1 DB sample post
From: Vic C <[EMAIL PROTECTED]>
 ===
That is an old version. I no longer teach that. You get the password by 
siging up at http://www.netbean.net/mailman/listinfo/mvc-programmers 
e-mailed to you.

or

What you should do is download the new version at 
basicportal.sourceforge.net (*get the war file* - not the zip).
No password on it!

Enjoy,
 Vic C.
 [EMAIL PROTECTED] - Phone 866-800-4503
 Struts Mentor
 "An engineer can show you how to do it faster and cheaper"





BoNaLy wrote:
> Hello to all,
> i've downloaded the Struts - webPIM-Sample, but it's password-protected. Is
> there anybody who knows these cumbersome password?
> Thanks a lot.
> Greetings
>Bodo
> 
> 


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




Re: Validator Woes :-/

2002-07-26 Thread Eddie Bush

Good idea!  I hadn't thought of that!  

Jonathan Fuerth wrote:

>On Thu, Jul 25, 2002 at 11:01:42PM -0500, Eddie Bush wrote:
>
>>If you do need to do that, you might try escaping them -
>>ie. errors.mask.state={0} must be a two-letter state abbreviation.
>>(Ex. \"AZ\")
>>
>>I bet that would work - of course, if you wanted to use it somewhere 
>>else you might not get the output you wanted.
>>
>
>The best bet would be to use the HTML-defined entity " since it
>would work everywhere in an HTML document.  As an added bonus, it will
>even work in the new Swing GUI components that support HTML labels. :)
>



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




Re: Oreilly Struts book cover: an observation

2002-07-26 Thread Joe Germuska

At 11:52 AM +0100 2002/07/26, Sean Kelly wrote:
>Hi,
>
>   Just an observation: the cover on Struts is similar to the cover
>on the mod_perl reference
>(http://images-eu.amazon.com/images/P/0596000472.02.LZZZ.jpg).  Do you
>think Oreilly meant anything by this this?

I suspect they're moving towards a "horses" theme for Apache stuff, 
like the dog theme for Mac OS stuff.  See 
 for 
the cover of the Apache (httpd) book.


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

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




Re: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Michael Delamere

just to confuse you :-)

I bought the bool called "UML and the unified process" and thought it to be
very well  structured and easy to learn.

Regards,

Michael


- Original Message -
From: "Jacob Hookom" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 7:01 PM
Subject: RE: Struts Vs. Sun J2EE Compliance and Design Patterns


>
> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 9:04 AM
> To: Struts Users Mailing List
> Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns
>
> Andrew Hill wrote:
> Incidentally, I recently ordered Applying UML and Patterns in hopes of
> actually finally understanding UML.  Does anyone have anything to say
> about this book?  The reviews at Amazon look _very_ good.
>
> The book I recommend is "The Unified Software Development Process", it
> was required reading last year for software engineering.
>
> Btw, if you ever need books, go to bookpool.com, comparatively, books
> are anywhere from 5-15 dollars cheaper.
>
> Jacob Hookom
> Comprehensive Computer Science
> University of Wisconsin, Eau Claire
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Lists, lists, lists (The Friday poll)

2002-07-26 Thread James Ward

JBoss, Struts, Tomcat.  Jboss Dev is by far the coolest.  Marc Fluery is
hilarious!

-James


-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 8:05 AM
To: Struts Mailing List (E-mail)
Subject: Lists, lists, lists (The Friday poll)

Alright, I'm curious as to what other lists people subscribe to. Here
are mine:

Struts (you knew this one! :-)
OTUG (Object Technology Users Group hosted by Rational)
Ant (Another Jakarta list)
Junit (junit.org)
Erlang (erlang.org)
HSQLDB hsqldb.org)

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

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Simple write of a form property

2002-07-26 Thread Jan Fetyko

Hi all,

I was wondering if there is a way to write out a property of a form as 
text, so I could write something like .

I know there is a was to get it through some scriplets, but we are 
trying to avoid those in JSPs aren't we ?

Maybe there is such a tag between the Struts tags, I couldn't find it, 
is there ?

Jf


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




RE: Error tag returning "null" on either side of message

2002-07-26 Thread Dan Petrie

Dan (nice name by the way), 

You are missing the errors.header & errors.footer properties in your
ApplicationResources.properties file.  I believe Struts 1.1 Beta ignores
this.

Dan 

-Original Message-
From: Dan Paul [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 4:50 PM
To: [EMAIL PROTECTED]
Subject: Error tag returning "null" on either side of message


I am using the Struts 1.0.2 and Tomcat 4.0.4 B1.  When
I use the standard  tag I get the proper
message but there is "null" on either side.

Thanks,

Dan


__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:



**
Note: By opening this email and/or any attachments 
contained within this file, you assume sole responsibility for 
any alteration of data that may occur as a consequence of 
any data transfer or copying process.

The information contained in this message may be 
privileged and confidential and protected from disclosure.
If the reader of this message is not the intended recipient,
or an employee or agent responsible for delivering this 
message to the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received
this communication in error, please notify us immediately by
replying to the message and deleting it from your computer.

For more information on Harbor Fund's privacy policy please
visit http://www.harborfund.com/privacy.htm

Thank you.

Harbor Capital Advisors, Inc. One SeaGate. Toledo, OH-43666. 
Tel: 419-247-1940  
Email: [EMAIL PROTECTED]
**


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




RE: [OT] What do you do with your SQL?

2002-07-26 Thread Yang, Pedro

Where you actually place your SQL logic (statements) sometimes has a lot to
do: 
(1) what DBMS your system is using (MS SQL Server, Oracle, to name a few); 
(2) what DB development resource and knowledge your team has. 

If a right DBMS is used, with the sufficient DB knowledge, the stored
procedures can be a good solution. 
The common pitfall with this approach is to hardcode the SP name and
parameters in the Java codes.  To avoid this problem, you can store the
values in a xml file.

-Original Message-
From: Struts Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 1:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [OT] What do you do with your SQL?


Subject: Re: [OT] What do you do with your SQL?
From: Vic C <[EMAIL PROTECTED]>
 ===
Think about it the other way, make your application information driven.

For example:
Select * from rules where client = a

and client_id or org_id to every table.

Think about it for a bit with a SQL expert (SQL Expert == someone with 7 
years or more of SQL deployment).
Vic




Nelson, Tracy (ETW) wrote:
> I once prototyped a system where I  kept all the SQL statements in the
> database itself.  The original intent was to take the statements and
> actually compile them into stored procedures, but the project was dropped
> before that part was finished.
> 
> Cheers!
> -- Tracy Nelson
> 
> -Original Message-
> From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 13:17
> To: 'Struts Users Mailing List'
> Subject: [OT] What do you do with your SQL?
> 
> 
> Hi all, 
> 
> Been a while since I last wrote, but I've been lurking to observe all the
> crazy antics. :)  Anyway, I've got a question of an [ot] nature that I
> believe you folks will have an answer for. 
> 
> Our application is highly data-driven and as such a lot of our "business
> logic" is written to build SQL statements and handle query results.
Pretty
> typical stuff.  Using Struts we pass data objects to a stateless session
EJB
> where all the SQL is directly embedded into the java source one way or
> another.  
> 
> We're currently converting this custom app into a product. As such, we
need
> to be able to have easily modifiable SQL statements without requiring
> recompilation of code.  For example, if client A decides to buy our app
and
> they have xyz infrastructure or business rules, we need to be able to
easily
> modify sql, hints and the like while also supporting the client-specific
> sql, hints, etc. of client B.  
> 
> A lot of our SQL is built on the fly so using properties files may be a
> little cumbersome, though certainly not beyond our means.  I have other
> ideas floating around, but I'd rather just hear yours - any suggestions? 
> 
> Thanks,
> 
> Chris
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




How to identify the common Forms?

2002-07-26 Thread @Basebeans.com

Subject: How to identify the common Forms?
From: "Hu Ji Rong" <[EMAIL PROTECTED]>
 ===
Hi, all

We are creating a web based Data Maintaince Tool with EJB and Struts. It's
used to CRUD the domain objects in database.

Here I have a few questions :
1. Is it a good idea to use EJB to do that? I found it's quite fast to
create entity bean to represent those domain objects.
2. Each domain object is quite big, contains several tables, and more
important is they have some shared attibutes (tables). E.g. All entities has
an dependent object: DocumentSource. That's all entities have some records
in table DOC_SOURCE. So in the web UI, all entities has a link to
doc_source.jsp, which has a DocSourceForm.

We put the DocSourceForm in session scope because user want to see all the
data when they navigating from page to page. Now the question is: how to
defferentiate the DocSourceForm for different entities? since they are share
the same doc_source.jsp and DocSourceForm.

What is solution for that?

Thanks in advance.
JiRong




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




RE: First Web Application: Really Need Help

2002-07-26 Thread Tero P Paananen

> Any advice you guys think would be helpful for me are most welcome.

Depending on how aggressive your schedule is, consider
getting outside help from someone who has developed
web applications before for this project.

If that's not an option for you, consider getting some
formal training in web development issues before you
start designing or implementing. It would go a LOOONG
way.

-TPP

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




RE: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Chappell, Simon P

It can backfire, but this one was less of a risk than I usually take, given that 
Struts is standards complient. My boss is pitifully grateful when I do ANYTHING that 
is standard, so permission was quite forthcoming. (I actually work in our standard 
group, so I am viewed as a rebel because I use Linux most of the time in a heavily M$ 
department)

Simon

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

>-Original Message-
>From: Daniel Jaffa [mailto:[EMAIL PROTECTED]]
>Sent: Friday, July 26, 2002 9:42 AM
>To: Struts Users Mailing List
>Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns
>
>
>Though some times this approach can back fire on you.
>
>Some companies would rather shot them selves is the foot then 
>do something
>a person in management does not want to do (IF you did not ask 
>first).  I
>found that instead of trying to
>make the person hang themselves it is easier to make it look 
>like you are
>following
>their rules, and that is why you went with struts.
>
>
>
>
>
>- Original Message -
>From: "Eddie Bush" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Sent: Friday, July 26, 2002 10:10 AM
>Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns
>
>
>> Chappell, Simon P wrote:
>>
>> >>Sometimes, the best technique is to just sit back and give
>> >>people enough
>> >>rope to hang themselves.  I've done it in the past, I'm doing
>> >>it right now
>> >>on the contract I am on, and I'm sure I'll have to do it 
>in the future.
>> >>
>> >
>> >I don't even wait to see if they hang themselves, I usually 
>just get on
>and do it and hope for their sakes that they try to catch up 
>with me. On my
>current project, I started using Struts and got the rest of 
>the team using
>Struts and then when we had enough work done that ripping it 
>out would have
>been difficult, we asked if we could get approval from our architecture
>group for using Struts. :-)
>> >
>> LOL - S M O O T H, man - really S M O O T H :-)  I like that!  LOL
>>
>> Eddie
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>
>> For additional commands, e-mail:
>
>>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-26 Thread Jacob Hookom


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 9:04 AM
To: Struts Users Mailing List
Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns

Andrew Hill wrote:
Incidentally, I recently ordered Applying UML and Patterns in hopes of 
actually finally understanding UML.  Does anyone have anything to say 
about this book?  The reviews at Amazon look _very_ good.

The book I recommend is "The Unified Software Development Process", it
was required reading last year for software engineering.

Btw, if you ever need books, go to bookpool.com, comparatively, books
are anywhere from 5-15 dollars cheaper.

Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 


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




Re: Lists, lists, lists (The Friday poll)

2002-07-26 Thread Eddie Bush

(See below)

Chappell, Simon P wrote:

>Now, I'm curious about this MVC programmers list. Can you share anything interesting?
>
>Simon
>
>>Ant
>>Commons
>>Log4J
>>OJB
>>Struts
>>Tomcat
>>MVC Programmers
>>
>>This is, by far, my favorite list :-)  Thanks to Mark, James, and all 
>>
I didn't mean MVC was my favorite.  The "this" I mention is struts-user. 
 I'm sorry, I thought that it was obvious - from the mention of names, 
if nothing else.  It just hit me you may have mis-interpreted my actual 
meaning.



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




Re: SSL+Tiles

2002-07-26 Thread Gilmar J. Alves de

On Fri, 2002-07-26 at 12:44, Eddie Bush wrote:
> Search is a powerful tool.  Upon searching Java World for "Ditlinger", I 
> found many articles he authored.  One you may find particularly 
> interesting is:
> 
> http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html
> 
Hi Eddie,

   That's the original article, using the 1.0.1 release.

thanks again,
-- 

Gilmar J. Alves de Souza Jr.
TAU CSI - R&D Director
JavaC - JUG Leader 
Phone: 55 19 32514001
Mobile: 55 19 91252349
www.tau.com.br
 


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




Re: UML (was Struts Vs. Sun J2EE Compliance and Design Patterns)

2002-07-26 Thread Eddie Bush

Hey, thanks!  I copied that to my "Save" folder :-)

Dominique Plante wrote:

>Another good book on UML is "UML Distilled: A Brief Guide to the
>Standard Object Modeling Language (2nd Edition)" -- Martin Fowler,
>Kendall Scott;
>
>http://www.amazon.com/exec/obidos/ASIN/020165783X/qid=1027712016/sr=8-1/
>ref=sr_8_1/002-5892888-9891219
>
>Yes - THAT Martin Fowler (remember is Refactoring book)
>
>Online articles on UML
>
>Java Modeling: A UML workbook:
>Part 1 - http://www-106.ibm.com/developerworks/java/library/j-jmod0508/
>Part 2 -
>http://www-106.ibm.com/developerworks/library/j-jmod0605/index.html
>Part 3 -
>http://www-106.ibm.com/developerworks/library/j-jmod0626/index.html
>Part 4 - http://www-106.ibm.com/developerworks/library/j-jmod0604/
>
>An Overview of Object Relationships - The basics of UML and Java
>associations -
>http://www-106.ibm.com/developerworks/java/library/tip-objrel/index.html
>
>Use Case Modelling Tips - Techniques for better UML Use Case Methods -
>http://www-106.ibm.com/developerworks/library/tip-uml2.html
>
>UML Sequence Diagramming with Style - Sequence Diagramming Tips - 
>http://www-106.ibm.com/developerworks/library/tip-uml4.html
>
>Some Robert Martin Articles:
>UML Tutorial Part 1: Class Diagrams -
>http://www.objectmentor.com/resources/articles/umlClassDiagrams.pdf
>UML Tutorial Part 2: Collaboration Diagrams -
>http://www.objectmentor.com/resources/articles/umlCollaborationDiagrams.
>pdf
>UML Tutorial Part 3: Sequence Diagrams -
>http://www.objectmentor.com/resources/articles/UMLSequenceDiagrams.pdf
>UML Tutorial Part 4: Finite State Machines -
>http://www.objectmentor.com/resources/articles/umlfsm.pdf
>UML Tutorial Part 5: Complex Transaction (Activity Diagrams) - 
>http://www.objectmentor.com/resources/articles/cplxtrns.pdf
>UML Tutorial Part 6: Use Case Diagrams -
>http://www.objectmentor.com/resources/articles/usecases.pdf
>
>Walking Through a UML Design
>-http://www.objectmentor.com/resources/articles/Walking_through_A_UML_De
>sign.pdf
>



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




RE: [OT] What do you do with your SQL?

2002-07-26 Thread Nelson, Tracy (ETW)

I once prototyped a system where I  kept all the SQL statements in the
database itself.  The original intent was to take the statements and
actually compile them into stored procedures, but the project was dropped
before that part was finished.

Cheers!
-- Tracy Nelson

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 13:17
To: 'Struts Users Mailing List'
Subject: [OT] What do you do with your SQL?


Hi all, 

Been a while since I last wrote, but I've been lurking to observe all the
crazy antics. :)  Anyway, I've got a question of an [ot] nature that I
believe you folks will have an answer for. 

Our application is highly data-driven and as such a lot of our "business
logic" is written to build SQL statements and handle query results.  Pretty
typical stuff.  Using Struts we pass data objects to a stateless session EJB
where all the SQL is directly embedded into the java source one way or
another.  

We're currently converting this custom app into a product. As such, we need
to be able to have easily modifiable SQL statements without requiring
recompilation of code.  For example, if client A decides to buy our app and
they have xyz infrastructure or business rules, we need to be able to easily
modify sql, hints and the like while also supporting the client-specific
sql, hints, etc. of client B.  

A lot of our SQL is built on the fly so using properties files may be a
little cumbersome, though certainly not beyond our means.  I have other
ideas floating around, but I'd rather just hear yours - any suggestions? 

Thanks,

Chris


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: digest unsubscribe prob

2002-07-26 Thread Eddie Bush

Have you mailed the owner?

slickdev wrote:

>I never got a confirm.
>Thanks.
>



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




RE: UML (was Struts Vs. Sun J2EE Compliance and Design Patterns)

2002-07-26 Thread Dominique Plante

Another good book on UML is "UML Distilled: A Brief Guide to the
Standard Object Modeling Language (2nd Edition)" -- Martin Fowler,
Kendall Scott;

http://www.amazon.com/exec/obidos/ASIN/020165783X/qid=1027712016/sr=8-1/
ref=sr_8_1/002-5892888-9891219

Yes - THAT Martin Fowler (remember is Refactoring book)

Online articles on UML

Java Modeling: A UML workbook:
Part 1 - http://www-106.ibm.com/developerworks/java/library/j-jmod0508/
Part 2 -
http://www-106.ibm.com/developerworks/library/j-jmod0605/index.html
Part 3 -
http://www-106.ibm.com/developerworks/library/j-jmod0626/index.html
Part 4 - http://www-106.ibm.com/developerworks/library/j-jmod0604/

An Overview of Object Relationships - The basics of UML and Java
associations -
http://www-106.ibm.com/developerworks/java/library/tip-objrel/index.html

Use Case Modelling Tips - Techniques for better UML Use Case Methods -
http://www-106.ibm.com/developerworks/library/tip-uml2.html

UML Sequence Diagramming with Style - Sequence Diagramming Tips - 
http://www-106.ibm.com/developerworks/library/tip-uml4.html

Some Robert Martin Articles:
UML Tutorial Part 1: Class Diagrams -
http://www.objectmentor.com/resources/articles/umlClassDiagrams.pdf
UML Tutorial Part 2: Collaboration Diagrams -
http://www.objectmentor.com/resources/articles/umlCollaborationDiagrams.
pdf
UML Tutorial Part 3: Sequence Diagrams -
http://www.objectmentor.com/resources/articles/UMLSequenceDiagrams.pdf
UML Tutorial Part 4: Finite State Machines -
http://www.objectmentor.com/resources/articles/umlfsm.pdf
UML Tutorial Part 5: Complex Transaction (Activity Diagrams) - 
http://www.objectmentor.com/resources/articles/cplxtrns.pdf
UML Tutorial Part 6: Use Case Diagrams -
http://www.objectmentor.com/resources/articles/usecases.pdf

Walking Through a UML Design
-http://www.objectmentor.com/resources/articles/Walking_through_A_UML_De
sign.pdf

-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 10:02 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts Vs. Sun J2EE Compliance and Design Patterns


-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 26, 2002 9:04 AM
To: Struts Users Mailing List
Subject: Re: Struts Vs. Sun J2EE Compliance and Design Patterns

Andrew Hill wrote:
Incidentally, I recently ordered Applying UML and Patterns in hopes of 
actually finally understanding UML.  Does anyone have anything to say 
about this book?  The reviews at Amazon look _very_ good.

The book I recommend is "The Unified Software Development Process", it
was required reading last year for software engineering.

Btw, if you ever need books, go to bookpool.com, comparatively, books
are anywhere from 5-15 dollars cheaper.

Jacob Hookom 
Comprehensive Computer Science 
University of Wisconsin, Eau Claire  

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.375 / Virus Database: 210 - Release Date: 7/10/2002
 



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




again action executed twice

2002-07-26 Thread Sergei P. Volin

Hi all,
I already saw some messages posted in this newsgroup and concerned why actions and 
jsp's are executed twice but didn't find clear answer. Sorry, but I have to repeat 
this question again. As far as I saw all my actions and forwarded jsp's are executed 
twice. Is it a bug? Then why does it live so long - I saw those messages since early 
2001. If this is my fault then please point to possible hints and solutions - what may 
it be?
Sergei.



Re: Login Question

2002-07-26 Thread Eddie Bush

I see I think - you've implemented a "realm" that is application (ie 
non-container-managed) to facilitate this.  Am I understanding things 
right?  I guess the solution I'm looking for is JDBCConfigRealm (not 
written, obviously) that would make use of some configuration to specify 
where a person authorizing in a "let" manner would go - and give an API 
to allow "let" authentication to occur - specifying an over-ride 
destination.  Obtaining the behavior I mention would necessitate either 
a nasty work-around or a custom realm (ie using Tomcat) implementation, 
am I right?  I'm not trying to belabor the point - I'm just trying to 
get a crystal-clear view of options.

(couple more comments below)

Thanks!

Eddie

Struts Newsgroup (@Basebeans.com) wrote:

>(if you are on a Struts project, consider using 
>basicPortal.sourceforge.net for issue tracking at least - 800 downloads 
>in 2 days;
>I will write a few more verticals for it; is't it time that Open Source 
>started doing verticals? - I will so smoke JetSpeed.
>and ... mvc-programmers on group.yahoo, you can keep track play by play, 
>or don't stand on the side lines; I welcome contributors)
>
You know, I downloaded it but I haven't taken the time to "get my hands 
dirty" with it yet... er, haven't _had_ time I should say :-)  That's my 
obstacle to contributing too :-/  I should probably spend less time on 
the lists ;-)  I guess that's a form of contribution too though.



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




[OT] What do you do with your SQL?

2002-07-26 Thread Assenza, Chris

Hi all, 

Been a while since I last wrote, but I've been lurking to observe all the
crazy antics. :)  Anyway, I've got a question of an [ot] nature that I
believe you folks will have an answer for. 

Our application is highly data-driven and as such a lot of our "business
logic" is written to build SQL statements and handle query results.  Pretty
typical stuff.  Using Struts we pass data objects to a stateless session EJB
where all the SQL is directly embedded into the java source one way or
another.  

We're currently converting this custom app into a product. As such, we need
to be able to have easily modifiable SQL statements without requiring
recompilation of code.  For example, if client A decides to buy our app and
they have xyz infrastructure or business rules, we need to be able to easily
modify sql, hints and the like while also supporting the client-specific
sql, hints, etc. of client B.  

A lot of our SQL is built on the fly so using properties files may be a
little cumbersome, though certainly not beyond our means.  I have other
ideas floating around, but I'd rather just hear yours - any suggestions? 

Thanks,

Chris


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




Digester finding file, parsing, not outputting any debugging info

2002-07-26 Thread Nelson, Laird



I'm going 
bats.  I'm creating a new Digester instance, setting its debug to a 
non-zero value, and telling it to parse a URL that I validate exists and matches 
the rule templates I've added to the new Digester instance.  Digester's 
parse() method fires, doesn't throw an exception, and nothing (no debugging 
information) gets output.
 
Are there 
any standard Digester checklists I should be going through?  Is there some 
step I'm obviously missing?  I've used Digester many, many times in the 
past successfully.
 
If folks are 
interested, I'll post my code and my config file.
 
Cheers,
Laird
--Laird J. NelsonElectronic Channel 
Group, Fidelity eBusiness) (508) 357-3142* [EMAIL PROTECTED]% [EMAIL PROTECTED]
 

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


RE: Digester finding file, parsing, not outputting any debugging info

2002-07-26 Thread Nelson, Laird

> -Original Message-
> From: Nelson, Laird [mailto:[EMAIL PROTECTED]]
> My mistake; I'm using struts 1.0.2 and its copy of Digester.

Solved the problem (of course; which is why I usually post to this list; the
minute the email goes out I find the answer...).

I had a file like:


  


My rule patterns were like:

"*/a/b"

...which of course don't match anything.  They should have been:

"*/b"

...for my purposes.

Cheers,
Laird

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




basicPortal comments

2002-07-26 Thread Mete Kural

Hello Vic and others,

The basicPortal presentation was very nice. Thank you
for your efforts. I think providing verticals for the
J2EE community would be a very good effort, because
after all we're doing very similar things over and
over. Everybody is implementing user authentication,
shopping cart/web store, content management, site
administration, etc. The basic 80/20 rule applies here
also. 80% of our requirements for the above listed are
the same, while 20% of it is specific to our business.
Each one of us is implementing that 80% on our own
over and over again. Instead we could join efforts and
implement that 80% together, then finish up the rest
20% on our own, which may be very specific to what are
business is involved in. This way we can save time,
money, and improve reliability and performance.

Are you inviting other contributors for basicPortal? I
would be happy to help.

Thanks,
Mete Kural






__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

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




ActionForm and a list of hyperlinks

2002-07-26 Thread struts-user

I want to display a list of hyperlinks. When the user selects an item, I want an 
ActionForm to be filled with the two query fields from the hyperlink. 

Record B
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 




Re: SSL+Tiles

2002-07-26 Thread Eddie Bush

I wrote Stever Ditlinger and he sent me a jar of a version he has that 
is 1.1 compatible!  I replied asking him for a URL, and hope to have the 
URL to post here soon.  I also asked if he could tell me if there was an 
accompanying article - I _know_ I've seen it somewhere.  I just cannot 
find it!

If you'd like me to send you the jar via email, please contact me 
(directly) via email.

Thanks :-)

Eddie

Gilmar J. Alves de Souza Jr. wrote:

>On Fri, 2002-07-26 at 12:44, Eddie Bush wrote:
>
>>Search is a powerful tool.  Upon searching Java World for "Ditlinger", I 
>>found many articles he authored.  One you may find particularly 
>>interesting is:
>>
>>http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html
>>
>Hi Eddie,
>
>   That's the original article, using the 1.0.1 release.
>
>thanks again,
>



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