Re: Implementation of new row functionality of HTML table in Struts

2005-12-16 Thread atta-ur rehman
Irfan,

How are you storing data required for initial rows? As a collection of
objects in some scope that  uses to paint them on the page?

When user submits the page how are you getting the updated values?
Populating the objects in the same collection or constructing a new
collection and adding a object for each row?

If that's the case, then all you need to do is reset the collection of
objects to the new number of rows submitted by the user. Commons-Collection,
which is required by Sturts(?) have a lazy-list which could be used for this
purpose.

ATTA


On 12/16/05, Irfan Shaikh <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>  I am new to Struts and  need to implement a functionality where a
> new row is added to table (generated using logic:iterate tag on JSP page )
> on the fly(using javascript)  and handling newly added row in
> DynaActionForm
> so that row gets saved to database. Need to know how to create a bean for
> newly added row.
>
> Suggestion will be highly appreciated.
> Thanks in advance
>
>


Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-16 Thread Paul Benedict
Rick,

> It sounds like to me you are suggesting that we'd create a "brand new" Player 
> object that had
some String properties in it. 

I am not suggestign you create a new business object. I am suggesting you 
create a new object for
input purposes. You need a transport layer between your model and the web; thus 
you have an
ActionForm. But you need to pad your ActionForm with additional objects because 
of the complexity
of your app.

> You are creating an identical object to the exisiting POJO where the only > 
> difference is
changing a few of the property types (ie number or date to String).

No. You only create properties for the values you need for INPUT. As I said in 
previous emails, if
you have a business object with 50 properties but only need to capture input 
for 3, your input
object only needs 3 properties.

Paul

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

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



Re: Back Button Problem..

2005-12-16 Thread Michael Jouravlev
His browser message means that browser was not redirected at all.

On 12/16/05, Martin Gainty <[EMAIL PROTECTED]> wrote:
> just as a quick sanity check
>
> HTTPSession strSession = request.getSession(false);
> strSession.removeAttribute("sessionState");
>
> strSession = session.getId();
> while(strSession != null)
> { //session information is still there
> session.invalidate();
> strSession = session.getId();
> }
> response.sendRedirect("/BMS/logout_success.jsp");
>
> //To clear the cache I would place these meta-commands in the head
> 
> 
> 
>
> Then again that message appears to be specific to IE on XP SP2
> http://support.microsoft.com/default.aspx?scid=kb;en-us;890178
>
> Anyone else?
> M-
>
> - Original Message -
> From: "Priya Saloni" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Cc: "Garner, Nigel M" <[EMAIL PROTECTED]>
> Sent: Friday, December 16, 2005 1:46 PM
> Subject: Re: Back Button Problem..
>
>
> Thanks for your time.But i can't use Appuse at this time because my project
> ready for production(Except this problem).
>
> Priya
>
>
> On 12/16/05, Garner, Nigel M <[EMAIL PROTECTED]> wrote:
> >
> > You could always use a ServletFilter to make sure that users never have
> > access to pages that you don't want them to. By checking for a user
> > object or something like the sessionState object then you could
> > determine whether or not the user is logged in. If not then it will
> > allow you to redirect the user to where ever you want.
> >
> > I have used them on a number of occasion for this purpose and I think
> > the struts appfuse projected (see struts.sourceforge.net) provide a
> > downloadable implementation.
> >
> > Thanks
> > Nigel
> >
> > -Original Message-
> > From: Priya Saloni [mailto:[EMAIL PROTECTED]
> > Sent: 16 December 2005 14:49
> > To: Struts Users Mailing List
> > Subject: Back Button Problem..
> >
> > Hi there,
> >
> > I facing a BIG problem in my struts based application.When i logout my
> > website and hit back button it showing a page like the following
> >
> > //
> > Warning: Page has Expired
> > The page you requested was created using information you submitted in a
> > form. This page is no longer available. As a security precaution,
> > Internet Explorer does not automatically resubmit your information for
> > you.
> >
> > To resubmit your information and view this Web page, click the
> > *Refresh*button.
> >
> >
> > //
> >
> > When i refresh the page its showing the secured web pages too.My code in
> > LogoutAction is as follows
> >
> >request.getSession().removeAttribute("sessionState");
> >request.getSession().invalidate();
> >response.sendRedirect("/BMS/logout_success.jsp");
> >
> > sessionState is the VO where iam keeping all the objects  i want to keep
> > in session..Is there any way in struts to make sure that it won't
> > display the page like above..
> >
> > Thanks
> >
> > Priya.
> >
>
> -
> 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: Upload all files of a dir at one go

2005-12-16 Thread Martin Gainty

George-
Lots of ideas on handling FileUpload via Servlet here
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/aucserv.html
Anyone else?
Martin-
- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Friday, December 16, 2005 2:42 PM
Subject: RE: Upload all files of a dir at one go


Dave Newton responded

Shivani Sawhney wrote:

>And tell me something, probably I am just thinking aloud and am even
>wrong, but if I can do it through code then can't we just
have a custom
>tag that zips the chosen directory at client side, uploads
the zipped
>file on to the server and provides the programmer with appropriate
>methods to use the entries in the zipped file more conveniently.
>
>
Custom tags are run _on_the_server_ not on the client. That
said, if you
render JavaScript it will be run on the client side, but I
don't know if
there's any way to access the client's filesystem. Seems like
that would
be scary. You could probably do it with an ActiveX control, because
apparently you can wreak all sorts of havoc that way.


I've used a Java applet to upload multiple files.  Of course, that
brings in all of the difficulties of using applets, since you're writing
code for an environment you don't control.  I sent them individually,
not zipped, and retrieved them directly from the request, bypassing the
Struts form.

- George Dinwiddie
  http://www.idiacomputing.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: Specify a file name when using DownloadAction

2005-12-16 Thread George.Dinwiddie
Vu, Thai asked
> I looked at these examples
> (http://wiki.apache.org/struts/StrutsFileDownload) on using 
> DownloadAction and saw nothing like your code :( So I wonder 
> if you could post your whole Action file here.

Did you look at
http://wiki.apache.org/struts/StrutsFileDownload#head-188719b69a6e7f2c42
d6cafef3ffab61e6129539 ?

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



RE: Upload all files of a dir at one go

2005-12-16 Thread George.Dinwiddie
Dave Newton responded
> Shivani Sawhney wrote:
> 
> >And tell me something, probably I am just thinking aloud and am even 
> >wrong, but if I can do it through code then can't we just 
> have a custom 
> >tag that zips the chosen directory at client side, uploads 
> the zipped 
> >file on to the server and provides the programmer with appropriate 
> >methods to use the entries in the zipped file more conveniently.
> >  
> >
> Custom tags are run _on_the_server_ not on the client. That 
> said, if you 
> render JavaScript it will be run on the client side, but I 
> don't know if 
> there's any way to access the client's filesystem. Seems like 
> that would 
> be scary. You could probably do it with an ActiveX control, because 
> apparently you can wreak all sorts of havoc that way.

I've used a Java applet to upload multiple files.  Of course, that
brings in all of the difficulties of using applets, since you're writing
code for an environment you don't control.  I sent them individually,
not zipped, and retrieved them directly from the request, bypassing the
Struts form.

 - George Dinwiddie
   http://www.idiacomputing.com

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



Re: Back Button Problem..

2005-12-16 Thread Martin Gainty

just as a quick sanity check

HTTPSession strSession = request.getSession(false);
strSession.removeAttribute("sessionState");

strSession = session.getId();
while(strSession != null)
{ //session information is still there
session.invalidate();
strSession = session.getId();
}
response.sendRedirect("/BMS/logout_success.jsp");

//To clear the cache I would place these meta-commands in the head





Then again that message appears to be specific to IE on XP SP2
http://support.microsoft.com/default.aspx?scid=kb;en-us;890178

Anyone else?
M-

- Original Message - 
From: "Priya Saloni" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Cc: "Garner, Nigel M" <[EMAIL PROTECTED]>
Sent: Friday, December 16, 2005 1:46 PM
Subject: Re: Back Button Problem..


Thanks for your time.But i can't use Appuse at this time because my project
ready for production(Except this problem).

Priya


On 12/16/05, Garner, Nigel M <[EMAIL PROTECTED]> wrote:


You could always use a ServletFilter to make sure that users never have
access to pages that you don't want them to. By checking for a user
object or something like the sessionState object then you could
determine whether or not the user is logged in. If not then it will
allow you to redirect the user to where ever you want.

I have used them on a number of occasion for this purpose and I think
the struts appfuse projected (see struts.sourceforge.net) provide a
downloadable implementation.

Thanks
Nigel

-Original Message-
From: Priya Saloni [mailto:[EMAIL PROTECTED]
Sent: 16 December 2005 14:49
To: Struts Users Mailing List
Subject: Back Button Problem..

Hi there,

I facing a BIG problem in my struts based application.When i logout my
website and hit back button it showing a page like the following

//
Warning: Page has Expired
The page you requested was created using information you submitted in a
form. This page is no longer available. As a security precaution,
Internet Explorer does not automatically resubmit your information for
you.

To resubmit your information and view this Web page, click the
*Refresh*button.


//

When i refresh the page its showing the secured web pages too.My code in
LogoutAction is as follows

   request.getSession().removeAttribute("sessionState");
   request.getSession().invalidate();
   response.sendRedirect("/BMS/logout_success.jsp");

sessionState is the VO where iam keeping all the objects  i want to keep
in session..Is there any way in struts to make sure that it won't
display the page like above..

Thanks

Priya.



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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Preston Crawford
> I have never had a concern about the "umbrella" idea, which is the latest
> description of what is happening.  I would in fact encourage that and
> cannot
> see any problem with it.  However, I pay more attention to people's feet
> than their lips.  "Is Shale the Next Struts?" is the feet.  The community
> is
> not served by the whole panoply of things similar to that which have been
> fast and furious over the year plus.  If there were a consistent message
> and
> this change of tune when addressing the "outer world" was not the norm,
> then
> I would have no qualms.  However, with the data and the facts the way they
> are, I think it is naive to expect that Craig really is interested in
> community.  I do not disparage Craig in saying that.  He doesn't have to
> be
> interested in anything.  I just don't feel like being an unwitting toady.

?

Craig is so nefarious.. Good thing you're not unwitting... that you're
on your guard.

Craig has been helping people on the Struts list for years. I first
adopted and learned Struts when it was beta. Pre version 1.0. And he was
helpful then and pure of intentions. Why wouldn't he be now?

Preston


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



Re: Back Button Problem..

2005-12-16 Thread Michael Jouravlev
For some reason your redirect does not work. Maybe session is not
invalidated as well? Is this piece of code ever evaluated?

Michael.

On 12/16/05, Priya Saloni <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I facing a BIG problem in my struts based application.When i logout my
> website and hit back button it showing a page like the following
>
> //
>  Warning: Page has Expired
> The page you requested was created using information you submitted in a
> form. This page is no longer available. As a security precaution, Internet
> Explorer does not automatically resubmit your information for you.
>
> To resubmit your information and view this Web page, click the 
> *Refresh*button.
>
>
> //
>
> When i refresh the page its showing the secured web pages too.My code in
> LogoutAction is as follows
>
> request.getSession().removeAttribute("sessionState");
> request.getSession().invalidate();
> response.sendRedirect("/BMS/logout_success.jsp");
>
> sessionState is the VO where iam keeping all the objects  i want to keep in
> session..Is there any way in struts to make sure that it won't display the
> page like above..
>
> Thanks
>
> Priya.
>
>

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



RE: ServletException: duplicate class definition ?!

2005-12-16 Thread Garner, Shawn
Your web server has jar files already, check those.
For me on JRun it is JRUN\servers\lib.
For apache tomcat it is a commons\lib or something like that.

It might be two different JAR files with the same class in it.
You'll have to look inside the jar files to see if there is more than one
instance of RowTag.

Shawn
-Original Message-
From: Jean-Charles Giardina [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 7:24 PM
To: Struts Users Mailing List
Subject: Re: ServletException: duplicate class definition ?!

Thank,

But all my JAR are in WEB-APP/lib. And I've not found multiple copie.
In my my frame there is only JSP from one webapp !

Regards.

2005/12/15, Laurie Harper <[EMAIL PROTECTED]>:
> Jean-Charles Giardina wrote:
> > Hi every body,
> >
> > I get an javax.servlet.ServletException: duplicate class definition:
> > com/amarda/framework/taglib/RowTag
> > on webapp start up only.  Upon refreshing the page this error goes away.
> >
> > This exception occurs when using more than one frame (including internal
frame).
> >
> > Tks folks.
>
> Check for multiple copies of your RowTag class in the classpath (or
> multiple copies of a JARc containing that class). You probably have the
> class in a shared library as well as your webapp's libraries / classes.
>
> L.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: Back Button Problem..

2005-12-16 Thread Priya Saloni
Thanks for your time.But i can't use Appuse at this time because my project
ready for production(Except this problem).

Priya


On 12/16/05, Garner, Nigel M <[EMAIL PROTECTED]> wrote:
>
> You could always use a ServletFilter to make sure that users never have
> access to pages that you don't want them to. By checking for a user
> object or something like the sessionState object then you could
> determine whether or not the user is logged in. If not then it will
> allow you to redirect the user to where ever you want.
>
> I have used them on a number of occasion for this purpose and I think
> the struts appfuse projected (see struts.sourceforge.net) provide a
> downloadable implementation.
>
> Thanks
> Nigel
>
> -Original Message-
> From: Priya Saloni [mailto:[EMAIL PROTECTED]
> Sent: 16 December 2005 14:49
> To: Struts Users Mailing List
> Subject: Back Button Problem..
>
> Hi there,
>
> I facing a BIG problem in my struts based application.When i logout my
> website and hit back button it showing a page like the following
>
> //
> Warning: Page has Expired
> The page you requested was created using information you submitted in a
> form. This page is no longer available. As a security precaution,
> Internet Explorer does not automatically resubmit your information for
> you.
>
> To resubmit your information and view this Web page, click the
> *Refresh*button.
>
>
> //
>
> When i refresh the page its showing the secured web pages too.My code in
> LogoutAction is as follows
>
>request.getSession().removeAttribute("sessionState");
>request.getSession().invalidate();
>response.sendRedirect("/BMS/logout_success.jsp");
>
> sessionState is the VO where iam keeping all the objects  i want to keep
> in session..Is there any way in struts to make sure that it won't
> display the page like above..
>
> Thanks
>
> Priya.
>


Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Wendy Smoak
On 12/16/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:

> Based on your comments at the BOF ...

Was anyone taking notes?  (Or did you save the envelopes and napkins
you were scribbling on? ;) )  I'd love to hear how the presentations
went, as well as what was discussed afterwards.

Maybe a new thread is in order, this is all getting buried under the
announcement.

--
Wendy

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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Craig McClanahan
On 12/16/05, Patrick Lightbody <[EMAIL PROTECTED]> wrote:
>
> This sounds familiar :)
>
> I definitely would recommend changing the slides and title of the
> presentation. Just yesterday I ran in to this:
>
>
> http://javasymposium.techtarget.com/html/det_descriptions.htm#McClanahanShale
>
> Changing the title to something like "Shale: the Struts Component
> Framework" would certainly clear this up. We need to be firm and clear
> on the idea that Struts has many sub-projects, and two major
> frameworks: an Action framework and a Component framework.


Based on your comments at the BOF, I submitted a request to change that
title (which had been submitted even before the ApacheCon talk :-).

Patrick


Craig

On 12/16/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
> > With some people like Craig McClanahan delivering talks at significant
> > conferences entitled with contrary ideas like "Is Shale the next
> Struts",
> > you might excuse people for thinking that this "subproject" ruse is
> > baloney.  I didn't fall off the turnip truck yesterday and I have read
> all
> > about the Trojan Horse.
> >
> > On 12/15/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > By the way, the original decision to incorporate Shale as a subproject
> > > occurred nearly 11 months ago:
> > >
> > >   http://marc.theaimsgroup.com/?l=struts-user&m=110651419515521&w=2
> > >
> > > -- Paul
> > >
> > >
> > > Craig
> > >
> > >
> >
> >
> > --
> > "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: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Frank W. Zammetti
I understand what your saying, and even agree, but on the point of
marketing... granted, none of us, whether committer or not, is here to do
marketing, but isn't there a certain degree of responsibility
(potentially) to not confuse the market when there is precedent?

I mean, if I wanted to change the name of Java Web Parts tomorrow, it
isn't like a huge chunk of the world is using it and would be confused by
that (I'm happy to say its a growing chunk though!).  Struts, being the de
facto Java development framework at this point, and for some time now, I
think forces a certain degree of responsibility on those stewarding it to
be a little more careful.  Is that not a reasonable position to take?

I want to say again that I think you and the rest of the committers have
done a good job over the past few weeks of removing a lot of the confusion
that I and others saw a while ago.  I think Shale's position has been
clarified as well, so this is more of a philosophical discussion at this
point, Darwin would appear to have done his thing already in the real
world :)

Frank

On Fri, December 16, 2005 12:43 pm, Ted Husted said:
> On 12/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> unreasonable.  Is Struts an umbrella for two different paths, Shale and
>> Action Framework, or is Shale really potentially the next Struts?  I do
>> think there is a contradiction there.
>
> One of the core Apache beliefs is that "Darwin decides". An ASF
> project does not have an "alpha geek" that makes all the decisions. We
> come to decisions collaboratively over time.
>
> One of the reasons we like to give new proposals and codebases names
> is because we don't want to decide until we see the code and try it
> for ourselves. It's very possible, even probable, that Ti will be the
> next Action, but, until we see more of the code, and migrate some of
> our own applications, we're reluncant to drop the codename.
>
> If we were subject to a marketing department, we might do things
> differently. But, we are all just engineers here, making decisions
> based on engineering principles alone. I know that some people think
> we should make decisions based on marketing principles. But I don't
> believe the committers came here for the marketing. We came here to
> collaborate on the engineering.
>
> We aren't Sun and we aren't Microsoft, or even Linus. We aren't going
> to tell you what product you should be using in your own application.
> That's your decision. We like to share our own engineering decisions
> with the group, but, only because we are always looking for new people
> to collaborate with us on the engineering.
>
>>From an engineering perspective, being able to work on both Shale/JSF
> and Action/JSP is an exciting idea. The frameworks are different in
> many ways, but alike in many others. Moving forward, I think we can
> find many places where the frameworks can share more code and more
> ideas. As always, we are still inventing the future.
>
>
> -Ted.
>
> -
> 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: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Ted Husted
On 12/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> unreasonable.  Is Struts an umbrella for two different paths, Shale and
> Action Framework, or is Shale really potentially the next Struts?  I do
> think there is a contradiction there.

One of the core Apache beliefs is that "Darwin decides". An ASF
project does not have an "alpha geek" that makes all the decisions. We
come to decisions collaboratively over time.

One of the reasons we like to give new proposals and codebases names
is because we don't want to decide until we see the code and try it
for ourselves. It's very possible, even probable, that Ti will be the
next Action, but, until we see more of the code, and migrate some of
our own applications, we're reluncant to drop the codename.

If we were subject to a marketing department, we might do things
differently. But, we are all just engineers here, making decisions
based on engineering principles alone. I know that some people think
we should make decisions based on marketing principles. But I don't
believe the committers came here for the marketing. We came here to
collaborate on the engineering.

We aren't Sun and we aren't Microsoft, or even Linus. We aren't going
to tell you what product you should be using in your own application.
That's your decision. We like to share our own engineering decisions
with the group, but, only because we are always looking for new people
to collaborate with us on the engineering.

>From an engineering perspective, being able to work on both Shale/JSF
and Action/JSP is an exciting idea. The frameworks are different in
many ways, but alike in many others. Moving forward, I think we can
find many places where the frameworks can share more code and more
ideas. As always, we are still inventing the future.


-Ted.

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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Frank W. Zammetti
On Fri, December 16, 2005 12:10 pm, Patrick Lightbody said:
> Craig committed to changing his slides moving forward and attributed
> it to an honest mistake and a case of "laziness" :)

There was a time where I would have doubted that, but that is what I was
referring to before when I said I regretted certain things I have said in
the past.  My opinion has since changed on the subject.

> I have no reason
> to doubt that he will be changing this in the coming days and weeks.

Nor do I, and I have no problem whatsoever believing it is exactly as he
says.

Thank for passing this info along Patrick :)

Frank

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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Dakota Jack
I have never had a concern about the "umbrella" idea, which is the latest
description of what is happening.  I would in fact encourage that and cannot
see any problem with it.  However, I pay more attention to people's feet
than their lips.  "Is Shale the Next Struts?" is the feet.  The community is
not served by the whole panoply of things similar to that which have been
fast and furious over the year plus.  If there were a consistent message and
this change of tune when addressing the "outer world" was not the norm, then
I would have no qualms.  However, with the data and the facts the way they
are, I think it is naive to expect that Craig really is interested in
community.  I do not disparage Craig in saying that.  He doesn't have to be
interested in anything.  I just don't feel like being an unwitting toady.

On 12/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
> And I too have made some disparaging comments about certain things
> (Shale/JSF/Craig) in the past (although I regret much of it, especially
> the things with regard to Craig directly, so I'm not about to do the
> Googling for you!)... However, I have come to see the "Struts Umbrella"
> approach as being not necessarily bad or contradictory.
>
> That being said, I also don't see Dakotas' point as being completely
> unreasonable.  Is Struts an umbrella for two different paths, Shale and
> Action Framework, or is Shale really potentially the next Struts?  I do
> think there is a contradiction there.  Dakota may see a conspiracy, I
> think its more likely just some unfortunate choices or maybe just
> unfortunate timing.  But either way, I *do* think it is confusing for
> people.
>
> I do have to say that I thought the situtation was worse a few weeks ago,
> and to their credit I think the Struts committers have done a good job of
> disambiguating what the struture is.  Kudos for that.  Now as long as
> things stick to that structure, after the initial shock people may
> experience over learning "Struts" isn't quite what it was before, I think
> things will go pretty smoothly.
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
>
> On Fri, December 16, 2005 11:07 am, Patrick Lightbody said:
> > I think I can offer a somewhat unique perspective. As an "outsider" to
> > Struts and someone who has spent 3 years living in the "WebWork
> > world", I only recently many of the Struts developers and community
> > this week at ApacheCon. Having been in a room talking about this very
> > issue with Ted, Don, Craig, Martin, Neil, Clinton, and others, I can
> > say without a doubt that everyone is on board with this vision of
> > Struts as a community and two parallel frameworks.
> >
> > More so, we are all in agreement that we will collaborate wherever
> > possible, including:
> >
> >  - common set of Java 5 annotations
> >   - similar style configuration tricks (auto-reloading, consistent use
> > of DTD or XML schema, etc)
> >  - validation engine
> >  - internationalization
> >  - possibly some tags even
> >
> > I'd also like to add that whatever the history has been, today I see
> > Struts as a unique offering. In the web development space (regardless
> > of language), there are two schools of thoughts:
> >
> >  - action frameworks: bind requests to methods in beans
> >  - event/component frameworks: don't worry about URLs as much and bind
> to
> > events
> >
> > I think it is fair to say that marketplace of developers has not yet
> > decided that one of these is a clear "winner". Struts, as a community,
> > is uniquely positioned to offer both options and is best prepared for
> > the day when that winner is declared. We all agreed that when that day
> > comes, by working together in other areas (validation, i18n, config,
> > annotations, etc) not only will the code be easy to merge, but the
> > community will be too. No other web development community offers this.
> >
> > As someone who has said some pretty disparaging remarks about Struts
> > technolog and community in the part (I'll do the google search for
> > you:
> >
> http://blogs.opensymphony.com/plightbo/2003/10/webwork_docaday_struts_really.html)
> ,
> > I can comfortably say I made a big mistake in choosing to create a
> > divide but that I've learned from that mistake and that is why I am
> > here today.
> >
> > And I believe that everyone in the Struts community is also on board
> > to continue the grow the spirit of cooperation, not only between
> > Struts Action and WebWork, but between Struts Action and Struts Shale.
> >
> > Patrick
> >
> > On 12/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> >> I think it is fair to say that many of us have made similar comments
> >> over
> >> the past few months, and have every time been basically told that it is
> >> our problem we are not "getting it".  Usually we've been told nicely,
> >> but
> >> not always.  That i

Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Frank W. Zammetti
And I too have made some disparaging comments about certain things
(Shale/JSF/Craig) in the past (although I regret much of it, especially
the things with regard to Craig directly, so I'm not about to do the
Googling for you!)... However, I have come to see the "Struts Umbrella"
approach as being not necessarily bad or contradictory.

That being said, I also don't see Dakotas' point as being completely
unreasonable.  Is Struts an umbrella for two different paths, Shale and
Action Framework, or is Shale really potentially the next Struts?  I do
think there is a contradiction there.  Dakota may see a conspiracy, I
think its more likely just some unfortunate choices or maybe just
unfortunate timing.  But either way, I *do* think it is confusing for
people.

I do have to say that I thought the situtation was worse a few weeks ago,
and to their credit I think the Struts committers have done a good job of
disambiguating what the struture is.  Kudos for that.  Now as long as
things stick to that structure, after the initial shock people may
experience over learning "Struts" isn't quite what it was before, I think
things will go pretty smoothly.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Fri, December 16, 2005 11:07 am, Patrick Lightbody said:
> I think I can offer a somewhat unique perspective. As an "outsider" to
> Struts and someone who has spent 3 years living in the "WebWork
> world", I only recently many of the Struts developers and community
> this week at ApacheCon. Having been in a room talking about this very
> issue with Ted, Don, Craig, Martin, Neil, Clinton, and others, I can
> say without a doubt that everyone is on board with this vision of
> Struts as a community and two parallel frameworks.
>
> More so, we are all in agreement that we will collaborate wherever
> possible, including:
>
>  - common set of Java 5 annotations
>   - similar style configuration tricks (auto-reloading, consistent use
> of DTD or XML schema, etc)
>  - validation engine
>  - internationalization
>  - possibly some tags even
>
> I'd also like to add that whatever the history has been, today I see
> Struts as a unique offering. In the web development space (regardless
> of language), there are two schools of thoughts:
>
>  - action frameworks: bind requests to methods in beans
>  - event/component frameworks: don't worry about URLs as much and bind to
> events
>
> I think it is fair to say that marketplace of developers has not yet
> decided that one of these is a clear "winner". Struts, as a community,
> is uniquely positioned to offer both options and is best prepared for
> the day when that winner is declared. We all agreed that when that day
> comes, by working together in other areas (validation, i18n, config,
> annotations, etc) not only will the code be easy to merge, but the
> community will be too. No other web development community offers this.
>
> As someone who has said some pretty disparaging remarks about Struts
> technolog and community in the part (I'll do the google search for
> you:
> http://blogs.opensymphony.com/plightbo/2003/10/webwork_docaday_struts_really.html),
> I can comfortably say I made a big mistake in choosing to create a
> divide but that I've learned from that mistake and that is why I am
> here today.
>
> And I believe that everyone in the Struts community is also on board
> to continue the grow the spirit of cooperation, not only between
> Struts Action and WebWork, but between Struts Action and Struts Shale.
>
> Patrick
>
> On 12/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>> I think it is fair to say that many of us have made similar comments
>> over
>> the past few months, and have every time been basically told that it is
>> our problem we are not "getting it".  Usually we've been told nicely,
>> but
>> not always.  That isn't the point though,  The point is that this is not
>> a
>> new complaint by any stretch, and it has previously been dismissed on
>> many
>> occasions by more than one person.
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>> AIM: fzammetti
>> Yahoo: fzammetti
>> MSN: [EMAIL PROTECTED]
>>
>> On Fri, December 16, 2005 10:37 am, Patrick Lightbody said:
>> > This sounds familiar :)
>> >
>> > I definitely would recommend changing the slides and title of the
>> > presentation. Just yesterday I ran in to this:
>> >
>> > http://javasymposium.techtarget.com/html/det_descriptions.htm#McClanahanShale
>> >
>> > Changing the title to something like "Shale: the Struts Component
>> > Framework" would certainly clear this up. We need to be firm and clear
>> > on the idea that Struts has many sub-projects, and two major
>> > frameworks: an Action framework and a Component framework.
>> >
>> > Patrick
>> >
>> > On 12/16/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
>> >> With some people l

Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Dakota Jack
I have no reservations about your sincerity, Patrick, and I am glad to find
you at Struts.  Welcome!  However, I would be careful if I were you about
being sanguine about your new companions.  I hope things turn out as you
have indicated.

On 12/16/05, Patrick Lightbody <[EMAIL PROTECTED]> wrote:
>
> I think I can offer a somewhat unique perspective. As an "outsider" to
> Struts and someone who has spent 3 years living in the "WebWork
> world", I only recently many of the Struts developers and community
> this week at ApacheCon. Having been in a room talking about this very
> issue with Ted, Don, Craig, Martin, Neil, Clinton, and others, I can
> say without a doubt that everyone is on board with this vision of
> Struts as a community and two parallel frameworks.
>
> More so, we are all in agreement that we will collaborate wherever
> possible, including:
>
> - common set of Java 5 annotations
>   - similar style configuration tricks (auto-reloading, consistent use
> of DTD or XML schema, etc)
> - validation engine
> - internationalization
> - possibly some tags even
>
> I'd also like to add that whatever the history has been, today I see
> Struts as a unique offering. In the web development space (regardless
> of language), there are two schools of thoughts:
>
> - action frameworks: bind requests to methods in beans
> - event/component frameworks: don't worry about URLs as much and bind to
> events
>
> I think it is fair to say that marketplace of developers has not yet
> decided that one of these is a clear "winner". Struts, as a community,
> is uniquely positioned to offer both options and is best prepared for
> the day when that winner is declared. We all agreed that when that day
> comes, by working together in other areas (validation, i18n, config,
> annotations, etc) not only will the code be easy to merge, but the
> community will be too. No other web development community offers this.
>
> As someone who has said some pretty disparaging remarks about Struts
> technolog and community in the part (I'll do the google search for
> you:
> http://blogs.opensymphony.com/plightbo/2003/10/webwork_docaday_struts_really.html)
> ,
> I can comfortably say I made a big mistake in choosing to create a
> divide but that I've learned from that mistake and that is why I am
> here today.
>
> And I believe that everyone in the Struts community is also on board
> to continue the grow the spirit of cooperation, not only between
> Struts Action and WebWork, but between Struts Action and Struts Shale.
>
> Patrick
>
> On 12/16/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> > I think it is fair to say that many of us have made similar comments
> over
> > the past few months, and have every time been basically told that it is
> > our problem we are not "getting it".  Usually we've been told nicely,
> but
> > not always.  That isn't the point though,  The point is that this is not
> a
> > new complaint by any stretch, and it has previously been dismissed on
> many
> > occasions by more than one person.
> >
> > --
> > Frank W. Zammetti
> > Founder and Chief Software Architect
> > Omnytex Technologies
> > http://www.omnytex.com
> > AIM: fzammetti
> > Yahoo: fzammetti
> > MSN: [EMAIL PROTECTED]
> >
> > On Fri, December 16, 2005 10:37 am, Patrick Lightbody said:
> > > This sounds familiar :)
> > >
> > > I definitely would recommend changing the slides and title of the
> > > presentation. Just yesterday I ran in to this:
> > >
> > >
> http://javasymposium.techtarget.com/html/det_descriptions.htm#McClanahanShale
> > >
> > > Changing the title to something like "Shale: the Struts Component
> > > Framework" would certainly clear this up. We need to be firm and clear
> > > on the idea that Struts has many sub-projects, and two major
> > > frameworks: an Action framework and a Component framework.
> > >
> > > Patrick
> > >
> > > On 12/16/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
> > >> With some people like Craig McClanahan delivering talks at
> significant
> > >> conferences entitled with contrary ideas like "Is Shale the next
> > >> Struts",
> > >> you might excuse people for thinking that this "subproject" ruse is
> > >> baloney.  I didn't fall off the turnip truck yesterday and I have
> read
> > >> all
> > >> about the Trojan Horse.
> > >>
> > >> On 12/15/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> > >> >
> > >> >
> > >> > By the way, the original decision to incorporate Shale as a
> subproject
> > >> > occurred nearly 11 months ago:
> > >> >
> > >> >   http://marc.theaimsgroup.com/?l=struts-user&m=110651419515521&w=2
> > >> >
> > >> > -- Paul
> > >> >
> > >> >
> > >> > Craig
> > >> >
> > >> >
> > >>
> > >>
> > >> --
> > >> "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: how to customize applicationresources

2005-12-16 Thread Danny Lee

That's cool!

Can you change the values dynamicaly in run-time,
so it works without the need to restart the app?

Greets,


Danny


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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Frank W. Zammetti
I think it is fair to say that many of us have made similar comments over
the past few months, and have every time been basically told that it is
our problem we are not "getting it".  Usually we've been told nicely, but
not always.  That isn't the point though,  The point is that this is not a
new complaint by any stretch, and it has previously been dismissed on many
occasions by more than one person.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Fri, December 16, 2005 10:37 am, Patrick Lightbody said:
> This sounds familiar :)
>
> I definitely would recommend changing the slides and title of the
> presentation. Just yesterday I ran in to this:
>
> http://javasymposium.techtarget.com/html/det_descriptions.htm#McClanahanShale
>
> Changing the title to something like "Shale: the Struts Component
> Framework" would certainly clear this up. We need to be firm and clear
> on the idea that Struts has many sub-projects, and two major
> frameworks: an Action framework and a Component framework.
>
> Patrick
>
> On 12/16/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
>> With some people like Craig McClanahan delivering talks at significant
>> conferences entitled with contrary ideas like "Is Shale the next
>> Struts",
>> you might excuse people for thinking that this "subproject" ruse is
>> baloney.  I didn't fall off the turnip truck yesterday and I have read
>> all
>> about the Trojan Horse.
>>
>> On 12/15/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > By the way, the original decision to incorporate Shale as a subproject
>> > occurred nearly 11 months ago:
>> >
>> >   http://marc.theaimsgroup.com/?l=struts-user&m=110651419515521&w=2
>> >
>> > -- Paul
>> >
>> >
>> > Craig
>> >
>> >
>>
>>
>> --
>> "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 using Logic:equla tag.

2005-12-16 Thread Gary Feidt
Or you use:





Gary

>>> [EMAIL PROTECTED] 12/15/2005 6:52:42 AM >>>
Hi

Don't use this. Use the jstl tags instead. In this case 

If you read the tag doc's you will see that you are encouraged to
switch to the jstl tags in place og the struts tags. In so doing, use
the struts-el tag librarys

Hermod

-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 15, 2005 1:44 PM
To: Struts Users Mailing List
Subject: Problem with using Logic:equla tag.


Hi
I have a un-natural problem here

Im trying to use :
[code]




..



[/code]

it never enter the above block.
even i tried and showed  sysvar by using the following code line in the

browser
[code]
<%=sysvar%>
[/code]
I can see that its value
is loop bu there is no luck to enter the above block.
No my question is :
while the value that is inside sysvar is equal to what Im checking with

Struts logic tag , why it never enter the block ?
is it an encoding problem ?

can some one please tell me how to write that conditional block in JSTL
?
maybe JSTL Do it correctly.

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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR
cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* *
__

Confidentiality Statement:
This email/fax, including attachments, may include confidential and/or 
proprietary information and may be used only by the person or entity to which 
it is addressed. If the reader of this email/fax is not the intended recipient 
or his or her agent, the reader is hereby notified that any dissemination, 
distribution or copying of this email/fax is prohibited. If you have received 
this email/fax in error, please notify the sender by replying to this message 
and deleting this email or destroying this facsimile immediately.

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



Implementation of new row functionality of HTML table in Struts

2005-12-16 Thread Irfan Shaikh
Hi All,
 I am new to Struts and  need to implement a functionality where a
new row is added to table (generated using logic:iterate tag on JSP page )
on the fly(using javascript)  and handling newly added row in DynaActionForm
so that row gets saved to database. Need to know how to create a bean for
newly added row.

Suggestion will be highly appreciated.
Thanks in advance


Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Dakota Jack
With some people like Craig McClanahan delivering talks at significant
conferences entitled with contrary ideas like "Is Shale the next Struts",
you might excuse people for thinking that this "subproject" ruse is
baloney.  I didn't fall off the turnip truck yesterday and I have read all
about the Trojan Horse.

On 12/15/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
>
> By the way, the original decision to incorporate Shale as a subproject
> occurred nearly 11 months ago:
>
>   http://marc.theaimsgroup.com/?l=struts-user&m=110651419515521&w=2
>
> -- Paul
>
>
> Craig
>
>


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


Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-16 Thread Rick R
On 12/16/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
>
> Rick,
>
> Do you control the requirements? It's going to be an ugly screen with that
> :)


Agreed. For that example it was more so to exaggerate a problem that does
come up when dealing with more specific situations.

 In regard to the solution it seems like you were suggesting, it would
involve not only creating duplicate beans (not even ActionForms) simply to
meet the String only requirement. Populating these lists of lists of back
and forth doing domain POJO to yourStringsPOJOs would be very cumbersome
even if using BeanUtils.

While driving into work, I was thinking of how badly I got beat in my
fantasy football game this past weekend which got me thinking of another
typical example of having to use nested beans.

If you've played fantasy football before, or if you could just consider
being the manager of any sport's team, you might have to submit a weekly
lineup which involves looking at all your players and marking them 'active'
or 'bench' (real life more status' of course).

So let's imagine you were first tasked at the beginning of the season to
help out an NFL team. They needed a way to enter in their player data.
Backend returns a "Player":

Player object:
   String name
   Integer playingStatus;  //0 - bench  1 - active. DB holds Integer

(Again in real life I'd actually probably have a nested Status object here
which would give me more info on the status, such as Integer statusCode,
String statusName)

Now we need our ActionForm to enter this data:

PlayerActionForm
String name;
*String* playingStatus

Things are fine so far. Happy developers working for the NFL team.

Next we realize that we need to create a "Weekly Team Roster" screen where
the Manager can go and set his players as 'active' or 'inactive.' He likes
to do this by just entering in a 0 or 1, doesn't want to use a drop down
list.

So we want to see...

My Team

name status
 ---
John Doe   1
Fred Guy   0
//etc

Also imagine of course much more data, position, player address etc.  So the
question in scenario two becomes "What are you going to return from your
backend to display on the screen?" Normally I'd like to return a "Team"
object which would have a List of Players nested in it, but lets just make
it more simple and return a List of Employees that we need to update from
our ActionForm. Why would you not get back a List of "Player" objects? It
makes perfect sense - except we have one slight problem - we have that
Integer value for status.

It sounds like to me you are suggesting that we'd create a "brand new"
Player object that had some String properties in it. To me, this goes
against, the whole concept of object oriented programming and code reuse.
You are creating an identical object to the exisiting POJO where the only
difference is changing a few of the property types (ie number or date to
String).


Re: how to customize applicationresources

2005-12-16 Thread Rahul Akolkar
On 12/16/05, Sony Thomas <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I want to read my application resources from a database rather than
> using properties file. Do I need to extends MessageResoursces class in
> order to do this ?? Is there any examples of this or is ther any links
> which give some idea, how to do this??
>


Take a look at Commons Resources:

http://jakarta.apache.org/commons/resources/

Niall recently added a bunch of documentation as well:

http://wiki.apache.org/jakarta-commons/ResourcesUserGuideImplementations

-Rahul


> thanks all
>
> Sony
>

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



Re: chinese characters and bean tags

2005-12-16 Thread Rahul Akolkar
On 12/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > [EMAIL PROTECTED] wrote:

> >>> make sure that you have the UFT-8 charsett declared in the content type
> >>> of the response -- e.g. with <%@ page contentType="text/html;
> >>> charset=UTF-8"%> and/or HTML META-tags.
> >>>
> >>> L.
>
> So, here the most important part of my JSP code:
>
> 
> 
> test
> 
> 
>


Do you have the JSP page directive set as suggested above? The HTML
 tags are best considered to be "hints".

-Rahul


> <%
>
> /*
> * +++ TEST CASE 1 +++
> */
>
> // business logic for obtaining all hibernated objects
> BOGeneric bo = new BOGeneric();
> List l = bo.find("ChinaText", new Criterion[] {}, new Order[] {});
> pageContext.setAttribute("names", l);
>
> // runs it throung and prints out all the texts
> for (Iterator i=l.iterator(); i.hasNext();) {
>out.println(((ChinaText)i.next()).getText() + " : ");
> }
> %>
>
> 
> 
> -
> 
>
> In the first test case I get correct encoded chinese texts. In the second
> one I get only &# strings.
>


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



Re: how to customize applicationresources

2005-12-16 Thread Gareth Evans

Take a look at

http://jakarta.apache.org/commons/resources/

There is a JDBCMessageResourceFactory to load values from the database, in your struts-config file 
you can specify a different message resource factory class.


http://wiki.apache.org/jakarta-commons/ResourcesUserGuide

It works well for me!

Hope that helps,

Gareth

Danny Lee wrote:

The only easy solution I can think of is to write some application, 
which is performing DB->File transformation before MessageResoursces 
consumer-application starts.


But this is not a real solution, becouse you still can't change 
properties dynamicaly. I'm not sure if Struts allows you to do it at 
all... Maybe not (becouse otherway I suspect this feature would be 
implemented so far...)


cheers,

Danny

Sony Thomas schrieb:


Hi all,

I want to read my application resources from a database rather than 
using properties file. Do I need to extends MessageResoursces class in 
order to do this ?? Is there any examples of this or is ther any links 
which give some idea, how to do this??


thanks all

Sony




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




--
Gareth Evans

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:+44 (0)870 0100 704
Fax:+44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:www.msoft.co.uk

--
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
--
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.



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



RE: Specify a file name when using DownloadAction

2005-12-16 Thread Vu, Thai
Thanks so much for your answer. May I ask you to clarify what you said
(because I haven't understood much yet)?

I looked at these examples
(http://wiki.apache.org/struts/StrutsFileDownload) on using
DownloadAction and saw nothing like your code :( So I wonder if you
could post your whole Action file here.

Sincerely,

Thai

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 1:17 AM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Specify a file name when using DownloadAction


Hi,

  You can try with this, for me work fine

// Set the headers.
res.setContentType("application/x-download");
res.setHeader("Content-Disposition", "attachment; filename=" +
filename);

// Send the file.
OutputStream out = res.getOutputStream(  );
returnFile(filename, out);  // Shown earlier in the chapter






 

  "Vu, Thai"

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

   bcc:

  15/12/2005 19:56 Subject:  Specify a file
name when using DownloadAction   
  Please respond to

  "Struts Users

  Mailing List"

 

 

 

 

 





Does anybody know how to specify a file name when we use DownloadAction
to send a file to users?

Sincerely,

Thai


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



Back Button Problem..

2005-12-16 Thread Priya Saloni
Hi there,

I facing a BIG problem in my struts based application.When i logout my
website and hit back button it showing a page like the following

//
 Warning: Page has Expired
The page you requested was created using information you submitted in a
form. This page is no longer available. As a security precaution, Internet
Explorer does not automatically resubmit your information for you.

To resubmit your information and view this Web page, click the *Refresh*button.


//

When i refresh the page its showing the secured web pages too.My code in
LogoutAction is as follows

request.getSession().removeAttribute("sessionState");
request.getSession().invalidate();
response.sendRedirect("/BMS/logout_success.jsp");

sessionState is the VO where iam keeping all the objects  i want to keep in
session..Is there any way in struts to make sure that it won't display the
page like above..

Thanks

Priya.


Re: how to customize applicationresources

2005-12-16 Thread Danny Lee
The only easy solution I can think of is to write some application, 
which is performing DB->File transformation before MessageResoursces 
consumer-application starts.


But this is not a real solution, becouse you still can't change 
properties dynamicaly. I'm not sure if Struts allows you to do it at 
all... Maybe not (becouse otherway I suspect this feature would be 
implemented so far...)


cheers,

Danny

Sony Thomas schrieb:

Hi all,

I want to read my application resources from a database rather than 
using properties file. Do I need to extends MessageResoursces class in 
order to do this ?? Is there any examples of this or is ther any links 
which give some idea, how to do this??


thanks all

Sony



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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Gary VanMatre
>From: Alexandre Poitras <[EMAIL PROTECTED]> 
> By the way, is David Geary still working on Shale or has quit? There 
> has been nothing new on his blog since this summer. 
> 

Well, I think that he just has allot going on right now.  I guess it takes some 
time to write two books on different technologies as his blog indicates.

I believe that he was speaking at Javapolis on Shale which says to me that he 
is still active but, maybe not taking the time to work thru the hundreds of 
daily messages on the struts lists.
Gary

Re: The Age-Old problem of validation when you have Nested Items- opinions and Dyna question

2005-12-16 Thread Paul Benedict
Rick,

Do you control the requirements? It's going to be an ugly screen with that :) 
Web applications
should be concerned with doing one unit of task at a time, if possible, because 
it does simplfy
development and help the user focus on what needs to be typed.

Still, I don't see this problem as insurmountable. As long as you don't mind 
having ugly screens,
you can; and what is probably goign to make your screen ugly is the 
requirements, which mandate
all too much input data on one screen. I think you're pigeonholed here so do 
the best you can.

class CompanyInput {
  private Company o;
  private List divisionInput;
  private String inputAttr1;
  private String inputAttr2;
}

class DivisionInput {
  private Division o;
  private List deptInput;
  private String inputAttr1;
  private String inputAttr2;
}

class DepartmentInput {
  private Department o;
  private String inputAttr1;
  private String inputAttr2;
}

You just have to create an input model that reflects what you want to capture. 
There's nothing
really more I can do for you; you have lousy requirements so make the best of 
them. Break up the
input into different pages for a better time.

Paul

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

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



RE: how to customize applicationresources

2005-12-16 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
I am also looking like this,
If any one know please let me know.


-Original Message-
From: Sony Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 16, 2005 3:55 PM
To: user@struts.apache.org
Subject: how to customize applicationresources

Hi all,

I want to read my application resources from a database rather than 
using properties file. Do I need to extends MessageResoursces class in 
order to do this ?? Is there any examples of this or is ther any links 
which give some idea, how to do this??

thanks all

Sony

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

-- 
Greetings!

 


ICICI Infotech is now 3i Infotech.


The e-mail addresses of the company's employees have been changed to @3i-infotech.com. You are requested to take note of this new e-mail ID and 
make use of the same in future

 
"This e-mail message may contain confidential, proprietary or legally 
privileged information. It should not be used by anyone who is not the original 
intended recipient. If you have erroneously received this message, please 
delete it immediately and notify the sender. The recipient acknowledges that 3i 
Infotech or its subsidiaries and associated companies, (collectively "3i 
Infotech"), are unable to exercise control or ensure or guarantee the integrity 
of/over the contents of the information contained in e-mail transmissions and 
further acknowledges that any views expressed in this message are those of the 
individual sender and no binding nature of the message shall be implied or 
assumed unless the sender does so expressly with due authority of 3i Infotech. 
Before opening any attachments please check them for viruses and defects."



how to customize applicationresources

2005-12-16 Thread Sony Thomas

Hi all,

I want to read my application resources from a database rather than 
using properties file. Do I need to extends MessageResoursces class in 
order to do this ?? Is there any examples of this or is ther any links 
which give some idea, how to do this??


thanks all

Sony

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



Re: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Alexandre Poitras
By the way, is David Geary still working on Shale or has quit? There
has been nothing new on his blog since this summer.

On 12/16/05, Bernhard Slominski <[EMAIL PROTECTED]> wrote:
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag
> > von Craig
> >
> > I'd be happy to answer any specific questions on points that
> > are in the
> > slides.
> >
>
> I realized that all features are documented except for the "Remoting" one
> http://struts.apache.org/struts-shale/features-remoting.html
> As this combines the "hottest" topics around (JSF, AJAX) it would be nice to
> have a few words about it.
>
> Thanks
>
> Bernhard
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Alexandre Poitras
Québec, Canada

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



AW: [ANNOUNCEMENT] Apache Struts offers "Shale" for JSF

2005-12-16 Thread Bernhard Slominski
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag 
> von Craig
> 
> I'd be happy to answer any specific questions on points that 
> are in the
> slides.
> 

I realized that all features are documented except for the "Remoting" one
http://struts.apache.org/struts-shale/features-remoting.html
As this combines the "hottest" topics around (JSF, AJAX) it would be nice to
have a few words about it.

Thanks

Bernhard

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



Re: chinese characters and bean tags

2005-12-16 Thread news
> [EMAIL PROTECTED] wrote:
 I have problem to show chinese characters stored in MySQL database
 with
 use of struts bean tag. Data is read out using Hibernate. When I call
 myHibernateObject.getMyProperty() method - everything works fine. But
 using 
 does
 show text in this notation: &# &#. Same problem occurres when
 I
 use this bean in struts form with >>> property="myProperty"/>

 Encoding of database is set up properly to gb2312. JSP page uses UTF-8
 encoding. How can I set character encoding for struts bean tag ? Or
 where
 is the problem ?
>>> How are you verifying that what you get back from the database is
>>> correct? If anywhere in the data retrieval pipeline is using the wrong
>>> encoding, you'll get corrupted data. Try hard-coding an output value to
>>> see if you are able to display that correctly.
>>>
>>> If that fails, it must be something in the way you've written your JSP;
>>> make sure that you have the UFT-8 charsett declared in the content type
>>> of the response -- e.g. with <%@ page contentType="text/html;
>>> charset=UTF-8"%> and/or HTML META-tags.
>>>
>>> L.

So, here the most important part of my JSP code:



test



<%

/*
* +++ TEST CASE 1 +++
*/

// business logic for obtaining all hibernated objects
BOGeneric bo = new BOGeneric();
List l = bo.find("ChinaText", new Criterion[] {}, new Order[] {});
pageContext.setAttribute("names", l);

// runs it throung and prints out all the texts
for (Iterator i=l.iterator(); i.hasNext();) {
out.println(((ChinaText)i.next()).getText() + " : ");
}
%>



 -


In the first test case I get correct encoded chinese texts. In the second
one I get only &# strings.

>>>
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> I have verified it with <%=myObject.getProperty()%> in the JSP. In this
>> case I got chinese string with right encoding. But using > name="myObject" property="property"/> produces string in this wrong
>> encoding format: &#. Charset of the JSP page is set to UTF-8.
>
> In that case I'm not sure what's going on... Can you post a short JSP
> fragment that demonstrates the problem?
>
> L.
>
>
> -
> 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]