Re: tiles multi-channels

2006-03-01 Thread Antonio Petrelli

Zoran Avtarovski ha scritto:

I've had a look at Dimensions and that delivers exactly what we need. It's a
shame that tiles doesn't have multi-channel support out of the box.

  
It is not a "shame" simply because Tiles concentrates on building 
templates, not on multi-channel support. In fact Tiles has a partial 
multi-channel support (for localization).
Anyway, for "par condicio" :-P maybe you are interested also in Mylin 
products Tinak and Smooks:

http://milyn.codehaus.org/
Ciao
Antonio

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



Re: auto reloading of application resources.properties

2006-03-01 Thread Thomas Joseph
Thanks Frank, from a great lot of people in this mailing list, who have had
earlier had this problem taking a good number of threads and still unable to
find a good solution.

Thanks a lot!


> Have a look here:
>
>
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=
007061
>
> Frank
>
> Roy, Ansuman wrote:
> > Hi,
> > I have a struts application which is connected to a content management
system via web service. The content management
> > system produces the ApplicationResources.properties file. Now I what i
observed is that anytime i replace the old
> > application resources, I have to manually restart the application. Now
is there a way to prevent my web server from restarting.
> > I dont want to reload the servlet context as it will log off all the
existing sessions.
> > Any suggestions for this one??
> >
> > Thanks in advance,
> > regards,
> > Anshuman
> >

Thomas Joseph



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



Re: MESS!: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Dakota Jack
The Action class is not the controller.  The controller is the class that
chooses the Action class.

On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> On 3/1/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> > I got the ok on switching to 1.2.8, and I will also try your method this
> > afternoon. I appreciate everyones responses. In the mean time, I have
> > some design issues and questions:
> >
> > Does the old lookupdispatch action sometimes loose stuff that lives on
> > the form??
>
> An action (if you mean action class) cannot lose stuff from the form.
> An action is just a "C in MVC" and it is stateless. I will answer the
> checkbox question further in this reply.
>
> > I have a very complicated form. I am trying to find an easier way of
> > programming it.
>
> You can have either one solid page or a composite page that contains
> different self-sufficient components.
>
> If you have one solid page, then I would say process it with one (or
> two) actions. Make the submit action a dispatch-type action (like you
> already did) and channel all page events to submit action. The render
> action would fill out and display the page. This is what you are
> already doing.
>
> If you prefer to have a composite page, then you can either use
> something like Tiles (never used it) or you can use other component
> technology. In this case you can have as many actions as many
> subcomponents you have. I don't want to advise any specific component
> technology, it all depends on taste. I have my own implementation, but
> it is in alpha stage so I don't want to mess your production
> environment.
>
> 
>
> > Then I also have other functionality called: SelectNow which allows
> > selecting groups of records based on criteria.
> >
> >
> > On the design side, I have 2 actions: an InitAction which pulls the
> > records out of the database and puts them in  queryResults[] that lives
> > in the form bean.
> >
> > Then I have the actions which go thru the old lookupdispatch thing,
> > except for the google type links which send processing via html:link
> > forward to the RetrieveInitAction
> >
> > The most disturbing issues I've run across now is that If I use the
> > dispatch button that checks All records on the screen. The data gets to
> > the database, and redraws the records on the screen as checked. But when
> > I go to uncheck a few, and hit the update page button, which reads the
> > form and looks for checkboxes unchecked or checked... they all show up
> > as checked again.
>
> This is a known issue, more like HTTP thing than Struts. Unchecked
> radiobuttons and checkboxes are not sent to the server by browser, so
> when you submit a form, you need to clear checkboxes before ActionForm
> is populated. The only place to do this is ActionForm.reset() method.
> Clear all checkboxes and do not set them with data from database. When
> form is populated from the request, the checked checkboxes will be
> set.
>
> Michael.
>
> -
> 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~


Re: Struts Dialog

2006-03-01 Thread anil_a


It took me while to figure it out. This is the order.

Read http://www.superinterface.com/ewfsm.htm.

1. Read the article:
http://today.java.net/pub/a/today/2005/03/15/webwizard1.htm

2. Download the  source for rule engine from :   
http://today.java.net/today/2005/03/15/rulecontainer_src.jar

So you can play with it and get an idea how it works.

3. Move to the article at 
http://today.java.net/pub/a/today/2005/03/29/webwizard2.htm?page=1


4. Then try the source for that. (bottom of the article)

5.  More info on the http://www.superinterface.com/easywizard.htm

The author of Struts Dialog is Michael Jouravlev 
 and he is on this list.


rukka




Shiby Maria John wrote:


Where can i read about struts dialog? I am new to it




-
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: auto reloading of application resources.properties

2006-03-01 Thread Frank W. Zammetti

Have a look here:

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=007061

Frank

Roy, Ansuman wrote:

Hi,
I have a struts application which is connected to a content management system 
via web service. The content management
system produces the ApplicationResources.properties file. Now I what i observed 
is that anytime i replace the old
application resources, I have to manually restart the application. Now is there 
a way to prevent my web server from restarting.
I dont want to reload the servlet context as it will log off all the existing 
sessions.
Any suggestions for this one??

Thanks in advance,
regards,
Anshuman

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

2006-03-01 Thread Shiby Maria John

Where can i read about struts dialog? I am new to it




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



Re: Struts Dialog

2006-03-01 Thread anil_a


Thank you for quick reply Michael.
Yes I am talking about Struts Dialogs. 

So I guess service layer calls should be made from WizardNode validate 
method.


I see how you integrate rule engine with struts in your second article.

Struts Dialog looks really cool.

rukka



Michael Jouravlev wrote:


On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
 


Hi All

I have look at struts dialog to implement wizard kind of screen flow. I
looks good. (took some time to understand that too).
   



Right... I know that current version is... er... overengineered. The
new version will be much simpler.

 


I have two questions?

1. If  I have to make some calls to service layer to validate data
entered , where do I make that call?
   



I assume that you are indeed talking about Struts Dialogs, not about
Shale Dialogs. In the wizard solution that is used in Struts Dialogs
validation is the integral part of the wizard flow. Depending on
validity of a particular transition wizard decides what the next step
will be. This is used to create non-linear wizards where you can skip
one or several steps depending on a certain condition.

Therefore validation should be performed by the wizard, not by an ActionForm.

 


2. How scable is this solution??  My estimate is about 100 users at a
time on webspere.
   



No scalability tests were done, but I would say that 100 users is not a lot.

Michael.

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


 




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



auto reloading of application resources.properties

2006-03-01 Thread Roy, Ansuman
Hi,
I have a struts application which is connected to a content management system 
via web service. The content management
system produces the ApplicationResources.properties file. Now I what i observed 
is that anytime i replace the old
application resources, I have to manually restart the application. Now is there 
a way to prevent my web server from restarting.
I dont want to reload the servlet context as it will log off all the existing 
sessions.
Any suggestions for this one??

Thanks in advance,
regards,
Anshuman

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



Re: Struts Dialog

2006-03-01 Thread Michael Jouravlev
On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi All
>
> I have look at struts dialog to implement wizard kind of screen flow. I
> looks good. (took some time to understand that too).

Right... I know that current version is... er... overengineered. The
new version will be much simpler.

> I have two questions?
>
> 1. If  I have to make some calls to service layer to validate data
> entered , where do I make that call?

I assume that you are indeed talking about Struts Dialogs, not about
Shale Dialogs. In the wizard solution that is used in Struts Dialogs
validation is the integral part of the wizard flow. Depending on
validity of a particular transition wizard decides what the next step
will be. This is used to create non-linear wizards where you can skip
one or several steps depending on a certain condition.

Therefore validation should be performed by the wizard, not by an ActionForm.

> 2. How scable is this solution??  My estimate is about 100 users at a
> time on webspere.

No scalability tests were done, but I would say that 100 users is not a lot.

Michael.

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



Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Michael Jouravlev
Because you cannot make changes to Ted's personal site.

On 3/1/06, Lixin Chu <[EMAIL PROTECTED]> wrote:
> why not consolidate all into one place ? Struts planet, struts central,
> wiki, etc ?
>
> On 3/2/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> >
> > Why not to expand and improve Struts wiki?
> >
> > On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > > There is a small resource directory on the Struts wiki, but it lists
> > > only a fraction of the resources that are available. Ditto for the
> > > Struts SourceForge directory and the Java 201 directory. There are
> > > other Struts resource directories, but they tend to be incomplete and
> > > do not reflect the true breadth of the Apache Struts community.
> > >
> > > As Apache Struts continues to grow, I'd like to get back to basics.
> > > For me, one of those basics is a comprehensive, up-to-date resource
> > > directory -- like the original directory that I maintained at Husted
> > > dot Com, back in the day.
> > >
> > > -T.
> > >
> > > On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > > > How is this better than Struts wiki?
> > > >
> > > > On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > > > > Struts Central collects, organizes, and maintains links to all known
> > > > > Struts Resources, including articles, books, and third-party
> > > > > extensions.
> > > > >
> > > > > You can visit Struts Central at < http://www.StrutsCentral.net/ >.
> > > > >
> > > > > -- HTH, Ted.
> > > > > http://husted.com/ted/blog/

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



Struts Dialog

2006-03-01 Thread anil_a

Hi All

I have look at struts dialog to implement wizard kind of screen flow. I 
looks good. (took some time to understand that too).


I have two questions?

1. If  I have to make some calls to service layer to validate data 
entered , where do I make that call?
   

2. How scable is this solution??  My estimate is about 100 users at a 
time on webspere.


thank you in advance for any replies.


rukka

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



Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Lixin Chu
why not consolidate all into one place ? Struts planet, struts central,
wiki, etc ?

On 3/2/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> Why not to expand and improve Struts wiki?
>
> On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > There is a small resource directory on the Struts wiki, but it lists
> > only a fraction of the resources that are available. Ditto for the
> > Struts SourceForge directory and the Java 201 directory. There are
> > other Struts resource directories, but they tend to be incomplete and
> > do not reflect the true breadth of the Apache Struts community.
> >
> > As Apache Struts continues to grow, I'd like to get back to basics.
> > For me, one of those basics is a comprehensive, up-to-date resource
> > directory -- like the original directory that I maintained at Husted
> > dot Com, back in the day.
> >
> > -T.
> >
> > On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > > How is this better than Struts wiki?
> > >
> > > On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > > > Struts Central collects, organizes, and maintains links to all known
> > > > Struts Resources, including articles, books, and third-party
> > > > extensions.
> > > >
> > > > You can visit Struts Central at < http://www.StrutsCentral.net/ >.
> > > >
> > > > -- HTH, Ted.
> > > > http://husted.com/ted/blog/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[HELP] checking upload file is exist or not ...

2006-03-01 Thread Pham Anh Tuan
hi all,

I don't know how we can get the fullpath of the upload file :(


I want to check whether or not the upload file is exist, so, I use fullpath to 
create File, and use exist method of File to check file is exist or not.

help me!

thanks in advance

bowlkhin

Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Frank W. Zammetti
While I agree they do this (it happened to me once), that is a risk you 
run in ANY shared hosting environment... an admin has to make a quick 
decision that will keep the other people sharing your box running, and 
many times the easiest solution (and arguably best) is to shut down the 
offending service, or app, or even domain, and then try and resolve it 
with the person who owns the supposed offender.  They seem to be pretty 
good at least of informing you in a timely fashion that they had to shut 
X or Y down on you.  At least, the one time it happened to me this was true.


I have been with Lunarpages for I think close to 3 years now, something 
like that, and it's been a fantastic experience overall.  I personally 
WOULD recommend them... good price for what you get, and they are quite 
responsive (in my experience) to support requests, and for the most part 
let you do what you want (yes, there are some "not allowed" items to be 
aware of as Wendy points out).  But, I seriously doubt they are checking 
everyones' domains, they will only know if a problem arises, so if your 
careful I suspect you can skirt that rule just a bit :)


Frank

Wendy Smoak wrote:

On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:

Of my mailing list searching, this hosting provider seems to hold the most

promise:

http://www.lunarpages.com/plan2.php



I wouldn't... LunarPages has a habit of just disabling access to anything
that they suspect is causing a problem.  Sometimes they have a legitimate
point, sometimes they just say you're "using too many resources" or
"affecting other customers on the server".

And look at the things that they say are not allowed, including JSF and
Spring:
http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120

--
Wendy



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



Re: tiles multi-channels

2006-03-01 Thread Zoran Avtarovski
Thanks Michael,

I'm a big fan of CSS but I don't think that it should be applied in
situations like ours.

When dealing with completely different looks you end up having to use hacks
and work-arounds to achieve the look for each of the domains in the
different browsers. This is bad enough in itself itself but then when it
comes to managing change it becomes a nightmare making changes for one look
and then having to test for the effects in each of the others.

We use css extensively but we use a different base template for each domain.
This avoids the issues above as well as only containing information specific
to the domain. 

I've had a look at Dimensions and that delivers exactly what we need. It's a
shame that tiles doesn't have multi-channel support out of the box.

Zoran

> On 2/26/06, Zoran Avtarovski <[EMAIL PROTECTED]> wrote:
>> We are developing an application which has a requirement to present
>> information to users using different skins depending on certain parameters
>> (information is the same, just the base template file changes). What we'd
>> like, is to set a flag which is then used to select the base template file.
> 
> CSS is not good enough? If your answer is "I don't know", check out
> http://www.csszengarden.com



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



Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Michael Jouravlev
Why not to expand and improve Struts wiki?

On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> There is a small resource directory on the Struts wiki, but it lists
> only a fraction of the resources that are available. Ditto for the
> Struts SourceForge directory and the Java 201 directory. There are
> other Struts resource directories, but they tend to be incomplete and
> do not reflect the true breadth of the Apache Struts community.
>
> As Apache Struts continues to grow, I'd like to get back to basics.
> For me, one of those basics is a comprehensive, up-to-date resource
> directory -- like the original directory that I maintained at Husted
> dot Com, back in the day.
>
> -T.
>
> On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > How is this better than Struts wiki?
> >
> > On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > > Struts Central collects, organizes, and maintains links to all known
> > > Struts Resources, including articles, books, and third-party
> > > extensions.
> > >
> > > You can visit Struts Central at < http://www.StrutsCentral.net/ >.
> > >
> > > -- HTH, Ted.
> > > http://husted.com/ted/blog/

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



Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Ted Husted
There is a small resource directory on the Struts wiki, but it lists
only a fraction of the resources that are available. Ditto for the
Struts SourceForge directory and the Java 201 directory. There are
other Struts resource directories, but they tend to be incomplete and
do not reflect the true breadth of the Apache Struts community.

As Apache Struts continues to grow, I'd like to get back to basics.
For me, one of those basics is a comprehensive, up-to-date resource
directory -- like the original directory that I maintained at Husted
dot Com, back in the day.

-T.

On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> How is this better than Struts wiki?
>
> On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > Struts Central collects, organizes, and maintains links to all known
> > Struts Resources, including articles, books, and third-party
> > extensions.
> >
> > You can visit Struts Central at < http://www.StrutsCentral.net/ >.
> >
> > -- HTH, Ted.
> > http://husted.com/ted/blog/

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



[shale] clay generic templates and symbol replacement

2006-03-01 Thread Ryan Wynn
I am getting the following exception and though I have looked at bug
37796 I still can't decide if what I am trying to do cannot be done
with symbol replacement or if I have made a mistake.

The Component jsfid attribute is null.  The cause is most likely a
missing "clayJsfid" attribute when using HTML templates and nesting
a clay component.  It is also likely that the problem was caused by using
generic templates with symbol replacement of the
[EMAIL PROTECTED]:
java.lang.NullPointerException

In my component that extends clay, clayJsfid is tied to a value
binding expression [EMAIL PROTECTED] and in my .html file I
specify the symbol managed-bean-name to be myBean.

What exactly constitutes a generic template?

Thanks,
Ryan


RE: [ANNOUNCE] Planet Struts Launches

2006-03-01 Thread Abdullah Jibaly
Cool, nice site.

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 01, 2006 7:16 AM
To: Struts Users Mailing List
Subject: [ANNOUNCE] Planet Struts Launches


What is Planet Struts?

Planet Struts is your source for news and announcements about Apache Struts.

* Using the Apache Roller "Planet" feature, we aggregate the blogs of
Struts Committers.

* Our own Planet Struts News blog aggregates announcements about
Struts from a variety of sources.

You can visit Planet Struts at < http://www.PlanetStruts.org/ >.

-- HTH, Ted.
http://husted.com/ted/blog/

-
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: collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
On 3/1/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
> If the thing stored under attribute "states" in application scope is, in
> fact, a List of beans, you won't need the "property" attribute at all.
> Specifying a "name" but not a "property" tells the tag to use the attribute
> value itself.
>

Ahhh this is what I was missing! The reference I looked at said that
property was actually required (Jakarta Struts Pocket Reference -
Cavaness & Keaton).


>  You might then use it in a page like this:
>
> 
>  label="name"/>
> 
>

Thanks Craig, this works :)

Chris

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



Re: FormFile throws Serializable exception in session scope

2006-03-01 Thread Niall Pemberton
The DeferredFileOutputStream used in Commons FileUpload 1.1 is the one from
Commons IO (in FileUpload 1.0 it was a commons FileUpload class) - so if
you're still seeing the same exception referencing
"org.apache.commons.fileupload.DeferredFileOutputStream" then that would
indicate you're still using FileUpload 1.0.

The DeferredFileOutputStream from Commons IO
("org.apache.commons.io.output.DeferredFileOutputStream") is still not
Serializeble - but the instance variable in DiskFileItem has been made
transient. A serialization test was added as part of the fix for the bug you
reference (see http://tinyurl.com/kx77e ) - there could be a problem with
that test, but my first inclination would be that the issue is something in
your deployment.

Niall

- Original Message - 
From: "Joe Germuska" <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2006 5:11 PM

> Ben  gmail.com> writes:
>
> >
> > I defined an ActionForm of which it has a FormFile. Prepopulation is
> > not needed for this ActionForm. Configuring this ActionForm is similar
> > to any other forms and here is the exception. I get this exception
> > when I startup/shutdown Tomcat.
>
> ...
>
> > 2005-11-11 09:45:30,000 WARN
> > [ContainerBase.[Catalina].[localhost].[/]] - Cannot serialize session
> > attribute uploadForm for session 0556C80B681118276F9F2B02FEC497E0
> > java.io.NotSerializableException:
> > org.apache.commons.fileupload.DeferredFileOutputStream
>
> DeferredFileOutputStream is not serializable in commons-fileupload before
> version 1.1.
>
> (see http://issues.apache.org/bugzilla/show_bug.cgi?id=32785,
> http://jakarta.apache.org/commons/fileupload/changelog-report.html)
>
> However, having just run into this problem myself, the solution is not as
simple
> as merely changing the commons-fileupload dependency.  I'm just starting
to
> scout this out myself, but I'm wondering if Struts needed to have some
update to
> use the correct classes, or if I'm just blundering and I missed something
else
> more straightforward.
>
> In any case, it appears that CommonsMultipartRequestHandler has not
actually
> been updated to catch up with deprecations in commons-fileupload 1.1, but
I
> haven't yet figured out if that is the reason simply using the newer
> commons-fileupload is still resulting in a problem with the serialization.
>
>
http://struts.apache.org/struts-action/xref/org/apache/struts/upload/CommonsMultipartRequestHandler.html



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



Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Craig McClanahan
On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
>
> You lost me with that page too. The use of the word widget threw me
> completely because I am used to seeing it reference to a concrete
> component :)
>
> I understand how to write the struts tag. Let's step back a bit. I'll
> see if I can explain this better.
>
> My question is how do I reference the collection for use in the when
> it is stored via an attribute in the servlet context - ie the
> ServletContext.setAttribute(attributeName, attributeValue) method
> without using a scriptlet.
>
> I have a servlet, loaded on startup, that in the init(ServletConfig)
> method, creates a List of beans containing state information - name
> and abbreviation. I have added this to the servlet context under the
> attribute name of "states".
>
> The value for the name attribute in the html:optionsCollection tag
> would be "application" - the implicit JSP variable that refers to the
> servlet context that the page is in.


Actually, the value of the name attribute should be "states".  The tag will
search request/session/application scope (in that order) for an attribute
with that name, and use the first one it finds, so be sure you do not have
something named "states" stored in any other scope.

Now the problem lies in the value for the property attribute of the
> html:optionsCollection. It is supposed to be a property of "name" such
> that is just a getBlah() method. However this is impossible on the
> servlet context, because the collection resides as part of the
> attribute map within the session context. The attribute name in the
> map is "states", but I can't use "states" as the property value
> because there is no getStates() method under ServletContext.


If the thing stored under attribute "states" in application scope is, in
fact, a List of beans, you won't need the "property" attribute at all.
Specifying a "name" but not a "property" tells the tag to use the attribute
value itself.

You would use the "property" attribute only if the thing stored under
"states" was a JavaBean that had a getStates() method or something to return
the list.

How do I retrieve this collection out of the servlet context attribute
> map for use in the html:optionsCollection tag WITHOUT using a
> scriptlet to make the collection available as some page scoped
> collection? Is this possible? I don't want scriptlets exposed in the
> JSP page itself. If I have to use one I will just write a tag to do
> it.


Putting it together, lets assume you have a StateBean class:

public class StateBean {
...
public String getAbbreviation();
public String getName();
...
}

and that what you store in application scope under key "states" is a List of
these beans.  You might then use it in a page like this:





We had to specify "value" and "label" attributes here because the property
names in the StateBean did not match the defaults supported by the tag.  If
the method names were getValue() and getLabel(), you would not have needed
these two attributes -- but there's no problem with using them if your
JavaBeans already have different property names.

Chris


Craig


Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Michael Jouravlev
I see. What if you wrap your list into another bean, say StateHolder.
Then you stick StateHolder in the application context under name
"stateHolder". Then you use something like this:



On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> You lost me with that page too. The use of the word widget threw me
> completely because I am used to seeing it reference to a concrete
> component :)
>
> I understand how to write the struts tag. Let's step back a bit. I'll
> see if I can explain this better.
>
> My question is how do I reference the collection for use in the when
> it is stored via an attribute in the servlet context - ie the
> ServletContext.setAttribute(attributeName, attributeValue) method
> without using a scriptlet.
>
> I have a servlet, loaded on startup, that in the init(ServletConfig)
> method, creates a List of beans containing state information - name
> and abbreviation. I have added this to the servlet context under the
> attribute name of "states".
>
> The value for the name attribute in the html:optionsCollection tag
> would be "application" - the implicit JSP variable that refers to the
> servlet context that the page is in.
>
> Now the problem lies in the value for the property attribute of the
> html:optionsCollection. It is supposed to be a property of "name" such
> that is just a getBlah() method. However this is impossible on the
> servlet context, because the collection resides as part of the
> attribute map within the session context. The attribute name in the
> map is "states", but I can't use "states" as the property value
> because there is no getStates() method under ServletContext.
>
> How do I retrieve this collection out of the servlet context attribute
> map for use in the html:optionsCollection tag WITHOUT using a
> scriptlet to make the collection available as some page scoped
> collection? Is this possible? I don't want scriptlets exposed in the
> JSP page itself. If I have to use one I will just write a tag to do
> it.
>
> Chris
>
> On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> > > Michael,
> > >
> > > Thanks for the reference, but it doesn't explain very much.
> > >
> > > Yes the widget looks like what I want, but is it something I download?
> >
> > You lost me.

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



Re: Exporting data to MS Word.

2006-03-01 Thread Max Cooper
I understand now that the output is not a binary Word file, but rather
an XML file that Word can read.

Rather than setting the encoding on the HTTP response, you might need to
set it in the XML. The first line of this page gave me the idea:
http://www.simonstl.com/articles/officeXML/wordML.html

-Max

On Wed, 2006-03-01 at 13:46 +, Gareth Evans wrote:
> You might want to try IS0-8859-1 rather than UTF-8, i find this works better 
> for me
> 
> Gareth
> 
> Max Cooper wrote:
> 
> > Maybe take the generated one and just fix the bad chars, then compare
> > the binaries to see what changed. (Word might change all kinds of stuff
> > when you save it that isn't related to your edit, though.)
> > 
> > -Max
> > 
> > On Tue, 2006-02-28 at 17:51 -0800, Max Cooper wrote:
> > 
> >>Your HTTP response is a binary Word file, right? If so, it doesn't seem
> >>like you should specify that the HTTP response has a charset (since it
> >>is binary).
> >>
> >>Can you create a Word doc with the char you want (by typing in Word)?
> >>Maybe you can compare the binary content of your hand-edited Word doc
> >>with the one your web app creates to see what is different.
> >>
> >>-Max
> >>
> >>On Tue, 2006-02-28 at 14:04 +0530, Anjishnu Bandyopadhyay wrote:
> >>
> >>>Hi all,
> >>>
> >>>
> >>>
> >>>I am trying to generate a MS Word document through WordML. The report 
> >>>contains some special (accentuated) French characters (e.g. é).
> >>>
> >>>In my java code, I am using "XMLOutputter" to generate the document.
> >>>
> >>>In the action class, I set the 
> >>>"response.setContentType("application/msword; charset=UTF-8");"
> >>>
> >>>
> >>>
> >>>Still, in the resulting MS Word document that is generated, those special 
> >>>characters are getting deformed.
> >>>
> >>>(Note that, I do not use any JSP here. From the action class, directly the 
> >>>Word doc is generated.)
> >>>
> >>>
> >>>
> >>>Any idea what can be the problem?
> >>>
> >>>
> >>>
> >>>Thanks for your time.
> >>>
> >>>
> >>>
> >>>With best regards,
> >>>
> >>>Anjishnu.
> >>>
> >>>
> >>>
> >>> CAUTION - Disclaimer *
> >>>This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended 
> >>>solely for the use of the addressee(s). If you are not the intended 
> >>>recipient, please notify the sender by e-mail and delete the original 
> >>>message. Further, you are not to copy, disclose, or distribute this e-mail 
> >>>or its contents to any other person and any such actions are unlawful. 
> >>>This e-mail may contain viruses. Infosys has taken every reasonable 
> >>>precaution to minimize this risk, but is not liable for any damage you may 
> >>>sustain as a result of any virus in this e-mail. You should carry out your 
> >>>own virus checks before opening the e-mail or attachment. Infosys reserves 
> >>>the right to monitor and review the content of all messages sent to or 
> >>>from this e-mail address. Messages sent to or from this e-mail address may 
> >>>be stored on the Infosys e-mail system.
> >>>***INFOSYS End of Disclaimer INFOSYS***
> 
> -- 
> Gareth Evans
> 
> MSoft eSolutions Limited
> Technology Centre
> Inward Way
> Rossmore Business Park
> Ellesmere Port
> Cheshire
> CH65 3EN
> 
-- 
Max Cooper <[EMAIL PROTECTED]>


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



Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
You lost me with that page too. The use of the word widget threw me
completely because I am used to seeing it reference to a concrete
component :)

I understand how to write the struts tag. Let's step back a bit. I'll
see if I can explain this better.

My question is how do I reference the collection for use in the when
it is stored via an attribute in the servlet context - ie the
ServletContext.setAttribute(attributeName, attributeValue) method
without using a scriptlet.

I have a servlet, loaded on startup, that in the init(ServletConfig)
method, creates a List of beans containing state information - name
and abbreviation. I have added this to the servlet context under the
attribute name of "states".

The value for the name attribute in the html:optionsCollection tag
would be "application" - the implicit JSP variable that refers to the
servlet context that the page is in.

Now the problem lies in the value for the property attribute of the
html:optionsCollection. It is supposed to be a property of "name" such
that is just a getBlah() method. However this is impossible on the
servlet context, because the collection resides as part of the
attribute map within the session context. The attribute name in the
map is "states", but I can't use "states" as the property value
because there is no getStates() method under ServletContext.

How do I retrieve this collection out of the servlet context attribute
map for use in the html:optionsCollection tag WITHOUT using a
scriptlet to make the collection available as some page scoped
collection? Is this possible? I don't want scriptlets exposed in the
JSP page itself. If I have to use one I will just write a tag to do
it.

Chris

On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> > Michael,
> >
> > Thanks for the reference, but it doesn't explain very much.
> >
> > Yes the widget looks like what I want, but is it something I download?
>
> You lost me.
>

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



Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Michael Jouravlev
On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> Michael,
>
> Thanks for the reference, but it doesn't explain very much.
>
> Yes the widget looks like what I want, but is it something I download?

You lost me.

> Is it something that exists in the struts tag libraries? Does the
> states collection exist there?

What "this"? The collection is created by you in your program.

> What happens if I wanted to do states
> for Australia for instance, where would I obtain those?

I don't know. Australian postal service I guess.

> I understand how to write the struts tags to build the list, I don't
> quite know how to obtain a reference to a collection I have built and
> stored in the servlet context.

Have you tried to put collection name in the "name" attribute of
? Does it not work? Do you have another object
with this name in another scope?

Have you looked in the OptionsCollectionTag source code? It uses
pageContext.findAttribute(name) to locate a bean by name.

Michael.

> On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> > > I am building a select list to select a state for an address and since
> > > it will be used in a few forms throughout the application I want to
> > > make this as centralised as possible.
> > >
> > > I have built a bean with getValue(), getLabel() attributes and created
> > > a collection of them and placed as an attribute in the servlet context
> > > via a servlet that is loaded on startup.
> > >
> > > How do I retrieve this for use in the html:optionsCollection tag?
> >
> > http://wiki.apache.org/struts/StrutsWidgets

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



Re: collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
Michael,

Thanks for the reference, but it doesn't explain very much.

Yes the widget looks like what I want, but is it something I download?
Is it something that exists in the struts tag libraries? Does the
states collection exist there? What happens if I wanted to do states
for Australia for instance, where would I obtain those?

I understand how to write the struts tags to build the list, I don't
quite know how to obtain a reference to a collection I have built and
stored in the servlet context.

Chris

On 3/1/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> > I am building a select list to select a state for an address and since
> > it will be used in a few forms throughout the application I want to
> > make this as centralised as possible.
> >
> > I have built a bean with getValue(), getLabel() attributes and created
> > a collection of them and placed as an attribute in the servlet context
> > via a servlet that is loaded on startup.
> >
> > How do I retrieve this for use in the html:optionsCollection tag?
>
> http://wiki.apache.org/struts/StrutsWidgets
>
> -
> 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: collection for html:optionsCollection in servlet context

2006-03-01 Thread Michael Jouravlev
On 3/1/06, Chris Cheshire <[EMAIL PROTECTED]> wrote:
> I am building a select list to select a state for an address and since
> it will be used in a few forms throughout the application I want to
> make this as centralised as possible.
>
> I have built a bean with getValue(), getLabel() attributes and created
> a collection of them and placed as an attribute in the servlet context
> via a servlet that is loaded on startup.
>
> How do I retrieve this for use in the html:optionsCollection tag?

http://wiki.apache.org/struts/StrutsWidgets

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



Re: How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
Rick:
What is benefit of using standard jstl over html:option.
One benefit is to problem like mine.
Any other ?
Digant





"Rick Reumann" <[EMAIL PROTECTED]>
03/01/2006 04:32 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" 
cc: 
Subject:Re: How to display combination of two columns in label 
of html:option


I don't use the html:options tag but standard jstl with html:option


Choose User...


()





On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> In my jsp I am using users ArrayList which is collection of User bean on
> server side.
> My drop down list works fine as under when I use only one display
> userNameShort in my example.
>
>
>
>Choose User...
> labelProperty="userNameShort" />\
>
>
> Now I want to combine two attributes concatenation in label for e.g.
> userId+"("+userNameShort"+")"
>
> how would I do that ?
>
> Thanks..
>
>
>
>
>
> This communication is for informational purposes only. It is not 
intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices,
> data and other information are not warranted as to completeness or
> accuracy and
> are subject to change without notice. Any comments or statements made
> herein
> do not necessarily reflect those of JPMorgan Chase & Co., its 
subsidiaries
> and affiliates.
>



--
Rick




This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
Thanks Michael :
I can do what you suggested of creating read-only attribute in User 
class.
But all over I am using BeanUtils to copy back and forth Users 
properties to UserForm properties.
Is there a cleaner way so even after my adding/deleting properties 
in my User class, I don't need to make  corresponding change in UserForm 
class ?

Thanks again for looking into this.
Digant





"Michael Jouravlev" <[EMAIL PROTECTED]>
03/01/2006 04:44 PM
Please respond to "Struts Users Mailing List"

 
To: "Struts Users Mailing List" 
cc: 
Subject:Re: How to display combination of two columns in label 
of html:option


On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
> In my jsp I am using users ArrayList which is collection of User bean on
> server side.
> My drop down list works fine as under when I use only one display
> userNameShort in my example.
>
> 
>   Choose User...
>property="userId"
> labelProperty="userNameShort" />
> 
>
> Now I want to combine two attributes concatenation in label for e.g.
> userId+"("+userNameShort"+")"
>
> how would I do that ?

Create a read-only property in the User bean that returns
userId+"("+userNameShort"+")". For example:

public class User ... {
  ...
  public String getUserIdAndName() {
return userId+"("+userNameShort"+")";
  }
}


  Choose User...
  


Michael.

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





This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

collection for html:optionsCollection in servlet context

2006-03-01 Thread Chris Cheshire
I am building a select list to select a state for an address and since
it will be used in a few forms throughout the application I want to
make this as centralised as possible.

I have built a bean with getValue(), getLabel() attributes and created
a collection of them and placed as an attribute in the servlet context
via a servlet that is loaded on startup.

How do I retrieve this for use in the html:optionsCollection tag? I
know the servlet context is accessible via the implicit 'application'
variable in the jsp, but how do I access values from
application.getAttribute(attrName) without using a scriptlet?

Thanks

Chris

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



Re: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Josh McDonald
It's not? :)
 
-- 
 
"His comrades fought beside him, Van Owen and the rest...
   But of all the thompson gunners- Roland was the best."
 
Josh McDonald
Analyst Programmer
Information Technology
Ph: 61 7 3006 6460
Email: [EMAIL PROTECTED]


>>> [EMAIL PROTECTED] 02/03/2006 2:19:21 am >>>

How is this better than Struts wiki?

On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> Struts Central collects, organizes, and maintains links to all known
> Struts Resources, including articles, books, and third-party
> extensions.
>
> You can visit Struts Central at < http://www.StrutsCentral.net/ >.
>
> -- HTH, Ted.
> http://husted.com/ted/blog/

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








***
Messages included in this e-mail and any of its attachments are those
of the author unless specifically stated to represent WorkCover Queensland. The 
contents of this message are to be used for the intended purpose only and are 
to be kept confidential at all times.
This message may contain privileged information directed only to the intended 
addressee/s. Accidental receipt of this information should be deleted promptly 
and the sender notified.
This e-mail has been scanned by Sophos for known viruses.
However, no warranty nor liability is implied in this respect.




dynamic usernames and passwords in a DataSource

2006-03-01 Thread Andy Hammer
My DataSource is static in the struts-config.xml file.
 After I validate a user, I want to use thier username
and password in a DataSource.  Is there any way to
change these properties dynamically?

Andy

__
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 display combination of two columns in label of html:option

2006-03-01 Thread Michael Jouravlev
On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> In my jsp I am using users ArrayList which is collection of User bean on
> server side.
> My drop down list works fine as under when I use only one display
> userNameShort in my example.
>
> 
>   Choose User...
>property="userId"
> labelProperty="userNameShort" />
> 
>
> Now I want to combine two attributes concatenation in label for e.g.
> userId+"("+userNameShort"+")"
>
> how would I do that ?

Create a read-only property in the User bean that returns
userId+"("+userNameShort"+")". For example:

public class User ... {
  ...
  public String getUserIdAndName() {
return userId+"("+userNameShort"+")";
  }
}


  Choose User...
  


Michael.

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



Modules Problem

2006-03-01 Thread Kalcevich, Daniel
Everyone,

 

I have two modules: / & /app.  /app is protected by a Servlet Filter and
is used for all actions after you have authenticated yourself.  I am
having a problem when I try to declare a form in a JSP page that is
referenced by an action within the /app module.  I am trying to define
the following in the JSP:

 



 

In my config file for the / module, I have the following definitions:

 

...



...



...

 

I am getting the following exception:

 

javax.servlet.jsp.JspException: Cannot retrieve mapping for action
/logout

at
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:753)

at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)

at
org.apache.jsp.jsp.nav.header_jsp._jspx_meth_html_form_0(org.apache.jsp.
jsp.nav.header_jsp:144)

at
org.apache.jsp.jsp.nav.header_jsp._jspService(org.apache.jsp.jsp.nav.hea
der_jsp:86)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)

at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:574)

at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:499)

at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:966)

at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:6
04)

at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)

at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)

at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)

at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTa
g.java:892)

at
org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)

at
org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspx_meth_tiles_inse
rt_0(org.apache.jsp.jsp.templates.main_005ftemplate_jsp:142)

at
org.apache.jsp.jsp.templates.main_005ftemplate_jsp._jspService(org.apach
e.jsp.jsp.templates.main_005ftemplate_jsp:82)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:322)

at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)

at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:672)

at
org.apache.catalina.core.ApplicationDispatcher.processRequest(Applicatio
nDispatcher.java:463)

at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDisp
atcher.java:398)

at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispat
cher.java:301)

at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1063)

at
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
essor.java:263)

at
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(Til
esRequestProcessor.java:239)

at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
RequestProcessor.java:302)

at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
229)

at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)


Re: How to display combination of two columns in label of html:option

2006-03-01 Thread Rick Reumann
I don't use the html:options tag but standard jstl with html:option


Choose User...


()





On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> In my jsp I am using users ArrayList which is collection of User bean on
> server side.
> My drop down list works fine as under when I use only one display
> userNameShort in my example.
>
>
>
>Choose User...
> labelProperty="userNameShort" />\
>
>
> Now I want to combine two attributes concatenation in label for e.g.
> userId+"("+userNameShort"+")"
>
> how would I do that ?
>
> Thanks..
>
>
>
>
>
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices,
> data and other information are not warranted as to completeness or
> accuracy and
> are subject to change without notice. Any comments or statements made
> herein
> do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
> and affiliates.
>



--
Rick


How to display combination of two columns in label of html:option

2006-03-01 Thread digant . k . joshi
In my jsp I am using users ArrayList which is collection of User bean on 
server side.
My drop down list works fine as under when I use only one display userNameShort 
in my example.



Choose User...
\


Now I want to combine two attributes concatenation in label for e.g. 
userId+"("+userNameShort"+")"

how would I do that ?

Thanks..





This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates.

Re: MESS!: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Michael Jouravlev
On 3/1/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> I got the ok on switching to 1.2.8, and I will also try your method this
> afternoon. I appreciate everyones responses. In the mean time, I have
> some design issues and questions:
>
> Does the old lookupdispatch action sometimes loose stuff that lives on
> the form??

An action (if you mean action class) cannot lose stuff from the form.
An action is just a "C in MVC" and it is stateless. I will answer the
checkbox question further in this reply.

> I have a very complicated form. I am trying to find an easier way of
> programming it.

You can have either one solid page or a composite page that contains
different self-sufficient components.

If you have one solid page, then I would say process it with one (or
two) actions. Make the submit action a dispatch-type action (like you
already did) and channel all page events to submit action. The render
action would fill out and display the page. This is what you are
already doing.

If you prefer to have a composite page, then you can either use
something like Tiles (never used it) or you can use other component
technology. In this case you can have as many actions as many
subcomponents you have. I don't want to advise any specific component
technology, it all depends on taste. I have my own implementation, but
it is in alpha stage so I don't want to mess your production
environment.



> Then I also have other functionality called: SelectNow which allows
> selecting groups of records based on criteria.
>
>
> On the design side, I have 2 actions: an InitAction which pulls the
> records out of the database and puts them in  queryResults[] that lives
> in the form bean.
>
> Then I have the actions which go thru the old lookupdispatch thing,
> except for the google type links which send processing via html:link
> forward to the RetrieveInitAction
>
> The most disturbing issues I've run across now is that If I use the
> dispatch button that checks All records on the screen. The data gets to
> the database, and redraws the records on the screen as checked. But when
> I go to uncheck a few, and hit the update page button, which reads the
> form and looks for checkboxes unchecked or checked... they all show up
> as checked again.

This is a known issue, more like HTTP thing than Struts. Unchecked
radiobuttons and checkboxes are not sent to the server by browser, so
when you submit a form, you need to clear checkboxes before ActionForm
is populated. The only place to do this is ActionForm.reset() method.
Clear all checkboxes and do not set them with data from database. When
form is populated from the request, the checked checkboxes will be
set.

Michael.

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



Shale: UIDataTable to output delimited plain text.

2006-03-01 Thread Jason Vincent
Hi all,
I'd like to have a tab (or comma) delimited text page outputed for a
JSF request.  When I click the link on the previous page, it asks me
to save the tab delimited text file to my harddrive.

I was thinking that I could extend the DataTable renderer, or
something like that on a custom component.
Is that the right path? Has someone done this yet?
Perhaps someone could list the steps I'd need to take to extend an
existing component - or point me to some doc-o's to that I could RT#M.

Is there something in Shale that could help change the "view" type
from html to text?

Thanks,
Jason

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



RE: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Taylor, Kevin
www.kattare.com is one of the best feature to price Java hosts. Their support 
is top-notch.

> Kevin Taylor
> 
> -Original Message-
> From: Rick Reumann [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, March 01, 2006 12:02 PM
> To:   Struts Users Mailing List
> Subject:  Re: [OT] Java Hosting Providers, yes, I know it's been brought 
> up before on the list.
> 
> Wow, thanks for the info Wendy. This is frustrating. Do you have any
> recomendations?
> 
> On 3/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> >
> > On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> >
> > Of my mailing list searching, this hosting provider seems to hold the most
> > > promise:
> > >
> > > http://www.lunarpages.com/plan2.php
> >
> >
> > I wouldn't... LunarPages has a habit of just disabling access to anything
> > that they suspect is causing a problem.  Sometimes they have a legitimate
> > point, sometimes they just say you're "using too many resources" or
> > "affecting other customers on the server".
> >
> > And look at the things that they say are not allowed, including JSF and
> > Spring:
> >http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120
> >
> > --
> > Wendy
> >
> >
> 
> 
> --
> Rick


Accessing the ExceptionHandler

2006-03-01 Thread Jonathan Fullam
Hello,

I'd like to access the ExceptionHandler from a class other than an Action
class.  Preferably, I'd like to access the same instance that Struts uses
from within an Action.  If this is not possible, does anybody know how I can
get to the specific ExceptionHandler class name so that I can create a new
instance?

Assume that I have access to the current HttpServletRequest and
ActionMapping objects.

I need this because I'm calling an inner class that implement Runnable from
within an Action class.  I start running a thread in my Action execute
method so that I can do some processing in the background so the user
doesn't have to wait (any better approaches to accomplishing this are
welcome as well).

Thanks,
Jonathan


Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Leon Rosenberg
I can offer you webhosting. In fact I'm doing this to a (small) number
of customers right now. You can have your own tomcat and virtual host
integration in the apache. Mail/Backup/ssh/ftp access is also offered.

Contact me offlist if you are interested :-)

Leon

On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Yes, I have searched the mailing list, but still searching the struts
> mailing list doesn't always bring back the best search results.
>
> So, anyway, I'm looking to leave my hosting provider. They were great for
> the first few years, but lately the problems with them have been too much
> for me to handle anymore.
>
> Of my mailing list searching, this hosting provider seems to hold the most
> promise:
>
> http://www.lunarpages.com/plan2.php
>
> I'd be interested in some other recommendations (java/jsp support
> obviously:) and/or companies to stay away from, on or off-list is fine with
> me. At this point I don't even mind paying more for a good uptime and
> service.
>
> --
> Rick
>
>

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



MESS!: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread SIRAGHER, JOEL
I got the ok on switching to 1.2.8, and I will also try your method this
afternoon. I appreciate everyones responses. In the mean time, I have
some design issues and questions: 

Does the old lookupdispatch action sometimes loose stuff that lives on
the form??

I have a very complicated form. I am trying to find an easier way of
programming it. 

Leave the page via google type links; or leave the page via sortNow
button; or leave the page via selectNow button; or leave the screen via
select/unselect entire set; select/unselect entire page.


Google type links look like this for me:
=
  


 
 

 

Then I have a group of dropdowns to select sorting criteria. Clicking
the sort button goes thru the old lookupdispatchAction. They have their
own in the lookup dispatch as:




 

  // click a few
checkboxes 

 



 
   //current page of results
  

 
   //all results in the results table.
 

 
Then I also have other functionality called: SelectNow which allows
selecting groups of records based on criteria. 


On the design side, I have 2 actions: an InitAction which pulls the
records out of the database and puts them in  queryResults[] that lives
in the form bean. 

Then I have the actions which go thru the old lookupdispatch thing,
except for the google type links which send processing via html:link
forward to the RetrieveInitAction

The most disturbing issues I've run across now is that If I use the
dispatch button that checks All records on the screen. The data gets to
the database, and redraws the records on the screen as checked. But when
I go to uncheck a few, and hit the update page button, which reads the
form and looks for checkboxes unchecked or checked... they all show up
as checked again.

What a mess. 

All this lives on one screen. Any ideas on redesign or how to make it
easier to program?

-Original Message-
From: Michael Jouravlev [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 11:17 AM
To: Struts Users Mailing List
Subject: Re: multiple submit buttons: LookupDispatchAction /
ActionForward formdata missing

You don't need to switch, you just need the two classes I mentioned.
You dont need a keymethodmap either.

=== cut here ===
jsp:


  

  



Action Class:
=
public class RetrieveAction extends Action {

  /**
   * Instantiate event dispatcher
   */
  protected ActionDispatcher dispatcher =
  new EventDispatcher(this, false);

  /**
   * Use event dispatcher to call an appropriate event handler.
   * By using a dispatcher an action class does not have
   * to extend a DispatchAction flavor.
   */
  public ActionForward execute(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  throws Exception {
  return dispatcher.execute(mapping, form, request, response);
  }


  public ActionForward updatePage(ActionMapping mapping, ActionForm
form,
 HttpServletRequest request, HttpServletResponse response)
 throws IOException, ServletException {

RetrieveFormBean dataForm = (RetrieveFormBean) form;
.
return mapping.findForward("retrieve");
  }
}


struts-config.xml


   

=== cut here ===

On 3/1/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> we are unfortunately using 1.1. I will check with the techspert team
to see if we can switch over.
> thank you for the suggestion
>
> 
>
> From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Sent: Tue 2/28/2006 4:15 PM
> To: Struts Users Mailing List
> Subject: Re: multiple submit buttons: LookupDispatchAction /
ActionForward formdata missing
>
>
>
> > On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> 
>
> By the way, LookupDispatchAction is not the best choice to dispatch
> events. I suggest you to use this one:
> http://issues.apache.org/bugzilla/attachment.cgi?id=17724 You will
> also need ActionDispatcher class from Struts 1.2.7+ distro.
>
> Michael.

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


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



Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Rick Reumann
So you are saying you can't get a separate context (your own WEB-INF, etc)
for each additional domain?

On 3/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Just to say I'd also recommend www.kattare.com
> I moved  3 sites to them around about a year ago and they've been
> amazing – extremely helpful getting us up and running, and solid as a
> rock ever since.
> The specific answer to your question though, I think, is no.  In my
> case all my domains run in a single tomcat instance so if I need to
> take tomcat down I take all 3 out.  I rarely have to do this and I have
> an agreed outage window with all my clients at the same time each week
> so, if I need to do some maintenance, I handle it that way.
>
>
>
>
> Quoting Rick Reumann <[EMAIL PROTECTED]>:
>
> > Ted, I'll email them to find out .. but do you happen to know how
> > the
> > private JVM works when you have more than one site hosted? I'd need
> > my own
> > context per domain... but I can't tell from the pricing chart if when
> > you
> > have another domain added, does it automatically get its own private
> > JVM?
> >
> > On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> > >
> > > www.kattare.com has been stellar so far. We had to work through
> > some
> > > issues to setup Roller, and they accomodated me at ever step.
> > >
> > > -Ted.
> > >
> > >
> > -
> > > 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]
>
>


--
Rick


Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread chhum

I should hvae said Jason Hunter's site has a good list of ISP's with 
user reviews and might also be worth a browse.  See
http://www.servlets.com/isps/servlet/ISPViewAll



Quoting Michael Jouravlev <[EMAIL PROTECTED]>:

> On 3/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> > On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
> >
> > Of my mailing list searching, this hosting provider seems to hold
> the most
> > > promise:
> > >
> > > http://www.lunarpages.com/plan2.php
> >
> >
> > I wouldn't... LunarPages has a habit of just disabling access to
> anything
> > that they suspect is causing a problem.  Sometimes they have a
> legitimate
> > point, sometimes they just say you're "using too many resources"
> or
> > "affecting other customers on the server".
> 
> This sucks.
> 
> > And look at the things that they say are not allowed, including JSF
> and
> > Spring:
> >
> http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120
> 
> Would works for me with JSP + Struts + iBATIS ;)
> 
> I use eroute.net, signed up about two years ago, so I pay about ten
> bucks a month for shared hosting. Now they charge $17, I am not sure
> would I sign up right now.
> 
> Pro: pretty fast and friendly email responses, ftp (you can drop the
> files you need wherever you want them), mysql/postgres, can use
> pretty
> much any libraries you like, can have several web apps on one plan.
> 
> Cons: need to email them to reboot the server (this really is not a
> drawback since the server is shared anyway). Several times I found
> my
> app unavailable in the past apparently because it was hosted on a
> server instance that was being rebooted a lot. They probably moved
> my
> app on another instance with less reboots, because my demos are
> available now most of the time. Have to pay extra for Tomcat5, they
> still use Tomcat4 on standard plan. Kinda slow, ok for demos, but
> for
> a real app I would ask for more memory.
> 
> All in all, works for me for the money I pay and the kind of demos I
> have. For a larger high-avail application... I am not sure.
> 
> I was considering rimuhosting, at that time I could get a dedicated
> server for about $25. I guess they do not have this prices anymore
> :)
> I did not sign for it because they basically give you access to a
> Linux machine and then you are on your own. Which is great for a
> Linux
> guru, but I am a Windows guy :)
> 
> Michael.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread chhum
Just to say I’d also recommend www.kattare.com 
I moved  3 sites to them around about a year ago and they’ve been 
amazing – extremely helpful getting us up and running, and solid as a 
rock ever since.  
The specific answer to your question though, I think, is no.  In my 
case all my domains run in a single tomcat instance so if I need to 
take tomcat down I take all 3 out.  I rarely have to do this and I have 
an agreed outage window with all my clients at the same time each week 
so, if I need to do some maintenance, I handle it that way.




Quoting Rick Reumann <[EMAIL PROTECTED]>:

> Ted, I'll email them to find out .. but do you happen to know how
> the
> private JVM works when you have more than one site hosted? I'd need
> my own
> context per domain... but I can't tell from the pricing chart if when
> you
> have another domain added, does it automatically get its own private
> JVM?
> 
> On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> >
> > www.kattare.com has been stellar so far. We had to work through
> some
> > issues to setup Roller, and they accomodated me at ever step.
> >
> > -Ted.
> >
> >
> -
> > 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: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Michael Jouravlev
On 3/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> Of my mailing list searching, this hosting provider seems to hold the most
> > promise:
> >
> > http://www.lunarpages.com/plan2.php
>
>
> I wouldn't... LunarPages has a habit of just disabling access to anything
> that they suspect is causing a problem.  Sometimes they have a legitimate
> point, sometimes they just say you're "using too many resources" or
> "affecting other customers on the server".

This sucks.

> And look at the things that they say are not allowed, including JSF and
> Spring:
> http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120

Would works for me with JSP + Struts + iBATIS ;)

I use eroute.net, signed up about two years ago, so I pay about ten
bucks a month for shared hosting. Now they charge $17, I am not sure
would I sign up right now.

Pro: pretty fast and friendly email responses, ftp (you can drop the
files you need wherever you want them), mysql/postgres, can use pretty
much any libraries you like, can have several web apps on one plan.

Cons: need to email them to reboot the server (this really is not a
drawback since the server is shared anyway). Several times I found my
app unavailable in the past apparently because it was hosted on a
server instance that was being rebooted a lot. They probably moved my
app on another instance with less reboots, because my demos are
available now most of the time. Have to pay extra for Tomcat5, they
still use Tomcat4 on standard plan. Kinda slow, ok for demos, but for
a real app I would ask for more memory.

All in all, works for me for the money I pay and the kind of demos I
have. For a larger high-avail application... I am not sure.

I was considering rimuhosting, at that time I could get a dedicated
server for about $25. I guess they do not have this prices anymore :)
I did not sign for it because they basically give you access to a
Linux machine and then you are on your own. Which is great for a Linux
guru, but I am a Windows guy :)

Michael.

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



RE: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Wang, Hansen
Here are what I have used for the past few years:

1. javaservlethosting.com, reliable and flexible hosting service with
very low prices, no private JVM, but can reload webapps from control
panel.

2. godaddy's (virtual) dedicated server, very good value and service. Do
not purchase control panel if you can manager the server.

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 11:50 AM
To: Struts Users Mailing List
Subject: Re: [OT] Java Hosting Providers, yes, I know it's been brought
up before on the list.

On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> www.kattare.com has been stellar so far. We had to work through some 
> issues to setup Roller, and they accomodated me at ever step.


Wow, very nice. Thanks Ted. The only thing is I'd need to host a few
addon domains and it appears I'd have to jump from the 3.1 level to the
corporate account at 40/month
http://www.kattare.com/services_pricing.kvws  in order to achieve this.

When things are running smoothly I really love what I get for the money
at hostforweb with the supreme package
http://hostforweb.com/hosting_supreme.html . I haven't found anything
close to what they offer for the buck... but I guess now they're trying
to jam too many accounts on each server and customer support has gone
down recently also (I've been several tickets today without a response
back and I still can't access my site http://www.learntechnology.net/
.).




--
Rick



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



Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Rick Reumann
Ted, I'll email them to find out .. but do you happen to know how the
private JVM works when you have more than one site hosted? I'd need my own
context per domain... but I can't tell from the pricing chart if when you
have another domain added, does it automatically get its own private JVM?

On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> www.kattare.com has been stellar so far. We had to work through some
> issues to setup Roller, and they accomodated me at ever step.
>
> -Ted.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Rick


Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Rick Reumann
On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
>
> www.kattare.com has been stellar so far. We had to work through some
> issues to setup Roller, and they accomodated me at ever step.


Wow, very nice. Thanks Ted. The only thing is I'd need to host a few addon
domains and it appears I'd have to jump from the 3.1 level to the corporate
account at 40/month http://www.kattare.com/services_pricing.kvws  in order
to achieve this.

When things are running smoothly I really love what I get for the money at
hostforweb with the supreme package
http://hostforweb.com/hosting_supreme.html . I haven't found anything close
to what they offer for the buck... but I guess now they're trying to jam too
many accounts on each server and customer support has gone down recently
also (I've been several tickets today without a response back and I still
can't access my site http://www.learntechnology.net/ .).




--
Rick


Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Ted Husted
www.kattare.com has been stellar so far. We had to work through some
issues to setup Roller, and they accomodated me at ever step.

-Ted.

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



Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Greg Reddin
I've had terrible experience with Astrahosting.  I wouldn't use  
anything by them or Web Design Plus (I think is the parent company  
name).


Greg

On Mar 1, 2006, at 11:55 AM, Wendy Smoak wrote:


On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:

Of my mailing list searching, this hosting provider seems to hold  
the most



promise:

http://www.lunarpages.com/plan2.php




I wouldn't... LunarPages has a habit of just disabling access to  
anything
that they suspect is causing a problem.  Sometimes they have a  
legitimate

point, sometimes they just say you're "using too many resources" or
"affecting other customers on the server".

And look at the things that they say are not allowed, including JSF  
and

Spring:
http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120

--
Wendy




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



Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Rick Reumann
Wow, thanks for the info Wendy. This is frustrating. Do you have any
recomendations?

On 3/1/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:
>
> Of my mailing list searching, this hosting provider seems to hold the most
> > promise:
> >
> > http://www.lunarpages.com/plan2.php
>
>
> I wouldn't... LunarPages has a habit of just disabling access to anything
> that they suspect is causing a problem.  Sometimes they have a legitimate
> point, sometimes they just say you're "using too many resources" or
> "affecting other customers on the server".
>
> And look at the things that they say are not allowed, including JSF and
> Spring:
>http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120
>
> --
> Wendy
>
>


--
Rick


Re: [OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Wendy Smoak
On 3/1/06, Rick Reumann <[EMAIL PROTECTED]> wrote:

Of my mailing list searching, this hosting provider seems to hold the most
> promise:
>
> http://www.lunarpages.com/plan2.php


I wouldn't... LunarPages has a habit of just disabling access to anything
that they suspect is causing a problem.  Sometimes they have a legitimate
point, sometimes they just say you're "using too many resources" or
"affecting other customers on the server".

And look at the things that they say are not allowed, including JSF and
Spring:
http://helpdesk.lunarpages.com/faq.php?do=article&articleid=120

--
Wendy


Re: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread ALEX HYDE
There is the Orbeon server as well.

Emmanouil Batsis <[EMAIL PROTECTED]> wrote:  Vladimir Olenin wrote:

>Browser --(request)--> WebApplication --(XML)--> Transformation
>Pipeline: [XML to PDF] OR [XML to HTML]
>

For cases where you simply want to expose the XML produced by struts to 
another format the combo will work great. Cocoon shines as a publishing 
framework and provides stuff like caching etc.

However, if you intent to produce the XML after a *series* of 
request/response processing (forms etc) you will have to maintain that 
in two frameworks instead of one, unless you only expose struts to the 
world and use cocoon-based views via forwards only, with both frameworks 
in the same webapp.

Manos


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




-
Win a BlackBerry device from O2 with Yahoo!. Enter now.

[OT] Java Hosting Providers, yes, I know it's been brought up before on the list.

2006-03-01 Thread Rick Reumann
Yes, I have searched the mailing list, but still searching the struts
mailing list doesn't always bring back the best search results.

So, anyway, I'm looking to leave my hosting provider. They were great for
the first few years, but lately the problems with them have been too much
for me to handle anymore.

Of my mailing list searching, this hosting provider seems to hold the most
promise:

http://www.lunarpages.com/plan2.php

I'd be interested in some other recommendations (java/jsp support
obviously:) and/or companies to stay away from, on or off-list is fine with
me. At this point I don't even mind paying more for a good uptime and
service.

--
Rick


Re: FormFile throws Serializable exception in session scope

2006-03-01 Thread Joe Germuska
Ben  gmail.com> writes:

> 
> I defined an ActionForm of which it has a FormFile. Prepopulation is
> not needed for this ActionForm. Configuring this ActionForm is similar
> to any other forms and here is the exception. I get this exception
> when I startup/shutdown Tomcat.

...

> 2005-11-11 09:45:30,000 WARN
> [ContainerBase.[Catalina].[localhost].[/]] - Cannot serialize session
> attribute uploadForm for session 0556C80B681118276F9F2B02FEC497E0
> java.io.NotSerializableException:
> org.apache.commons.fileupload.DeferredFileOutputStream

DeferredFileOutputStream is not serializable in commons-fileupload before
version 1.1.

(see http://issues.apache.org/bugzilla/show_bug.cgi?id=32785,
http://jakarta.apache.org/commons/fileupload/changelog-report.html)
 
However, having just run into this problem myself, the solution is not as simple
as merely changing the commons-fileupload dependency.  I'm just starting to
scout this out myself, but I'm wondering if Struts needed to have some update to
use the correct classes, or if I'm just blundering and I missed something else
more straightforward.  

In any case, it appears that CommonsMultipartRequestHandler has not actually
been updated to catch up with deprecations in commons-fileupload 1.1, but I
haven't yet figured out if that is the reason simply using the newer
commons-fileupload is still resulting in a problem with the serialization.
 
http://struts.apache.org/struts-action/xref/org/apache/struts/upload/CommonsMultipartRequestHandler.html




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



Re: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Emmanouil Batsis

Vladimir Olenin wrote:


Browser --(request)--> WebApplication --(XML)--> Transformation
Pipeline: [XML to PDF] OR [XML to HTML]



For cases where you simply want to expose the XML produced by struts to 
another format the combo will work great. Cocoon shines as a publishing 
framework and provides stuff like caching etc.


However, if you intent to produce the XML after a *series* of 
request/response processing (forms etc) you will have to maintain that 
in two frameworks instead of one, unless you only expose struts to the 
world and use cocoon-based views via forwards only, with both frameworks 
in the same webapp.


Manos


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



Re: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Don Brown
Regarding stxx, you don't have to extend the stxx Action class, as you can
use the static StxxHelper to perform all its functions.  Also, you don't
have to send it a prebuilt DOM, but can put objects in the request and let
its XML serializer try to create an XML representation for you.
Alternatively, you can replace the serializer and plug in your own.

The Struts Cocoon project is not developed anymore, true, but it is really
quite simple.  All it does is transform the Cocoon servlet into a
RequestProcessor, leaving Struts and Cocoon to do its thing.  If you really
liked Cocoon, I'd recommend just using Cocoon and use its Javascript-based
flow for the controller.  You can use it as a simple glue between the
framework and your business classes.

WebWork 2 does support XSLT output, however, I don't know much about it
(yet). :)

Don

On 3/1/06, Vladimir Olenin <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I need to pipeline the output from the Struts based application (the
> output will be a generically marked up XML) to various output formats
> (PDF & HTML for now). This should approximate to the 'Two Step View'
> pattern, which seems to make sense. The flow can be sketched as:
>
> Browser --(request)--> WebApplication --(XML)--> Transformation
> Pipeline: [XML to PDF] OR [XML to HTML]
>
> I looked into Cocoon, but want to use only the 'pipeline' functionality
> and keep all logic elsewhere if possible (XSP plainly sucks for complex
> websites; the 'action' class is not very impressive as well). It seems
> like Cocoon plugin should make the trick. The only problem is the last
> release is dated back to 2004. Mailing list is not maintained anymore
> and it seems there is no more development done there.
>
> I wonder if anyone used this configuration (Struts & Cocoon) in
> production environment and if it is reasonably stable?
>
> Another thing that came across as a possibility is 'stxx' project. But
> it seems to actually replace Struts, which I don't want (you need to
> extend your Action classes from a different, stxx, base class and I
> don't want this lockin. Plus I want to generate XML through templates,
> while Stxx requires you to send a 'prebuild' DOM tree to the input).
>
> The last possiblity I'm considering is moving from Struts to WebWork2
> altogether and try to use the Interceptors to generate output in
> different formats. Not really sure how well it might work out.
>
> Please, let me know your thoughts on what approach might be the best.
>
> Thanks.
>
> Vlad
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


RE: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Vladimir Olenin
Sorry, forgot to mention that FOP has been considered (as well as other
XSL-FO engines), but it won't work in our case for various reasons...

-Original Message-
From: Kanuri, Chand [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 12:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Question re: XML pipelining, Cocoon Plugin, stxx and
possible alternatives

try FOP

-Original Message-
From: Vladimir Olenin [mailto:[EMAIL PROTECTED]
Sent: 01 March 2006 17:04
To: user@struts.apache.org
Subject: Question re: XML pipelining, Cocoon Plugin, stxx and possible
alternatives


Hi,

I need to pipeline the output from the Struts based application (the
output will be a generically marked up XML) to various output formats
(PDF & HTML for now). This should approximate to the 'Two Step View'
pattern, which seems to make sense. The flow can be sketched as:

Browser --(request)--> WebApplication --(XML)--> Transformation
Pipeline: [XML to PDF] OR [XML to HTML]

I looked into Cocoon, but want to use only the 'pipeline' functionality
and keep all logic elsewhere if possible (XSP plainly sucks for complex
websites; the 'action' class is not very impressive as well). It seems
like Cocoon plugin should make the trick. The only problem is the last
release is dated back to 2004. Mailing list is not maintained anymore
and it seems there is no more development done there.

I wonder if anyone used this configuration (Struts & Cocoon) in
production environment and if it is reasonably stable?

Another thing that came across as a possibility is 'stxx' project. But
it seems to actually replace Struts, which I don't want (you need to
extend your Action classes from a different, stxx, base class and I
don't want this lockin. Plus I want to generate XML through templates,
while Stxx requires you to send a 'prebuild' DOM tree to the input).

The last possiblity I'm considering is moving from Struts to WebWork2
altogether and try to use the Interceptors to generate output in
different formats. Not really sure how well it might work out.

Please, let me know your thoughts on what approach might be the best.

Thanks.

Vlad

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


This e-mail (and any attachments) may contain privileged and/or
confidential information. If you are not the intended recipient please
do not disclose, copy, distribute, disseminate or take any action in
reliance on it. If you have received this message in error please reply
and tell us and then delete it. Should you wish to communicate with us
by e-mail we cannot guarantee the security of any data outside our own
computer systems. For the protection of Legal & General's systems and
staff, incoming emails will be automatically scanned.

Any information contained in this message may be subject to applicable
terms and conditions and must not be construed as giving investment
advice within or outside the United Kingdom.

The following companies are subsidiary companies of the Legal & General
Group Plc which are authorised and regulated by the Financial Services
Authority for advising and arranging the products shown: Legal & General
Partnership Services Limited (insurance and mortgages), Legal & General
Insurance Limited (insurance), Legal & General Assurance Society Limited
(life assurance, pensions and investments), Legal & General Unit Trust
Managers Limited and Legal & General Portfolio Management Services
Limited (investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London
EC4N 4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General
Assurance Society Limited: 166055 Legal & General (Unit Trust Managers)
Limited: 1009418 Legal & General (Portfolio Management Services)
Limited: 2457525 Legal & General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers
shown. You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General
Assurance Society Limited: 117659 Legal & General (Unit Trust Managers)
Limited: 119273 Legal & General (Portfolio Management Services) Limited:
146786 Legal & General Insurance Limited: 202050


-
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: Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Kanuri, Chand
try FOP

-Original Message-
From: Vladimir Olenin [mailto:[EMAIL PROTECTED]
Sent: 01 March 2006 17:04
To: user@struts.apache.org
Subject: Question re: XML pipelining, Cocoon Plugin, stxx and possible
alternatives


Hi,

I need to pipeline the output from the Struts based application (the
output will be a generically marked up XML) to various output formats
(PDF & HTML for now). This should approximate to the 'Two Step View'
pattern, which seems to make sense. The flow can be sketched as:

Browser --(request)--> WebApplication --(XML)--> Transformation
Pipeline: [XML to PDF] OR [XML to HTML]

I looked into Cocoon, but want to use only the 'pipeline' functionality
and keep all logic elsewhere if possible (XSP plainly sucks for complex
websites; the 'action' class is not very impressive as well). It seems
like Cocoon plugin should make the trick. The only problem is the last
release is dated back to 2004. Mailing list is not maintained anymore
and it seems there is no more development done there.

I wonder if anyone used this configuration (Struts & Cocoon) in
production environment and if it is reasonably stable?

Another thing that came across as a possibility is 'stxx' project. But
it seems to actually replace Struts, which I don't want (you need to
extend your Action classes from a different, stxx, base class and I
don't want this lockin. Plus I want to generate XML through templates,
while Stxx requires you to send a 'prebuild' DOM tree to the input).

The last possiblity I'm considering is moving from Struts to WebWork2
altogether and try to use the Interceptors to generate output in
different formats. Not really sure how well it might work out.

Please, let me know your thoughts on what approach might be the best.

Thanks.

Vlad

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


This e-mail (and any attachments) may contain privileged and/or confidential 
information. If you are not the intended recipient please do not disclose, 
copy, distribute, disseminate or take any action in reliance on it. If you have 
received this message in error please reply and tell us and then delete it. 
Should you wish to communicate with us by e-mail we cannot guarantee the 
security of any data outside our own computer systems. For the protection of 
Legal & General's systems and staff, incoming emails will be automatically 
scanned.

Any information contained in this message may be subject to applicable terms 
and conditions and must not be construed as giving investment advice within or 
outside the United Kingdom.

The following companies are subsidiary companies of the Legal & General Group 
Plc which are authorised and regulated by the Financial Services Authority for 
advising and arranging the products shown: Legal & General Partnership Services 
Limited (insurance and mortgages), Legal & General Insurance Limited 
(insurance), Legal & General Assurance Society Limited 
(life assurance, pensions and investments), Legal & General Unit Trust Managers 
Limited and Legal & General Portfolio Management Services Limited (investments).

They are registered in England under numbers shown.
The registered office is Temple Court, 11 Queen Victoria Street, London EC4N 
4TP.

Legal & General Partnership Services Limited: 5045000 Legal & General Assurance 
Society Limited: 166055 Legal & General (Unit Trust Managers) Limited: 1009418 
Legal & General (Portfolio Management Services) Limited: 2457525 Legal & 
General Insurance Limited: 423930

They are registered with the Financial Services Authority under numbers shown. 
You can check this at www.fsa.gov.uk/register

Legal & General Partnership Services Limited: 300792 Legal & General Assurance 
Society Limited: 117659 Legal & General (Unit Trust Managers) Limited: 119273 
Legal & General (Portfolio Management Services) Limited: 146786 Legal & General 
Insurance Limited: 202050


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



Question re: XML pipelining, Cocoon Plugin, stxx and possible alternatives

2006-03-01 Thread Vladimir Olenin
Hi,

I need to pipeline the output from the Struts based application (the
output will be a generically marked up XML) to various output formats
(PDF & HTML for now). This should approximate to the 'Two Step View'
pattern, which seems to make sense. The flow can be sketched as:

Browser --(request)--> WebApplication --(XML)--> Transformation
Pipeline: [XML to PDF] OR [XML to HTML]

I looked into Cocoon, but want to use only the 'pipeline' functionality
and keep all logic elsewhere if possible (XSP plainly sucks for complex
websites; the 'action' class is not very impressive as well). It seems
like Cocoon plugin should make the trick. The only problem is the last
release is dated back to 2004. Mailing list is not maintained anymore
and it seems there is no more development done there.

I wonder if anyone used this configuration (Struts & Cocoon) in
production environment and if it is reasonably stable?

Another thing that came across as a possibility is 'stxx' project. But
it seems to actually replace Struts, which I don't want (you need to
extend your Action classes from a different, stxx, base class and I
don't want this lockin. Plus I want to generate XML through templates,
while Stxx requires you to send a 'prebuild' DOM tree to the input).

The last possiblity I'm considering is moving from Struts to WebWork2
altogether and try to use the Interceptors to generate output in
different formats. Not really sure how well it might work out.

Please, let me know your thoughts on what approach might be the best.

Thanks.

Vlad

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



Re: layout

2006-03-01 Thread Tom Ziemer
Hi,

I was just working on common design elements as well (header/footer)
when I saw your post. I am using sitemesh
(http://www.opensymphony.com/sitemesh/), which is a servlet filter that
decorates your jsp pages. It's easy to setup, fast and very unobtrusive
(your pages' source won't change).

HTH,
Tom

fea jabi wrote:
> in my jsp's have to put some common text at upper right corner of every
> jsp. how can be done? can this be done using tiles? is there an example
> I can look at to do this?
> 
> Thanks.
> 
> _
> Express yourself instantly with MSN Messenger! Download today - it's
> FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 
> 
> -
> 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: [ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Michael Jouravlev
How is this better than Struts wiki?

On 3/1/06, Ted Husted <[EMAIL PROTECTED]> wrote:
> Struts Central collects, organizes, and maintains links to all known
> Struts Resources, including articles, books, and third-party
> extensions.
>
> You can visit Struts Central at < http://www.StrutsCentral.net/ >.
>
> -- HTH, Ted.
> http://husted.com/ted/blog/

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



Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Michael Jouravlev
You don't need to switch, you just need the two classes I mentioned.
You dont need a keymethodmap either.

=== cut here ===
jsp:


  

  



Action Class:
=
public class RetrieveAction extends Action {

  /**
   * Instantiate event dispatcher
   */
  protected ActionDispatcher dispatcher =
  new EventDispatcher(this, false);

  /**
   * Use event dispatcher to call an appropriate event handler.
   * By using a dispatcher an action class does not have
   * to extend a DispatchAction flavor.
   */
  public ActionForward execute(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response)
  throws Exception {
  return dispatcher.execute(mapping, form, request, response);
  }


  public ActionForward updatePage(ActionMapping mapping, ActionForm form,
 HttpServletRequest request, HttpServletResponse response)
 throws IOException, ServletException {

RetrieveFormBean dataForm = (RetrieveFormBean) form;
.
return mapping.findForward("retrieve");
  }
}


struts-config.xml


   

=== cut here ===

On 3/1/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> we are unfortunately using 1.1. I will check with the techspert team to see 
> if we can switch over.
> thank you for the suggestion
>
> 
>
> From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
> Sent: Tue 2/28/2006 4:15 PM
> To: Struts Users Mailing List
> Subject: Re: multiple submit buttons: LookupDispatchAction / ActionForward 
> formdata missing
>
>
>
> > On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> 
>
> By the way, LookupDispatchAction is not the best choice to dispatch
> events. I suggest you to use this one:
> http://issues.apache.org/bugzilla/attachment.cgi?id=17724 You will
> also need ActionDispatcher class from Struts 1.2.7+ distro.
>
> Michael.

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



Re: layout

2006-03-01 Thread fea jabi

Thankyou for your response.

what exactly I want is in the body that's in tiles I need to display the 
standared text whose values need to be brought from server and displayed in 
4-5 lines at upper right corner. can this be done too?


Thanks.



From: Greg Reddin <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: "Struts Users Mailing List" 
Subject: Re: layout
Date: Wed, 1 Mar 2006 08:31:50 -0600

Yes you can do this using tiles.  Start here (http:// 
struts.apache.org/struts-tiles/)  Look particularly at the examples  page 
for basic usage patterns.


Thanks,
Greg

On Mar 1, 2006, at 8:20 AM, fea jabi wrote:

in my jsp's have to put some common text at upper right corner of  every 
jsp. how can be done? can this be done using tiles? is there  an example I 
can look at to do this?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today -  it's 
FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ direct/01/



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



_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



Re: layout

2006-03-01 Thread Greg Reddin
Yes you can do this using tiles.  Start here (http:// 
struts.apache.org/struts-tiles/)  Look particularly at the examples  
page for basic usage patterns.


Thanks,
Greg

On Mar 1, 2006, at 8:20 AM, fea jabi wrote:

in my jsp's have to put some common text at upper right corner of  
every jsp. how can be done? can this be done using tiles? is there  
an example I can look at to do this?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today -  
it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/ 
direct/01/



-
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: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Dakota Jack
P.S.  The lookup dispatch action is a new and improved version at
www.michaelmcgrady.com, not the bad one in Struts.


On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
>
> Greetings:
>
> I've been debugging now for a while, and don't know where to continue
> looking.
>
> I'm doing multiple submit buttons on my struts/jsp 1.1 page.  My
> debugger takes me to the correct action, but the action has no form data
> in it. On the jsp side, I am entering data, etc.
>
> Do I have to put something special in my struts-config.xml?
>
> Im pretty stuck here now for the last few days.
>
> Can some one make a suggestion?
>
>
> My .jsp:
> ==
> 
> 
> 
> 
> 
> 
>
> 
>
> My Action Class:
> =
> public class RetrieveAction extends LookupDispatchAction {
> protected Map   getKeyMethodMap() {
> Map map = new HashMap();
> map.put("button.UpdatePage", "updatePage");
> }
>
>
> public ActionForward updatePage(ActionMapping mapping, ActionForm form,
> HttpServletRequest request, HttpServletResponse response)
> throws IOException, ServletException {
>
> RetrieveFormBean dataForm = (RetrieveFormBean) form;
>// form data comes back null. Contains no data forwarded.
>.
>return mapping.findForward("retrieve");
> }
>
>
> My struts-config.xml
> 
>  name="RetrieveFormBean"
> type="com.struts.action.RetrieveAction"
> scope="session"
> parameter="method">
> 
> 
>
>
> -
> 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~


Re: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread Dakota Jack
LookupDispatchAction is horrid.  Use one of the varieties found at
www.michaelmcgrady.com under buttons.  You also don't need to change from
1.1 to 1.2.7.  You just need the class, which you can put in yourself.



On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
>
> Greetings:
>
> I've been debugging now for a while, and don't know where to continue
> looking.
>
> I'm doing multiple submit buttons on my struts/jsp 1.1 page.  My
> debugger takes me to the correct action, but the action has no form data
> in it. On the jsp side, I am entering data, etc.
>
> Do I have to put something special in my struts-config.xml?
>
> Im pretty stuck here now for the last few days.
>
> Can some one make a suggestion?
>
>
> My .jsp:
> ==
> 
> 
> 
> 
> 
> 
>
> 
>
> My Action Class:
> =
> public class RetrieveAction extends LookupDispatchAction {
> protected Map   getKeyMethodMap() {
> Map map = new HashMap();
> map.put("button.UpdatePage", "updatePage");
> }
>
>
> public ActionForward updatePage(ActionMapping mapping, ActionForm form,
> HttpServletRequest request, HttpServletResponse response)
> throws IOException, ServletException {
>
> RetrieveFormBean dataForm = (RetrieveFormBean) form;
>// form data comes back null. Contains no data forwarded.
>.
>return mapping.findForward("retrieve");
> }
>
>
> My struts-config.xml
> 
>  name="RetrieveFormBean"
> type="com.struts.action.RetrieveAction"
> scope="session"
> parameter="method">
> 
> 
>
>
> -
> 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~


layout

2006-03-01 Thread fea jabi
in my jsp's have to put some common text at upper right corner of every jsp. 
how can be done? can this be done using tiles? is there an example I can 
look at to do this?


Thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



RE: Why global error handling doesn't work with struts?

2006-03-01 Thread George.Dinwiddie
What browser are you using?  Note that a custom 404 page is still a 404
page, and Internet Explorer will insist on showing you its own 404 page
instead of the one sent by the server.

> -Original Message-
> From: Partha Pratim Dutta [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, February 28, 2006 11:39 PM
> To: Struts Users Mailing List
> Subject: Why global error handling doesn't work with struts?
> 
> 
> Hi All
> 
> I am running Tomcat 4.x and have tried to set global error 
> handling using the following entry in the web.xml file. But 
> there is no redirection and I always end up with 404 page not 
> found error in the browser. I am using struts 1.2 as the MVC 
> framework for the application.
>  
> One more strange thing that I have noticed is that although 
> the error page doesn't show up but it prints the SOP 
> statements on the console. That means that it is getting 
> redirected to the error page but why is it not showing up then?
> 
> Does anyone have a solution to this problem?
> 
> 
> 404
> /weberror.jsp
> 
> 
> 
> Thanks & Regards
> 
> Partha 
> 
>  
> 

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



Re: Exporting data to MS Word.

2006-03-01 Thread Gareth Evans

You might want to try IS0-8859-1 rather than UTF-8, i find this works better 
for me

Gareth

Max Cooper wrote:


Maybe take the generated one and just fix the bad chars, then compare
the binaries to see what changed. (Word might change all kinds of stuff
when you save it that isn't related to your edit, though.)

-Max

On Tue, 2006-02-28 at 17:51 -0800, Max Cooper wrote:


Your HTTP response is a binary Word file, right? If so, it doesn't seem
like you should specify that the HTTP response has a charset (since it
is binary).

Can you create a Word doc with the char you want (by typing in Word)?
Maybe you can compare the binary content of your hand-edited Word doc
with the one your web app creates to see what is different.

-Max

On Tue, 2006-02-28 at 14:04 +0530, Anjishnu Bandyopadhyay wrote:


Hi all,



I am trying to generate a MS Word document through WordML. The report contains 
some special (accentuated) French characters (e.g. é).

In my java code, I am using "XMLOutputter" to generate the document.

In the action class, I set the "response.setContentType("application/msword; 
charset=UTF-8");"



Still, in the resulting MS Word document that is generated, those special 
characters are getting deformed.

(Note that, I do not use any JSP here. From the action class, directly the Word 
doc is generated.)



Any idea what can be the problem?



Thanks for your time.



With best regards,

Anjishnu.



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


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



[ANNOUNCE] Struts Central - When only Struts will Do

2006-03-01 Thread Ted Husted
Struts Central collects, organizes, and maintains links to all known
Struts Resources, including articles, books, and third-party
extensions.

You can visit Struts Central at < http://www.StrutsCentral.net/ >.

-- HTH, Ted.
http://husted.com/ted/blog/

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



[ANNOUNCE] Planet Struts Launches

2006-03-01 Thread Ted Husted
What is Planet Struts?

Planet Struts is your source for news and announcements about Apache Struts.

* Using the Apache Roller "Planet" feature, we aggregate the blogs of
Struts Committers.

* Our own Planet Struts News blog aggregates announcements about
Struts from a variety of sources.

You can visit Planet Struts at < http://www.PlanetStruts.org/ >.

-- HTH, Ted.
http://husted.com/ted/blog/

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



RE: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread SIRAGHER, JOEL
we are unfortunately using 1.1. I will check with the techspert team to see if 
we can switch over. 
thank you for the suggestion



From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Tue 2/28/2006 4:15 PM
To: Struts Users Mailing List
Subject: Re: multiple submit buttons: LookupDispatchAction / ActionForward 
formdata missing



> On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:


By the way, LookupDispatchAction is not the best choice to dispatch
events. I suggest you to use this one:
http://issues.apache.org/bugzilla/attachment.cgi?id=17724 You will
also need ActionDispatcher class from Struts 1.2.7+ distro.

Michael.

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




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

RE: multiple submit buttons: LookupDispatchAction / ActionForward formdata missing

2006-03-01 Thread SIRAGHER, JOEL
have i defined it? yes i did.
I will check as soon as I get to work.  thank you for the observation. 
 
 
 



From: Michael Jouravlev [mailto:[EMAIL PROTECTED]
Sent: Tue 2/28/2006 4:09 PM
To: Struts Users Mailing List
Subject: Re: multiple submit buttons: LookupDispatchAction / ActionForward 
formdata missing



On 2/28/06, SIRAGHER, JOEL <[EMAIL PROTECTED]> wrote:
> I'm doing multiple submit buttons on my struts/jsp 1.1 page.  My
> debugger takes me to the correct action, but the action has no form data
> in it.
...
> RetrieveFormBean dataForm = (RetrieveFormBean) form;
>// form data comes back null. Contains no data forwarded.
>.
>return mapping.findForward("retrieve");
> }
>
>
> My struts-config.xml
> 
>  name="RetrieveFormBean"
> type="com.struts.action.RetrieveAction"
> scope="session"
> parameter="method">
> 
> 

RetrieveFormBean mentioned in the "name" attribute is not a class
name, it is the name of an ActionForm instance. Have you defined it in
 section?

Tim Fennel is right, Struts configuration is a sucky thing.

Michael.

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




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

Fast&Easy Populating of the HashMap attribute

2006-03-01 Thread Danny Lee

Hi guys!


I have a very general question, about populating HashMaps (and other 
stuff, but we just take HashMaps this time).


Let say, I have a Product Bean, with some simple attributes (Name, ID),
and some HashMap attributes (infos, pictures, details).

It's quite easy to generate a HTML form for "editing" these attributes,
but a real headache to submit a changed HashMap-Attributes.

If I use a nested Product inside my Form-Bean, it's seems to be
impossible to get Struts to write HashMaped stuff direct in the nested
 Product, first of all, becouse you can't index the single values there,
 so you need kind of extra map to store the user input, and then you
have to put it all together... not a big pleasure.


I wonder, if you guys have some alternative and fast method to do it.
Something like, I have a HashMap property I just populate the properties 
into  and after submitting it goes straight back to

MyNestedBean.HashMapThatWasPopulatedBefore.

Or is it just some sort of Sci/Fi? :)

Cheers,

Danny



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



RE: Why global error handling doesn't work with struts?

2006-03-01 Thread Partha Pratim Dutta
Thanks for your reply Niall. But I have a very simple error page and
here it is :

<%@ page isErrorPage="true" %>

 
Error

 

The page you requested was not found. Kindly try
again and submit feedback on the homepage if the problem persists.


 

This works if I don't use struts as a framework. But the moment I
integrate it with struts, it stops working. :(

I even tried with simple html page but too failed.

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 3:58 PM
To: Struts Users Mailing List
Subject: Re: Why global error handling doesn't work with struts?

Maybe theres an error in your error page? Try replacing it with a simple
html page and see if that works. Also test your error page outside of
the
error mechanism.

Niall

- Original Message - 
From: "Partha Pratim Dutta" <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2006 4:39 AM


Hi All

I am running Tomcat 4.x and have tried to set global error handling
using the following entry in the web.xml file. But there is no
redirection and I always end up with 404 page not found error in the
browser. I am using struts 1.2 as the MVC framework for the application.

One more strange thing that I have noticed is that although the error
page doesn't show up but it prints the SOP statements on the console.
That means that it is getting redirected to the error page but why is it
not showing up then?

Does anyone have a solution to this problem?


404
/weberror.jsp



Thanks & Regards

Partha





-
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: Why global error handling doesn't work with struts?

2006-03-01 Thread Partha Pratim Dutta
Thanks for your reply Niall. But I have a very simple error page and
here it is :

<%@ page isErrorPage="true" %>

 
Error

 

The page you requested was not found. Kindly try
again and submit feedback on the homepage if the problem persists.


 

This works if I don't use struts as a framework. But the moment I
integrate it with struts, it stops working. :(

I even tried with simple html page but too failed.

-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 01, 2006 3:58 PM
To: Struts Users Mailing List
Subject: Re: Why global error handling doesn't work with struts?

Maybe theres an error in your error page? Try replacing it with a simple
html page and see if that works. Also test your error page outside of
the
error mechanism.

Niall

- Original Message - 
From: "Partha Pratim Dutta" <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2006 4:39 AM


Hi All

I am running Tomcat 4.x and have tried to set global error handling
using the following entry in the web.xml file. But there is no
redirection and I always end up with 404 page not found error in the
browser. I am using struts 1.2 as the MVC framework for the application.

One more strange thing that I have noticed is that although the error
page doesn't show up but it prints the SOP statements on the console.
That means that it is getting redirected to the error page but why is it
not showing up then?

Does anyone have a solution to this problem?


404
/weberror.jsp



Thanks & Regards

Partha





-
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: Why global error handling doesn't work with struts?

2006-03-01 Thread Niall Pemberton
Maybe theres an error in your error page? Try replacing it with a simple
html page and see if that works. Also test your error page outside of the
error mechanism.

Niall

- Original Message - 
From: "Partha Pratim Dutta" <[EMAIL PROTECTED]>
Sent: Wednesday, March 01, 2006 4:39 AM


Hi All

I am running Tomcat 4.x and have tried to set global error handling
using the following entry in the web.xml file. But there is no
redirection and I always end up with 404 page not found error in the
browser. I am using struts 1.2 as the MVC framework for the application.

One more strange thing that I have noticed is that although the error
page doesn't show up but it prints the SOP statements on the console.
That means that it is getting redirected to the error page but why is it
not showing up then?

Does anyone have a solution to this problem?


404
/weberror.jsp



Thanks & Regards

Partha





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