RE: problem with automation of struts html code

2005-03-08 Thread David G. Friedman
Wo,

If your data have a few standard table formats, as you seem to suggest
below, you might be better served by using a different approach with tiles.
If your tables were not in a Java method but designed within a JSP by
pulling in request saved attributes, you could use the TilesAction.execute()
method to save the header, content, tableStyle, tableHeaderStyle, and
contentStyle into request scoped variables that your JSP could import and
use, then simply change which table is being used by setting the "table"
tile attribute (within your TilesAction.execute() OR modify your definition
in tiles-defs.xml) to the appropriable table1.jsp (or table2.jsp, etc.).

If your base tile definition had:





In your TilesAction.execute(), you could do:
context.putAttribute("header", "This is an example Table");
context.putAttribute("vector", content);
etc.

You could manually set which table jsp layout to use with:
content.putAttribute("table", "/WEB-INF/tiles/table7.jsp");

Inside your jsp, you could use the tiles:importAttribute to pull the
attribute into JSP scope and use it as a bean:write, logic:iterate, or other
struts (looping or single use) tag.

*** Note the "/WEB-INF/..." path prefix I used above can be anything you
wish.  I always choose /WEB-INF to hide my JSP's from external attempts to
access them since while allowing internal (i.e. implied redirect="false")
use by my Struts webapp.

Regards,
David

-Original Message-
From: wo_shi_ni_ba_ba [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 9:50 PM
To: Struts Users Mailing List
Subject: Re: problem with automation of struts html code


hi folks,
thanks for the suggetion.
I am not trying to write a templating system. I am
trying to do something different, maybe an example
will elaborate.  I have a utility function printTable1
that I want to use it to print different tables
because the tables  in my jsps share a lot of common
structures.
with this utility function, I can avoid a lot of
redundency in my jsp code.  This obviously doesn't
work if I insert struts taglibs into it.  but I also
want to use struts taglibs.  How do I solve this
problem?  How do I use tiles to solve this problem?

[code]
public static void printTable1(JspWriter writer,
Vector header, Vector content, String tableStyle,
String tableHeaderStyle, String contentStyle){
StringBuffer s=new StringBuffer("");
s.append("");
s.append("");
Object obj=null;
String cell=null;
for(int i=0;i").append(cell).append("
");
}
s.append("");

for(int i=0;i");
for(int j=0;j");
}
else s.append("");
s.append(cell).append("");

}
s.append("");
}
s.append("");
try {
writer.println(s);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}
[/code]
--- Max Cooper <[EMAIL PROTECTED]> wrote:
> Don't write your own page templating system. Use
> Tiles instead.
>
> -Max
>
> On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba
> wrote:
> > Hi folks,
> > In my webapplications there are many html page
> with
> > the similar look and structure. I am trying to
> factor
> > out them.  So I created utility functions to print
> out
> > html code to the jspWriter.  But I am not able to
> > incorporate struts tags into these functions
> because
> > they will just be printed without being rendered
> > through the struts engine.
> > So if I print  it will come out
> > like  without any change.
> > On the other hand if I don't incorporate struts
> tags
> > into my utility functions and use just plain html
> > code, I don't get to take the full advantage of
> struts
> > tags.
> > How do I get around this problem?
> > thanks
> >


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



RE: [ot] Need a webpage that for newsletter sign-ups without internet access?

2005-03-08 Thread Marcos Oliva
Mick

Have you checked this link

http://www.vqsoft.com/


it has a very small java based webserver, perhaps this can be of help 

marcos oliva



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 5:36 PM
To: user@struts.apache.org
Subject: [ot] Need a webpage that for newsletter sign-ups without
internet access?
Importance: High

I have an issue I need help with.
I currently have a Struts based newsletter application that runs just
fine.
But now, I have a requirement to create a simple webpage that takes a
"name" and "email address" and writes that data to a file on a windows
machine. The problem is the windows machine will be very poor laptop,
and there will not be apache available. only IE 3.

Does anyone know of a very simple script that will take 2 form fields
and write them to a text file?
Then I could just manually import that text into my online Struts
application?


Mick Knutson
Wells Fargo Business Direct Information Systems
(415) 222-1020

"This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."




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


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



Re: Eliminate Setup Actions

2005-03-08 Thread Joe Germuska
And I've been silently wishing you'd add it, too. :)
We've had discussions about this maybe twice before, and another time
I lit the flame, you responded, but I wasn't able to follow through
with the discussion.
Well, then, now you've gone and done it, Hubert...  I've just 
committed the basic support for per-forward commands.

I think the next step would be to write a simple command which looks 
something like this:

public class FormPrepCommand implements Command {
private String formName; // property
private String formScope; // property
public boolean execute(Context context) {
  if (this.formName != null) {
ActionContext actionCtx = (ActionContext) context;
ActionForm form = lookupForm(formName,formScope, actionCtx);
prepareForm(actionCtx, form);
return false;
  }
}
  protected ActionForm lookupForm(String formName, String formScope, 
ActionContext ctx) {
// standard behavior for looking up a form and making sure its in 
the right request/session scope
// classes would rarely override this; maybe it would be private.
  }

  protected abstract void prepareForm(ActionContext ctx, ActionForm form);
}
Then one could use one or more of these in a per-forward chain of 
renders.  Of course other commands could do non-form oriented setup.

Related to what I just checked in, I still like a model where rather 
than configuring command and catalog on each ForwardConfig, a lookup 
is done based on the "path" value of the ForwardConfig.  No reason 
not to have both, of course, but I just think my style would be to 
have a catalog named "page-prep" and a different command in 
process-view which worked this way.

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

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


Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-08 Thread Tim Christopher
Try:   http://www.arc-mind.com/papers/advanced-tiles.pdf


On Tue, 8 Mar 2005 10:30:58 -0800 (PST), wo_shi_ni_ba_ba
<[EMAIL PROTECTED]> wrote:
> Tim,
> thanks for the example.  What I really want is to
> modify the value of the attribute title from
> content.jsp and then acess this attribute from
> somepage.jsp.  How can this be achieved?
> thank you!
> 
> 
> --- Tim Christopher <[EMAIL PROTECTED]> wrote:
> > Not sure if this is what you're asking but here's a
> > quick example that
> > shows how to access the information stored in the
> > tiles-defs.xml in a
> > file other than your layout page
> >
> > # Extract from tiles-defs.xml #
> > 
> >  > path="/WEB-INF/pages/layout.jsp">
> >   
> >> value="/WEB-INF/pages/content.jsp"/>
> >> value="/WEB-INF/pages/somepage.jsp"/>
> > 
> >
> > # Extract from layout.jsp #
> > -
> > 
> > 
> > 
> >   
> > 
> >
> > # Extract from content.jsp #
> > 
> > 
> > 
> >
> >
> > Hope that helps,
> >
> > Tim Christopher
> >
> >
> >
> > On Mon, 7 Mar 2005 10:55:49 -0800 (PST), Jonathan M
> > Z
> > <[EMAIL PROTECTED]> wrote:
> > > dear folks,
> > > I know that I can insert an attribute into a  jsp
> > page
> > > by using tiles:insert and tiles put as the
> > following:
> > >  > > flush="true">
> > >
> > >  > value="/common/nav.jsp" />
> > >
> > > 
> > > but what if I want to get the value of this
> > attribute
> > > from one of its sub jsp pages(eg. nav.jsp)
> > > I have tried using  > > scope="request"/> to import all the tiles
> > attributes
> > > into the request scope.  But it doesn't seem like
> > the
> > > attributes get imported into the request scope
> > > when I print out all the attribute names from the
> > > request as the following in nav.jsp:
> > > 
> > > <%
> > >Enumeration e=request.getAttributeNames();
> > >while(e.hasMoreElements()){
> > >out.println(e.nextElement()+ "
> > <>");
> > >}
> > > %>
> > > neither was I able to use > name="param1"/>
> > > in nav.jsp
> > >
> > > what's wrong?
> > >
> > > thanks
> > >
> > > __
> > > Celebrate Yahoo!'s 10th Birthday!
> > > Yahoo! Netrospective: 100 Moments of the Web
> > > http://birthday.yahoo.com/netrospective/
> > >
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
> __
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: MVC Frameworks

2005-03-08 Thread Andrew Hill
Why would the users have trouble accepting Spring if you werent using 
the MVC part - how does that impact on the UI to an extent that a user 
could notice?

Fogleson, Allen wrote:
I think the biggest argument was stated by Nicolas.
I use struts because I like it sure, but I really use it because it is
the framework that the client will accept and pay for and my developers
know best. 

We recently used (portions) of Spring on a project and had a heck of a
time getting the client to accept the app during user testing. Granted
there were a bunch of other issues with this particular client that went
against "best practices" but the major sticking point was Spring. (note
we didn't even use the MVC part of spring even, just the beanfactory
stuff)
Struts has of course gained popular acceptance so clients really don't
think much about it when you say you are using it, vs something else. 

Al
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:17 AM
To: Justin Morgan
Cc: Struts Users Mailing List
Subject: Re: MVC Frameworks

For my part, I still prefer Struts because I think it has a great
potential if it endorses some move to IoC and does not fall off the
strict web MVC pattern.  I have no time for the event-based frameworks
like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of thing.
 What framework you choose depends a lot on what you want to do, the
sophistication of your developers, etc.
Jack
On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
Thanks...
I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
going to assume this chapter is pretty similar to the one you mention.
I agree with you that this author is incredibly clear-minded, and I'm
soaking it all in.  Most of the book is model-neutral, and focuses
more
on good practices and patterns, which is great because we have not
decided on a model yet.  But in chapter 12 he only really discusses
Struts, Maverick, and WebWork.  I was hoping for some commentary on
JSF
and Tapestry as well, especially regarding why one might choose one
over
the other.
It all boils down to two questions:
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
2.  Why should _I_ prefer ?
The second question is not meant to make anyone defensive; I'm just
trying to get past
Thanks,
-Justin
-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 3:30 PM
To: Struts Users Mailing List
Subject: Re: MVC Frameworks
Rod Johnson (author of Spring and one of the clearest thinkers I have
ever read IMHO) has a good discussion of the options in J2EE
Development without EJB in Chapter 13: Web Tier Design.
Jack
On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan
<[EMAIL PROTECTED]>
wrote:
Hi there,
I am currently researching different web application frameworks...
JSF,
Struts, and Tapestry specifically.  We are planning to migrate a
large
existing web application to a rigorous model 2 standard using one or
more of these frameworks, and I am looking for more information on
the
differences between them.  My research thus far has turned up only a
few
sources, and many of them seem religiously biased toward one of
them.
If any of you have opinions, or better yet, articles contrasting
these
technologies, please let me know.
Thanks,
-Justin

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

--
"You can lead a horse to water but you cannot make it float on its
back."
~Dakota Jack~
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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


RE: problem with automation of struts html code

2005-03-08 Thread wo_shi_ni_ba_ba
David,
How do I use tilesActions and tilesControllers for my
purpose? Is it appropriate? I explained my problem in
detail in a previous post.
thanks
--- "David G. Friedman" <[EMAIL PROTECTED]> wrote:
> Wo_Shi(etc.),
> 
> If all you want to do is apply a style (or two) of
> template(s) to your
> JSP's, take a look at SiteMesh instead of Tiles.  I
> recommend SiteMesh over
> tiles if you only want to "wrap" your pages in one
> or two templates.  For
> anything more complex, I would suggest Tiles with
> TilesActions and/or
> TilesControllers.
> 
> You can find SiteMesh on OpenSymphony.com at:
> http://www.opensymphony.com/sitemesh
> 
> Regards,
> David
> 
> -Original Message-
> From: Max Cooper [mailto:[EMAIL PROTECTED]
> Subject: Re: problem with automation of struts html
> code
> 
> Don't write your own page templating system. Use
> Tiles instead.
> -Max
> 
> On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba
> wrote:
> > Hi folks,
> > In my webapplications there are many html page
> with
> > the similar look and structure. I am trying to
> factor
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re: problem with automation of struts html code

2005-03-08 Thread wo_shi_ni_ba_ba
hi folks,
thanks for the suggetion.
I am not trying to write a templating system. I am
trying to do something different, maybe an example
will elaborate.  I have a utility function printTable1
that I want to use it to print different tables
because the tables  in my jsps share a lot of common
structures.
with this utility function, I can avoid a lot of
redundency in my jsp code.  This obviously doesn't
work if I insert struts taglibs into it.  but I also
want to use struts taglibs.  How do I solve this
problem?  How do I use tiles to solve this problem?

[code]
public static void printTable1(JspWriter writer,
Vector header, Vector content, String tableStyle,
String tableHeaderStyle, String contentStyle){
StringBuffer s=new StringBuffer("");
s.append("");
s.append("");
Object obj=null;
String cell=null;
for(int i=0;i").append(cell).append("");
}
s.append("");

for(int i=0;i");
for(int j=0;j");
}
else s.append("");
s.append(cell).append("");

}
s.append("");
}
s.append("");
try {
writer.println(s);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}
[/code]
--- Max Cooper <[EMAIL PROTECTED]> wrote:
> Don't write your own page templating system. Use
> Tiles instead.
> 
> -Max
> 
> On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba
> wrote:
> > Hi folks,
> > In my webapplications there are many html page
> with
> > the similar look and structure. I am trying to
> factor
> > out them.  So I created utility functions to print
> out
> > html code to the jspWriter.  But I am not able to
> > incorporate struts tags into these functions
> because
> > they will just be printed without being rendered
> > through the struts engine.
> > So if I print  it will come out
> > like  without any change.   
> > On the other hand if I don't incorporate struts
> tags
> > into my utility functions and use just plain html
> > code, I don't get to take the full advantage of
> struts
> > tags.
> > How do I get around this problem?
> > thanks
> > 
> > 
> > 
> > 
> > 
> > __ 
> > Celebrate Yahoo!'s 10th Birthday! 
> > Yahoo! Netrospective: 100 Moments of the Web 
> > http://birthday.yahoo.com/netrospective/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re: Bean Taglib Help

2005-03-08 Thread Richard Reyes
Thanks.


On Tue, 08 Mar 2005 13:33:46 +0100, Nicolas De Loof
<[EMAIL PROTECTED]> wrote:
> 
> You can use the EL-enable version of display tag to do this (assuming
> Konstants.SESSION_USER_KEY = "users") :
> 
> 
> 
> Now, if you don't want to break constants usage, you may try to use
> jakarta unstandard taglib to bind the static field from your Konstants
> class to a pageContext variable :
> 
>  field="SESSION_USER_KEY"/>
> (http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind)
> 
> .. and use it in EL :
> 
> 
> 
> If you don't want to use EL, you can use struts bean:define :
> 
>  property="rusers"/>
> 
> 
> Nico.
> 
> Richard Reyes a écrit :
> 
> >Hello All,
> >
> >I have this code...
> >
> >
> ><%
> >User user = ( User ) session.getAttribute( Konstants.SESSION_USER_KEY ) ;
> >ArrayList x = user.getRusers() ;
> >request.setAttribute( "x",x ) ;
> >%>
> >
> >
> >
> >How do I use the Struts Bean Liblraries to remove the scriptlet.
> >
> >TIA.
> >Richard
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> This message contains information that may be privileged or confidential and 
> is the property of the Capgemini Group. It is intended only for the person to 
> whom it is addressed. If you are not the intended recipient,  you are not 
> authorized to read, print, retain, copy, disseminate,  distribute, or use 
> this message or any part thereof. If you receive this  message in error, 
> please notify the sender immediately and delete all  copies of this message.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: [Validator] maxlength JavaScript not generated

2005-03-08 Thread Bill Siggelkow
It should be ... I just looked at the latest build and the JS function 
is defined in the validator-rules.xml and the function itself is 
located in my commons-1.1.4 jar in the maven repository.

On 2005-03-08 18:26:23 -0500, Matt Raible <[EMAIL PROTECTED]> said:
I coulda sworn that JavaScript was generated for maxlength validation 
rules, but in my current App (Struts 1.2.4), they don't show up.

In validation.xml, I have:
 
 
 
 
 maxlength
 1800
 
 

The JavaScript that's generated for it is:
 function outageForm_maxlength () {
 }
And here's my field:

Server-side validation works fine.
Thanks,
Matt


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


RE: problem with automation of struts html code

2005-03-08 Thread David G. Friedman
Wo_Shi(etc.),

If all you want to do is apply a style (or two) of template(s) to your
JSP's, take a look at SiteMesh instead of Tiles.  I recommend SiteMesh over
tiles if you only want to "wrap" your pages in one or two templates.  For
anything more complex, I would suggest Tiles with TilesActions and/or
TilesControllers.

You can find SiteMesh on OpenSymphony.com at:
http://www.opensymphony.com/sitemesh

Regards,
David

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Subject: Re: problem with automation of struts html code

Don't write your own page templating system. Use Tiles instead.
-Max

On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba wrote:
> Hi folks,
> In my webapplications there are many html page with
> the similar look and structure. I am trying to factor


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



[ot] Need a webpage that for newsletter sign-ups without internet access?

2005-03-08 Thread Mick.Knutson
I have an issue I need help with.
I currently have a Struts based newsletter application that runs just fine.
But now, I have a requirement to create a simple webpage that takes a "name" 
and "email address" and writes that data to a file on a windows machine. The 
problem is the windows machine will be very poor laptop, and there will not be 
apache available. only IE 3.

Does anyone know of a very simple script that will take 2 form fields and write 
them to a text file?
Then I could just manually import that text into my online Struts application?


Mick Knutson
Wells Fargo Business Direct Information Systems
(415) 222-1020

"This message may contain confidential and/or privileged information. If you 
are not the addressee or authorized to receive this for the addressee, you must 
not use, copy, disclose, or take any action based on this message or any 
information herein. If you have received this message in error, please advise 
the sender immediately by reply e-mail and delete this message. Thank you for 
your cooperation."




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



Re: problem with automation of struts html code

2005-03-08 Thread Max Cooper
Don't write your own page templating system. Use Tiles instead.

-Max

On Tue, 2005-03-08 at 16:32 -0800, wo_shi_ni_ba_ba wrote:
> Hi folks,
> In my webapplications there are many html page with
> the similar look and structure. I am trying to factor
> out them.  So I created utility functions to print out
> html code to the jspWriter.  But I am not able to
> incorporate struts tags into these functions because
> they will just be printed without being rendered
> through the struts engine.
> So if I print  it will come out
> like  without any change.   
> On the other hand if I don't incorporate struts tags
> into my utility functions and use just plain html
> code, I don't get to take the full advantage of struts
> tags.
> How do I get around this problem?
> thanks
> 
> 
> 
>   
>   
> __ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: struts html tags and form-beans

2005-03-08 Thread wo_shi_ni_ba_ba
thank you for the answer
--- "Nidel, Mike" <[EMAIL PROTECTED]> wrote:
> No. This won't work automatically.
> 
> You can, however, use the  tags or
> use scriptlet
> code to access your form bean in the request/session
> and
> pull the properties out that you need.
> 
> 
> > -Original Message-
> > From: wo_shi_ni_ba_ba
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 08, 2005 3:28 PM
> > To: Struts Users Mailing List; Jeff Beal
> > Subject: Re: struts html tags and form-beans
> > 
> > 
> > hi,
> > What I meant was even if I don't use strut's html
> tags
> > I would still be able to take advantage of this
> > automation, right?(or not?)  I want to use plain
> html
> > to render input types.
> > 
> > 
> > --- Jeff Beal <[EMAIL PROTECTED]> wrote:
> > > Yes.  The  tags automate the work of
> pulling
> > > values from the
> > > form and displaying them to the user.  For
> example,
> > > in the case of
> > > displaying invalid responses to the user for
> them to
> > > correct.
> > > 
> > > 
> > > On Tue, 8 Mar 2005 11:07:15 -0800 (PST),
> > > wo_shi_ni_ba_ba
> > > <[EMAIL PROTECTED]> wrote:
> > > > hi folks,
> > > > if I just use plain html code(not struts html:
> > > tags)
> > > > for  constructing input types like radios,
> > > > textfield,etc, would I still be able to use
> > > form-bean
> > > > for automatic retrieving and populating as
> long as
> > > I
> > > > wrap all the inputs in a form and set the form
> > > action
> > > > to be an action associated with a form-bean in
> > > > struts-config?
> > > > thanks
> > > > 
> > > > __
> > > > Celebrate Yahoo!'s 10th Birthday!
> > > > Yahoo! Netrospective: 100 Moments of the Web
> > > > http://birthday.yahoo.com/netrospective/
> > > > 
> > > >
> > >
> >
>
-
> > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > 
> > > > 
> > > 
> > > 
> > > -- 
> > > Jeff Beal
> > > Webmedx, Inc.
> > > Pittsburgh, PA USA
> > > 
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > 
> > 
> > __ 
> > Celebrate Yahoo!'s 10th Birthday! 
> > Yahoo! Netrospective: 100 Moments of the Web 
> > http://birthday.yahoo.com/netrospective/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



problem with automation of struts html code

2005-03-08 Thread wo_shi_ni_ba_ba
Hi folks,
In my webapplications there are many html page with
the similar look and structure. I am trying to factor
out them.  So I created utility functions to print out
html code to the jspWriter.  But I am not able to
incorporate struts tags into these functions because
they will just be printed without being rendered
through the struts engine.
So if I print  it will come out
like  without any change.   
On the other hand if I don't incorporate struts tags
into my utility functions and use just plain html
code, I don't get to take the full advantage of struts
tags.
How do I get around this problem?
thanks





__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



RE: providers which can host a struts web application

2005-03-08 Thread David G. Friedman
I use JavaPipe, formerly "Display Hosting".  You just need their dedicated
64MB JVM plan:
http://www.javapipe.com/web/content/view/14/93/

Regards,
David

-Original Message-
From: kjc [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 1:54 PM
To: Struts Users Mailing List
Subject: providers which can host a struts web application


Looking for a list of providers that can host a struts web application,
with access to
a MySQL DB.

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


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



[Validator] maxlength JavaScript not generated

2005-03-08 Thread Matt Raible
I coulda sworn that JavaScript was generated for maxlength validation 
rules, but in my current App (Struts 1.2.4), they don't show up.

In validation.xml, I have:




maxlength
1800



The JavaScript that's generated for it is:
function outageForm_maxlength () {
}
And here's my field:

Server-side validation works fine.
Thanks,
Matt
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: MVC Frameworks

2005-03-08 Thread Fogleson, Allen
I think the biggest argument was stated by Nicolas.

I use struts because I like it sure, but I really use it because it is
the framework that the client will accept and pay for and my developers
know best. 

We recently used (portions) of Spring on a project and had a heck of a
time getting the client to accept the app during user testing. Granted
there were a bunch of other issues with this particular client that went
against "best practices" but the major sticking point was Spring. (note
we didn't even use the MVC part of spring even, just the beanfactory
stuff)

Struts has of course gained popular acceptance so clients really don't
think much about it when you say you are using it, vs something else. 

Al


-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:17 AM
To: Justin Morgan
Cc: Struts Users Mailing List
Subject: Re: MVC Frameworks

For my part, I still prefer Struts because I think it has a great
potential if it endorses some move to IoC and does not fall off the
strict web MVC pattern.  I have no time for the event-based frameworks
like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of thing.
 What framework you choose depends a lot on what you want to do, the
sophistication of your developers, etc.

Jack


On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
> Thanks...
> 
> I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
> 0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
> going to assume this chapter is pretty similar to the one you mention.
> 
> I agree with you that this author is incredibly clear-minded, and I'm
> soaking it all in.  Most of the book is model-neutral, and focuses
more
> on good practices and patterns, which is great because we have not
> decided on a model yet.  But in chapter 12 he only really discusses
> Struts, Maverick, and WebWork.  I was hoping for some commentary on
JSF
> and Tapestry as well, especially regarding why one might choose one
over
> the other.
> 
> It all boils down to two questions:
> 1.  Why do you prefer Struts over any other web application framework?
> (Tapestry, JSF, Maverick, WebWork, etc)
> 2.  Why should _I_ prefer ?
> 
> The second question is not meant to make anyone defensive; I'm just
> trying to get past
> 
> Thanks,
> 
> -Justin
> 
> 
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 07, 2005 3:30 PM
> To: Struts Users Mailing List
> Subject: Re: MVC Frameworks
> 
> Rod Johnson (author of Spring and one of the clearest thinkers I have
> ever read IMHO) has a good discussion of the options in J2EE
> Development without EJB in Chapter 13: Web Tier Design.
> 
> Jack
> 
> On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan
<[EMAIL PROTECTED]>
> wrote:
> > Hi there,
> >
> > I am currently researching different web application frameworks...
> JSF,
> > Struts, and Tapestry specifically.  We are planning to migrate a
large
> > existing web application to a rigorous model 2 standard using one or
> > more of these frameworks, and I am looking for more information on
the
> > differences between them.  My research thus far has turned up only a
> few
> > sources, and many of them seem religiously biased toward one of
them.
> >
> > If any of you have opinions, or better yet, articles contrasting
these
> > technologies, please let me know.
> >
> > Thanks,
> >
> > -Justin
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> "You can lead a horse to water but you cannot make it float on its
> back."
> ~Dakota Jack~
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its
back."
~Dakota Jack~

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


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



Re: map-backed forms with multibox/multiselect lists?

2005-03-08 Thread Radu Badita
That's great! Thanks for sharing.
Next time I'll know how to do it. Luckily you proved to be more 
determined and finally solved it. Congratulations!

Nidel, Mike wrote:
The good news is that this DOES work.
I simply declared my methods to be
public void setFoo(String key, String[] foos)
{
...
}
public String[] getFoo(String key)
{
...
}
and everything works fine. It took a detour through the Struts
source (and ultimately from there through the beanutils source)
to figure this out, but the problem was essentially that when
doing the bean introspection, the beanutils first finds the getFoo()
method and stores its return type. It then looks for a setFoo()
method with the same argument type as the return type of getFoo().
If you try to return foo as an Object, it just won't work -- your
setter won't be found and the method will never be called.
thanks for the input,
Mike
 

-Original Message-
From: Radu Badita [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 11:10 AM
To: Struts Users Mailing List
Subject: RE: map-backed forms with multibox/multiselect lists?

I had the same problem some time ago (the solution vaguely 
suggested by 
Jack wouldn't had been an option since the properties were 
dynamic so I 
needed the key to distinguish between them). I asked on this 
list for help 
at that time, but didn't got an answer, so I guess nobody 
succeeded in 
doing something like this. Therefore I had to find some other 
solution to 
my problem...
I'm guessing this might be some sort of a problem with 
commons-binutils 
(although public void setFoos(String key, String[] foos) 
isn't a valid 
javabeans setter so maybe it's just a bit out of it's scope).

At 16:44 07.03.2005, you wrote:
   

This works fine for list-backed form items (which we also use)
but in this case I need something like
public void setFoos(String key, String[] foos)
is this possible?
There are several workarounds I can think of, but this appears
to be the cleanest solution if I can make it work.
Mike
 

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Monday, March 07, 2005 9:42 AM
To: Struts Users Mailing List
Subject: Re: map-backed forms with multibox/multiselect lists?
public void setFoos(String [] foos)
On Fri, 4 Mar 2005 18:55:53 + (UTC), Mike Nidel
<[EMAIL PROTECTED]> wrote:
   

I'm trying to build a form element that combines the
 

features of a map-backed
   

property with a multibox (and the same for a
 

multiple-selection list). I've made
   

multiboxes work fine without the map-backed element, but I
 

can't seem to get
   

this to work.
I've tried various method signatures in my form bean, but
 

to no avail. For
   

example, for a field called "foo" I have tried the following:
public void setFoo(String key, Object val)
{
...
}
or
public void setFoo(String key, String[] val)
{
...
}
I'm using a set of checkboxes on the JSP which should
 

result in a list of the
   

values of whichever boxes are selected. I can think of a
 

number of javascript
   

workarounds, as well as workarounds in my Action that go
 

directly to the request
   

parameters... but all of those are kludges and it seems
 

like there should be a
   

way to have multiple checkboxes that all reference a
 

map-backed form property.
   

Any thoughts?
thanks a bunch,
Mike Nidel
 

-
   

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

--
"You can lead a horse to water but you cannot make it float
on its back."
~Dakota Jack~
   

-
   

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

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

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

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


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


missing module configuration

2005-03-08 Thread Jennifer Ball
Hello,
I'm using the struts-faces integration library so as to include struts 
clientside validation in my JSF app.  I am following the examples 
included with the library as near as I can, but I keep getting this 
error when I try to run the application:

java.lang.IllegalArgumentException: Cannot find module configuration
at 
org.apache.struts.faces.component.FormComponent.lookupModuleConfig(FormComponent.java:583)
...
I'm assuming there is something wrong with my struts-config.xml file or 
my web.xml file but I can't see what it might be.

Any advice on what I should look for?
thanks,
Jennifer
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Disable Backspace Key using Firefox

2005-03-08 Thread Mike Robinson
Hyrum,
This is not really a struts issue and should be addressed to another, 
mor appropriate mailing list. But that being said, here's a potential 
solution that uses javascript. The code below is for trapping a carriage 
return but could be adapted for any keystroke.




function checkCR(evt)
{
var evt  = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? 
evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}

}
// sets up the current document to call checkCR when a key is pressed
document.onkeypress = checkCR;
Hyrum wrote:
I need to disable the backspace key.  I am using a Firefox Browser, and can
find very little information about how to do this.  I've searched all over
the web, but it's mostly info about IE or Netscape.  I'm getting mixed
signals.  Some say it can't be done.  Others say they've done it, but either
the directions are not available (404), or they apply to IE or NN.  Does
anyone have any ideas on this?
 

Hyrum Ward
Software Developer
T&R Tax Services
 



No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.3 - Release Date: 3/7/2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.3 - Release Date: 3/7/2005
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Hidden parameter passing: RE: parameter passing from one jsp-screen to another

2005-03-08 Thread [EMAIL PROTECTED]
jj endenburg wrote:
Thank you Erik!
Actually, the information in my question was not
complete. I am sorry for this...
The parameter to pass from jsp-screen A to jsp-screen
B should stay hidden from the end-user.
This is why displaying this parameter in the URL is
not possible, unfortunately.
Instead of this, how can I pass this parameter within
Struts, without the end-user being able to see it?
Thank you,
Jan-Jaap
 

Try
A.jsp:


  .
  .

B.jsp:

the prefix param is needed.
  Wolfgang
--- "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
 

Well, how about using a query string parameter in
your links?
http://foo.com/myapp/bar.jsp?itemId=1
http://foo.com/myapp/bar.jsp?itemId=2
And so on?
The Struts html:link tag (or the JSTL c:url tag) can
be used to dynamically
create your links.
   

http://struts.apache.org/userGuide/struts-html.html#link
 

Hope that helps,
Erik
Original Message:
-
From: jj endenburg [EMAIL PROTECTED]
Date: Tue, 8 Mar 2005 00:29:46 -0800 (PST)
To: user@struts.apache.org
Subject: parameter passing from one jsp-screen to
another
Hi everyone,
I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B
within
the struts-framework?
More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own
(dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?
Thanks,
Jan-Jaap
Met vriendelijke groeten,
Jan-Jaap Endenburg
	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

   

-
 

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

   


 

mail2web - Check your email from the web at
http://mail2web.com/ .

   

-
 

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


	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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




Re: Hidden parameter passing: RE: parameter passing from one jsp-screen to another

2005-03-08 Thread Rick Reumann
jj endenburg wrote the following on 3/8/2005 5:43 AM:
Actually, the information in my question was not
complete. I am sorry for this...
The parameter to pass from jsp-screen A to jsp-screen
B should stay hidden from the end-user.
This is why displaying this parameter in the URL is
not possible, unfortunately.
Instead of this, how can I pass this parameter within
Struts, without the end-user being able to see it?
Why not just set the param in the Session and pull it from there? Before 
you leave your servlet/action place a param in Session scope and you'll 
have it again later whenever you need it. Have to be careful you don't 
get tripped up though with the var being around when you think it isn't. 
At least the value will be hidden.

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


[OT] For all european developers

2005-03-08 Thread Leon Rosenberg
 
you probably will be interested in this link:
 
European Anti-Software Patent Bribe Pledge Drive
 
http://mjr.iki.fi/texts/patentfund
 
regards
Leon
 
 


[OT] For all european developers

2005-03-08 Thread Leon Rosenberg
 
you probably will be interested in this link:
 
European Anti-Software Patent Bribe Pledge Drive
 
http://mjr.iki.fi/texts/patentfund
 
regards
Leon
 
 


RE: struts html tags and form-beans

2005-03-08 Thread Nidel, Mike
No. This won't work automatically.

You can, however, use the  tags or use scriptlet
code to access your form bean in the request/session and
pull the properties out that you need.


> -Original Message-
> From: wo_shi_ni_ba_ba [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 08, 2005 3:28 PM
> To: Struts Users Mailing List; Jeff Beal
> Subject: Re: struts html tags and form-beans
> 
> 
> hi,
> What I meant was even if I don't use strut's html tags
> I would still be able to take advantage of this
> automation, right?(or not?)  I want to use plain html
> to render input types.
> 
> 
> --- Jeff Beal <[EMAIL PROTECTED]> wrote:
> > Yes.  The  tags automate the work of pulling
> > values from the
> > form and displaying them to the user.  For example,
> > in the case of
> > displaying invalid responses to the user for them to
> > correct.
> > 
> > 
> > On Tue, 8 Mar 2005 11:07:15 -0800 (PST),
> > wo_shi_ni_ba_ba
> > <[EMAIL PROTECTED]> wrote:
> > > hi folks,
> > > if I just use plain html code(not struts html:
> > tags)
> > > for  constructing input types like radios,
> > > textfield,etc, would I still be able to use
> > form-bean
> > > for automatic retrieving and populating as long as
> > I
> > > wrap all the inputs in a form and set the form
> > action
> > > to be an action associated with a form-bean in
> > > struts-config?
> > > thanks
> > > 
> > > __
> > > Celebrate Yahoo!'s 10th Birthday!
> > > Yahoo! Netrospective: 100 Moments of the Web
> > > http://birthday.yahoo.com/netrospective/
> > > 
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > > 
> > 
> > 
> > -- 
> > Jeff Beal
> > Webmedx, Inc.
> > Pittsburgh, PA USA
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
>   
>   
> __ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Hidden parameter passing: RE: parameter passing from one jsp-screen to another

2005-03-08 Thread Erik Weber
Well, this is not great nice solution in my opinion, but it does seem to 
be popular. This requires you to have a form on screen A and to use POST 
instead of GET to request screen B. Also, it requires JavaScript.

You could make all your links have the same URL, but put an "onclick" 
JavaScript handler with a different parameter on each one (most of the 
Struts HTML tags support the onclick, onsubmit, etc., attributes). The 
onclick handler does two things when you click the link:

1) sets the value of a hidden variable in the form
2) submits the form
So basically, you are turning your hyperlink into a submit button.
On the server, you now have the request parameter just as before, only 
now it comes from a form field instead of a query string variable.

You have to realize, though, that the value isn't truly hidden from the 
user (or from a network snooper) -- the user can view the HTML source to 
see what value gets sent with each click, and the parameter is still 
delivered in a request packet (though it won't show up in a URL request 
log). But, you won't see this parameter in a typical browser status bar 
when you hover your mouse pointer over the link, or in the address bar 
after your browser starts receiving the response.

Perhaps someone else might have another solution. This is the one that 
came to mind.

Erik

jj endenburg wrote:
Thank you Erik!
Actually, the information in my question was not
complete. I am sorry for this...
The parameter to pass from jsp-screen A to jsp-screen
B should stay hidden from the end-user.
This is why displaying this parameter in the URL is
not possible, unfortunately.
Instead of this, how can I pass this parameter within
Struts, without the end-user being able to see it?
Thank you,
Jan-Jaap
--- "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
 

Well, how about using a query string parameter in
your links?
http://foo.com/myapp/bar.jsp?itemId=1
http://foo.com/myapp/bar.jsp?itemId=2
And so on?
The Struts html:link tag (or the JSTL c:url tag) can
be used to dynamically
create your links.
   

http://struts.apache.org/userGuide/struts-html.html#link
 

Hope that helps,
Erik
Original Message:
-
From: jj endenburg [EMAIL PROTECTED]
Date: Tue, 8 Mar 2005 00:29:46 -0800 (PST)
To: user@struts.apache.org
Subject: parameter passing from one jsp-screen to
another
Hi everyone,
I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B
within
the struts-framework?
More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own
(dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?
Thanks,
Jan-Jaap
Met vriendelijke groeten,
Jan-Jaap Endenburg
	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

   

-
 

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

   


 

mail2web - Check your email from the web at
http://mail2web.com/ .

   

-
 

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


	
		
__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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

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


Re: Using a CSS file

2005-03-08 Thread N G
That's "eloquently." I did a google search on it.


On Tue, 8 Mar 2005 15:27:53 -0500, N G <[EMAIL PROTECTED]> wrote:
> Very cute, James. Yes, I broke the convenant of "first try searching
> on google." Thanks for pointing it out so eliquently.
> 
> NG
> 
> On Tue, 8 Mar 2005 13:06:42 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:
> > I'm glad you asked.  I keep a few links here on my home page:
> >
> > http://www.google.com/search?hl=en&q=css+import
> >
> >
> > --
> > James Mitchell
> > Software Engineer / Open Source Evangelist
> > EdgeTech, Inc.
> > 678.910.8017
> > AIM: jmitchtx
> >
> > - Original Message -
> > From: "N G" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Sent: Tuesday, March 08, 2005 11:49 AM
> > Subject: Re: Using a CSS file
> >
> > > On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > >> 
> > >>  @import url();
> > >> 
> > >
> > > What exactly is "@import" ? Is that a CSS command? What does it do?
> > >
> > > Thanks,
> > > NG
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: struts html tags and form-beans

2005-03-08 Thread wo_shi_ni_ba_ba
hi,
What I meant was even if I don't use strut's html tags
I would still be able to take advantage of this
automation, right?(or not?)  I want to use plain html
to render input types.


--- Jeff Beal <[EMAIL PROTECTED]> wrote:
> Yes.  The  tags automate the work of pulling
> values from the
> form and displaying them to the user.  For example,
> in the case of
> displaying invalid responses to the user for them to
> correct.
> 
> 
> On Tue, 8 Mar 2005 11:07:15 -0800 (PST),
> wo_shi_ni_ba_ba
> <[EMAIL PROTECTED]> wrote:
> > hi folks,
> > if I just use plain html code(not struts html:
> tags)
> > for  constructing input types like radios,
> > textfield,etc, would I still be able to use
> form-bean
> > for automatic retrieving and populating as long as
> I
> > wrap all the inputs in a form and set the form
> action
> > to be an action associated with a form-bean in
> > struts-config?
> > thanks
> > 
> > __
> > Celebrate Yahoo!'s 10th Birthday!
> > Yahoo! Netrospective: 100 Moments of the Web
> > http://birthday.yahoo.com/netrospective/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> Jeff Beal
> Webmedx, Inc.
> Pittsburgh, PA USA
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re: Using a CSS file

2005-03-08 Thread N G
Very cute, James. Yes, I broke the convenant of "first try searching
on google." Thanks for pointing it out so eliquently.

NG

On Tue, 8 Mar 2005 13:06:42 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:
> I'm glad you asked.  I keep a few links here on my home page:
> 
> http://www.google.com/search?hl=en&q=css+import
> 
> 
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
> 
> - Original Message -
> From: "N G" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Tuesday, March 08, 2005 11:49 AM
> Subject: Re: Using a CSS file
> 
> > On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]>
> > wrote:
> >
> >> 
> >>  @import url();
> >> 
> >
> > What exactly is "@import" ? Is that a CSS command? What does it do?
> >
> > Thanks,
> > NG
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



RE: map-backed forms with multibox/multiselect lists?

2005-03-08 Thread Nidel, Mike
The good news is that this DOES work.

I simply declared my methods to be

public void setFoo(String key, String[] foos)
{
...
}

public String[] getFoo(String key)
{
...
}

and everything works fine. It took a detour through the Struts
source (and ultimately from there through the beanutils source)
to figure this out, but the problem was essentially that when
doing the bean introspection, the beanutils first finds the getFoo()
method and stores its return type. It then looks for a setFoo()
method with the same argument type as the return type of getFoo().
If you try to return foo as an Object, it just won't work -- your
setter won't be found and the method will never be called.

thanks for the input,

Mike


> -Original Message-
> From: Radu Badita [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 07, 2005 11:10 AM
> To: Struts Users Mailing List
> Subject: RE: map-backed forms with multibox/multiselect lists?
> 
> 
> 
> I had the same problem some time ago (the solution vaguely 
> suggested by 
> Jack wouldn't had been an option since the properties were 
> dynamic so I 
> needed the key to distinguish between them). I asked on this 
> list for help 
> at that time, but didn't got an answer, so I guess nobody 
> succeeded in 
> doing something like this. Therefore I had to find some other 
> solution to 
> my problem...
> I'm guessing this might be some sort of a problem with 
> commons-binutils 
> (although public void setFoos(String key, String[] foos) 
> isn't a valid 
> javabeans setter so maybe it's just a bit out of it's scope).
> 
> At 16:44 07.03.2005, you wrote:
> >This works fine for list-backed form items (which we also use)
> >but in this case I need something like
> >
> >public void setFoos(String key, String[] foos)
> >
> >is this possible?
> >
> >
> >There are several workarounds I can think of, but this appears
> >to be the cleanest solution if I can make it work.
> >
> >Mike
> >
> > > -Original Message-
> > > From: Dakota Jack [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 07, 2005 9:42 AM
> > > To: Struts Users Mailing List
> > > Subject: Re: map-backed forms with multibox/multiselect lists?
> > >
> > >
> > > public void setFoos(String [] foos)
> > >
> > >
> > > On Fri, 4 Mar 2005 18:55:53 + (UTC), Mike Nidel
> > > <[EMAIL PROTECTED]> wrote:
> > > > I'm trying to build a form element that combines the
> > > features of a map-backed
> > > > property with a multibox (and the same for a
> > > multiple-selection list). I've made
> > > > multiboxes work fine without the map-backed element, but I
> > > can't seem to get
> > > > this to work.
> > > >
> > > > I've tried various method signatures in my form bean, but
> > > to no avail. For
> > > > example, for a field called "foo" I have tried the following:
> > > >
> > > > public void setFoo(String key, Object val)
> > > > {
> > > > ...
> > > > }
> > > >
> > > > or
> > > >
> > > > public void setFoo(String key, String[] val)
> > > > {
> > > > ...
> > > > }
> > > >
> > > > I'm using a set of checkboxes on the JSP which should
> > > result in a list of the
> > > > values of whichever boxes are selected. I can think of a
> > > number of javascript
> > > > workarounds, as well as workarounds in my Action that go
> > > directly to the request
> > > > parameters... but all of those are kludges and it seems
> > > like there should be a
> > > > way to have multiple checkboxes that all reference a
> > > map-backed form property.
> > > >
> > > > Any thoughts?
> > > >
> > > > thanks a bunch,
> > > >
> > > > Mike Nidel
> > > >
> > > >
> > > 
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > "You can lead a horse to water but you cannot make it float
> > > on its back."
> > > ~Dakota Jack~
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: struts html tags and form-beans

2005-03-08 Thread Jeff Beal
Yes.  The  tags automate the work of pulling values from the
form and displaying them to the user.  For example, in the case of
displaying invalid responses to the user for them to correct.


On Tue, 8 Mar 2005 11:07:15 -0800 (PST), wo_shi_ni_ba_ba
<[EMAIL PROTECTED]> wrote:
> hi folks,
> if I just use plain html code(not struts html: tags)
> for  constructing input types like radios,
> textfield,etc, would I still be able to use form-bean
> for automatic retrieving and populating as long as I
> wrap all the inputs in a form and set the form action
> to be an action associated with a form-bean in
> struts-config?
> thanks
> 
> __
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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



Mavenized build now does consolidated docs

2005-03-08 Thread James Mitchell
I've finished pulling together a multiproject version of the Maven 
documentation.  This does _NOT_ include the content from core/docs which is 
what you see at http://struts.apache.org/

This documentation is based generated automatically by Maven.  There's still 
lots of work to do, but here is a first draft:

http://svn.apache.org/builds/struts/maven/docs/
We are working hard to get the standard Struts documentation into this 
"Mavenized" build, so please "pardon the progress"...as they say ;)

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx

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


struts html tags and form-beans

2005-03-08 Thread wo_shi_ni_ba_ba
hi folks,
if I just use plain html code(not struts html: tags)
for  constructing input types like radios,
textfield,etc, would I still be able to use form-bean
for automatic retrieving and populating as long as I
wrap all the inputs in a form and set the form action
to be an action associated with a form-bean in
struts-config?
thanks




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-08 Thread Dakota Jack
Actually:

Rick = "Experimental"
You  = "Artificial"
Me   = "Intelligence"

lol



On Tue, 8 Mar 2005 16:37:28 -, Fergal O'Shea
<[EMAIL PROTECTED]> wrote:
> 
> Well, at least you associated the term INTELLIGENCE with me :)
> 
> I can certainly live with tha..ldlklja;sdkljhk;jashjfhka;kd
> 
> dlafkajflhaldjksfhkjasdlfkf
> ladhfkjadhfklhkldjashfjhads
> ladkjflkdajfkl;jdsklf;jlksd
> l123h98248cn8912vn948123vn9
> 049vnvn7249p78v9p874vn98v7v
> 
> Sorry... cache cleanout cycle.  My matrix is clear again.  Automated mailing
> list response algorithm has resumed.
> 
> (Wait, did that get posted?!?)
> 
> "I'm sorry, Dave. I can't post that."
> (HAL9000)
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Disable Backspace Key using Firefox

2005-03-08 Thread Hyrum
I need to disable the backspace key.  I am using a Firefox Browser, and can
find very little information about how to do this.  I've searched all over
the web, but it's mostly info about IE or Netscape.  I'm getting mixed
signals.  Some say it can't be done.  Others say they've done it, but either
the directions are not available (404), or they apply to IE or NN.  Does
anyone have any ideas on this?

 

Hyrum Ward

Software Developer

T&R Tax Services

 



Disable Backspace Key using Firefox

2005-03-08 Thread Hyrum
I need to disable the backspace key.  I am using a Firefox Browser, and can
find very little information about how to do this.  I've searched all over
the web, but it's mostly info about IE or Netscape.  I'm getting mixed
signals.  Some say it can't be done.  Others say they've done it, but either
the directions are not available (404), or they apply to IE or NN.  Does
anyone have any ideas on this?

 

Hyrum Ward

Software Developer

T&R Tax Services

 



attribute passing between jsps

2005-03-08 Thread wo_shi_ni_ba_ba
Hi folks,
I have A.jsp page that uses some layout as the
following:


 


 

Now I want to either 1)insert an attribute from A.jsp
and then access its value from nav.jsp
or 2) insert the attribute from the layout and modify
the attribute value fro A.jsp and then access its
value from nav.jsp.
How can either(or both) of them be done?
thanks





__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re: Displaying a HashMap as a

2005-03-08 Thread Jeff Beal
Good point.  I had forgotten about that class (added in JDK 1.4).


On Tue, 08 Mar 2005 11:18:50 -0500, Nidel, Mike <[EMAIL PROTECTED]> wrote:
> Note that there's also the java.util.LinkedHashMap which will
> maintain whichever order you insert the values in. This gives

-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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



Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-08 Thread wo_shi_ni_ba_ba
Tim,
thanks for the example.  What I really want is to
modify the value of the attribute title from
content.jsp and then acess this attribute from
somepage.jsp.  How can this be achieved?
thank you!


--- Tim Christopher <[EMAIL PROTECTED]> wrote:
> Not sure if this is what you're asking but here's a
> quick example that
> shows how to access the information stored in the
> tiles-defs.xml in a
> file other than your layout page
> 
> # Extract from tiles-defs.xml #
> 
>  path="/WEB-INF/pages/layout.jsp">
>   
>value="/WEB-INF/pages/content.jsp"/>
>value="/WEB-INF/pages/somepage.jsp"/>
> 
> 
> # Extract from layout.jsp #
> -
> 
> 
> 
>   
> 
> 
> # Extract from content.jsp #
> 
> 
> 
> 
> 
> Hope that helps,
> 
> Tim Christopher
> 
> 
> 
> On Mon, 7 Mar 2005 10:55:49 -0800 (PST), Jonathan M
> Z
> <[EMAIL PROTECTED]> wrote:
> > dear folks,
> > I know that I can insert an attribute into a  jsp
> page
> > by using tiles:insert and tiles put as the
> following:
> >  > flush="true">
> >
> >  value="/common/nav.jsp" />
> > 
> > 
> > but what if I want to get the value of this
> attribute
> > from one of its sub jsp pages(eg. nav.jsp)
> > I have tried using  > scope="request"/> to import all the tiles
> attributes
> > into the request scope.  But it doesn't seem like
> the
> > attributes get imported into the request scope
> > when I print out all the attribute names from the
> > request as the following in nav.jsp:
> > 
> > <%
> >Enumeration e=request.getAttributeNames();
> >while(e.hasMoreElements()){
> >out.println(e.nextElement()+ "
> <>");
> >}
> > %>
> > neither was I able to use name="param1"/>
> > in nav.jsp
> > 
> > what's wrong?
> > 
> > thanks
> > 
> > __
> > Celebrate Yahoo!'s 10th Birthday!
> > Yahoo! Netrospective: 100 Moments of the Web
> > http://birthday.yahoo.com/netrospective/
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Re: Using a CSS file

2005-03-08 Thread James Mitchell
I'm glad you asked.  I keep a few links here on my home page:
http://www.google.com/search?hl=en&q=css+import

--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message - 
From: "N G" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, March 08, 2005 11:49 AM
Subject: Re: Using a CSS file


On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> 
wrote:


 @import url();

What exactly is "@import" ? Is that a CSS command? What does it do?
Thanks,
NG
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: MVC Frameworks

2005-03-08 Thread Woodchuck
hihi all,

i was also questioning frameworks and such.  i mean, i was happily
using Struts when all of a sudden so many 'off-spring' or 'hybrid'
frameworks started popping up from nowhere (Spring, Hibernate, Cocoon,
Tibco, JSF, Tapestry, ).  why??  human nature.  it
is human nature to rock the boat, or else there is no progress.  this
is arguably good and bad.  someone will always think they can do
something better.  someone will always have an itch to improve on the
current situation.  this is why we have the gluttony of frameworks and
projects that are springing up.

given this, i realized it is pretty much futile to try and find the
best framework.  sadly, "it depends" is the answer.  i don't know who
has the time to compare exhaustively and extensively all the frameworks
that are available.  and even if this is done, it will most likely be
on a simple level, and not with the detail and depth of any reasonable
realistic website with concurrency / performance / security /
scalability / etc. etc. issues.  this kind of pet store lip service
comparison is not what i want to base my decision on.  none of the
projects i've worked on resemble anything close to such examples.  all
of my projects are living (evil) entities which change, give new
meaning to the term "scope creep", think they can do whatever they
want, bleh bleh.

so, in the end, basically given the lack of information, it really is
somewhat of an arbitrary decision.  a leap of faith!  just pick one and
roll with it.  whichever one you pick will do the job, and if it
doesn't, i'm sure you will mangle with it enough to meet your
requirements.  put another way, nothing you pick will end up being such
a disaster that cannot be fixed, anything is possible.  sure, the code
may end up wrangled and, dare i say, spaghetti-like, but isn't this the
real-world reality?

so i think a more appropriate question is, which framework can you get
the most support from, when the time comes when you will need it?  such
as this great mailing list! :)

my apologies,
woodchuck




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

> I completely agree (did I say that to DJ?).
> 
> While you can start a flame war reminiscent of the "Wordstar vs.
> Word"
> or "Supercalc vs. Lotus" in the old days, with the question "Which
> Framework is best" the fact is, as Jack says, it "depends".  I prefer
> struts for what we are doing, primarily because we can extend it to
> meet
> our needs and we can put Velocity or Cocoon or even Axis out in front
> of
> it, or Hibernate, or Tibco behind it and we need not spend a lot of
> time
> or effort doing it.
> 
> Michael Oliver
> CTO
> Alarius Systems LLC
> 3325 N. Nellis Blvd, #1
> Las Vegas, NV 89115
> Phone:(702)643-7425
> Fax:(702)974-0341
> *Note new email changed from [EMAIL PROTECTED]
> 
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, March 08, 2005 8:17 AM
> To: Justin Morgan
> Cc: Struts Users Mailing List
> Subject: Re: MVC Frameworks
> 
> For my part, I still prefer Struts because I think it has a great
> potential if it endorses some move to IoC and does not fall off the
> strict web MVC pattern.  I have no time for the event-based
> frameworks
> like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of
> thing.
>  What framework you choose depends a lot on what you want to do, the
> sophistication of your developers, etc.
> 
> Jack
> 
> 
> On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan
> <[EMAIL PROTECTED]>
> wrote:
> > Thanks...
> > 
> > I recently picked up Rod Johnson's J2EE Design and Development
> (ISBN:
> > 0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"... 
> I'm
> > going to assume this chapter is pretty similar to the one you
> mention.
> > 
> > I agree with you that this author is incredibly clear-minded, and
> I'm
> > soaking it all in.  Most of the book is model-neutral, and focuses
> more
> > on good practices and patterns, which is great because we have not
> > decided on a model yet.  But in chapter 12 he only really discusses
> > Struts, Maverick, and WebWork.  I was hoping for some commentary on
> JSF
> > and Tapestry as well, especially regarding why one might choose one
> over
> > the other.
> > 
> > It all boils down to two questions:
> > 1.  Why do you prefer Struts over any other web application
> framework?
> > (Tapestry, JSF, Maverick, WebWork, etc)
> > 2.  Why should _I_ prefer ?
> > 
> > The second question is not meant to make anyone defensive; I'm just
> > trying to get past
> > 
> > Thanks,
> > 
> > -Justin
> > 
> > 
> > -Original Message-
> > From: Dakota Jack [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 07, 2005 3:30 PM
> > To: Struts Users Mailing List
> > Subject: Re: MVC Frameworks
> > 
> > Rod Johnson (author of Spring and one of the clearest thinkers I
> have
> > ever read IMHO) has a good discussion of the options in J2EE
> > Development without EJB in Chapter 13: Web Tier Design.
> > 
> > Jack
> > 
> > On Mon, 7 M

RE: inputting floats with html:text

2005-03-08 Thread Slattery, Tim - BLS
> I have an application where I am using html:text to allow the 
> user to input floating point numbers.  This works fine, 
> except for when the numbers are fairly small, ie 0.001.  
> In this case, I can use the 
> org.apache.struts.taglib.bean.format.float property to set 
> display, but when I pre-populate the edit page, the html:text 
> element displays the float in scientific notation.  Is there 
> any way to control how html:text formats the value?

I suspect the only way to do this is to have the  elements
correspond to text properties. Then you can have the getter format the data
any way you want.

--
Tim Slattery
[EMAIL PROTECTED] 


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



Re: DispatchAction - NullPointerException

2005-03-08 Thread Eric Lemle
The execute method can be used to put code that will apply to all the 
dispatched methods.

*---

public class BasicInfoAction extends DispatchAction {
  private String thing1;
  private String thing2;
  
  
public ActionForward execute(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) throws Exception {
thing1="The cat in a hat"
thing2="The cat in a hat"
request.getSession().setAttribute("thing1", thing1);
request.getSession().setAttribute("thing2", thing2);

return super.execute(mapping, form, request, response);
  }

  public ActionForward display(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) {   
System.out.println("method=display");

   return mapping.getInputForward();
 }

*
-Eric














>>> [EMAIL PROTECTED] 03/08/05 9:54 AM >>>
Hey Rick,

Thanks for your reply.

On Tue, 08 Mar 2005 10:18:30 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Basile Passe wrote the following on 3/7/2005 12:49 PM:
> 
> > The value of the request parameter named "method" to pick the
> > appropriate "execute" method is not valid. But why? struts-config.xml
> > is correct and form (JSP) also.
> 
> Well, not sure exactly what you mean above. I'm assuming since you said
> it works 95% of the time, you do have typical dispatch method names.
> When you use a DispatchAction you typically don't code the execute
> method (that's handled by the base class). The execute method of the
> base class chooses the correct method in your dispatch action. From your

I understand your description of DispatchAction and my use is good.

> stack trace it's apparent that you are "NOT" always passing the "method"

I'm sure we passing the good "method" parameter but sometimes the
error appears in the stack trace!.

> parameter like you say you are OR the method param you are passing does
> not match the method name in the dispatch action (check for typos). Use
> a debugger or print out the request params that are being passed.

I don't have the possibilities to reproduce the error. The error
appears in production (error occurs from time to time). ;)

> 
> (PS- It's not a good idea to reply to another topic and change the
> subject, since it messes up the threading of messages. This message and
> your original is now burried within the "Two CSS files" thread)

Sorry :P

> 
> >
> > Have you an idea for resolve this problem ?
> >
> > Sorry for my poor english ;)
> >
> > Basile Passe
> >
> > Error trace :
> > java.lang.NullPointerException
> >at java.lang.Class.getMethod0 (Native Method)
> >at java.lang.Class.getMethod (Class.java:888)
> >at org.apache.struts.actions.DispatchAction.getMethod
> > (DispatchAction.java:334)
> >at org.apache.struts.actions.DispatchAction.dispatchMethod
> > (DispatchAction.java:266)
> >at adsn.fcddv.framework.struts.BaseDispatchAction.execute
> > (BaseDispatchAction.java:76)
> >at org.apache.struts.action.RequestProcessor.processActionPerform
> > (RequestProcessor.java:446)
> >at adsn.fcddv.framework.struts.CustomRequestProcessor.process
> > (CustomRequestProcessor.java:101)
> >at org.apache.struts.action.ActionServlet.process
> > (ActionServlet.java:1292)
> >at org.apache.struts.action.ActionServlet.doGet 
> > (ActionServlet.java:492)
> >at javax.servlet.http.HttpServlet.service (HttpServlet.java:740)
> >at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
> >at com.evermind.server.http.ResourceFilterChain.doFilter
> > (ResourceFilterChain.java:65)
> >at oracle.security.jazn.oc4j.JAZNFilter.doFilter 
> > (JAZNFilter.java:283)
> >at com.evermind.server.http.ServletRequestDispatcher.invoke
> > (ServletRequestDispatcher.java:560)
> >at com.evermind.server.http.ServletRequestDispatcher.forwardInternal
> > (ServletRequestDispatcher.java:306)
> >at com.evermind.server.http.HttpRequestHandler.processRequest
> > (HttpRequestHandler.java:767)
> >at com.evermind.server.http.HttpRequestHandler.run
> > (HttpRequestHandler.java:259)
> >at com.evermind.server.http.HttpRequestHandler.run
> > (HttpRequestHandler.java:106)
> >at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
> > (PooledExecutor.java:803)
> >at java.lang.Thread.run (Thread.java:484)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED] 
> > For additional commands, e-mail: [EMAIL PROTECTED] 
> >
> 
> --
> Rick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
> 
> 


Best regards,

Basile


inputting floats with html:text

2005-03-08 Thread katre
Hello!

I have an application where I am using html:text to allow the user to
input floating point numbers.  This works fine, except for when the
numbers are fairly small, ie 0.001.  In this case, I can use the
org.apache.struts.taglib.bean.format.float property to set display, but
when I pre-populate the edit page, the html:text element displays the
float in scientific notation.  Is there any way to control how html:text
formats the value?

katre



signature.asc
Description: Digital signature


RE: MVC Frameworks

2005-03-08 Thread Michael Oliver
I completely agree (did I say that to DJ?).

While you can start a flame war reminiscent of the "Wordstar vs. Word"
or "Supercalc vs. Lotus" in the old days, with the question "Which
Framework is best" the fact is, as Jack says, it "depends".  I prefer
struts for what we are doing, primarily because we can extend it to meet
our needs and we can put Velocity or Cocoon or even Axis out in front of
it, or Hibernate, or Tibco behind it and we need not spend a lot of time
or effort doing it.

Michael Oliver
CTO
Alarius Systems LLC
3325 N. Nellis Blvd, #1
Las Vegas, NV 89115
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 8:17 AM
To: Justin Morgan
Cc: Struts Users Mailing List
Subject: Re: MVC Frameworks

For my part, I still prefer Struts because I think it has a great
potential if it endorses some move to IoC and does not fall off the
strict web MVC pattern.  I have no time for the event-based frameworks
like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of thing.
 What framework you choose depends a lot on what you want to do, the
sophistication of your developers, etc.

Jack


On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
> Thanks...
> 
> I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
> 0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
> going to assume this chapter is pretty similar to the one you mention.
> 
> I agree with you that this author is incredibly clear-minded, and I'm
> soaking it all in.  Most of the book is model-neutral, and focuses
more
> on good practices and patterns, which is great because we have not
> decided on a model yet.  But in chapter 12 he only really discusses
> Struts, Maverick, and WebWork.  I was hoping for some commentary on
JSF
> and Tapestry as well, especially regarding why one might choose one
over
> the other.
> 
> It all boils down to two questions:
> 1.  Why do you prefer Struts over any other web application framework?
> (Tapestry, JSF, Maverick, WebWork, etc)
> 2.  Why should _I_ prefer ?
> 
> The second question is not meant to make anyone defensive; I'm just
> trying to get past
> 
> Thanks,
> 
> -Justin
> 
> 
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 07, 2005 3:30 PM
> To: Struts Users Mailing List
> Subject: Re: MVC Frameworks
> 
> Rod Johnson (author of Spring and one of the clearest thinkers I have
> ever read IMHO) has a good discussion of the options in J2EE
> Development without EJB in Chapter 13: Web Tier Design.
> 
> Jack
> 
> On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan
<[EMAIL PROTECTED]>
> wrote:
> > Hi there,
> >
> > I am currently researching different web application frameworks...
> JSF,
> > Struts, and Tapestry specifically.  We are planning to migrate a
large
> > existing web application to a rigorous model 2 standard using one or
> > more of these frameworks, and I am looking for more information on
the
> > differences between them.  My research thus far has turned up only a
> few
> > sources, and many of them seem religiously biased toward one of
them.
> >
> > If any of you have opinions, or better yet, articles contrasting
these
> > technologies, please let me know.
> >
> > Thanks,
> >
> > -Justin
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> "You can lead a horse to water but you cannot make it float on its
> back."
> ~Dakota Jack~
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its
back."
~Dakota Jack~

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



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



Re: DispatchAction - NullPointerException

2005-03-08 Thread Basile Passe
Hey Rick,

Thanks for your reply.

On Tue, 08 Mar 2005 10:18:30 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Basile Passe wrote the following on 3/7/2005 12:49 PM:
> 
> > The value of the request parameter named "method" to pick the
> > appropriate "execute" method is not valid. But why? struts-config.xml
> > is correct and form (JSP) also.
> 
> Well, not sure exactly what you mean above. I'm assuming since you said
> it works 95% of the time, you do have typical dispatch method names.
> When you use a DispatchAction you typically don't code the execute
> method (that's handled by the base class). The execute method of the
> base class chooses the correct method in your dispatch action. From your

I understand your description of DispatchAction and my use is good.

> stack trace it's apparent that you are "NOT" always passing the "method"

I'm sure we passing the good "method" parameter but sometimes the
error appears in the stack trace!.

> parameter like you say you are OR the method param you are passing does
> not match the method name in the dispatch action (check for typos). Use
> a debugger or print out the request params that are being passed.

I don't have the possibilities to reproduce the error. The error
appears in production (error occurs from time to time). ;)

> 
> (PS- It's not a good idea to reply to another topic and change the
> subject, since it messes up the threading of messages. This message and
> your original is now burried within the "Two CSS files" thread)

Sorry :P

> 
> >
> > Have you an idea for resolve this problem ?
> >
> > Sorry for my poor english ;)
> >
> > Basile Passe
> >
> > Error trace :
> > java.lang.NullPointerException
> >at java.lang.Class.getMethod0 (Native Method)
> >at java.lang.Class.getMethod (Class.java:888)
> >at org.apache.struts.actions.DispatchAction.getMethod
> > (DispatchAction.java:334)
> >at org.apache.struts.actions.DispatchAction.dispatchMethod
> > (DispatchAction.java:266)
> >at adsn.fcddv.framework.struts.BaseDispatchAction.execute
> > (BaseDispatchAction.java:76)
> >at org.apache.struts.action.RequestProcessor.processActionPerform
> > (RequestProcessor.java:446)
> >at adsn.fcddv.framework.struts.CustomRequestProcessor.process
> > (CustomRequestProcessor.java:101)
> >at org.apache.struts.action.ActionServlet.process
> > (ActionServlet.java:1292)
> >at org.apache.struts.action.ActionServlet.doGet 
> > (ActionServlet.java:492)
> >at javax.servlet.http.HttpServlet.service (HttpServlet.java:740)
> >at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
> >at com.evermind.server.http.ResourceFilterChain.doFilter
> > (ResourceFilterChain.java:65)
> >at oracle.security.jazn.oc4j.JAZNFilter.doFilter 
> > (JAZNFilter.java:283)
> >at com.evermind.server.http.ServletRequestDispatcher.invoke
> > (ServletRequestDispatcher.java:560)
> >at com.evermind.server.http.ServletRequestDispatcher.forwardInternal
> > (ServletRequestDispatcher.java:306)
> >at com.evermind.server.http.HttpRequestHandler.processRequest
> > (HttpRequestHandler.java:767)
> >at com.evermind.server.http.HttpRequestHandler.run
> > (HttpRequestHandler.java:259)
> >at com.evermind.server.http.HttpRequestHandler.run
> > (HttpRequestHandler.java:106)
> >at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
> > (PooledExecutor.java:803)
> >at java.lang.Thread.run (Thread.java:484)
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> Rick
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


Best regards,

Basile

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



Re: Using a CSS file

2005-03-08 Thread N G
On Sat, 5 Mar 2005 23:56:54 -0500, James Mitchell <[EMAIL PROTECTED]> wrote:

> 
>  @import url();
> 

What exactly is "@import" ? Is that a CSS command? What does it do?

Thanks,
NG

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



RE: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-08 Thread Fergal O'Shea

Well, at least you associated the term INTELLIGENCE with me :)

I can certainly live with tha..ldlklja;sdkljhk;jashjfhka;kd

dlafkajflhaldjksfhkjasdlfkf
ladhfkjadhfklhkldjashfjhads
ladkjflkdajfkl;jdsklf;jlksd
l123h98248cn8912vn948123vn9
049vnvn7249p78v9p874vn98v7v

Sorry... cache cleanout cycle.  My matrix is clear again.  Automated mailing
list response algorithm has resumed.

(Wait, did that get posted?!?)


"I'm sorry, Dave. I can't post that." 
(HAL9000)


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



Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-08 Thread Frank W. Zammetti
Well, at least you associated the term INTELLIGENCE with me :)

I can certainly live with tha..ldlklja;sdkljhk;jashjfhka;kd

dlafkajflhaldjksfhkjasdlfkf
ladhfkjadhfklhkldjashfjhads
ladkjflkdajfkl;jdsklf;jlksd
l123h98248cn8912vn948123vn9
049vnvn7249p78v9p874vn98v7v

Sorry... cache cleanout cycle.  My matrix is clear again.  Automated
mailing list response algorithm has resumed.

(Wait, did that get posted?!?)

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

On Tue, March 8, 2005 11:22 am, Brady Hegberg said:
> My personal theory was that you three are new experimental AIs that have
> taken up residence on this mailing list...the one that answers the most
> Struts questions and has the best jokes wins the Turing award.
>
> There have been some interesting threads on here lately.  I wish I (or
> someone) had time to create a weekly summary.
>
> Brady
>
>> What is really funny, Rick, is that you would not believe how many
>> business hits I get from this list.  Go figure?
>>
>> Jack
>>
>>
>> On Mon, 07 Mar 2005 18:15:27 -0500, Rick Reumann <[EMAIL PROTECTED]>
>> wrote:
>> > I enjoy your posts but don't see how you have time to type so much:)
>> You
>> > must be either
>> >
>> > A) Without spouse/significant other
>> > B) Currently unemployed.
>> >
>> > (All in good fun of course:)
>> >
>> > --
>> > Rick
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
> --
> Brady Hegberg <[EMAIL PROTECTED]>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



RE: Displaying a HashMap as a

2005-03-08 Thread Nidel, Mike
Note that there's also the java.util.LinkedHashMap which will
maintain whichever order you insert the values in. This gives
you the consistency of TreeMap without the overhead of resorting,
if your data is already sorted when you're populating the Map.
It also has a funky LRU-style option that orders the items based
on which ones have been most recently accessed, but I've never
used that.

I've found LinkedHashMap to be indispensible, and the performance
is good according to the Javadoc.

hth,

Mike


> -Original Message-
> From: Jeff Beal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 08, 2005 9:34 AM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: Re: Displaying a HashMap as a 
> 
> 
> Even if the results coming out of the database are sorted, throwing
> them into a non-sorted Collection, like a basic HashMap, will un-sort
> them.  If you use a List, you just preserve the database sort order. 
> If you use a TreeMap, you can get the same sort order, but the TreeMap
> object will go through the work of sorting them all over again.
> 
> 
> On Tue, 8 Mar 2005 09:17:49 -0500, David Johnson 
> <[EMAIL PROTECTED]> wrote:
> > my thought was just to let the DB do the work on the 
> sorting. Is that bad?
> > 
> > 
> > On Mon, 7 Mar 2005 21:29:08 -0700, Wendy Smoak 
> <[EMAIL PROTECTED]> wrote:
> > > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > > I wouldn't use a Map, I would go with a List.  
> Primarily for ordering.
> > >
> > > I use java.util.TreeMap-- automatic alphabetical order 
> for my lists of
> > > (String) codes and descriptions.
> > >
> > > --
> > > Wendy Smoak
> > >
> > >
> > > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > 
> > --
> > -Dave
> > [EMAIL PROTECTED]
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -- 
> Jeff Beal
> Webmedx, Inc.
> Pittsburgh, PA USA
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



SwitchAction

2005-03-08 Thread Hauschel Fred
Hey all,
i've a menu that routes to some different struts content modules.
The menu items call a switch action.

The switch action changes the Module in the request, but not my
RequestProcessor.

I think the calling order is like this:

1. ActionServlet.getRequestProcessor() // The active module is my menu,
so it will return the requestProcessor of the menu modul.

2. switchAction // This action sets the new moduleConfig in the request

3. RequestProcessor.process() // The System calls the wrong
RequestProcess - menu modul  instead of content module 

Is this right?

Is it an error in reasoning? 

Thanks Fredy


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



Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-08 Thread PA
On Mar 08, 2005, at 17:22, Brady Hegberg wrote:
[...] new experimental AIs [...] to create a weekly summary.
http://en.wikipedia.org/wiki/Markov_chain
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: MVC Frameworks

2005-03-08 Thread Dakota Jack
For my part, I still prefer Struts because I think it has a great
potential if it endorses some move to IoC and does not fall off the
strict web MVC pattern.  I have no time for the event-based frameworks
like Echo, Tapestry, JSF, Shale, etc.  Others need that sort of thing.
 What framework you choose depends a lot on what you want to do, the
sophistication of your developers, etc.

Jack


On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan <[EMAIL PROTECTED]> wrote:
> Thanks...
> 
> I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
> 0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
> going to assume this chapter is pretty similar to the one you mention.
> 
> I agree with you that this author is incredibly clear-minded, and I'm
> soaking it all in.  Most of the book is model-neutral, and focuses more
> on good practices and patterns, which is great because we have not
> decided on a model yet.  But in chapter 12 he only really discusses
> Struts, Maverick, and WebWork.  I was hoping for some commentary on JSF
> and Tapestry as well, especially regarding why one might choose one over
> the other.
> 
> It all boils down to two questions:
> 1.  Why do you prefer Struts over any other web application framework?
> (Tapestry, JSF, Maverick, WebWork, etc)
> 2.  Why should _I_ prefer ?
> 
> The second question is not meant to make anyone defensive; I'm just
> trying to get past
> 
> Thanks,
> 
> -Justin
> 
> 
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 07, 2005 3:30 PM
> To: Struts Users Mailing List
> Subject: Re: MVC Frameworks
> 
> Rod Johnson (author of Spring and one of the clearest thinkers I have
> ever read IMHO) has a good discussion of the options in J2EE
> Development without EJB in Chapter 13: Web Tier Design.
> 
> Jack
> 
> On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan <[EMAIL PROTECTED]>
> wrote:
> > Hi there,
> >
> > I am currently researching different web application frameworks...
> JSF,
> > Struts, and Tapestry specifically.  We are planning to migrate a large
> > existing web application to a rigorous model 2 standard using one or
> > more of these frameworks, and I am looking for more information on the
> > differences between them.  My research thus far has turned up only a
> few
> > sources, and many of them seem religiously biased toward one of them.
> >
> > If any of you have opinions, or better yet, articles contrasting these
> > technologies, please let me know.
> >
> > Thanks,
> >
> > -Justin
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> "You can lead a horse to water but you cannot make it float on its
> back."
> ~Dakota Jack~
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: [OT] Poll: Does Dakota Jack have a job? :)

2005-03-08 Thread Brady Hegberg
My personal theory was that you three are new experimental AIs that have
taken up residence on this mailing list...the one that answers the most
Struts questions and has the best jokes wins the Turing award.

There have been some interesting threads on here lately.  I wish I (or
someone) had time to create a weekly summary.

Brady

> What is really funny, Rick, is that you would not believe how many
> business hits I get from this list.  Go figure?
> 
> Jack
> 
> 
> On Mon, 07 Mar 2005 18:15:27 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote:
> > I enjoy your posts but don't see how you have time to type so much:) You
> > must be either
> > 
> > A) Without spouse/significant other
> > B) Currently unemployed.
> > 
> > (All in good fun of course:)
> > 
> > --
> > Rick
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
-- 
Brady Hegberg <[EMAIL PROTECTED]>


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



Re: MVC Frameworks

2005-03-08 Thread Dakota Jack
If you look at the one I mentioned, he discusses everything.


On Tue, 8 Mar 2005 08:44:26 -0600, Justin Morgan <[EMAIL PROTECTED]> wrote:
> Thanks...
> 
> I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
> 0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
> going to assume this chapter is pretty similar to the one you mention.
> 
> I agree with you that this author is incredibly clear-minded, and I'm
> soaking it all in.  Most of the book is model-neutral, and focuses more
> on good practices and patterns, which is great because we have not
> decided on a model yet.  But in chapter 12 he only really discusses
> Struts, Maverick, and WebWork.  I was hoping for some commentary on JSF
> and Tapestry as well, especially regarding why one might choose one over
> the other.
> 
> It all boils down to two questions:
> 1.  Why do you prefer Struts over any other web application framework?
> (Tapestry, JSF, Maverick, WebWork, etc)
> 2.  Why should _I_ prefer ?
> 
> The second question is not meant to make anyone defensive; I'm just
> trying to get past
> 
> Thanks,
> 
> -Justin
> 
> 
> -Original Message-
> From: Dakota Jack [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 07, 2005 3:30 PM
> To: Struts Users Mailing List
> Subject: Re: MVC Frameworks
> 
> Rod Johnson (author of Spring and one of the clearest thinkers I have
> ever read IMHO) has a good discussion of the options in J2EE
> Development without EJB in Chapter 13: Web Tier Design.
> 
> Jack
> 
> On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan <[EMAIL PROTECTED]>
> wrote:
> > Hi there,
> >
> > I am currently researching different web application frameworks...
> JSF,
> > Struts, and Tapestry specifically.  We are planning to migrate a large
> > existing web application to a rigorous model 2 standard using one or
> > more of these frameworks, and I am looking for more information on the
> > differences between them.  My research thus far has turned up only a
> few
> > sources, and many of them seem religiously biased toward one of them.
> >
> > If any of you have opinions, or better yet, articles contrasting these
> > technologies, please let me know.
> >
> > Thanks,
> >
> > -Justin
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> "You can lead a horse to water but you cannot make it float on its
> back."
> ~Dakota Jack~
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



Re: Eliminate Setup Actions

2005-03-08 Thread Hubert Rabago
LOL, sorry Frank, I didn't mean to drown you in documentation.  :)

On Tue, 8 Mar 2005 09:31:04 -0600, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> On Tue, 8 Mar 2005 10:14:36 -0500 (EST), Frank W. Zammetti
> <[EMAIL PROTECTED]> wrote:
>
> it might be
> helpful to review those messages as there were some ideas and
> considerations mentioned there.
> 
> http://marc.theaimsgroup.com/?t=10647864064&r=1&w=2
> http://marc.theaimsgroup.com/?t=11050294625&r=1&w=2
>

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



RE: [ANN] Struts-JSF London Networking BOF VIII / Tuesday / 15th March 2005 @ 18:45 / Oracle City of London

2005-03-08 Thread Pilgrim, Peter
> -Original Message-
> From: Pilgrim, Peter 
====

WHAT:

This is just a `reminder' that ``The Struts-JSF London Networking'' 
group is holding the eight meet-up event next Tuesday 15th March 2005 
at Oracle office in the city of London at ``18:45''

The meeting will take place in a room with Audio/Visual facilities
between 7-9 pm. Afterwords members can retire to the nearby 
Red Lion pub for more in depth discussion ...

WHERE:

The address is:
Oracle City Of London
One South Place
London,
England
EC2M 2RB.

Here is some relevant travel information 

By Underground: -

   Moorgate: Take the Moorgate East exit, turn right, one block to South 
Place.
   Bank: Take the Northern line to Moorgate.
   Liverpool Street:Take the Broadgate exit, turn right onto South Place

Map:   http://www.oracle.com/global/uk/corporate/locations/citymap.html


The venue has kindly been organised by Duncan Mills. We all appreciate
this generous gift. Duncan has offered to also set up meal requirements.
Normally this is geared towards buffet and/or sandwiches, but Oracle
could specially request pizzas if you so desire.

AGENDA:
Duncan Mills will present/discuss Shale and JavaServer Faces
Peter Pilgrim will present/discuss X (Something related to J2EE?)


WHO:
> 
> I'm back from annual vacation in France. We have just over a week
> to go the next BOF VIII. Has there been any issues? 
> 
> Some far I have the following attendees in order of email inbox times.
> 
>   Alan Mehio
>   Matthew Dudbridge
>   Charles Cordingley
>   Jim Collins
>   Christopher Marsh-Bourdon
> 
> and of course
> 
> Pete Pilgrim
> Duncan Mills
> 
> Anymore takers?
> 
> 
====


Not a member? No worrys mate, it's free. Just send me an [OT] email 
or surfs up at
http://www.strutslondon.com  or 
http://struts.meetup.com 


PS: Food is discussed in another mail

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==


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



Re: Eliminate Setup Actions

2005-03-08 Thread Hubert Rabago
On Tue, 8 Mar 2005 10:14:36 -0500 (EST), Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> 
> You mean as far as 1.x goes?  I'm just looking now to see how the config
> file is read in (haven't played with Digester at all yet).  But yes, just
> dropping the doctype was how I was going to, temporarily, get around any
> validation problems.  I figured either (a) what I do gets added to the
> core and the DTD gets updated at that point, or (b) people can use it as a
> contrib thing with the knowledge that they have to drop the doctype (or
> updated the DTD themselves and keep it local I suppose).
 
Ok, thanks for clarifying that.  For a while I got confused, because
Joe was talking about extending the DTD and going around validation,
when I thought you meant to look at contributing it to the core.


On Tue, 8 Mar 2005 08:23:44 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote:
> I haven't done anything about it yet, but I've kind of been expecting
> to add a similar kind of configuration value to forward elements.  It
> is probably the most straightforward way to plug-in the kind of
> page-prep behavior that I've hacked in to other apps.

And I've been silently wishing you'd add it, too. :)
We've had discussions about this maybe twice before, and another time
I lit the flame, you responded, but I wasn't able to follow through
with the discussion.


The first exchange on this I participated in, Joe brought up the idea
of having renderers/controllers tied to forms, and my concern was
having multiple forms needed for a single forward.  Here's a busy
config idea I came to based on those discussions:

http://marc.theaimsgroup.com/?l=struts-dev&m=10791806471&w=2
(Looking at that date, this was almost a full year ago.)

Taking into consideration Chain and ActionContext, these could be
implemented with commands specifically written for these purposes
without having to implement another interface.  A POJO leaning would
require the "method" parameter that Frank has.  I think either of
these are preferrable to having a PageController or Renderer
superclass/interface that earlier threads mentioned, but it might be
helpful to review those messages as there were some ideas and
considerations mentioned there.

http://marc.theaimsgroup.com/?t=10647864064&r=1&w=2
http://marc.theaimsgroup.com/?t=11050294625&r=1&w=2

Hubert

(I'm guessing further discussion on details can/should move to the dev list)

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



Re: MVC Frameworks

2005-03-08 Thread Nicolas De Loof
Here is my response to such questions :
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
I don't use Struts because I think it is the best framework. I use it because 
my dev team has some experience using it. Having to change MVC framework may 
reduce productivity. To make me change to another one, it may be really 
intuitive and easy to learn. I haven't took a look at SringMVC or any other. 
Perhaps I'm missing something...
I also use struts because my customer have read this word on the net and agree 
using it. It's a stupid argument, but it is the stronger I can give to my boss.
2.  Why should _I_ prefer ?
I realy think lot's of MVC framework may be usefull. I think they can 
also be usefull to help Struts becoming more flexible / easy / 
fonctionnal. For example, SWF introduces use of XMLHttpRequest for a 
more dynamic web GUI. Maybee some future Struts extension will do the 
same... This function can be usefull for some projects and useless for 
others, so I can't say if SWF is *better* than Struts.

In short, consider your developpers exeprience (framework learn cost) 
and the functions that may be usefull to you to decide what framework to 
use.

Nico.
Justin Morgan a écrit :
Thanks...
I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
going to assume this chapter is pretty similar to the one you mention.
I agree with you that this author is incredibly clear-minded, and I'm
soaking it all in.  Most of the book is model-neutral, and focuses more
on good practices and patterns, which is great because we have not
decided on a model yet.  But in chapter 12 he only really discusses
Struts, Maverick, and WebWork.  I was hoping for some commentary on JSF
and Tapestry as well, especially regarding why one might choose one over
the other.
It all boils down to two questions:
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
2.  Why should _I_ prefer ?
The second question is not meant to make anyone defensive; I'm just
trying to get past 

Thanks,
-Justin

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 3:30 PM
To: Struts Users Mailing List
Subject: Re: MVC Frameworks

Rod Johnson (author of Spring and one of the clearest thinkers I have
ever read IMHO) has a good discussion of the options in J2EE
Development without EJB in Chapter 13: Web Tier Design.
Jack
On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
 

Hi there,
I am currently researching different web application frameworks...
   

JSF,
 

Struts, and Tapestry specifically.  We are planning to migrate a large
existing web application to a rigorous model 2 standard using one or
more of these frameworks, and I am looking for more information on the
differences between them.  My research thus far has turned up only a
   

few
 

sources, and many of them seem religiously biased toward one of them.
If any of you have opinions, or better yet, articles contrasting these
technologies, please let me know.
Thanks,
-Justin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   


 

This message contains information that may be privileged or confidential 
and is the property of the Capgemini Group. It is intended only for the person 
to whom it is addressed. If you are not the intended recipient,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: DispatchAction - NullPointerException

2005-03-08 Thread Rick Reumann
Basile Passe wrote the following on 3/7/2005 12:49 PM:
The value of the request parameter named "method" to pick the
appropriate "execute" method is not valid. But why? struts-config.xml
is correct and form (JSP) also.
Well, not sure exactly what you mean above. I'm assuming since you said 
it works 95% of the time, you do have typical dispatch method names. 
When you use a DispatchAction you typically don't code the execute 
method (that's handled by the base class). The execute method of the 
base class chooses the correct method in your dispatch action. From your 
stack trace it's apparent that you are "NOT" always passing the "method" 
parameter like you say you are OR the method param you are passing does 
not match the method name in the dispatch action (check for typos). Use 
a debugger or print out the request params that are being passed.

(PS- It's not a good idea to reply to another topic and change the 
subject, since it messes up the threading of messages. This message and 
your original is now burried within the "Two CSS files" thread)

Have you an idea for resolve this problem ?
Sorry for my poor english ;)
Basile Passe
Error trace :
java.lang.NullPointerException
   at java.lang.Class.getMethod0 (Native Method)
   at java.lang.Class.getMethod (Class.java:888)
   at org.apache.struts.actions.DispatchAction.getMethod
(DispatchAction.java:334)
   at org.apache.struts.actions.DispatchAction.dispatchMethod
(DispatchAction.java:266)
   at adsn.fcddv.framework.struts.BaseDispatchAction.execute
(BaseDispatchAction.java:76)
   at org.apache.struts.action.RequestProcessor.processActionPerform
(RequestProcessor.java:446)
   at adsn.fcddv.framework.struts.CustomRequestProcessor.process
(CustomRequestProcessor.java:101)
   at org.apache.struts.action.ActionServlet.process
(ActionServlet.java:1292)
   at org.apache.struts.action.ActionServlet.doGet (ActionServlet.java:492)
   at javax.servlet.http.HttpServlet.service (HttpServlet.java:740)
   at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
   at com.evermind.server.http.ResourceFilterChain.doFilter
(ResourceFilterChain.java:65)
   at oracle.security.jazn.oc4j.JAZNFilter.doFilter (JAZNFilter.java:283)
   at com.evermind.server.http.ServletRequestDispatcher.invoke
(ServletRequestDispatcher.java:560)
   at com.evermind.server.http.ServletRequestDispatcher.forwardInternal
(ServletRequestDispatcher.java:306)
   at com.evermind.server.http.HttpRequestHandler.processRequest
(HttpRequestHandler.java:767)
   at com.evermind.server.http.HttpRequestHandler.run
(HttpRequestHandler.java:259)
   at com.evermind.server.http.HttpRequestHandler.run
(HttpRequestHandler.java:106)
   at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run
(PooledExecutor.java:803)
   at java.lang.Thread.run (Thread.java:484)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Eliminate Setup Actions

2005-03-08 Thread Frank W. Zammetti
On Tue, March 8, 2005 9:48 am, Joe Germuska said:
> I do think we're pretty close, although not much has happened since
> the last wave of "what will 1.3.0 be" discussions.  I know I haven't
> had much time for development and documentation in the last few weeks.

I know the feeling :)  I'm actually surprised I have time today to play
myself!

I pulled down the nightly of 1.3 that was posted a week or two ago (I
think I was the first to discover the problem with the Maven build not
working).  I haven't went back to it since.  Glad to here its close
though, I'm looking forward to touching it.

> I guess I was just wondering how you were going to deal with some
> considerable changes to the XML configuration syntax.  Certainly,
> it's possible to add Digester rules to handle XML extensions, and you
> could probably get away with simply leaving out a DOCTYPE declaration
> so as to avoid validation problems.  (Extending the DTD is probably
> more trouble than its worth.)

You mean as far as 1.x goes?  I'm just looking now to see how the config
file is read in (haven't played with Digester at all yet).  But yes, just
dropping the doctype was how I was going to, temporarily, get around any
validation problems.  I figured either (a) what I do gets added to the
core and the DTD gets updated at that point, or (b) people can use it as a
contrib thing with the knowledge that they have to drop the doctype (or
updated the DTD themselves and keep it local I suppose).

> Then again, undertaking a new initiative in which people are
> interested using 1.3.0 functionality would help us to get people
> testing and verifying that code, which is an unglamorous but critical
> part of development.

Ah, there's the alterior motive :)  Seriously though, I hear what your
saying... But, since I can see using this functionality myself in current
projects, and since they aren't going to move to 1.3 for a while even
after the gold release, my itch at the moment is unfortunately not going
to help achieve your goal.

If my schedule stays light for a few more days though, I could see taking
another crack at the current 1.3 and maybe doing both this and StrutsWS.

> Joe

Frank


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



Re: Eliminate Setup Actions

2005-03-08 Thread Joe Germuska
At 9:37 AM -0500 3/8/05, Frank W. Zammetti wrote:
No Joe, you didn't miss anything :)  I was already thinking about how easy
this would be under 1.3 too.  But, I'm hesitant to start playing with 1.3
until it's actually released (at least in beta).  This is an easy add to
1.3, as you indicate, and I'm also looking forward to porting my StrutsWS
project over to it since I think that will be a nice demonstration of why
chain is cool.  I just don't want to start playing with something that
isn't really stabilized yet (close thought, right?).
And besides, something like this seems to be getting a fair amount of
interest, so someone would eventually want to back-port it if I started
with 1.3.  Since we both believe it will be quite easy under 1.3, why not
start with the 1.x branch where it's a bit more work? :)
I do think we're pretty close, although not much has happened since 
the last wave of "what will 1.3.0 be" discussions.  I know I haven't 
had much time for development and documentation in the last few weeks.

I guess I was just wondering how you were going to deal with some 
considerable changes to the XML configuration syntax.  Certainly, 
it's possible to add Digester rules to handle XML extensions, and you 
could probably get away with simply leaving out a DOCTYPE declaration 
so as to avoid validation problems.  (Extending the DTD is probably 
more trouble than its worth.)

Then again, undertaking a new initiative in which people are 
interested using 1.3.0 functionality would help us to get people 
testing and verifying that code, which is an unglamorous but critical 
part of development.

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

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


RE: MVC Frameworks

2005-03-08 Thread Justin Morgan
Thanks...

I recently picked up Rod Johnson's J2EE Design and Development (ISBN:
0-7645-4385-7), and Chapter 12 is titled "Web-Tier MVC Design"...  I'm
going to assume this chapter is pretty similar to the one you mention.

I agree with you that this author is incredibly clear-minded, and I'm
soaking it all in.  Most of the book is model-neutral, and focuses more
on good practices and patterns, which is great because we have not
decided on a model yet.  But in chapter 12 he only really discusses
Struts, Maverick, and WebWork.  I was hoping for some commentary on JSF
and Tapestry as well, especially regarding why one might choose one over
the other.

It all boils down to two questions:
1.  Why do you prefer Struts over any other web application framework?
(Tapestry, JSF, Maverick, WebWork, etc)
2.  Why should _I_ prefer ?

The second question is not meant to make anyone defensive; I'm just
trying to get past 

Thanks,

-Justin



-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 07, 2005 3:30 PM
To: Struts Users Mailing List
Subject: Re: MVC Frameworks

Rod Johnson (author of Spring and one of the clearest thinkers I have
ever read IMHO) has a good discussion of the options in J2EE
Development without EJB in Chapter 13: Web Tier Design.

Jack


On Mon, 7 Mar 2005 14:19:47 -0600, Justin Morgan <[EMAIL PROTECTED]>
wrote:
> Hi there,
> 
> I am currently researching different web application frameworks...
JSF,
> Struts, and Tapestry specifically.  We are planning to migrate a large
> existing web application to a rigorous model 2 standard using one or
> more of these frameworks, and I am looking for more information on the
> differences between them.  My research thus far has turned up only a
few
> sources, and many of them seem religiously biased toward one of them.
> 
> If any of you have opinions, or better yet, articles contrasting these
> technologies, please let me know.
> 
> Thanks,
> 
> -Justin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its
back."
~Dakota Jack~

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


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



Re: Two css files

2005-03-08 Thread Karan
lols..okay Bernd.
Thanks for the info.
Regards,
Karan
Bernd Schiffer wrote:
Hi Karan.
Karan wrote:
I don't have an answer to your problem, but I do have a question:
The user of your webapp can customize extendedCssStyle for his/her own
layout settings.
But a different user can modify it again for different settings.
How do you maintain the different layouts for different users?

First to the answer: it was just a reference to the wrong directory. It
works perfectly now.
Second to the question: 'user' was the wrong term for the description I
gave. I ment the customer. The customer can change the design with the
extendedCssStyle, and whereever she does not do design, the
basicCssStyle would be used.
  Bernd
Thanks,
Karan
Bernd Schiffer wrote:
Hi.
I have two css files in the head of my jsp's:


The basicCssStyle's first line has the statement:
@import url(../basic.css);
The idea is that the user of my webapp can edit the extendedCssStyle
file for her own layout settings. When she updates the webapp she only
gets a new basicCssStyle file. And because of the order of appearence
(first extended, then basic css file) the browser will display the
extended layout first. If the user does not edit the extended style, 
the
basic style will be displayed. So far, so idea...

This does work in IE and FireFox 1.0.1 on Windows XP. When I define a
style in the basic css file, I can see it when I choose the extended
style, because it is inherited from the basic style.
The problem now is that this does not work in Mozilla 1.7.3 on Windows
and FireFox 1.0 on Linux. In the same case as above I can't see the
layout, so it seems that it was not inherited from the basic css file.
When I switch to the basic style, everythings seems fine and I can see
the style.
Does anyone know if this is a browser problem? Can I do anything to
force the import (without copy'n'paste, of course)? Or is there a
different pattern using Struts for something like that?
   Bernd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
--
CM II
Resolution Systems Inc.
/-- never compromise. what if you compromise and lose? --/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Eliminate Setup Actions

2005-03-08 Thread Frank W. Zammetti
No Joe, you didn't miss anything :)  I was already thinking about how easy
this would be under 1.3 too.  But, I'm hesitant to start playing with 1.3
until it's actually released (at least in beta).  This is an easy add to
1.3, as you indicate, and I'm also looking forward to porting my StrutsWS
project over to it since I think that will be a nice demonstration of why
chain is cool.  I just don't want to start playing with something that
isn't really stabilized yet (close thought, right?).

And besides, something like this seems to be getting a fair amount of
interest, so someone would eventually want to back-port it if I started
with 1.3.  Since we both believe it will be quite easy under 1.3, why not
start with the 1.x branch where it's a bit more work? :)

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

On Tue, March 8, 2005 9:23 am, Joe Germuska said:
> Sorry, I haven't been following this whole thread, but when I saw
> this config example from Frank:
>
>> > 
>> >> > method="setupMethod1" />
>> >
>> >  > > method="defSetup1" />
>> >
>> > 
>
> I wondered "why not use chain?"
>
> In Struts 1.3, you can specify a command in the  element
> which will be executed before Struts processes the action, forward,
> or include specified in the same element.
>
> I haven't done anything about it yet, but I've kind of been expecting
> to add a similar kind of configuration value to forward elements.  It
> is probably the most straightforward way to plug-in the kind of
> page-prep behavior that I've hacked in to other apps.
>
> Since there is a DispatchCommand in commons-chain (the post 1.0, as
> yet unreleased version), you could achieve exactly this, with the
> only difference being that some of the configuration goes in another
> file -- a chain-config.xml
>
> If I missed something in other messages on this thread, please fill me
> in...
>
> Joe
>
> --
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Displaying a HashMap as a

2005-03-08 Thread Jeff Beal
Even if the results coming out of the database are sorted, throwing
them into a non-sorted Collection, like a basic HashMap, will un-sort
them.  If you use a List, you just preserve the database sort order. 
If you use a TreeMap, you can get the same sort order, but the TreeMap
object will go through the work of sorting them all over again.


On Tue, 8 Mar 2005 09:17:49 -0500, David Johnson <[EMAIL PROTECTED]> wrote:
> my thought was just to let the DB do the work on the sorting. Is that bad?
> 
> 
> On Mon, 7 Mar 2005 21:29:08 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > From: "James Mitchell" <[EMAIL PROTECTED]>
> > > I wouldn't use a Map, I would go with a List.  Primarily for ordering.
> >
> > I use java.util.TreeMap-- automatic alphabetical order for my lists of
> > (String) codes and descriptions.
> >
> > --
> > Wendy Smoak
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> --
> -Dave
> [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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



Re: why complicate? was: Eliminate Setup Actions

2005-03-08 Thread Frank W. Zammetti
Absolutely!  I'm working on it right now... my son got sick last night, so
I didn't get to it, but it looks like I have a light day at the office
today, so I should get a few hours in.

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

On Tue, March 8, 2005 9:12 am, David Johnson said:
> Frank
>
> can you send us a link when you have something? I for one am waiting
> with bated breath :)
>
> D
>
>
> On Tue, 8 Mar 2005 01:12:18 -0500, Frank W. Zammetti
> <[EMAIL PROTECTED]> wrote:
>> In what way?
>>
>> -Original Message-
>>From: "Dakota Jack"<[EMAIL PROTECTED]>
>>Sent: 3/8/05 12:34:50 AM
>>To: "Struts Users Mailing List",
>> "[EMAIL PROTECTED]"<[EMAIL PROTECTED]>
>>Cc: "Corey Probst"<[EMAIL PROTECTED]>
>>Subject: Re: why complicate? was: Eliminate Setup Actions
>>
>>Isn't this all a bit contrary to the rightfully hallowed principles
>> of
>>decoupling in OOP?
>>
>>On Mon, 07 Mar 2005 22:56:23 -0500, Frank W. Zammetti
>><[EMAIL PROTECTED]> wrote:
>>> Corey Probst wrote:
>>> > Another thought, what about redirecting forwards?
>>>
>>> I'm glad you brought that up because I didn't think of it, and
>> wouldn't
>>> have until after someone noticed it :)
>>>
>>> I don't think there is anything that can be done about that, at
>> least
>>> not in the case where you redirect to a JSP.  If you redirect to an
>>> Action Mapping (even if it's just an ActionForward), then sure, the
>>> setup could still work there.  But redirect to a JSP I don't see a
>> way
>>> to make it work.
>>>
>>> On your other point... I'm actually thinking about allowing the
>> setup
>>> elements to be at the mapping level and/or the forward level.  The
>> idea
>>> being that there may be times you want to do some particular setup
>>> functions regadless of which forward is choosen, and other times
>> where
>>> you want to do specific setups for specific forwards only.  I'm
>> thinking
>>> that each setup element you add to a forward can specify whether to
>>> process any mapping elements IN ADDITION to those of the forward,
>> or
>>> don't use the mapping elements.  For example:
>>>
>>> 
>>>>> method="setupMethod1" />
>>>
>>>  >> method="defSetup1" />
>>>
>>> 
>>>
>>> In this case, when the defaultForward is selected,
>>> MyActionSetup.setupMethod1() would be called, followed by
>>> MyDefaultSetup.defSetup1().
>>>
>>> But, in this case:
>>>
>>> 
>>>>> method="setupMethod1" />
>>>
>>>  >> method="defSetup1" additive="false" />
>>>
>>> 
>>>
>>> ...only MyDefaultSetup.defSetup1() would be executed when
>> defaultForward
>>> is selected.
>>>
>>> Also, I think ideally I'd make the setupItems attached to the
>> mapping
>>> executed BEFORE the Action's execute() is called, but clearly the
>>> forward-level items would have to execute AFTER execute()
>> completes.  I
>>> think that gives even a bit more flexibility to it.
>>>
>>> I'm making this up as I go, so feel free to comment :)
>>>
>>> --
>>> Frank W. Zammetti
>>> Founder and Chief Software Architect
>>
>> [Message truncated. Tap Edit->Mark for Download to get remaining
>> portion.]
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> -Dave
> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: form-bean and persistent data in session scope

2005-03-08 Thread Antony Joseph
Hi Raghuveer,
You will have to clean up the session yourself.
Generally an application will have some type of menu (links). If you follow a 
naming convention for the mappings for the  menu items (mapping seperate than 
that for the action), you can check for that and clean up the session. This 
could be done in either a base action or by extending the request processor.

- Original Message -
From: "Raghuveer Vellanki" <[EMAIL PROTECTED]>
To: "'Erik Weber'" <[EMAIL PROTECTED]>
Subject:  form-bean and persistent data in session scope
Date: Tue, 8 Mar 2005 15:27:17 +0530

> 
> Dear Erik,
> In My struts application ,i used 50 form beans in session scope.
> My application will be accessed by 200 users daily.
> 
> Does it leads to performance issue ,if using form beans in session.
> 
> Can you clarify me when does the form bean object would be removed in
> session scope after it's use.
> 
> RaghuVeer
> 
> -Original Message-
> From: Erik Weber [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 08, 2005 8:08 AM
> To: Struts Users Mailing List
> Subject: Re: form-bean and persistent data
> 
> 
> This is a valid way to do it. To be more specific, your Action would ask
> some delegate for the domain object, then it would use that object as
> either a scoped (request, session, etc.) attribute or as a field for
> your form-bean (if you are indeed using your form-bean for "setup"
> actions as well as for POST-processing actions -- some do this, some
> don't, but it sounds like you are; when I do this, I use the "name"
> attribute in my ActionMapping (but with validate = false) so that Struts
> will go ahead and instantiate the form-bean for me, and pass it to the
> execute method).
> 
> Erik
> 
> 
> Jonathan M Z wrote:
> 
> > suppose I am using a form-bean to populate an html
> > form,  I need to retrieve the values of this form-bean
> > from persistent storage.  Do I do this from the Action
> > that eventually forwards to this jsp page?
> > Should I create the form-bean from persistent storage
> > in action.execute(), then forwards the view to the jsp
> > page?
> > for example if the form-bean's name is aBean, in
> > action.execute I create the aBean, populate it, and
> > then set it as an attribute into the request(or
> > whatever scope I see fit)
> > is this a standard approach for reading data into
> > form-bean from the persistent data layer?
> >
> > thanks
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



Antony Joseph
http://www.logicden.com
https://workeffort.dev.java.net

-- 
___
NEW! Lycos Dating Search. The only place to search multiple dating sites at 
once.
http://datingsearch.lycos.com


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



Re: Eliminate Setup Actions

2005-03-08 Thread Joe Germuska
Sorry, I haven't been following this whole thread, but when I saw 
this config example from Frank:

> 
> method="setupMethod1" />
>
>   method="defSetup1" />
>
> 
I wondered "why not use chain?"
In Struts 1.3, you can specify a command in the  element 
which will be executed before Struts processes the action, forward, 
or include specified in the same element.

I haven't done anything about it yet, but I've kind of been expecting 
to add a similar kind of configuration value to forward elements.  It 
is probably the most straightforward way to plug-in the kind of 
page-prep behavior that I've hacked in to other apps.

Since there is a DispatchCommand in commons-chain (the post 1.0, as 
yet unreleased version), you could achieve exactly this, with the 
only difference being that some of the configuration goes in another 
file -- a chain-config.xml

If I missed something in other messages on this thread, please fill me in...
Joe
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction"  -The Ex
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: form-bean and persistent data in session scope

2005-03-08 Thread Raghuveer Vellanki
Jeff Beal,

At some places we have removed the data from session by calling RESET()
method of form bean in Action file.
But at certain situations we could not use reset for persistence in more
then 2 JSP pages.

As, we are new for development of our web applications in struts,
we could not resolve the issues.

>With a limited user
>base, you can probably throw enough RAM into your server to avoid
>serious problems, though.


Moreover many web applications are running at present on customer IBM
websphere.
we doesn't have control over customer server configrations.


Raghu

-Original Message-
From: Jeff Beal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 7:43 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: form-bean and persistent data in session scope


As far as I know, Struts never explicitly removes form beans from
session scope.  This does create the potential for performance issues,
simply because those form beans take up memory.  With a limited user
base, you can probably throw enough RAM into your server to avoid
serious problems, though.


On Tue, 8 Mar 2005 15:27:17 +0530, Raghuveer Vellanki
<[EMAIL PROTECTED]> wrote:
> Dear Erik,
> In My struts application ,i used 50 form beans in session scope.
> My application will be accessed by 200 users daily.
>
> Does it leads to performance issue ,if using form beans in session.
>
> Can you clarify me when does the form bean object would be removed in
> session scope after it's use.
>
> RaghuVeer
>

--
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA


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



Initialize new Form from action

2005-03-08 Thread DGraham
Return Receipt
   
   Your   Initialize new Form from action  
   document:   
   
   wasDennis Graham/EvergreenFunds 
   received
   by: 
   
   at:03/08/2005 09:20:18 AM   
   





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



Re: Displaying a HashMap as a

2005-03-08 Thread David Johnson
my thought was just to let the DB do the work on the sorting. Is that bad?


On Mon, 7 Mar 2005 21:29:08 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "James Mitchell" <[EMAIL PROTECTED]>
> > I wouldn't use a Map, I would go with a List.  Primarily for ordering.
> 
> I use java.util.TreeMap-- automatic alphabetical order for my lists of
> (String) codes and descriptions.
> 
> --
> Wendy Smoak
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-Dave
[EMAIL PROTECTED]

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



Fwd: session.invaludate(); not working in LogoffAction

2005-03-08 Thread David Johnson
oops meant to send this to the list as well.


-- Forwarded message --
From: David Johnson <[EMAIL PROTECTED]>
Date: Tue, 8 Mar 2005 09:15:52 -0500
Subject: Re: session.invaludate(); not working in LogoffAction
To: Max Cooper <[EMAIL PROTECTED]>


Well, it's interesting actually. What I have is a simple login screen
that validates login and password against a database. the FINAL
version of this application will have to validate against my client's
SSO (which I at this point know nothing about)

So, I'm thinking that for now, I'll just use the DB validation, then
put the UserID in the session scope, then check for it in in every
action class. The logoutAction will null out the userID...

am I over simplifying?


On Mon, 07 Mar 2005 17:12:38 -0800, Max Cooper <[EMAIL PROTECTED]> wrote:
> Are you using HTTP BASIC authentication? If you get a login dialog box,
> as opposed to a login web page, you are probably using HTTP BASIC
> authentication. If so, the browser remembers the login and automatically
> sends it to the app with each request, which will log the user in again
> if they revisit a page after logging out.
>
> FORM-based authentication does not have this issue. So one resolution
> would be to switch to form-based authentication.
>
> To stay with BASIC, I think you could delete/expire the auth cookie as
> part of the logout action. I haven't tried this before, but it seems
> like it might work.
>
> Tell us more about your authentication system and we can help you find a
> solution to the problem.
>
> -Max
>
> On Mon, 2005-03-07 at 16:44 -0500, David Johnson wrote:
> > hi all
> >
> >  have a logoff action, and inside it I do the following.
> >
> > // Clean up the session if there is one
> > HttpSession session = request.getSession();
> > session.invalidate();
> >
> > When I watch what's happening in the manager application (I'm using
> > Tomcat) the number of sessions does not decrease, and I can back up in
> > the browser and call actions, all of which have code to check for a
> > valid session..
> >
> > This raises a question.. what's the best way in my web-app to make
> > sure the user is valid? should I check in **every** action?
> >
>
>

--
-Dave
[EMAIL PROTECTED]


-- 
-Dave
[EMAIL PROTECTED]

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



Re: form-bean and persistent data in session scope

2005-03-08 Thread Jeff Beal
As far as I know, Struts never explicitly removes form beans from
session scope.  This does create the potential for performance issues,
simply because those form beans take up memory.  With a limited user
base, you can probably throw enough RAM into your server to avoid
serious problems, though.


On Tue, 8 Mar 2005 15:27:17 +0530, Raghuveer Vellanki
<[EMAIL PROTECTED]> wrote:
> Dear Erik,
> In My struts application ,i used 50 form beans in session scope.
> My application will be accessed by 200 users daily.
> 
> Does it leads to performance issue ,if using form beans in session.
> 
> Can you clarify me when does the form bean object would be removed in
> session scope after it's use.
> 
> RaghuVeer
> 

-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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



Re: why complicate? was: Eliminate Setup Actions

2005-03-08 Thread David Johnson
Frank

can you send us a link when you have something? I for one am waiting
with bated breath :)

D


On Tue, 8 Mar 2005 01:12:18 -0500, Frank W. Zammetti
<[EMAIL PROTECTED]> wrote:
> In what way?
> 
> -Original Message-
>From: "Dakota Jack"<[EMAIL PROTECTED]>
>Sent: 3/8/05 12:34:50 AM
>To: "Struts Users Mailing List", "[EMAIL 
> PROTECTED]"<[EMAIL PROTECTED]>
>Cc: "Corey Probst"<[EMAIL PROTECTED]>
>Subject: Re: why complicate? was: Eliminate Setup Actions
> 
>Isn't this all a bit contrary to the rightfully hallowed principles of
>decoupling in OOP?
> 
>On Mon, 07 Mar 2005 22:56:23 -0500, Frank W. Zammetti
><[EMAIL PROTECTED]> wrote:
>> Corey Probst wrote:
>> > Another thought, what about redirecting forwards?
>>
>> I'm glad you brought that up because I didn't think of it, and wouldn't
>> have until after someone noticed it :)
>>
>> I don't think there is anything that can be done about that, at least
>> not in the case where you redirect to a JSP.  If you redirect to an
>> Action Mapping (even if it's just an ActionForward), then sure, the
>> setup could still work there.  But redirect to a JSP I don't see a way
>> to make it work.
>>
>> On your other point... I'm actually thinking about allowing the setup
>> elements to be at the mapping level and/or the forward level.  The idea
>> being that there may be times you want to do some particular setup
>> functions regadless of which forward is choosen, and other times where
>> you want to do specific setups for specific forwards only.  I'm thinking
>> that each setup element you add to a forward can specify whether to
>> process any mapping elements IN ADDITION to those of the forward, or
>> don't use the mapping elements.  For example:
>>
>> 
>>> method="setupMethod1" />
>>
>>  > method="defSetup1" />
>>
>> 
>>
>> In this case, when the defaultForward is selected,
>> MyActionSetup.setupMethod1() would be called, followed by
>> MyDefaultSetup.defSetup1().
>>
>> But, in this case:
>>
>> 
>>> method="setupMethod1" />
>>
>>  > method="defSetup1" additive="false" />
>>
>> 
>>
>> ...only MyDefaultSetup.defSetup1() would be executed when defaultForward
>> is selected.
>>
>> Also, I think ideally I'd make the setupItems attached to the mapping
>> executed BEFORE the Action's execute() is called, but clearly the
>> forward-level items would have to execute AFTER execute() completes.  I
>> think that gives even a bit more flexibility to it.
>>
>> I'm making this up as I go, so feel free to comment :)
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
> 
> [Message truncated. Tap Edit->Mark for Download to get remaining portion.]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
-Dave
[EMAIL PROTECTED]

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



Easy: Including a file with a parameter?

2005-03-08 Thread David Kennedy
I have several pages which include a header like this:
  <[EMAIL PROTECTED] file="../includes/header.jspf"%>
I would like to pass a resource bundle key into the header so that
 can be used to customise the
header for this page.
I can see how jsp:include or maybe bean:include can be used to do this, 
but neither solution is suitable for other/legacy reasons. I tried using 
[EMAIL PROTECTED] but can't figure out how to refer to the variable inside the
page such that the compiler is happy.

Anyone got an example? Thanks,
--
David Kennedy
Swan Labs
http://www.swanlabs.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re:

2005-03-08 Thread Jeff Beal
Where do the contents of the bean you are writing come from?  Is this
something like a message board where users are posting content with
HTML formatting, and you want to be sure they're not uploading scripts
for security reasons?  If that's the case, I'd be sure to filter out
any  tags when the user first posts the HTML.  That way, you
know that the system never has any invalid HTML in the database.

If you have a case where you want to store the  tag, but only
display it in certain situations, you'll need to use a different
custom tag.  I'm not aware of an existing one that filters out
selective HTML content, but there may be one.  Writing your own
shouldn't be that hard.

-- Jeff


On Mon, 7 Mar 2005 15:30:29 -0500, Kaja Mohideen <[EMAIL PROTECTED]> wrote:
> Hi,
> I wanted to display label using . But I
> need to filter(or allow) selected HTML tag. For example I have to allow
>  tag but I have to filter alert("hi");
> like that.. Can we do this selective filtering using any tag libraries,,
> otherwise I have to extend existing tag libraries..Please help me out
> here..
> 
> Thanks,
> Kaja
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Jeff Beal
Webmedx, Inc.
Pittsburgh, PA USA

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



Re: Cannot find bean error in any scope

2005-03-08 Thread Sébastien GALLET
I've found the solution. I forgot to use the bundle parameter in 
html:messages
Now I've got another problem :
If I put the message-resources in global key (key not defined) 
everything works fine :
Validation failed.

   * The field name2 is required.
But if I put it in a custom key (ie person) the field name in error 
isn't initialize :

Validation failed.
   * The field is required.
Here is the code I use to retrieve errors :

  
  
  
 
  
  
  

What do I wrong ?
Sébastien GALLET a écrit :
Hi.
I try to developp tools which allows me to store messages and 
validation ressources to the server (jboss) and make them accessible 
via JNDI. The goal is to use them with differents back-ends (webapp 
with struts, webservices, beans, etc, ...).

Sebastien
which tries to speak English
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tiles:insert and tiles:put an attribute and the import it to request scope

2005-03-08 Thread Tim Christopher
Not sure if this is what you're asking but here's a quick example that
shows how to access the information stored in the tiles-defs.xml in a
file other than your layout page

# Extract from tiles-defs.xml #


  
  
  


# Extract from layout.jsp #
-



  


# Extract from content.jsp #





Hope that helps,

Tim Christopher



On Mon, 7 Mar 2005 10:55:49 -0800 (PST), Jonathan M Z
<[EMAIL PROTECTED]> wrote:
> dear folks,
> I know that I can insert an attribute into a  jsp page
> by using tiles:insert and tiles put as the following:
>  flush="true">
>
> 
> 
> 
> but what if I want to get the value of this attribute
> from one of its sub jsp pages(eg. nav.jsp)
> I have tried using  scope="request"/> to import all the tiles attributes
> into the request scope.  But it doesn't seem like the
> attributes get imported into the request scope
> when I print out all the attribute names from the
> request as the following in nav.jsp:
> 
> <%
>Enumeration e=request.getAttributeNames();
>while(e.hasMoreElements()){
>out.println(e.nextElement()+ " <>");
>}
> %>
> neither was I able to use
> in nav.jsp
> 
> what's wrong?
> 
> thanks
> 
> __
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Bean Taglib Help

2005-03-08 Thread Nicolas De Loof
You can use the EL-enable version of display tag to do this (assuming 
Konstants.SESSION_USER_KEY = "users") :


Now, if you don't want to break constants usage, you may try to use 
jakarta unstandard taglib to bind the static field from your Konstants 
class to a pageContext variable :


(http://jakarta.apache.org/taglibs/sandbox/doc/unstandard-doc/index.html#bind)

.. and use it in EL :


If you don't want to use EL, you can use struts bean:define :




Nico.
Richard Reyes a écrit :
Hello All,
I have this code...
<%
   User user = ( User ) session.getAttribute( Konstants.SESSION_USER_KEY ) ;
   ArrayList x = user.getRusers() ;
   request.setAttribute( "x",x ) ;
%>
   
   
How do I use the Struts Bean Liblraries to remove the scriptlet.
TIA.
Richard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

This message contains information that may be privileged or confidential 
and is the property of the Capgemini Group. It is intended only for the person 
to whom it is addressed. If you are not the intended recipient,  you are not 
authorized to read, print, retain, copy, disseminate,  distribute, or use this 
message or any part thereof. If you receive this  message in error, please 
notify the sender immediately and delete all  copies of this message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: focus on an image when the page loads in struts

2005-03-08 Thread jj endenburg
Hello Raghuveer,

Thank you for your help on my problem. I will take a
close look at it.

I am not sure whether I understand your problem
completely.
The following code might help you:


 

Jan-Jaap
Raghuveer Vellanki wrote:

>
>I have problem in using Struts my JSP code is as below.
>I need to fosus " I.e i need to focus on an image when the page loads.
>
>-
>
>%@ page language="java"%>
><%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean" %>
><%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
><%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic" %>
>
>
>Test html:multibox Tag
>
>function fnSubmit(str){ 
>alert(str);
>return;
>}
>
>
>
>
>
>
>html image
>
>
>border="0" onclick="javascript:fnSubmit('image')" />
>
>
>
>
>
>


Met vriendelijke groeten,
Jan-Jaap Endenburg




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Bean Taglib Help

2005-03-08 Thread Richard Reyes
Hello All,

I have this code...


<%
User user = ( User ) session.getAttribute( Konstants.SESSION_USER_KEY ) ;
ArrayList x = user.getRusers() ;
request.setAttribute( "x",x ) ;
%>



How do I use the Struts Bean Liblraries to remove the scriptlet.

TIA.
Richard

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



Re: Help Me!!!!

2005-03-08 Thread Caroline Jen
What are the changes that you made to the web.xml
file?  What kind of the struts-config.xml you created?
 Show us those files so that we are able to help.
--- K Rajesh <[EMAIL PROTECTED]> wrote:
> I am new to struts.i bought struts complete
> reference book.
> i tried one MiniHR Application. but is not working.
> if i put any index.html or jsp into
> C:\Tomcat\Webapps\strt\
> is working fine. if i change any thing inside
> web.xml or creating
> struts-config.xml file
> it is not working. kindly let me know why if anybody
> know.
> 
> Thanx in Advance.
> Rajesh
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



Help Me!!!!

2005-03-08 Thread K Rajesh
I am new to struts.i bought struts complete reference book.
i tried one MiniHR Application. but is not working.
if i put any index.html or jsp into C:\Tomcat\Webapps\strt\
is working fine. if i change any thing inside web.xml or creating
struts-config.xml file
it is not working. kindly let me know why if anybody know.

Thanx in Advance.
Rajesh

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



RE: Hibernate Struts Example

2005-03-08 Thread Nils Liebelt
Hi, 
I just had a quick look at the example. Works fine for the book shop. But
you should keep in mind that pushing businessobjects to view is not what MVC
indented even if nested inside an ActionForm. Your ActionForms should only
contain String types. Since this is the type method GET/POST is gonna
deliver to you. All other types might not get populated (e.g if you want to
collect a number from a text field) and then you can't validate. 

I made the same mistake in a recent project with a quiet large entity
relationship. It was so attempting since you don't have to maintain
ActionForms and an extra set of businessobjects. But it is actually more
clean and you can have a tighter binding of data/functions e.g. like
someBook.store() 

Regards

Nils


-Original Message-
From: Sebastian Hennebrueder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:36 AM
To: Struts Users Mailing List
Subject: Re: Hibernate Struts Example

You may also try this one. Sorry, that it was unfindable. ;-)

http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html

Regards

Sebastian Hennebrueder



http://www.laliluna.de

Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB

Daniel Watrous wrote:
> I have written a very simple shopcart application using Struts and
> Hibernate. I looked quite a bit for a decent tutorial and example but
> found nothing, so I put this together. For anyone else wondering how
> to integrate Hibernate and Struts, here is an example:
> 
> http://www.simplecart.org
> 
> The source is available under a BSD license. THIS IS NOT PRODUCTION
> QUALITY SOFTWARE. It is simply for learning, which is why I did it.
> Hopefully it is useful to someone more than me!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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


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



RE: Hibernate Struts Example

2005-03-08 Thread Nils Liebelt
Hi, 
I just had a quick look at the example. Works fine for the book shop. But
you should keep in mind that pushing businessobjects to view is not what MVC
indented even if nested inside an ActionForm. Your ActionForms should only
contain String types. Since this is the type method GET/POST is gonna
deliver to you. All other types might not get populated (e.g if you want to
collect a number from a text field) and then you can't validate. 

I made the same mistake in a recent project with a quiet large entity
relationship. It was so attempting since you don't have to maintain
ActionForms and an extra set of businessobjects. But it is actually more
clean and you can have a tighter binding of data/functions e.g. like
someBook.store() 

Regards

Nils


-Original Message-
From: Sebastian Hennebrueder [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 08, 2005 10:36 AM
To: Struts Users Mailing List
Subject: Re: Hibernate Struts Example

You may also try this one. Sorry, that it was unfindable. ;-)

http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html

Regards

Sebastian Hennebrueder



http://www.laliluna.de

Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB

Daniel Watrous wrote:
> I have written a very simple shopcart application using Struts and
> Hibernate. I looked quite a bit for a decent tutorial and example but
> found nothing, so I put this together. For anyone else wondering how
> to integrate Hibernate and Struts, here is an example:
> 
> http://www.simplecart.org
> 
> The source is available under a BSD license. THIS IS NOT PRODUCTION
> QUALITY SOFTWARE. It is simply for learning, which is why I did it.
> Hopefully it is useful to someone more than me!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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


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



RE: DownloadAction Application

2005-03-08 Thread Rajaneesh
So the struts upload uses octet stream and the user does not need
to worry if the file being uploaded is a binary or ascii!

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 11:44 AM
To: Struts Users Mailing List
Subject: Re: DownloadAction Application


It depends on what you are using to do the uploading. For example, an 
FTP system cares. But an application that simply copies bytes from an 
octet stream doesn't have to care.

Erik


Rajaneesh wrote:

>Hi,
>
>  A basic question! Should a file type(BINARY or ASCII) matter during the
>upload process?
>
>Regards
>Rajaneesh
>
>
>  
>
>  
>

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


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



handling multiple forms with multiple formbeans in struts

2005-03-08 Thread Raghuveer Vellanki
can any one provide information for handling multiple forms with multiple
formbeans in struts
with struts 1.1

raghu


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



Hidden parameter passing: RE: parameter passing from one jsp-screen to another

2005-03-08 Thread jj endenburg
Thank you Erik!

Actually, the information in my question was not
complete. I am sorry for this...
The parameter to pass from jsp-screen A to jsp-screen
B should stay hidden from the end-user.
This is why displaying this parameter in the URL is
not possible, unfortunately.
Instead of this, how can I pass this parameter within
Struts, without the end-user being able to see it?

Thank you,
Jan-Jaap

--- "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Well, how about using a query string parameter in
> your links?
> 
> http://foo.com/myapp/bar.jsp?itemId=1
> http://foo.com/myapp/bar.jsp?itemId=2
> 
> And so on?
> 
> The Struts html:link tag (or the JSTL c:url tag) can
> be used to dynamically
> create your links.
> 
>
http://struts.apache.org/userGuide/struts-html.html#link
> 
> Hope that helps,
> 
> Erik
> 
> 
> Original Message:
> -
> From: jj endenburg [EMAIL PROTECTED]
> Date: Tue, 8 Mar 2005 00:29:46 -0800 (PST)
> To: user@struts.apache.org
> Subject: parameter passing from one jsp-screen to
> another
> 
> 
> Hi everyone,
> 
> I have the following problem: how can I pass a
> parameter from a jsp-screen A to a jsp-screen B
> within
> the struts-framework?
> 
> More concrete:
> Screen A has several clickable link instances to
> screen B. Each link instance has its own
> (dynamically
> calculated) parameter value to pass to screen B.
> This parameter is hidden from the sreen.
> Can someone give me a hint on how this parameter
> passing can be done in a handy way within struts?
> 
> Thanks,
> Jan-Jaap
> 
> Met vriendelijke groeten,
> Jan-Jaap Endenburg
> 
> 
>   
>   
> __ 
> Celebrate Yahoo!'s 10th Birthday! 
> Yahoo! Netrospective: 100 Moments of the Web 
> http://birthday.yahoo.com/netrospective/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>

> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



NotSerializableException with DeferredFileOutputStream

2005-03-08 Thread Bernd Schiffer
Hi.
When I upload a file (an attachment) to my webapp, I use a ActionForm 
with a 'private FormFile attachFileField;' in it. Now, when I use my 
webapp and upload files, I get permanently Exceptions in my Tomcat 
console like the following one:

INFO: Cannot serialize session attribute attachForm for session 
8DB3C7A91F0842A3A56E2F226A99DB1F
java.io.NotSerializableException: 
org.apache.commons.fileupload.DeferredFileOutputStream
[more stack trace stuff...]

The webapp works fine, but these exception output get on my nerves and 
polutes the Tomcat console. And if I try to shutdown Tomcat, there are a 
few tens to hundrets NotSerializableException coming up, especially 
after a shutdown right after I ran the acceptance test suite...

Any suggestions? Thanks in advance,
   Bernd
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


focus on an image when the page loads in struts

2005-03-08 Thread Raghuveer Vellanki


I have problem in using Struts 
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


Test html:multibox Tag

function fnSubmit(str){ 
alert(str);
return;
}






html image










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



RE: parameter passing from one jsp-screen to another

2005-03-08 Thread Raghuveer Vellanki
hi jap

in your screen-A ,
add code as below with 2 parameter values to be sent to screen B

click here to
test bean:parameter



in your screen-B




  
Parameter Name
Correct Value
Test Result
  
  
param1
value1
<%= param1 %>
  
  
param2
value2
<%= param2 %>
  



hope this helps you,i found this in some example


-Original Message-
From: jj endenburg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 2:00 PM
To: Struts Mailing list apache
Subject: parameter passing from one jsp-screen to another


Hi everyone,

I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B within
the struts-framework?

More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own (dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?

Thanks,
Jan-Jaap

Met vriendelijke groeten,
Jan-Jaap Endenburg




__
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/


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



Initialize new Form from action

2005-03-08 Thread Hond4
Hallo list members,
i'm looking for solution how to create new form in one action for 
another. Here is small example:


	path="/Edit"
	type="..."
	name="inFormA"
	validate="false"
	scope="session">
	 
  	   	






i would like to prepare "inFormB" in action "/Edit.do" for action 
"/View.do", based on values in "inFormB". Is it possible with struts?
I've tried to create new inFormB object, but it's not working ;(

Best regards & thnx for help,
H0nd4

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


form-bean and persistent data in session scope

2005-03-08 Thread Raghuveer Vellanki
Dear Erik,
In My struts application ,i used 50 form beans in session scope.
My application will be accessed by 200 users daily.

Does it leads to performance issue ,if using form beans in session.

Can you clarify me when does the form bean object would be removed in
session scope after it's use.

RaghuVeer

-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 08, 2005 8:08 AM
To: Struts Users Mailing List
Subject: Re: form-bean and persistent data


This is a valid way to do it. To be more specific, your Action would ask
some delegate for the domain object, then it would use that object as
either a scoped (request, session, etc.) attribute or as a field for
your form-bean (if you are indeed using your form-bean for "setup"
actions as well as for POST-processing actions -- some do this, some
don't, but it sounds like you are; when I do this, I use the "name"
attribute in my ActionMapping (but with validate = false) so that Struts
will go ahead and instantiate the form-bean for me, and pass it to the
execute method).

Erik


Jonathan M Z wrote:

>suppose I am using a form-bean to populate an html
>form,  I need to retrieve the values of this form-bean
>from persistent storage.  Do I do this from the Action
>that eventually forwards to this jsp page?
>Should I create the form-bean from persistent storage
>in action.execute(), then forwards the view to the jsp
>page?
>for example if the form-bean's name is aBean, in
>action.execute I create the aBean, populate it, and
>then set it as an attribute into the request(or
>whatever scope I see fit)
>is this a standard approach for reading data into
>form-bean from the persistent data layer?
>
>thanks
>
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>


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



RE: parameter passing from one jsp-screen to another

2005-03-08 Thread [EMAIL PROTECTED]
Well, how about using a query string parameter in your links?

http://foo.com/myapp/bar.jsp?itemId=1
http://foo.com/myapp/bar.jsp?itemId=2

And so on?

The Struts html:link tag (or the JSTL c:url tag) can be used to dynamically
create your links.

http://struts.apache.org/userGuide/struts-html.html#link

Hope that helps,

Erik


Original Message:
-
From: jj endenburg [EMAIL PROTECTED]
Date: Tue, 8 Mar 2005 00:29:46 -0800 (PST)
To: user@struts.apache.org
Subject: parameter passing from one jsp-screen to another


Hi everyone,

I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B within
the struts-framework?

More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own (dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?

Thanks,
Jan-Jaap

Met vriendelijke groeten,
Jan-Jaap Endenburg




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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



mail2web - Check your email from the web at
http://mail2web.com/ .



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



Cannot find bean error in any scope

2005-03-08 Thread Sébastien GALLET
Hi.
I try to developp tools which allows me to store messages and validation 
ressources to the server (jboss) and make them accessible via JNDI. The 
goal is to use them with differents back-ends (webapp with struts, 
webservices, beans, etc, ...).

To do this, I developp a plug-in to retrieve validator resources :
 
   
 
And a new message resource components :
 
  key="person"
  parameter="info.gallet.titandb.person.Person"
 
className="info.gallet.struts.marmot.MessageResourcesConfig">
   
   
 

Now I can access messages with the classical bean:message
   
And the fieldchecks (same as struts one but with debug hooks)  works fine
2005-03-08 09:26:22,263 DEBUG 
[info.gallet.marmot.validator.FieldChecks] Validation of field name2
2005-03-08 09:26:22,264 DEBUG [info.gallet.marmot.validator.FieldChecks] 
Validation of field name2 failed.

But I can't retrieve the error messages. Here is the logs
javax.servlet.ServletException: Cannot find bean error in any scope

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.valid1_jsp._jspService(valid1_jsp.java:177)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994)

org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:959)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
*root cause*
javax.servlet.jsp.JspException: Cannot find bean error in any scope
org.apache.struts.taglib.TagUtils.lookup(TagUtils.java:992)
org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:227)
org.apache.jsp.valid1_jsp._jspx_meth_bean_write_0(valid1_jsp.java:242)
org.apache.jsp.valid1_jsp._jspService(valid1_jsp.java:135)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1056)

org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:994)

org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:959)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:206)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
What's wrong in my code ???
Sebastien
which tries to speak English

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


Re: Hibernate Struts Example

2005-03-08 Thread Sebastian Hennebrueder
You may also try this one. Sorry, that it was unfindable. ;-)
http://www.laliluna.de/struts-hibernate-integration-tutorial-en.html
Regards
Sebastian Hennebrueder

http://www.laliluna.de
Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB
Daniel Watrous wrote:
I have written a very simple shopcart application using Struts and
Hibernate. I looked quite a bit for a decent tutorial and example but
found nothing, so I put this together. For anyone else wondering how
to integrate Hibernate and Struts, here is an example:
http://www.simplecart.org
The source is available under a BSD license. THIS IS NOT PRODUCTION
QUALITY SOFTWARE. It is simply for learning, which is why I did it.
Hopefully it is useful to someone more than me!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


parameter passing from one jsp-screen to another

2005-03-08 Thread jj endenburg
Hi everyone,

I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B within
the struts-framework?

More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own (dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?

Thanks,
Jan-Jaap

Met vriendelijke groeten,
Jan-Jaap Endenburg




__ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

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