Re: Association between Session object and Cookies/URL rewriting

2003-03-06 Thread Max Cooper
> Requirement is this : My login page itself expires even if the user
> doesn't login for the session timeout period. We want to prevent that.

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

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

-Max



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



Nested Iterate Proerty value in a hidden field

2003-03-06 Thread ashokd
Hi,

How to capture a nested iterate property value into a hidden field. I am
displaying only one record depending upon the condition, At this time i wan
to captrue some values into a hidden fields. How can we do this?

Thanks & Regards,
Ashok.D


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



RE: mail settings

2003-03-06 Thread Raible, Matt
I register it as a resource in JNDI and then get the mail "session" from
JNDI...

Matt

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


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



Re: date format problems

2003-03-06 Thread Gemes Tibor
For an example in a static block of your BaseAction class.

Tib 

2003. március 7. 00:05 dátummal Marco Tedone ezt írtad:
> How do you register a converter with ConvertUtils in Struts? I gave a look
> to the commons-beanutils package but I couldn't figure how to use the
> contract specified by these classes with Struts. Is there a way to register
> an automatic converter for all data sent back and forward from the browser?
>
> Marco
>
> > -Original Message-
> > From: Gemes Tibor [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 06, 2003 3:14 PM
> > To: Struts Users Mailing List
> > Subject: Re: date format problems
> >
> > 2003. március 6. 16:06 dátummal Søren Blidorf ezt írtad:
> > > Hi.
> > >
> > > I have an action that gets a date from the MS SQL 2000 in
> >
> > -MM-dd.
> >
> > > I convert it with simpledateformat as dd-MM- and put it
> >
> > in a jsp
> >
> > > form. When submitting the form the date must be coverted back to
> > > -MM-DD before another actions update the db.
> > >
> > > I am trying to convert the date value in the ActionForm, but I am
> > > getting the following error.
> > >
> > > Any idears? I am lost and it is very urgent
> >
> > Register a Converter for your String-Date Date-String
> > conversion with ConvertUtils. read javadocs
> > org.apache.commons.beanutils.ConvertUtils
> >
> > Hth,
> >
> > Tib


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



mail settings

2003-03-06 Thread Dan Allen
As it is typical to have a *.properties file for any general
settings for a server application, I was curious to know how
developers handle mail settings.  An example file I had in mind
would be something like

mailer.transport.protocol=smtp
mailer.transport.host=localhost
mailer.transport.port=25
mailer.from.name=Webmaster
[EMAIL PROTECTED]

If I were to use a file like this, where in the struts hierarchy
would I put it and how would I read it in to make it available to
my actions()?

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
"If you still don't like it, that's ok: that's why I'm boss. I 
simply know better than you do." 
 -- Linus Torvalds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: Avoiding refresh stomping

2003-03-06 Thread Jeff Smith
I'm glad you suggested that, because that was the first thing I tried. But
my redirected JSPs don't render properly when I do that - for some reason it
seems to lose track of the style sheet. I wasn't sure if I was
misunderstanding the function of a redirect or if there was a bug somewhere
in my JSP. I'm assuming this is something I've done wrong, but I haven't got
a clue what could be causing it.

Jefficus

- Original Message -
From: "Dan Allen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 12:35 AM
Subject: Re: Avoiding refresh stomping


> > Am I the only one who worries about stuff like this?
> Nope
>
> > Then (and here's the unpredictable user part) for some reason,
> > they hit the refresh button on their browser
> Here is how to handle this case, and I was actually going to be
> e-mailing the list about this anyway, so glad you brought it up.
>
> You have to "disconnect" the POST data from the current page by
> using a URL redirect.  This way, when the user presses refresh, they
> no longer have the POST data available.  You probably want to return
> a redirect action forward from your action to make this happen,
> along with any GET data you might need to reconstruct your page.
>
> vBulletin handles this well when you search and post a message,
> except instead of using a server side redirect they use a client
> side meta-refresh.  I prefer the server side since the user isn't
> even aware that it is happening.
>
> Dan
>
> --
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> Daniel Allen, <[EMAIL PROTECTED]>
> http://www.mojavelinux.com/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "I'm old enough to know better, but still too young to care."
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: List-backed properties

2003-03-06 Thread Johann Uhrmann
Jörg Maurer wrote:
[...]
> So i made in every action from class my own reset method called
myReset(int prepare_for_count) - 2 advantages : 
1.)as reset() is called always by framework(after each new request), i
can´t manage session state in action form with this solution. exception
to this case is well known checkbox problem. so i am in full charge of
when and how myReset() is called.
2.)i can inform myReset of prepare_for_count value.
[...]
Thanks Jörg,

I assumed that there has to be some kind of initialization in that 
class. However, the fact that is neither shown nor mentioned in the
documentation caused some confusion.

In my opinion, the example is incomplete and should be fixed (or at 
least the initialization should be mentioned).

Greetings,

Hans

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


selective validation javascript

2003-03-06 Thread Dan Allen
I hope this is obvious to more users than just myself, but if the
javascript for forms is supposed to be "pluggable" then why in the
world are all the javascript functions defined in the
validator-rules.xml included in the page?  Shouldn't it just include
the rules which it needs for the forms on the page?  Since
javascript == bandwidth, this seems like a waste.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, <[EMAIL PROTECTED]>
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Real programmers don't change their wardrobe too often: there 
are no clothes stores that are open at two o'clock in the morning. 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



RE: Avoiding refresh stomping

2003-03-06 Thread Andrew Hill
Its not just refreshes you need to worry about. The back button is
particularly dangerous in this regard!

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

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

I havent really had a chance to look into it much myself (yet!) so cant
really advise further on the technical details.

-Original Message-
From: Jeff Smith [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 15:25
To: Struts Users Mailing List
Subject: Avoiding refresh stomping


I worry about users. I've been one. I know how unpredictable we can be. :-)

Take this case. I have a struts app and I want users to be able to log in.
Pretty simple. In fact, it is probably the most common scenario implemented
in samples and tutorials.

Being a good host, I like to keep track of my guests. So when my users log
in, I want to time-stamp them so I know how long they've been connected.

My action-forward for login success takes me to a pretty page that gives my
users stats about their last logon (in case somebody is using their account
without their knowledge) and a bunch of other stuff.

So they tend to sit on that page and read it for a while.

Then (and here's the unpredictable user part) for some reason, they hit the
refresh button on their browser. Well, since they got here as an action
forward from the authentication sequence, the refresh resubmits all their
logon credentials, the system re-authenticates them and then takes them,
finally, back to the page they've been reading and refreshes it. And in that
process, my login timestamp is stomped with a newer one.

Now, I have already figured out a few ways to short circuit the
re-authentication (like, don't authenticate a user who is already logged
in.) But the question is, where else could my users be inadvertently causing
spurious recursions into potentially costly sequences by ignorantly hitting
the refresh button? I can imagine that some of my action sequences might
invoke some fairly expensive computations before displaying the results. But
do I *REALLY* want to recompute the whole thing when my users hit refresh?
In the case of rendering dynamic content, maybe I do. But for transactional
stuff like logging in, or submitting a credit card for authentication, I
probably don't want to re-compute on refresh.

Am I the only one who worries about stuff like this?

I want my site to be bullet proof, idiot proof and
all-kinds-of-other-things-proof. I'd be curious to know how other people
handle this situation.


Jefficus


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



Re: Avoiding refresh stomping

2003-03-06 Thread Dan Allen
> Am I the only one who worries about stuff like this?
Nope

> Then (and here's the unpredictable user part) for some reason,
> they hit the refresh button on their browser
Here is how to handle this case, and I was actually going to be
e-mailing the list about this anyway, so glad you brought it up.

You have to "disconnect" the POST data from the current page by
using a URL redirect.  This way, when the user presses refresh, they
no longer have the POST data available.  You probably want to return
a redirect action forward from your action to make this happen,
along with any GET data you might need to reconstruct your page.

vBulletin handles this well when you search and post a message,
except instead of using a server side redirect they use a client
side meta-refresh.  I prefer the server side since the user isn't
even aware that it is happening.

Dan

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

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



Avoiding refresh stomping

2003-03-06 Thread Jeff Smith
I worry about users. I've been one. I know how unpredictable we can be. :-)

Take this case. I have a struts app and I want users to be able to log in. Pretty 
simple. In fact, it is probably the most common scenario implemented in samples and 
tutorials. 

Being a good host, I like to keep track of my guests. So when my users log in, I want 
to time-stamp them so I know how long they've been connected.

My action-forward for login success takes me to a pretty page that gives my users 
stats about their last logon (in case somebody is using their account without their 
knowledge) and a bunch of other stuff.

So they tend to sit on that page and read it for a while.

Then (and here's the unpredictable user part) for some reason, they hit the refresh 
button on their browser. Well, since they got here as an action forward from the 
authentication sequence, the refresh resubmits all their logon credentials, the system 
re-authenticates them and then takes them, finally, back to the page they've been 
reading and refreshes it. And in that process, my login timestamp is stomped with a 
newer one.

Now, I have already figured out a few ways to short circuit the re-authentication 
(like, don't authenticate a user who is already logged in.) But the question is, where 
else could my users be inadvertently causing spurious recursions into potentially 
costly sequences by ignorantly hitting the refresh button? I can imagine that some of 
my action sequences might invoke some fairly expensive computations before displaying 
the results. But do I *REALLY* want to recompute the whole thing when my users hit 
refresh? In the case of rendering dynamic content, maybe I do. But for transactional 
stuff like logging in, or submitting a credit card for authentication, I probably 
don't want to re-compute on refresh.

Am I the only one who worries about stuff like this?

I want my site to be bullet proof, idiot proof and all-kinds-of-other-things-proof. 
I'd be curious to know how other people handle this situation.


Jefficus

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

2003-03-06 Thread Chetan Sahasrabudhe
Simon:

Check the mails sent yday on Struts IDE and integration of struts
console with JDeveloper, it does have validation logic. donno how deep does
it go.

Chetan
- Original Message -
From: "Simon Kelly" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 12:38 PM
Subject: Re: [OT] IDE / ERD modeling (Was: Re: struts IDE)


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


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



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

2003-03-06 Thread Simon Kelly
I was insalling Red Hat 8.0 last night, and am damn sure I saw a modling
package being installed.  I'll have a look through it tonight and mail if I
find anything.

Cheers

Simon


- Original Message -
From: "Becky Norum" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 5:44 PM
Subject: [OT] IDE / ERD modeling (Was: Re: struts IDE)


> I've stayed quiet on this since I've used IDEs rarely.  I stick with
> xemacs and vi when necessary.  I've been curious how much an IDE like
> JDeveloper speeds up the process, once you are familiar with it.  I
> tried it for a couple of hours once, but found it kind of a pain to
> use.  Is spending time learning one's way around really worth it?
>
> OTOH, there are times when a typo in my struts-config.xml or web.xml
> waste an hour or two my time, and having some sort of validation would
> be great.
>
> And _really_ off-topic, what do you folks use for ERD modeling in *nix?
> I haven't been able to get DIA or xfig to generate decent looking .eps
> for papers, so I.. um.. do them in Windows.  Any other (free - we are a
> poor academic research center :D) modeling software out there people
> use?  Or tips on maximizing xfig/DIA?
>
> --
> Becky Norum <[EMAIL PROTECTED]>
> Becky Norum
> Database Administrator
> Center for Subsurface Sensing and Imaging Systems (CenSSIS)
> Northeastern University
> http://www.censsis.neu.edu
> >
> > --- Dejan Krsmanovic <[EMAIL PROTECTED]>
> > wrote:
> > > I have used 9.0.3 for building few struts
> > > applications and I can say it
> > > saved me a lot of time. They have integrated few
> > > wizards for working with
> > > config files and support for taglibs (autocomplete
> > > etc.). However I have
> > > found few bugs (for example when specifying data
> > > source configuration in
> > > struts-config). Also, there was no support for tiles
> > > and validator.
> > >
> > > These days I saw Oracle has released maintainance
> > > version - 9.0.3.1, but I
> > > haven't downloaded it yet.
> > >
> > > Dejan
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: Multiple beans in request scope?

2003-03-06 Thread Jeff Smith
There's actually a couple of different issues here.

The first is this: I want to have a quasi-dynamic form that relies on
information in the database to control some of the options presented in the
form itself. I'm using a fictitious example to keep things simple. Suppose I
have a storefront application and the list of credit cards we support is
maintained in the database. (This way, when we add support for more cards,
we just update the database and the payment form will automatically present
them.)

So I need a bean that contains the list of supported cards. And I need that
bean populated before my form is displayed - since the form relies on the
bean contents to display itself.

How do I get that bean to load before the page loads? I can think of a
couple of ways:

1) Declare the bean in the name field of the action item for the form. (As I
understand it, this will cause it to be instantiated and placed whatever
scope I put in the scope field.) As long as my bean constructor has db
loading logic, this would give me my bean, loaded and ready for use when I
start rendering my JSP.

2) I could chain two actions together. The first would be a preparation
action that manually instantiated the bean, populated it and placed it in
the scope. The success forward for that first action would be the actual
display action.

Either of those solutions will work. (There may be a couple of others I
haven't considered.) But let's complicate the problem a bit more. On this
same page, I want to include a few other elements that are also drawn from
the database. In my previous message, I suggested that they might be other
lists (like the list of documents available for purchase and the list of
delivery methods offered). But it could be any db-driven information.

So now I have two more beans (keeping with my original example). One that
lists delivery methods and another that lists documents. Since they are also
db-driven and since they are also part of the form presentation, they must
also be loaded and scoped before the form is displayed.

Now method 2 from above still works, since my preparation action has no
limits on how many beans it can load, but method 1 no longer works, because
struts only supports one bean being automatically loaded for an action.

Richard also suggested that I could create a "parent" bean that in turn
loaded each of the list-beans. This approach is similar to my
preparation-action solution.

Both of these methods will work, but they require additional code every time
I want to simply make some basic information available to my form. If one of
those lists is used on a dozen different forms, I have to write a lot of
code to instantiate them each time.

Wouldn't it be powerful if the  tag supported multiple 
tags within it? In that case, I could do something like this:







This construct would allow me to make all kinds of information available to
build my form without having to write special prep-Action handlers or
aggregation beans. In fact, it could be even more flexible by adding a
parameter attribute to the formbean tag that allows me to specify an
initialization method to invoke on the bean when it gets loaded.


I was hoping somebody would say "Yeah, you can do that."  But I guess not.

Jefficus


- Original Message -
From: "alexj" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 6:50 PM
Subject: Re: Multiple beans in request scope?


> Sure you can use mutliple beans in your scope.
>
> But I didn't see the main case, it will be better for us (for me lol) to
> understand the whole context of your application.
>
> Cheers.
>
> --
> Alexandre Jaquet
>
> - Original Message -
> From: "Jeff Smith" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 1:21 AM
> Subject: Multiple beans in request scope?
>
>
> I'm building my first real struts app. (Okay, its also my first real Java
> app, my first real servlet app and a bunch of other firsts, but who's
> counting? :-)
>
> I'd like to present a form that contains a few selection lists, with
values
> taken from a few tables in my database.
>
> Let's say the lists are:
> 1) A list of documents the user can have sent to him
> 2) A list of transport methods he can choose (ftp, email, snail mail,
> etc...)
> 3) A list of credit cards that we currently accept.
>
> Obviously, these are logically disparate lists, so I would rather not
create
> a form-specific bean to encapsulate all this information.
>
> What I'd *REALLY* like to do is have a DocsBean, a DeliveryOptionsBean and
a
> CreditCardBean that each load themselves from the database. And in a
perfect
> world, I'd like to be able to specify (in the action tag of my
> struts-config) that form UserOrder wants all three of those beans loaded
> into the request scope.
>
> Is that possible? It appears to me that the action tag only takes a single
> formbean name, so I am assuming I have to find a d

Commons Logging Configuration

2003-03-06 Thread ashokd
Hi,

I have a question regarding configuration of  Commons Logging (for
Log4j). Where I need to place this configuration property file. Their is any
user guide to configure commons Logging.

Thanks & Regards,
Ashok.D


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



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

2003-03-06 Thread Arron Bates
Jeff,

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

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


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

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


Arron*


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

> I Had read that Arron had submitted patches to the nested tags to allow the
> upgrade to tomcat 4.1.x.
> (I assume that the zip jakarta-struts-20030306 contains the nested fixes)
> 
> We are currently developing on TC4.04 with 1.1b2.
> 
> I dropped that latest binaries in and got several problems (compile errors)
> on many pages that work fine other wise.
> 
> If I understand the upgrade.I just replace the JARS, *.tld, and the
> *.dtd 's...?
> 
> This is not all the problems but two main ones are the nested:img tag and
> the nested:radio tag
> 
> With a usage such as:
> 
> I get:
> javax.servlet.jsp.JspException: No getter method for property  of bean
taskListForm
> at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:881)
> at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:622)
> at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410)
> at
org.apache.struts.taglib.nested.html.NestedImgTag.doEndTag(NestedImgTag.java:106)
> at
org.apache.jsp.TaskListMainForm$jsp._jspService(TaskListMainForm$jsp.java:390)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> ..
> 
> If I replace it with:
> 
> It will work Fine.
> 
> The nested:radio tag gives me this:
> 
> javax.servlet.jsp.JspException: Cannot find bean under name
> at org.apache.struts.taglib.html.RadioTag.doStartTag(RadioTag.java:229)
> at
org.apache.struts.taglib.nested.html.NestedRadioTag.doStartTag(NestedRadioTag.java:94)
> at
org.apache.jsp.InvOnDemandFilterTable$jsp._jspService(InvOnDemandFilterTable$jsp.java:126)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
> at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
> 
> with a usage of:
> inside a jsp:include
> 
> 
> 
>   All
>   
>   Open
>   
> 
> 
> 
> 
> sorry for the long email..
> 
> Jeff
> 
> -
> 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]



Struts CONSOLE some workaround

2003-03-06 Thread Chetan Sahasrabudhe



Hi,
    As per james instructions I was able to put in 
struts-console as plugin to my JDeveloper, but the problem is if u have already 
opend the struts-config.xml in ur project through normal XML Editor provided by 
JDeveloper, then struts console will not pick it
 
there is a work around
open your project file in text pad
and look for struts-config.xml file
the file is put as a value for xml tag
 
struts-config.xml
 
change it to
 
struts-config.xml
 
Make sure u colose the project and restart JDeveloper, I tried just closing 
the project and reopening it, but it did not work (think that Jdev has some 
prepopulated objects and are not changed till u close it).
 
Your struts console is available to use.
 
 
 
RegardsChetan_
 
“Each pattern describes the problems which occurs over and over again in 
our environment, and then describes the core of the solution of that problem, in 
such a way that you can use this solution a million times over, without ever 
doing it the same way twice.”Alexander (1977)
 


struts IDE: Plug-in problem

2003-03-06 Thread Chetan Sahasrabudhe
James:

I can see the addin there, problem is when i right click on
struts-config.xml with proper DOCTYPE itz not giving me option of "struts
console", is there a different way to add struts-config in project so as to
get this thing work.

Thanks
Chetan
- Original Message -
From: "James Holmes" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 7:47 PM
Subject: Re: struts IDE


> Most likely the plugin is installed fine, but it is
> not recognizing your xml file as a Struts config file.
>  You need to make sure you have the right DOCTYPE in
> your config file otherwise Struts Console won't work.
> For more on this see the help page:
>
> http://www.jamesholmes.com/struts/console/help.html
>
> To verify that Struts Console plugin is properly
> installed in JDeveloper go to the "Tools" menu and
> select "Preferences". If you see "Struts Console" in
> the tree on the left hand side then Struts Console is
> installed properly.
>
> Hope that helps,
>
> -james
>
> --- Chetan Sahasrabudhe <[EMAIL PROTECTED]>
> wrote:
> > James :
> >
> > I am trying out plug-in suggested by u, I
> > followed all the steps and
> > restarted JDev. but I am not able to get it work. do
> > u know any common
> > problem
> >
> > Chetan
> > - Original Message -
> > From: "James Holmes" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, March 06, 2003 7:27 PM
> > Subject: Re: struts IDE
> >
> >
> > > That is correct.  The Struts Console plugins don't
> > > provide a facility to create new config files in
> > any
> > > of the IDEs.  Unfortunately, this is only
> > available in
> > > the standalone version.
> > >
> > > -james
> > >
> > > --- Dejan Krsmanovic
> > <[EMAIL PROTECTED]>
> > > wrote:
> > > > Yeah, I know. However I have switched to Eclipse
> > now
> > > > and using both Easy
> > > > Struts & Struts Console.
> > > > By the way I coudn't see option for creating new
> > > > struts/validator/tiles
> > > > config file in Eclipse with Struts Console
> > plugin
> > > > installed. I can only edit
> > > > existing config file. Am I missing something?
> > > >
> > > > Dejan
> > > >
> > > >
> > > > - Original Message -
> > > > From: "James Holmes" <[EMAIL PROTECTED]>
> > > > To: "Struts Users Mailing List"
> > > > <[EMAIL PROTECTED]>
> > > > Sent: Thursday, March 06, 2003 2:25 PM
> > > > Subject: Re: struts IDE
> > > >
> > > >
> > > > > You can use the Struts Console plugin in
> > > > JDeveloper
> > > > > and it has fully working support for Struts,
> > Tiles
> > > > and
> > > > > Validator config files.  This should solve
> > your
> > > > > problems.
> > > > >
> > > > > http://www.jamesholmes.com/struts/
> > > > >
> > > > > -james
> > > > >
> > > > > --- Dejan Krsmanovic
> > > > <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > I have used 9.0.3 for building few struts
> > > > > > applications and I can say it
> > > > > > saved me a lot of time. They have integrated
> > few
> > > > > > wizards for working with
> > > > > > config files and support for taglibs
> > > > (autocomplete
> > > > > > etc.). However I have
> > > > > > found few bugs (for example when specifying
> > data
> > > > > > source configuration in
> > > > > > struts-config). Also, there was no support
> > for
> > > > tiles
> > > > > > and validator.
> > > > > >
> > > > > > These days I saw Oracle has released
> > > > maintainance
> > > > > > version - 9.0.3.1, but I
> > > > > > haven't downloaded it yet.
> > > > > >
> > > > > > Dejan
> > > > > >
> > > > > > - Original Message -
> > > > > > From: "Davor Cengija"
> > > > <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Thursday, March 06, 2003 10:38 AM
> > > > > > Subject: RE: struts IDE
> > > > > >
> > > > > >
> > > > > > > Aris Kyriakidis wrote:
> > > > > > >
> > > > > > > > What is your opinion on JDeveloper
> > 9.0.3?
> > > > > > >
> > > > > > > I'd like to hear the people's opinion on
> > JDev
> > > > > > 9.0.3 as well, especially
> > > > > > > regarding the Struts support.
> > > > > > >
> > > > > > > I used JDev 9.0.1 and 9.0.2 on a quite big
> > > > project
> > > > > > with my custom struts
> > > > > > > integration and it was just horrible.
> > 9.0.1
> > > > was
> > > > > > very very buggy. Although
> > > > > > > 9.0.2 fixed some problems, some conceptual
> > > > ideas
> > > > > > were still, well,
> > > > > > strange,
> > > > > > > to say it politelly. I guess 9.0.3
> > provides
> > > > some
> > > > > > taglibs to ease the
> > > > > > struts
> > > > > > > integration, but the basic concepts are
> > still
> > > > the
> > > > > > same (opening and
> > > > > > closing
> > > > > > > the connections within a JSP page, JSPs
> > are
> > > > more
> > > > > > than just a view etc).
> > > > > > >
> > > > > > > What other people think of JDeveloper 9?
> > > > > > >
> > > > > > > --
> > > > > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> 

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

2003-03-06 Thread Jacob Hookom
| >
| > What about the Digester Bug in EA3?
| >
| 
| You mean the one you get if you try using Faces under JWSDP 1.1?  That's
| still being investigated (it's something weird in the class loading that
| changed between 1.0 and 1.1).
| 
| Craig

I'm running 4.18 (Jan 17th), I remember downloading JWSDP 1.1 a while back.
I'm not sure how that's affecting my Tomcat install, how do I digress my
installation?  Following your VERY detailed README.txt

This is quite the coincidence; I just started looking into it this afternoon
for the first time.

-Jacob


| 
| -
| 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-JavaServer Faces Integration Library -- Early Access Version Now Available

2003-03-06 Thread Jacob Hookom
I was getting logging errors, replaced commons-logging was replaced with an
older version-- it got rid of the logging exception.

Still getting now the attribute xml exception that I posted about in the JSF
forum:

http://forum.java.sun.com/thread.jsp?forum=427&thread=368179

-Jacob

| -Original Message-
| From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
| Sent: Thursday, March 06, 2003 10:41 PM
| To: Struts Users Mailing List
| Subject: Re: [ANNOUNCE] Struts-JavaServer Faces Integration Library --
| Early Access Version Now Available
| 
| 
| 
| On Fri, 7 Mar 2003, alexj wrote:
| 
| > Date: Fri, 7 Mar 2003 05:30:52 +0100
| > From: alexj <[EMAIL PROTECTED]>
| > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
| > To: Struts Users Mailing List <[EMAIL PROTECTED]>
| > Subject: Re: [ANNOUNCE] Struts-JavaServer Faces Integration Library --
| > Early Access Version Now Available
| >
| > "You don't have permission to access
| > /builds/jakarta-struts/nightly/struts-faces/jakarta-struts-faces-
| 20030306.ta
| > r.gz on this server. "
| >
| > sniff :(
| >
| 
| Just caught and fixed ... please try again :-)
| 
| > --
| > Alexandre Jaquet
| >
| 
| Craig
| 
| -
| 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-JavaServer Faces Integration Library -- EarlyAccess Version Now Available

2003-03-06 Thread Craig R. McClanahan


On Thu, 6 Mar 2003, Jacob Hookom wrote:

> Date: Thu, 6 Mar 2003 22:31:46 -0600
> From: Jacob Hookom <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> Subject: RE: [ANNOUNCE] Struts-JavaServer Faces Integration Library --
> Early Access Version Now Available
>
> What about the Digester Bug in EA3?
>

You mean the one you get if you try using Faces under JWSDP 1.1?  That's
still being investigated (it's something weird in the class loading that
changed between 1.0 and 1.1).

Craig

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



Re: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- EarlyAccess Version Now Available

2003-03-06 Thread Craig R. McClanahan


On Fri, 7 Mar 2003, alexj wrote:

> Date: Fri, 7 Mar 2003 05:30:52 +0100
> From: alexj <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: [ANNOUNCE] Struts-JavaServer Faces Integration Library --
> Early Access Version Now Available
>
> "You don't have permission to access
> /builds/jakarta-struts/nightly/struts-faces/jakarta-struts-faces-20030306.ta
> r.gz on this server. "
>
> sniff :(
>

Just caught and fixed ... please try again :-)

> --
> Alexandre Jaquet
>

Craig

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



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

2003-03-06 Thread alexj
yep it's ok rigth now :)

--
Alexandre Jaquet

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 5:17 AM
Subject: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- Early
Access Version Now Available


> I'm happy to announce the immediate availability of an integration library
> that allows you to use the recently published EA3 release of JavaServer
> Faces  with a recent Struts
> build (nightly build 20030216 or later, or the upcoming 1.1-rc2 or final
> release).  Nightly builds of this package are available at:
>
>   http://jakarta.apache.org/builds/jakarta-struts/nightly/struts-faces/
>
> The sources for this package are in the "contrib/struts-faces"
> subdirectory of the "jakarta-struts" CVS repository.
>
> You should take note of the following important points:
>
> * The design goal of this library was to allow Struts application
>   developers to migrate the view tier of their applications from the
>   existing Struts tags, to pages that use corresponding JavaServer Faces
>   component tags, with no changes to the corresponding business logic.
>   This goal has been substantially achieved for simple applications
>   so far; additional work will be necessary for more advanced apps.
>   As a proof of concept, the JavaServer Faces based version of the
>   canonical "struts-example" web application is included in the
>   distribution, so that you can see for yourself how little had to be
>   changed.
>
> * The integration library has been tested under Tomcat 4.1.18 and
>   the Java Web Services Developer Pack (version 1.0_01), although in
>   principle it should run on any Servlet 2.3/JSP 1.2 container.
>   (It will not run on Servlet 2.2/JSP 1.1 containers).
>
> * There is a known issue when trying to run JavaServer Faces EA3
>   under the recently released Java Web Services Developer Pack
>   (version 1.1).  Watch the JavaServer Faces web page (at the URL
>   listed above) for up-to-date information on workarounds.
>
> * The JavaServer Faces distribution is an EA release, not suitable for
>   use in production environments.  In addition, the license terms
>   under which it can be downloaded prohibit redistribution.  Therefore,
>   you will need to download your own copy of JavaServer Faces EA3 and
>   integrate it with the example application before it can be deployed.
>
> * The integration library should also be considered to be of alpha
>   quality, not suitable for production use.  There are a set of known
>   issues and limitations at the bottom of the README.txt file.  Please
>   file bugs against this package in the usual Bugzilla location:
>
> http://nagoya.apache.org/bugzilla/
>
> * For generic questions about JavaServer Faces (i.e. not related to this
>   integration library), your best resource is the JavaServer Faces forum
>   (free registration required) at:
>
> http://forum.java.sun.com/forum.jsp?forum=427
>
> See the README.txt file in the top-level subdirectory for more information
> about installing and using this release.
>
> Craig McClanahan
>
>
> -
> 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-JavaServer Faces Integration Library -- Early Access Version Now Available

2003-03-06 Thread Jacob Hookom
What about the Digester Bug in EA3?

| -Original Message-
| From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
| Sent: Thursday, March 06, 2003 10:17 PM
| To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
| Subject: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- Early
| Access Version Now Available
| 
| I'm happy to announce the immediate availability of an integration library
| that allows you to use the recently published EA3 release of JavaServer
| Faces  with a recent Struts
| build (nightly build 20030216 or later, or the upcoming 1.1-rc2 or final
| release).  Nightly builds of this package are available at:
| 
|   http://jakarta.apache.org/builds/jakarta-struts/nightly/struts-faces/
| 
| The sources for this package are in the "contrib/struts-faces"
| subdirectory of the "jakarta-struts" CVS repository.
| 
| You should take note of the following important points:
| 
| * The design goal of this library was to allow Struts application
|   developers to migrate the view tier of their applications from the
|   existing Struts tags, to pages that use corresponding JavaServer Faces
|   component tags, with no changes to the corresponding business logic.
|   This goal has been substantially achieved for simple applications
|   so far; additional work will be necessary for more advanced apps.
|   As a proof of concept, the JavaServer Faces based version of the
|   canonical "struts-example" web application is included in the
|   distribution, so that you can see for yourself how little had to be
|   changed.
| 
| * The integration library has been tested under Tomcat 4.1.18 and
|   the Java Web Services Developer Pack (version 1.0_01), although in
|   principle it should run on any Servlet 2.3/JSP 1.2 container.
|   (It will not run on Servlet 2.2/JSP 1.1 containers).
| 
| * There is a known issue when trying to run JavaServer Faces EA3
|   under the recently released Java Web Services Developer Pack
|   (version 1.1).  Watch the JavaServer Faces web page (at the URL
|   listed above) for up-to-date information on workarounds.
| 
| * The JavaServer Faces distribution is an EA release, not suitable for
|   use in production environments.  In addition, the license terms
|   under which it can be downloaded prohibit redistribution.  Therefore,
|   you will need to download your own copy of JavaServer Faces EA3 and
|   integrate it with the example application before it can be deployed.
| 
| * The integration library should also be considered to be of alpha
|   quality, not suitable for production use.  There are a set of known
|   issues and limitations at the bottom of the README.txt file.  Please
|   file bugs against this package in the usual Bugzilla location:
| 
| http://nagoya.apache.org/bugzilla/
| 
| * For generic questions about JavaServer Faces (i.e. not related to this
|   integration library), your best resource is the JavaServer Faces forum
|   (free registration required) at:
| 
| http://forum.java.sun.com/forum.jsp?forum=427
| 
| See the README.txt file in the top-level subdirectory for more information
| about installing and using this release.
| 
| Craig McClanahan
| 
| 
| -
| 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-JavaServer Faces Integration Library -- Early Access Version Now Available

2003-03-06 Thread alexj
"You don't have permission to access
/builds/jakarta-struts/nightly/struts-faces/jakarta-struts-faces-20030306.ta
r.gz on this server. "

sniff :(

--
Alexandre Jaquet

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 5:17 AM
Subject: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- Early
Access Version Now Available


> I'm happy to announce the immediate availability of an integration library
> that allows you to use the recently published EA3 release of JavaServer
> Faces <http://java.sun.com/j2ee/javaserverfaces/> with a recent Struts
> build (nightly build 20030216 or later, or the upcoming 1.1-rc2 or final
> release).  Nightly builds of this package are available at:
>
>   http://jakarta.apache.org/builds/jakarta-struts/nightly/struts-faces/
>
> The sources for this package are in the "contrib/struts-faces"
> subdirectory of the "jakarta-struts" CVS repository.
>
> You should take note of the following important points:
>
> * The design goal of this library was to allow Struts application
>   developers to migrate the view tier of their applications from the
>   existing Struts tags, to pages that use corresponding JavaServer Faces
>   component tags, with no changes to the corresponding business logic.
>   This goal has been substantially achieved for simple applications
>   so far; additional work will be necessary for more advanced apps.
>   As a proof of concept, the JavaServer Faces based version of the
>   canonical "struts-example" web application is included in the
>   distribution, so that you can see for yourself how little had to be
>   changed.
>
> * The integration library has been tested under Tomcat 4.1.18 and
>   the Java Web Services Developer Pack (version 1.0_01), although in
>   principle it should run on any Servlet 2.3/JSP 1.2 container.
>   (It will not run on Servlet 2.2/JSP 1.1 containers).
>
> * There is a known issue when trying to run JavaServer Faces EA3
>   under the recently released Java Web Services Developer Pack
>   (version 1.1).  Watch the JavaServer Faces web page (at the URL
>   listed above) for up-to-date information on workarounds.
>
> * The JavaServer Faces distribution is an EA release, not suitable for
>   use in production environments.  In addition, the license terms
>   under which it can be downloaded prohibit redistribution.  Therefore,
>   you will need to download your own copy of JavaServer Faces EA3 and
>   integrate it with the example application before it can be deployed.
>
> * The integration library should also be considered to be of alpha
>   quality, not suitable for production use.  There are a set of known
>   issues and limitations at the bottom of the README.txt file.  Please
>   file bugs against this package in the usual Bugzilla location:
>
> http://nagoya.apache.org/bugzilla/
>
> * For generic questions about JavaServer Faces (i.e. not related to this
>   integration library), your best resource is the JavaServer Faces forum
>   (free registration required) at:
>
> http://forum.java.sun.com/forum.jsp?forum=427
>
> See the README.txt file in the top-level subdirectory for more information
> about installing and using this release.
>
> Craig McClanahan
>
>
> -
> 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-JavaServer Faces Integration Library -- Early Access Version Now Available

2003-03-06 Thread alexj
rhooo :)

--
Alexandre Jaquet

- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 5:17 AM
Subject: [ANNOUNCE] Struts-JavaServer Faces Integration Library -- Early
Access Version Now Available


> I'm happy to announce the immediate availability of an integration library
> that allows you to use the recently published EA3 release of JavaServer
> Faces  with a recent Struts
> build (nightly build 20030216 or later, or the upcoming 1.1-rc2 or final
> release).  Nightly builds of this package are available at:
>
>   http://jakarta.apache.org/builds/jakarta-struts/nightly/struts-faces/
>
> The sources for this package are in the "contrib/struts-faces"
> subdirectory of the "jakarta-struts" CVS repository.
>
> You should take note of the following important points:
>
> * The design goal of this library was to allow Struts application
>   developers to migrate the view tier of their applications from the
>   existing Struts tags, to pages that use corresponding JavaServer Faces
>   component tags, with no changes to the corresponding business logic.
>   This goal has been substantially achieved for simple applications
>   so far; additional work will be necessary for more advanced apps.
>   As a proof of concept, the JavaServer Faces based version of the
>   canonical "struts-example" web application is included in the
>   distribution, so that you can see for yourself how little had to be
>   changed.
>
> * The integration library has been tested under Tomcat 4.1.18 and
>   the Java Web Services Developer Pack (version 1.0_01), although in
>   principle it should run on any Servlet 2.3/JSP 1.2 container.
>   (It will not run on Servlet 2.2/JSP 1.1 containers).
>
> * There is a known issue when trying to run JavaServer Faces EA3
>   under the recently released Java Web Services Developer Pack
>   (version 1.1).  Watch the JavaServer Faces web page (at the URL
>   listed above) for up-to-date information on workarounds.
>
> * The JavaServer Faces distribution is an EA release, not suitable for
>   use in production environments.  In addition, the license terms
>   under which it can be downloaded prohibit redistribution.  Therefore,
>   you will need to download your own copy of JavaServer Faces EA3 and
>   integrate it with the example application before it can be deployed.
>
> * The integration library should also be considered to be of alpha
>   quality, not suitable for production use.  There are a set of known
>   issues and limitations at the bottom of the README.txt file.  Please
>   file bugs against this package in the usual Bugzilla location:
>
> http://nagoya.apache.org/bugzilla/
>
> * For generic questions about JavaServer Faces (i.e. not related to this
>   integration library), your best resource is the JavaServer Faces forum
>   (free registration required) at:
>
> http://forum.java.sun.com/forum.jsp?forum=427
>
> See the README.txt file in the top-level subdirectory for more information
> about installing and using this release.
>
> Craig McClanahan
>
>
> -
> 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]



[ANNOUNCE] Struts-JavaServer Faces Integration Library -- EarlyAccess Version Now Available

2003-03-06 Thread Craig R. McClanahan
I'm happy to announce the immediate availability of an integration library
that allows you to use the recently published EA3 release of JavaServer
Faces  with a recent Struts
build (nightly build 20030216 or later, or the upcoming 1.1-rc2 or final
release).  Nightly builds of this package are available at:

  http://jakarta.apache.org/builds/jakarta-struts/nightly/struts-faces/

The sources for this package are in the "contrib/struts-faces"
subdirectory of the "jakarta-struts" CVS repository.

You should take note of the following important points:

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

* The integration library has been tested under Tomcat 4.1.18 and
  the Java Web Services Developer Pack (version 1.0_01), although in
  principle it should run on any Servlet 2.3/JSP 1.2 container.
  (It will not run on Servlet 2.2/JSP 1.1 containers).

* There is a known issue when trying to run JavaServer Faces EA3
  under the recently released Java Web Services Developer Pack
  (version 1.1).  Watch the JavaServer Faces web page (at the URL
  listed above) for up-to-date information on workarounds.

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

* The integration library should also be considered to be of alpha
  quality, not suitable for production use.  There are a set of known
  issues and limitations at the bottom of the README.txt file.  Please
  file bugs against this package in the usual Bugzilla location:

http://nagoya.apache.org/bugzilla/

* For generic questions about JavaServer Faces (i.e. not related to this
  integration library), your best resource is the JavaServer Faces forum
  (free registration required) at:

http://forum.java.sun.com/forum.jsp?forum=427

See the README.txt file in the top-level subdirectory for more information
about installing and using this release.

Craig McClanahan


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



[Q] extends DynaValidatorActionForm

2003-03-06 Thread WILLIAMS,RAND (HP-USA,ex1)
(Craig?)

I try to extend DynaValidatorActionForm,
using a no-argument constructor (as it has),
but when instantiating using the DynaBeanClass.newInstance( x, y, z ),
I am required to use a constructor( DynaClass ),
which DynaValidatorActionForm does not have...

Has anyone a working example of extending DynaValidatorForm, or
DynaActionForm?
Please let me know 

Thank you in advance!!

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

Rand Williams
Hewlett-Packard


And It would be a bonus to show me how I can instantiate the new class
using something like this:


   824  BasicDynaClass dynaClass =
   825new BasicDynaClass(
   826   "DynaSmModelValidatorFormClass",
   827DynaSmModelValidatorForm.class,
   828props);
   829
   830  try {
   831DynaSmModelValidatorForm elementBean =
(DynaSmModelValidatorForm) dynaClass.newInstance();


java.lang.IllegalArgumentException: 
Class com.hp.sm.model.DynaSmModelValidatorForm does not have an appropriate
constructor
at
org.apache.commons.beanutils.BasicDynaClass.setDynaBeanClass(BasicDynaClass.
java:310)
at
org.apache.commons.beanutils.BasicDynaClass.(BasicDynaClass.java:128)


public class DynaSmModelValidatorForm extends DynaValidatorActionForm
{
  public DynaSmModelValidatorForm() {
super();
  }
}

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



Re: logic:iterate tag revisited

2003-03-06 Thread alexj
a better page :
http://jakarta.apache.org/struts/faqs/actionForm.html

--
Alexandre Jaquet

- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:49 AM
Subject: RE: logic:iterate tag revisited


> Yeah that's col, I figured I would have to do that. that's the way I
> originally was going to do it,
>
> This then leads me to my next question, which was in the p.s. of my
previous
> post,
>
> how does struts create a formfile for upload form the path entered by the
> user.
>
> My problem is, there could be any number of image files needing uploading,
> depending on the strutcture of the template they are going into.
>
> Hence, I can't just have a fixed number of FormFile fields in my form.
>
> So when the user submits the file details, I want to be able to upload
that
> file to the server, then process it from there.
>
> How do I do that.
>
> There isn't much info about uploading a dynamic number of files to the
serve
> using struts.
>
> Steve
>
> -Original Message-
> From: alexj [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 2:34 PM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate tag revisited
>
>
> Yep struts cannot simply act as you wanna do.
>
> Before you can update your files path or everything else
> you will need to tell an action :
>
> "Hey retrieve all the kinds of datas on a whole collection
> I will made some change on it"
>
> First you got an view page who juste iterate your collection.
> and have a tag just as you say to will store some variables
> in your request.
>
> But one trouble I see is you are not in a windows like program,
> where you can just made some appropriate change and then
> pass it to whatever you want.
>
> If you wanna do your job, before you can send to an appropriate
> action, you will need to hit it by a client side programming.
>
> I'm not sure if you understand what I mean.
> --
> Alexandre Jaquet
>
>
>
> - Original Message -
> From: "Steve Vanspall" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 4:16 AM
> Subject: RE: logic:iterate tag revisited
>
>
> > ok this is the full story
> >
> > The value come from the form, the IMGTemplateFields object are in an
> > ArrayList chich is stored in the 'imageFieldsList' field of my
> > RenderHTMLForm
> >
> > I want to have struts iterate through that list. For wach occurence of
an
> > IMGTemplateBean I want to make a tag that will allow the user to enter
the
> > path of a file for upload.
> >
> > this will go into the 'file' field of the corresponding IMGTemplateBean.
> >
> > Now my problem is, when I submit the form, using the code mentioned in
my
> > previous message, it does not update the IMGTemplateBeans that the
'file'
> > fields relate to.
> >
> > Not sure if I am trying to do something that struts can't do, or if I am
> > just doing it wrong
> >
> > Regards
> >
> > Steve
> >
> > P.S. Alternatively how to I create a FormFile, with inputstream etc.
from
> a
> > string giving me the path of a file on the clients machine.
> >
> >
> >
> >
> >
> > -Original Message-
> > From: alexj [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 7 March 2003 2:07 PM
> > To: Struts Users Mailing List
> > Subject: Re: logic:iterate tag revisited
> >
> >
> > I can't understand why you need to re-iterate .
> >
> > Do you need to do some update on a view page ?
> >
> > If yes you will need to have an action defined for
> > that, then you will be redirect on an another page
> > or update your change on a session scope (for
> > example)
> >
> > From where the original value came ? The default
> > value you define on your based ActionForm ?
> >
> > --
> > Alexandre Jaquet
> >
> > - Original Message -
> > From: "Steve Vanspall" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, March 07, 2003 4:01 AM
> > Subject: RE: logic:iterate tag revisited
> >
> >
> > > Ok making some headway here,
> > >
> > > I have my logic:iterate tag working, but it doesn't do what I want it
to
> > >
> > > this is my code
> > >
> > >   > > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> > property="imageFieldsList"
> > > id="imgFile">
> > >   
> > >
> > >  > > property="description"/>
> > >  > > accept="image/gif,image/jpeg"/>
> > >   
> > >   
> > > cnt++;
> > > 
> > >   
> > >
> > > now I want this to populate the original field it got the value from,
> when
> > I
> > > submit the form.
> > >
> > > I can see why this won't do it, but can't work out if struts has a way
> of
> > > doing it for me
> > >
> > > Is there a way to get struts to iterate through a list, and then re
> > iterate
> > > through thelist and make the necessary changes, by populating the
> > > IMGTemplateBean with the apporopriate formFile information
> > >
> > > Regards
> > >
> > > Steve
> > >
> > >
> > >
> > > -Original Mess

RE: Association between Session object and Cookies/URL rewriting

2003-03-06 Thread Mohan Radhakrishnan
Hi,

   Actually it is the normal functionality. I was confused a bit.

I've done the following things.

1. I will call session.invalidate()
2. saveOnRestart="false" to prevent writing of session.ser



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

 NO. 2 above is done to prevent tomcat from writing session.ser. I assume
there are no side-effects. The two might not be related. But I thought if
session info. is persisted across shutdowns and restarts I could see old
session data.

Mohan


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


I am not sure what the goal is for your application. You only want to
call session.invalidate() if you want the server to forget about the
user (force a logout). What is it that you wish to achieve?

-Max

On Thu, 2003-03-06 at 05:50, Mohan Radhakrishnan wrote:
> 
>  So I will have to use
> 
>   inValidateSession( request );
> 
>  What will happen to code like this in by base action if I do this?
That
> would be lost.
> 
>   protected void setLocale(
> HttpServletRequest request,
> Locale locale) {
> 
> HttpSession session = request.getSession(true);
> session.setAttribute( Action.LOCALE_KEY,locale );
> 
> }
> 
> Mohan
> 
> -Original Message-
> From: Max Cooper [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 6:18 PM
> To: Struts Users Mailing List
> Subject: Re: Association between Session object and Cookies/URL
> rewriting
> 
> 
> >Some login pages and servers may drop your old session when you
> >authenticate, but I know that Tomcat doesn't do that unless you
explicitly
> >have a session.invalidate() call in your login page.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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

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



Re: logic:iterate tag revisited

2003-03-06 Thread alexj
I never had that case but you may have a look
at the
http://jakarta.apache.org/struts/api/org/apache/struts/upload/package-use.ht
ml
(never try)
--
Alexandre Jaquet

You can get the source code of this taglib on the wrox web site.
- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:49 AM
Subject: RE: logic:iterate tag revisited


> Yeah that's col, I figured I would have to do that. that's the way I
> originally was going to do it,
>
> This then leads me to my next question, which was in the p.s. of my
previous
> post,
>
> how does struts create a formfile for upload form the path entered by the
> user.
>
> My problem is, there could be any number of image files needing uploading,
> depending on the strutcture of the template they are going into.
>
> Hence, I can't just have a fixed number of FormFile fields in my form.
>
> So when the user submits the file details, I want to be able to upload
that
> file to the server, then process it from there.
>
> How do I do that.
>
> There isn't much info about uploading a dynamic number of files to the
serve
> using struts.
>
> Steve
>
> -Original Message-
> From: alexj [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 2:34 PM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate tag revisited
>
>
> Yep struts cannot simply act as you wanna do.
>
> Before you can update your files path or everything else
> you will need to tell an action :
>
> "Hey retrieve all the kinds of datas on a whole collection
> I will made some change on it"
>
> First you got an view page who juste iterate your collection.
> and have a tag just as you say to will store some variables
> in your request.
>
> But one trouble I see is you are not in a windows like program,
> where you can just made some appropriate change and then
> pass it to whatever you want.
>
> If you wanna do your job, before you can send to an appropriate
> action, you will need to hit it by a client side programming.
>
> I'm not sure if you understand what I mean.
> --
> Alexandre Jaquet
>
>
>
> - Original Message -
> From: "Steve Vanspall" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 4:16 AM
> Subject: RE: logic:iterate tag revisited
>
>
> > ok this is the full story
> >
> > The value come from the form, the IMGTemplateFields object are in an
> > ArrayList chich is stored in the 'imageFieldsList' field of my
> > RenderHTMLForm
> >
> > I want to have struts iterate through that list. For wach occurence of
an
> > IMGTemplateBean I want to make a tag that will allow the user to enter
the
> > path of a file for upload.
> >
> > this will go into the 'file' field of the corresponding IMGTemplateBean.
> >
> > Now my problem is, when I submit the form, using the code mentioned in
my
> > previous message, it does not update the IMGTemplateBeans that the
'file'
> > fields relate to.
> >
> > Not sure if I am trying to do something that struts can't do, or if I am
> > just doing it wrong
> >
> > Regards
> >
> > Steve
> >
> > P.S. Alternatively how to I create a FormFile, with inputstream etc.
from
> a
> > string giving me the path of a file on the clients machine.
> >
> >
> >
> >
> >
> > -Original Message-
> > From: alexj [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 7 March 2003 2:07 PM
> > To: Struts Users Mailing List
> > Subject: Re: logic:iterate tag revisited
> >
> >
> > I can't understand why you need to re-iterate .
> >
> > Do you need to do some update on a view page ?
> >
> > If yes you will need to have an action defined for
> > that, then you will be redirect on an another page
> > or update your change on a session scope (for
> > example)
> >
> > From where the original value came ? The default
> > value you define on your based ActionForm ?
> >
> > --
> > Alexandre Jaquet
> >
> > - Original Message -
> > From: "Steve Vanspall" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > Sent: Friday, March 07, 2003 4:01 AM
> > Subject: RE: logic:iterate tag revisited
> >
> >
> > > Ok making some headway here,
> > >
> > > I have my logic:iterate tag working, but it doesn't do what I want it
to
> > >
> > > this is my code
> > >
> > >   > > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> > property="imageFieldsList"
> > > id="imgFile">
> > >   
> > >
> > >  > > property="description"/>
> > >  > > accept="image/gif,image/jpeg"/>
> > >   
> > >   
> > > cnt++;
> > > 
> > >   
> > >
> > > now I want this to populate the original field it got the value from,
> when
> > I
> > > submit the form.
> > >
> > > I can see why this won't do it, but can't work out if struts has a way
> of
> > > doing it for me
> > >
> > > Is there a way to get struts to iterate through a list, and then re
> > iterate
> > > through thelist and make the necessary changes, by populating the
> > > 

RE: logic:iterate tag revisited

2003-03-06 Thread Steve Vanspall
Yeah that's col, I figured I would have to do that. that's the way I
originally was going to do it,

This then leads me to my next question, which was in the p.s. of my previous
post,

how does struts create a formfile for upload form the path entered by the
user.

My problem is, there could be any number of image files needing uploading,
depending on the strutcture of the template they are going into.

Hence, I can't just have a fixed number of FormFile fields in my form.

So when the user submits the file details, I want to be able to upload that
file to the server, then process it from there.

How do I do that.

There isn't much info about uploading a dynamic number of files to the serve
using struts.

Steve

-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 2:34 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate tag revisited


Yep struts cannot simply act as you wanna do.

Before you can update your files path or everything else
you will need to tell an action :

"Hey retrieve all the kinds of datas on a whole collection
I will made some change on it"

First you got an view page who juste iterate your collection.
and have a tag just as you say to will store some variables
in your request.

But one trouble I see is you are not in a windows like program,
where you can just made some appropriate change and then
pass it to whatever you want.

If you wanna do your job, before you can send to an appropriate
action, you will need to hit it by a client side programming.

I'm not sure if you understand what I mean.
--
Alexandre Jaquet



- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:16 AM
Subject: RE: logic:iterate tag revisited


> ok this is the full story
>
> The value come from the form, the IMGTemplateFields object are in an
> ArrayList chich is stored in the 'imageFieldsList' field of my
> RenderHTMLForm
>
> I want to have struts iterate through that list. For wach occurence of an
> IMGTemplateBean I want to make a tag that will allow the user to enter the
> path of a file for upload.
>
> this will go into the 'file' field of the corresponding IMGTemplateBean.
>
> Now my problem is, when I submit the form, using the code mentioned in my
> previous message, it does not update the IMGTemplateBeans that the 'file'
> fields relate to.
>
> Not sure if I am trying to do something that struts can't do, or if I am
> just doing it wrong
>
> Regards
>
> Steve
>
> P.S. Alternatively how to I create a FormFile, with inputstream etc. from
a
> string giving me the path of a file on the clients machine.
>
>
>
>
>
> -Original Message-
> From: alexj [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 2:07 PM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate tag revisited
>
>
> I can't understand why you need to re-iterate .
>
> Do you need to do some update on a view page ?
>
> If yes you will need to have an action defined for
> that, then you will be redirect on an another page
> or update your change on a session scope (for
> example)
>
> From where the original value came ? The default
> value you define on your based ActionForm ?
>
> --
> Alexandre Jaquet
>
> - Original Message -
> From: "Steve Vanspall" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 4:01 AM
> Subject: RE: logic:iterate tag revisited
>
>
> > Ok making some headway here,
> >
> > I have my logic:iterate tag working, but it doesn't do what I want it to
> >
> > this is my code
> >
> >   > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> property="imageFieldsList"
> > id="imgFile">
> >   
> >
> >  > property="description"/>
> >  > accept="image/gif,image/jpeg"/>
> >   
> >   
> > cnt++;
> > 
> >   
> >
> > now I want this to populate the original field it got the value from,
when
> I
> > submit the form.
> >
> > I can see why this won't do it, but can't work out if struts has a way
of
> > doing it for me
> >
> > Is there a way to get struts to iterate through a list, and then re
> iterate
> > through thelist and make the necessary changes, by populating the
> > IMGTemplateBean with the apporopriate formFile information
> >
> > Regards
> >
> > Steve
> >
> >
> >
> > -Original Message-
> > From: Steve Vanspall [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 7 March 2003 12:42 PM
> > To: Struts Users Mailing List
> > Subject: RE: logic:iterate tag revisited
> >
> >
> > Ah it's always the small thing,
> >
> > I can't beleive I missed that
> >
> > Thank you, I will procedd to kick myself several times
> >
> > Steve
> >
> > -Original Message-
> > From: Rick Reumann [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 7 March 2003 11:51 AM
> > To: Struts Users Mailing List
> > Subject: Re: logic:iterate tag revisited
> >
> >
> > On Fri, 7 Mar 2003 11:33:50 +1100
> > "Steve Vans

Re: Servlet Mapping

2003-03-06 Thread alexj
But maybe there is a solution ,

I could not think no more about that's, it's 5 o clock on the morning and
I get drunk...

Maybe later today I will be a clearer mind ;)

--
Alexandre Jaquet

- Original Message -
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:19 AM
Subject: Re: Servlet Mapping


> Hi alexj
>
> i have mapped the Action servelet to " /action/*" in web.xml and i was
> able to send this request to the action servlet also. when i was
> requesting something in the URL in place of '*' i want to give it like
this
> /action/0/
>
> or
>
> /action//0
>
> here the '0' is coming dynamically upon selecting some link on the UI.
>
> usha
>
> alexj wrote:
>
> >What you will do in your web.xml def file is to define wich
> >servlet will map all the request you will got. And based
> >on wich pattern.
> >
> >By doing this you tell your server all the request who
> >include *.do need to be *forwarded* to your servlet
> >to map the appropriate action (based on your struts-config)
> >
> >Usually we use that one :
> >
> >
> >
> >action
> >
> >*.do
> >
> >
> >
> >
> >(I'm not sure if my definition is good as well, propably someone
> >
> >will correct me)
> >
> >--
> >
> >Alexandre Jaquet
> >
> >- Original Message -
> >From: "usha" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Friday, March 07, 2003 3:32 AM
> >Subject: Re: Servlet Mapping
> >
> >
> >
> >
> >>Hi Edgar
> >>
> >>Sorry , i was not sure what you are saying regarding the Map struts to
> >>/context/live/*. can you expaling me little bit more.
> >>
> >>Thanks
> >>usha
> >>
> >>Edgar Dollin wrote:
> >>
> >>
> >>
> >>>You can have a servlet mapped to /context/test/*.
> >>>
> >>>Map struts to /context/live/*.
> >>>
> >>>Your struts-config would have to have the /context/live/* entries.
> >>>
> >>>Your servlet does the url calculations and forward to the struts Action
> >>>servlet.
> >>>
> >>>Edgar
> >>>
> >>>
> >>>
> >>>
> >>>
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 11:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: Servlet Mapping
> 
> 
> You can only supply one mapping to the ActionServlet.
> 
> It's impolite to mark your posts as "urgent" because it's rather
> presumptuous.
> 
> David
> 
> 
> 
> 
> 
> 
> 
> >From: usha <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List"
> >
> >
> >
> >
> <[EMAIL PROTECTED]>
> 
> 
> 
> 
> >To: [EMAIL PROTECTED]
> >Subject: Servlet Mapping: urgent
> >Date: Thu, 06 Mar 2003 12:01:33 +0800
> >
> >Hi
> >
> >i posted this question previously also but i didn't get any
> >
> >
> >
> >
> answer from
> 
> 
> 
> 
> >any
> >body so i am posting it again.
> >
> >i am trying to give servletmapping for the following URL
> >http://localhost:8080/context/test/0/
> >
> >in the above URL '0' is going to be changed dynamically depending on
> >the
> >link the user select.how i can give a servlet-mapping for
> >
> >
> >
> >
> such type of URL
> 
> 
> 
> 
> >for the ActionServlet.
> >
> >is this possible to do like this.
> >
> >Thanks
> >usha
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> _
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> 
> 
> 
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
> -
> 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: logic:iterate tag revisited

2003-03-06 Thread alexj
Yep struts cannot simply act as you wanna do.

Before you can update your files path or everything else
you will need to tell an action :

"Hey retrieve all the kinds of datas on a whole collection
I will made some change on it"

First you got an view page who juste iterate your collection.
and have a tag just as you say to will store some variables
in your request.

But one trouble I see is you are not in a windows like program,
where you can just made some appropriate change and then
pass it to whatever you want.

If you wanna do your job, before you can send to an appropriate
action, you will need to hit it by a client side programming.

I'm not sure if you understand what I mean.
--
Alexandre Jaquet



- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:16 AM
Subject: RE: logic:iterate tag revisited


> ok this is the full story
>
> The value come from the form, the IMGTemplateFields object are in an
> ArrayList chich is stored in the 'imageFieldsList' field of my
> RenderHTMLForm
>
> I want to have struts iterate through that list. For wach occurence of an
> IMGTemplateBean I want to make a tag that will allow the user to enter the
> path of a file for upload.
>
> this will go into the 'file' field of the corresponding IMGTemplateBean.
>
> Now my problem is, when I submit the form, using the code mentioned in my
> previous message, it does not update the IMGTemplateBeans that the 'file'
> fields relate to.
>
> Not sure if I am trying to do something that struts can't do, or if I am
> just doing it wrong
>
> Regards
>
> Steve
>
> P.S. Alternatively how to I create a FormFile, with inputstream etc. from
a
> string giving me the path of a file on the clients machine.
>
>
>
>
>
> -Original Message-
> From: alexj [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 2:07 PM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate tag revisited
>
>
> I can't understand why you need to re-iterate .
>
> Do you need to do some update on a view page ?
>
> If yes you will need to have an action defined for
> that, then you will be redirect on an another page
> or update your change on a session scope (for
> example)
>
> From where the original value came ? The default
> value you define on your based ActionForm ?
>
> --
> Alexandre Jaquet
>
> - Original Message -
> From: "Steve Vanspall" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 4:01 AM
> Subject: RE: logic:iterate tag revisited
>
>
> > Ok making some headway here,
> >
> > I have my logic:iterate tag working, but it doesn't do what I want it to
> >
> > this is my code
> >
> >   > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> property="imageFieldsList"
> > id="imgFile">
> >   
> >
> >  > property="description"/>
> >  > accept="image/gif,image/jpeg"/>
> >   
> >   
> > cnt++;
> > 
> >   
> >
> > now I want this to populate the original field it got the value from,
when
> I
> > submit the form.
> >
> > I can see why this won't do it, but can't work out if struts has a way
of
> > doing it for me
> >
> > Is there a way to get struts to iterate through a list, and then re
> iterate
> > through thelist and make the necessary changes, by populating the
> > IMGTemplateBean with the apporopriate formFile information
> >
> > Regards
> >
> > Steve
> >
> >
> >
> > -Original Message-
> > From: Steve Vanspall [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 7 March 2003 12:42 PM
> > To: Struts Users Mailing List
> > Subject: RE: logic:iterate tag revisited
> >
> >
> > Ah it's always the small thing,
> >
> > I can't beleive I missed that
> >
> > Thank you, I will procedd to kick myself several times
> >
> > Steve
> >
> > -Original Message-
> > From: Rick Reumann [mailto:[EMAIL PROTECTED]
> > Sent: Friday, 7 March 2003 11:51 AM
> > To: Struts Users Mailing List
> > Subject: Re: logic:iterate tag revisited
> >
> >
> > On Fri, 7 Mar 2003 11:33:50 +1100
> > "Steve Vanspall" <[EMAIL PROTECTED]> wrote:
> >
> > > Hi there
> > >
> > > Here's my problem, I have modelled my iterate tag on a working example
> > > I was given by a colleague.
> > >
> > > this is my jsp code
> > >
> > >  > > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> > > property="imageFieldsList" id="imfFile">
> > >   
> > >  > > property="id"/> > > property="file"
> > > accept="image/gif,image/jpeg"/>
> > >   
> > >   nameArray[cnt] =
> > >   '<%=TemplateBeans.IMG_TMPLT%>: > > name="imfFile" property="id"/>';
> > > cnt++;
> > > 
> > > 
> > >
> > >
> > > when I run it I get
> > >
> > > javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope
> >
> > are you sure it's not saying "imgFile" is not any scope??? If you look
> > you named one of them imgFile and the other imfFile but I don't see
> > where you ever declar

Re: Servlet Mapping

2003-03-06 Thread usha
Hi alexj

i have mapped the Action servelet to " /action/*" in web.xml and i was 
able to send this request to the action servlet also. when i was 
requesting something in the URL in place of '*' i want to give it like this
/action/0/

or

/action//0

here the '0' is coming dynamically upon selecting some link on the UI.

usha

alexj wrote:

What you will do in your web.xml def file is to define wich
servlet will map all the request you will got. And based
on wich pattern.
By doing this you tell your server all the request who
include *.do need to be *forwarded* to your servlet
to map the appropriate action (based on your struts-config)
Usually we use that one :



action

*.do



(I'm not sure if my definition is good as well, propably someone

will correct me)

--

Alexandre Jaquet

- Original Message - 
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 3:32 AM
Subject: Re: Servlet Mapping

 

Hi Edgar

Sorry , i was not sure what you are saying regarding the Map struts to 
/context/live/*. can you expaling me little bit more.

Thanks
usha
Edgar Dollin wrote:

   

You can have a servlet mapped to /context/test/*.

Map struts to /context/live/*.

Your struts-config would have to have the /context/live/* entries.

Your servlet does the url calculations and forward to the struts Action
servlet.
Edgar



 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2003 11:17 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Servlet Mapping

You can only supply one mapping to the ActionServlet.

It's impolite to mark your posts as "urgent" because it's rather 
presumptuous.

David



  

   

From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 


 

<[EMAIL PROTECTED]>
  

   

To: [EMAIL PROTECTED]
Subject: Servlet Mapping: urgent
Date: Thu, 06 Mar 2003 12:01:33 +0800
Hi

i posted this question previously also but i didn't get any 


 

answer from 
  

   

any
body so i am posting it again.
i am trying to give servletmapping for the following URL 
http://localhost:8080/context/test/0/

in the above URL '0' is going to be changed dynamically depending on 
the
link the user select.how i can give a servlet-mapping for 


 

such type of URL 
  

   

for the ActionServlet.

is this possible to do like this.

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


 

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

  

   

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



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



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





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


RE: logic:iterate tag revisited

2003-03-06 Thread Steve Vanspall
ok this is the full story

The value come from the form, the IMGTemplateFields object are in an
ArrayList chich is stored in the 'imageFieldsList' field of my
RenderHTMLForm

I want to have struts iterate through that list. For wach occurence of an
IMGTemplateBean I want to make a tag that will allow the user to enter the
path of a file for upload.

this will go into the 'file' field of the corresponding IMGTemplateBean.

Now my problem is, when I submit the form, using the code mentioned in my
previous message, it does not update the IMGTemplateBeans that the 'file'
fields relate to.

Not sure if I am trying to do something that struts can't do, or if I am
just doing it wrong

Regards

Steve

P.S. Alternatively how to I create a FormFile, with inputstream etc. from a
string giving me the path of a file on the clients machine.





-Original Message-
From: alexj [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 2:07 PM
To: Struts Users Mailing List
Subject: Re: logic:iterate tag revisited


I can't understand why you need to re-iterate .

Do you need to do some update on a view page ?

If yes you will need to have an action defined for
that, then you will be redirect on an another page
or update your change on a session scope (for
example)

>From where the original value came ? The default
value you define on your based ActionForm ?

--
Alexandre Jaquet

- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:01 AM
Subject: RE: logic:iterate tag revisited


> Ok making some headway here,
>
> I have my logic:iterate tag working, but it doesn't do what I want it to
>
> this is my code
>
>   type="com.crm.util.TemplateBeans.IMGTemplateBean"
property="imageFieldsList"
> id="imgFile">
>   
>
>  property="description"/>
>  accept="image/gif,image/jpeg"/>
>   
>   
> cnt++;
> 
>   
>
> now I want this to populate the original field it got the value from, when
I
> submit the form.
>
> I can see why this won't do it, but can't work out if struts has a way of
> doing it for me
>
> Is there a way to get struts to iterate through a list, and then re
iterate
> through thelist and make the necessary changes, by populating the
> IMGTemplateBean with the apporopriate formFile information
>
> Regards
>
> Steve
>
>
>
> -Original Message-
> From: Steve Vanspall [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 12:42 PM
> To: Struts Users Mailing List
> Subject: RE: logic:iterate tag revisited
>
>
> Ah it's always the small thing,
>
> I can't beleive I missed that
>
> Thank you, I will procedd to kick myself several times
>
> Steve
>
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 11:51 AM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate tag revisited
>
>
> On Fri, 7 Mar 2003 11:33:50 +1100
> "Steve Vanspall" <[EMAIL PROTECTED]> wrote:
>
> > Hi there
> >
> > Here's my problem, I have modelled my iterate tag on a working example
> > I was given by a colleague.
> >
> > this is my jsp code
> >
> >  > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> > property="imageFieldsList" id="imfFile">
> >   
> >  > property="id"/> > property="file"
> > accept="image/gif,image/jpeg"/>
> >   
> >   nameArray[cnt] =
> >   '<%=TemplateBeans.IMG_TMPLT%>: > name="imfFile" property="id"/>';
> > cnt++;
> > 
> > 
> >
> >
> > when I run it I get
> >
> > javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope
>
> are you sure it's not saying "imgFile" is not any scope??? If you look
> you named one of them imgFile and the other imfFile but I don't see
> where you ever declared the id imgFile ? Is imgFile declared somewhere
> else?
>
> Also, are you positive your list has IMGTemplateBeans in it? If you
> remove all the  stuff and just print out "test" in there do
> you get a bunch of "test"s printed out?
>
> Are you also positive that your imageFieldsList is being populated with
> the type "com.crm.util.TemplateBeans.IMGTemplateBean" You sure nothing
> is spelled wrong there..etc. ?
>
> I know a lot of this is probably obvious but it's always the obvious
> that gets me:) A mistyped letter or something.
>
>
> --
> Rick Reumann
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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

Re: getPathInfo with Struts/Resin?

2003-03-06 Thread usha
Hi Kevin

I also have similar problem. did you able to found any solution for this.

Thanks
usha
Kevin Tung wrote:

Hi,

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

I want to be able to do the following

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

 
   action
   /execute/*
 
in my struts_config.xml

   

But when I point the browser to

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

400 Invalid path /edit/username/

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

400 Invalid path /

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

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

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




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





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


Re: logic:iterate tag revisited

2003-03-06 Thread alexj
I can't understand why you need to re-iterate .

Do you need to do some update on a view page ?

If yes you will need to have an action defined for
that, then you will be redirect on an another page
or update your change on a session scope (for
example)

>From where the original value came ? The default
value you define on your based ActionForm ?

--
Alexandre Jaquet

- Original Message -
From: "Steve Vanspall" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 4:01 AM
Subject: RE: logic:iterate tag revisited


> Ok making some headway here,
>
> I have my logic:iterate tag working, but it doesn't do what I want it to
>
> this is my code
>
>   type="com.crm.util.TemplateBeans.IMGTemplateBean"
property="imageFieldsList"
> id="imgFile">
>   
>
>  property="description"/>
>  accept="image/gif,image/jpeg"/>
>   
>   
> cnt++;
> 
>   
>
> now I want this to populate the original field it got the value from, when
I
> submit the form.
>
> I can see why this won't do it, but can't work out if struts has a way of
> doing it for me
>
> Is there a way to get struts to iterate through a list, and then re
iterate
> through thelist and make the necessary changes, by populating the
> IMGTemplateBean with the apporopriate formFile information
>
> Regards
>
> Steve
>
>
>
> -Original Message-
> From: Steve Vanspall [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 12:42 PM
> To: Struts Users Mailing List
> Subject: RE: logic:iterate tag revisited
>
>
> Ah it's always the small thing,
>
> I can't beleive I missed that
>
> Thank you, I will procedd to kick myself several times
>
> Steve
>
> -Original Message-
> From: Rick Reumann [mailto:[EMAIL PROTECTED]
> Sent: Friday, 7 March 2003 11:51 AM
> To: Struts Users Mailing List
> Subject: Re: logic:iterate tag revisited
>
>
> On Fri, 7 Mar 2003 11:33:50 +1100
> "Steve Vanspall" <[EMAIL PROTECTED]> wrote:
>
> > Hi there
> >
> > Here's my problem, I have modelled my iterate tag on a working example
> > I was given by a colleague.
> >
> > this is my jsp code
> >
> >  > type="com.crm.util.TemplateBeans.IMGTemplateBean"
> > property="imageFieldsList" id="imfFile">
> >   
> >  > property="id"/> > property="file"
> > accept="image/gif,image/jpeg"/>
> >   
> >   nameArray[cnt] =
> >   '<%=TemplateBeans.IMG_TMPLT%>: > name="imfFile" property="id"/>';
> > cnt++;
> > 
> > 
> >
> >
> > when I run it I get
> >
> > javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope
>
> are you sure it's not saying "imgFile" is not any scope??? If you look
> you named one of them imgFile and the other imfFile but I don't see
> where you ever declared the id imgFile ? Is imgFile declared somewhere
> else?
>
> Also, are you positive your list has IMGTemplateBeans in it? If you
> remove all the  stuff and just print out "test" in there do
> you get a bunch of "test"s printed out?
>
> Are you also positive that your imageFieldsList is being populated with
> the type "com.crm.util.TemplateBeans.IMGTemplateBean" You sure nothing
> is spelled wrong there..etc. ?
>
> I know a lot of this is probably obvious but it's always the obvious
> that gets me:) A mistyped letter or something.
>
>
> --
> Rick Reumann
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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



RE: logic:iterate tag revisited

2003-03-06 Thread Steve Vanspall
Ok making some headway here,

I have my logic:iterate tag working, but it doesn't do what I want it to

this is my code

 
  



  
  
cnt++;

  

now I want this to populate the original field it got the value from, when I
submit the form.

I can see why this won't do it, but can't work out if struts has a way of
doing it for me

Is there a way to get struts to iterate through a list, and then re iterate
through thelist and make the necessary changes, by populating the
IMGTemplateBean with the apporopriate formFile information

Regards

Steve



-Original Message-
From: Steve Vanspall [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 12:42 PM
To: Struts Users Mailing List
Subject: RE: logic:iterate tag revisited


Ah it's always the small thing,

I can't beleive I missed that

Thank you, I will procedd to kick myself several times

Steve

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 11:51 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate tag revisited


On Fri, 7 Mar 2003 11:33:50 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Hi there
>
> Here's my problem, I have modelled my iterate tag on a working example
> I was given by a colleague.
>
> this is my jsp code
>
>  type="com.crm.util.TemplateBeans.IMGTemplateBean"
> property="imageFieldsList" id="imfFile">
>   
>  property="id"/> property="file"
> accept="image/gif,image/jpeg"/>
>   
>   nameArray[cnt] =
>   '<%=TemplateBeans.IMG_TMPLT%>: name="imfFile" property="id"/>';
>   cnt++;
>   
> 
>
>
> when I run it I get
>
> javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope

are you sure it's not saying "imgFile" is not any scope??? If you look
you named one of them imgFile and the other imfFile but I don't see
where you ever declared the id imgFile ? Is imgFile declared somewhere
else?

Also, are you positive your list has IMGTemplateBeans in it? If you
remove all the  stuff and just print out "test" in there do
you get a bunch of "test"s printed out?

Are you also positive that your imageFieldsList is being populated with
the type "com.crm.util.TemplateBeans.IMGTemplateBean" You sure nothing
is spelled wrong there..etc. ?

I know a lot of this is probably obvious but it's always the obvious
that gets me:) A mistyped letter or something.


--
Rick Reumann

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



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



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



Re: Servlet Mapping

2003-03-06 Thread alexj
What you will do in your web.xml def file is to define wich
servlet will map all the request you will got. And based
on wich pattern.

By doing this you tell your server all the request who
include *.do need to be *forwarded* to your servlet
to map the appropriate action (based on your struts-config)

Usually we use that one :



action

*.do




(I'm not sure if my definition is good as well, propably someone

will correct me)

--

Alexandre Jaquet

- Original Message - 
From: "usha" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 3:32 AM
Subject: Re: Servlet Mapping


> Hi Edgar
> 
> Sorry , i was not sure what you are saying regarding the Map struts to 
> /context/live/*. can you expaling me little bit more.
> 
> Thanks
> usha
> 
> Edgar Dollin wrote:
> 
> >You can have a servlet mapped to /context/test/*.
> >
> >Map struts to /context/live/*.
> >
> >Your struts-config would have to have the /context/live/* entries.
> >
> >Your servlet does the url calculations and forward to the struts Action
> >servlet.
> >
> >Edgar
> >
> >  
> >
> >>-Original Message-
> >>From: David Graham [mailto:[EMAIL PROTECTED] 
> >>Sent: Wednesday, March 05, 2003 11:17 PM
> >>To: '[EMAIL PROTECTED]'
> >>Subject: Re: Servlet Mapping
> >>
> >>
> >>You can only supply one mapping to the ActionServlet.
> >>
> >>It's impolite to mark your posts as "urgent" because it's rather 
> >>presumptuous.
> >>
> >>David
> >>
> >>
> >>
> >>
> >>
> >>>From: usha <[EMAIL PROTECTED]>
> >>>Reply-To: "Struts Users Mailing List" 
> >>>  
> >>>
> >><[EMAIL PROTECTED]>
> >>
> >>
> >>>To: [EMAIL PROTECTED]
> >>>Subject: Servlet Mapping: urgent
> >>>Date: Thu, 06 Mar 2003 12:01:33 +0800
> >>>
> >>>Hi
> >>>
> >>>i posted this question previously also but i didn't get any 
> >>>  
> >>>
> >>answer from 
> >>
> >>
> >>>any
> >>>body so i am posting it again.
> >>>
> >>>i am trying to give servletmapping for the following URL 
> >>>http://localhost:8080/context/test/0/
> >>>
> >>>in the above URL '0' is going to be changed dynamically depending on 
> >>>the
> >>>link the user select.how i can give a servlet-mapping for 
> >>>  
> >>>
> >>such type of URL 
> >>
> >>
> >>>for the ActionServlet.
> >>>
> >>>is this possible to do like this.
> >>>
> >>>Thanks
> >>>usha
> >>>
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>  
> >>>
> >>_
> >>Tired of spam? Get advanced junk mail protection with MSN 8. 
> >>http://join.msn.com/?page=features/junkmail
> >>
> >>
> >>
> >>
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >  
> >
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: redirecting to HTTPS

2003-03-06 Thread alexj
The first thing you will need to do is to update the actionmapping type
definition
in your struts-conf file :



Then you will need to set an property for your action I give you a sample

for a login form :

















You will need to add the sslext plug in :











And that's all.

--
Alexandre Jaquet


- Original Message -
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 2:23 AM
Subject: RE: redirecting to HTTPS


> Thanks, Steve.  A quick question for you I guess, is going through the
> examples, there is more to it then just adding the .jar file and the tag
> file(s).  Is there some barebones thing that can be done, which will
> just simple allow two links in the app to take you to https, then back
> on another link?
>
> I guess, I'm looking for some barebones thing explaining what totally
> needs to be added to the web.xml file and struts-config.xml file.
>
> Any help would be greatly appreciated.
>
> Thanks.
>
> Ilya
>
> -Original Message-
> From: Ditlinger, Steve [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 06, 2003 8:02 PM
> To: 'Struts Users Mailing List'
> Subject: RE: redirecting to HTTPS
>
>
> There are examples with each of the different versions.  (1.02, 1.1b1,
> 1.1b2
> etc) at sslext.sourceforge.net.
>
> I intend to do some updating for an 1.1RC1 release soon (this weekend?).
> Also, I am usually able to answer questions in (semi-)prompt fashion..
>
> Steve
>
>  -Original Message-
>  From: Sterin, Ilya [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, March 06, 2003 4:42 PM
>  To: 'Struts Users Mailing List'
>  Subject: RE: redirecting to HTTPS
>
>
>  Ah, great, just found it, but I can't find any examples to go with it,
> nor a user's guide.  Any links? :-)
>
>  Ilya
>
>  -Original Message-
>  From: alexj [mailto:[EMAIL PROTECTED]
>  Sent: Thursday, March 06, 2003 7:37 PM
>  To: Struts Users Mailing List
>  Subject: Re: redirecting to HTTPS
>
>
>  Have a look for SSLext. (you may find a sample
>  with it)
>
>  --
>  Alexandre Jaquet
>
>  - Original Message -
>  From: "Sterin, Ilya" <[EMAIL PROTECTED]>
>  To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>  Sent: Friday, March 07, 2003 1:16 AM
>  Subject: redirecting to HTTPS
>
>
>  > What's the easiest way to redirecting to https and back.  Meaning,
>  > what's the I guess more common/prefered way of doing it in struts.  >
>
>  > Any small examples, would be great:-)
>  >
>  > Thanks a bunch.
>  >
>  > Ilya
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>  -
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: Servlet Mapping

2003-03-06 Thread usha
Hi Edgar

Sorry , i was not sure what you are saying regarding the Map struts to 
/context/live/*. can you expaling me little bit more.

Thanks
usha
Edgar Dollin wrote:

You can have a servlet mapped to /context/test/*.

Map struts to /context/live/*.

Your struts-config would have to have the /context/live/* entries.

Your servlet does the url calculations and forward to the struts Action
servlet.
Edgar

 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 05, 2003 11:17 PM
To: '[EMAIL PROTECTED]'
Subject: Re: Servlet Mapping

You can only supply one mapping to the ActionServlet.

It's impolite to mark your posts as "urgent" because it's rather 
presumptuous.

David



   

From: usha <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
 

<[EMAIL PROTECTED]>
   

To: [EMAIL PROTECTED]
Subject: Servlet Mapping: urgent
Date: Thu, 06 Mar 2003 12:01:33 +0800
Hi

i posted this question previously also but i didn't get any 
 

answer from 
   

any
body so i am posting it again.
i am trying to give servletmapping for the following URL 
http://localhost:8080/context/test/0/

in the above URL '0' is going to be changed dynamically depending on 
the
link the user select.how i can give a servlet-mapping for 
 

such type of URL 
   

for the ActionServlet.

is this possible to do like this.

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

_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

   

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





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


RE: redirecting to HTTPS

2003-03-06 Thread Sterin, Ilya
Thanks, Steve.  A quick question for you I guess, is going through the
examples, there is more to it then just adding the .jar file and the tag
file(s).  Is there some barebones thing that can be done, which will
just simple allow two links in the app to take you to https, then back
on another link?

I guess, I'm looking for some barebones thing explaining what totally
needs to be added to the web.xml file and struts-config.xml file.

Any help would be greatly appreciated.

Thanks.

Ilya

-Original Message-
From: Ditlinger, Steve [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 8:02 PM
To: 'Struts Users Mailing List'
Subject: RE: redirecting to HTTPS


There are examples with each of the different versions.  (1.02, 1.1b1,
1.1b2
etc) at sslext.sourceforge.net.

I intend to do some updating for an 1.1RC1 release soon (this weekend?).
Also, I am usually able to answer questions in (semi-)prompt fashion..

Steve

 -Original Message-
 From: Sterin, Ilya [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 06, 2003 4:42 PM
 To: 'Struts Users Mailing List'
 Subject: RE: redirecting to HTTPS
 
 
 Ah, great, just found it, but I can't find any examples to go with it,
nor a user's guide.  Any links? :-)
 
 Ilya
 
 -Original Message-
 From: alexj [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 06, 2003 7:37 PM
 To: Struts Users Mailing List
 Subject: Re: redirecting to HTTPS
 
 
 Have a look for SSLext. (you may find a sample
 with it)
 
 --
 Alexandre Jaquet
 
 - Original Message - 
 From: "Sterin, Ilya" <[EMAIL PROTECTED]>
 To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
 Sent: Friday, March 07, 2003 1:16 AM
 Subject: redirecting to HTTPS
 
 
 > What's the easiest way to redirecting to https and back.  Meaning, 
 > what's the I guess more common/prefered way of doing it in struts.  >

 > Any small examples, would be great:-)
 > 
 > Thanks a bunch.
 > 
 > Ilya
 > 
 > -
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]
 > 
 > 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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

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



Re: Multiple beans in request scope?

2003-03-06 Thread Richard Raquepo
Try encapsulating all the three beans in one bean.

- Original Message -
From: "Jeff Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 8:21 AM
Subject: Multiple beans in request scope?


I'm building my first real struts app. (Okay, its also my first real Java
app, my first real servlet app and a bunch of other firsts, but who's
counting? :-)

I'd like to present a form that contains a few selection lists, with values
taken from a few tables in my database.

Let's say the lists are:
1) A list of documents the user can have sent to him
2) A list of transport methods he can choose (ftp, email, snail mail,
etc...)
3) A list of credit cards that we currently accept.

Obviously, these are logically disparate lists, so I would rather not create
a form-specific bean to encapsulate all this information.

What I'd *REALLY* like to do is have a DocsBean, a DeliveryOptionsBean and a
CreditCardBean that each load themselves from the database. And in a perfect
world, I'd like to be able to specify (in the action tag of my
struts-config) that form UserOrder wants all three of those beans loaded
into the request scope.

Is that possible? It appears to me that the action tag only takes a single
formbean name, so I am assuming I have to find a different way to do what I
want. Any suggestions?

Failing that, I suppose I could chain together a couple of actions: a) a
pre-action that would load my beans for me and then b) the actual forward to
the userform.jsp. But that seems a bit tedious. (Why write by hand what
could be abstracted out and built into the next version of Struts?)

I've got lots more questions, but I'll try to keep them in separate threads.

Jefficus



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



Re: Multiple beans in request scope?

2003-03-06 Thread alexj
Sure you can use mutliple beans in your scope.

But I didn't see the main case, it will be better for us (for me lol) to
understand the whole context of your application.

Cheers.

--
Alexandre Jaquet

- Original Message -
From: "Jeff Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 1:21 AM
Subject: Multiple beans in request scope?


I'm building my first real struts app. (Okay, its also my first real Java
app, my first real servlet app and a bunch of other firsts, but who's
counting? :-)

I'd like to present a form that contains a few selection lists, with values
taken from a few tables in my database.

Let's say the lists are:
1) A list of documents the user can have sent to him
2) A list of transport methods he can choose (ftp, email, snail mail,
etc...)
3) A list of credit cards that we currently accept.

Obviously, these are logically disparate lists, so I would rather not create
a form-specific bean to encapsulate all this information.

What I'd *REALLY* like to do is have a DocsBean, a DeliveryOptionsBean and a
CreditCardBean that each load themselves from the database. And in a perfect
world, I'd like to be able to specify (in the action tag of my
struts-config) that form UserOrder wants all three of those beans loaded
into the request scope.

Is that possible? It appears to me that the action tag only takes a single
formbean name, so I am assuming I have to find a different way to do what I
want. Any suggestions?

Failing that, I suppose I could chain together a couple of actions: a) a
pre-action that would load my beans for me and then b) the actual forward to
the userform.jsp. But that seems a bit tedious. (Why write by hand what
could be abstracted out and built into the next version of Struts?)

I've got lots more questions, but I'll try to keep them in separate threads.

Jefficus



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



RE: logic:iterate tag revisited

2003-03-06 Thread Steve Vanspall
Ah it's always the small thing, 

I can't beleive I missed that

Thank you, I will procedd to kick myself several times

Steve

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 11:51 AM
To: Struts Users Mailing List
Subject: Re: logic:iterate tag revisited


On Fri, 7 Mar 2003 11:33:50 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Hi there
> 
> Here's my problem, I have modelled my iterate tag on a working example
> I was given by a colleague.
> 
> this is my jsp code
> 
>  type="com.crm.util.TemplateBeans.IMGTemplateBean"
> property="imageFieldsList" id="imfFile">
>   
>  property="id"/> property="file"
> accept="image/gif,image/jpeg"/>
>   
>   nameArray[cnt] =
>   '<%=TemplateBeans.IMG_TMPLT%>: name="imfFile" property="id"/>';
>   cnt++;
>   
> 
> 
> 
> when I run it I get
> 
> javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope

are you sure it's not saying "imgFile" is not any scope??? If you look
you named one of them imgFile and the other imfFile but I don't see
where you ever declared the id imgFile ? Is imgFile declared somewhere
else? 

Also, are you positive your list has IMGTemplateBeans in it? If you
remove all the  stuff and just print out "test" in there do
you get a bunch of "test"s printed out?

Are you also positive that your imageFieldsList is being populated with
the type "com.crm.util.TemplateBeans.IMGTemplateBean" You sure nothing
is spelled wrong there..etc. ?

I know a lot of this is probably obvious but it's always the obvious
that gets me:) A mistyped letter or something.


-- 
Rick Reumann

-
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-Tiles causes charset problem!!!

2003-03-06 Thread Eric Chow
Hi Cedric,

The returned page has appropriate encoding tag.

Eric


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


>
>   Check if the returned page (the page source in the browser) has the
> appropriate encoding tag.
> The page encoding is usually set in your template.jsp file.
>
> Cedric
>
> Eric Chow wrote:
>
> >Hi,
> >
> >I want to display some Chinese in JSP(Customer Tag).
> >
> >If my JSP as following: (showChineseContent.jsp)
> >===
> ><%@ page language="java" contentType="text/html" %>
> ><%@ taglib uri="/WEB-INF/tld/test.tld" prefix="test" %>
> ><%@ taglib uri="/WEB-INF/tld/share.tld" prefix="share" %>
> >
> >
> >
> > 
> > 
> > Chinese Form
> >
> > 
> >
> >
> >
> >
> >
> > 
> > 
> >  ID
> >  Name
> > 
> >
> > 
> > 
> >  
> >  
> > 
> > 
> >
> > 
> >
> >
> >
> >
> >
> >The above JSP works very well, I can retrieve those Chinese from database
and display them correctly.
> >
> >
> >After I change it to use Tiles as a template as following:
> >
> >tiles-def.xml
> >=
> >
> >  
> >  
> > 
> >
> >
> >in my showChinese.jsp
> >===
> >
> >
> >
> >
> >
> >After changed to tiles, everything is wrong, all the Chinese displayed as
some QUESTION-MARKS !
> >
> >
> >Is there any problem in Tiles?  And, I tried to use  instead of Tiles, it also not
worked.
> >
> >Any idea on it?
> >
> >
> >
> >Best regards,
> >Eric
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



RE: redirecting to HTTPS

2003-03-06 Thread Sterin, Ilya
Great, thanks a bunch.

Ilya

-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 7:51 PM
To: Struts Users Mailing List
Subject: Re: redirecting to HTTPS


There are a number of issues involved that make it more complicated than
it should be (cookie domains, writing out all the links properly, etc.).
Fortunately, there is a project designed just for this purpose that
extends Struts to support relatively painless HTTP/HTTPS switching:
http://sslext.sourceforge.net

The main author of the extension has written a few articles about the
issues involved with such switching and what the extension does
specifically. Reading these would be a nice jump-start if you haven't
been through this kind of thing before:
http://www.javaworld.com/javaworld/jw-02-2002/jw-0215-ssl.html
http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html

-Max

- Original Message -
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 4:16 PM
Subject: redirecting to HTTPS


> What's the easiest way to redirecting to https and back.  Meaning, 
> what's the I guess more common/prefered way of doing it in struts.
>
> Any small examples, would be great:-)
>
> Thanks a bunch.
>
> Ilya
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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

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



Re: paginator tags

2003-03-06 Thread Richard Raquepo
Can you give me actual jsp code on how you used the pager tag. i find it
hard to customize it. thanks
- Original Message -
From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 5:36 AM
Subject: Re: paginator tags


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



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



Re: redirecting to HTTPS

2003-03-06 Thread alexj
It's came with it have a look of the web directory .

--
Alexandre Jaquet

- Original Message - 
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 1:41 AM
Subject: RE: redirecting to HTTPS


> Ah, great, just found it, but I can't find any examples to go with it,
> nor a user's guide.  Any links? :-)
> 
> Ilya
> 
> -Original Message-
> From: alexj [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2003 7:37 PM
> To: Struts Users Mailing List
> Subject: Re: redirecting to HTTPS
> 
> 
> Have a look for SSLext. (you may find a sample
> with it)
> 
> --
> Alexandre Jaquet
> 
> - Original Message - 
> From: "Sterin, Ilya" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 07, 2003 1:16 AM
> Subject: redirecting to HTTPS
> 
> 
> > What's the easiest way to redirecting to https and back.  Meaning, 
> > what's the I guess more common/prefered way of doing it in struts.
> > 
> > Any small examples, would be great:-)
> > 
> > Thanks a bunch.
> > 
> > Ilya
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: [struts-el] What's the benefits ?

2003-03-06 Thread Edgar Dollin
The ambiguity of the syntax is disconcerting and is probably why I limit
it's use.  Whenever I use it, it seems like a guess since the rules are so
loose.  Of course I always guess incorrectly which adds to the frustration.
I for one prefer the more complex syntax and the NPE's, since then you have
a clue as to what is going on.

Edgar

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 05, 2003 8:52 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [struts-el] What's the benefits ?
> 
> 
> 
> 
> > From: alexj [mailto:[EMAIL PROTECTED]
> >
> > I didn't find the benefits of the use of jstl extention.
> >
> > Who can explain me the benefits ?
> 
> > From: p2 - apache <[EMAIL PROTECTED]>
> >
> > Some body don't want to see <%  %>? Just a guess.
> 
> There's lots of advantages to the expression language that 
> Struts-EL uses (copied from JSTL 1.0, and to be embedded 
> everywhere in a JSP page in JSP 2.0).  My favorite feature is 
> independence from the underlying implementation of the 
> properties.  Consider the following expression:
> 
>   ${customer.mailAddress.city}
> 
> This works for all of the following scenarios (as well as 
> some others):
> 
> * "customer" is a bean with a getMailAddress() getter, which in term
>   returns a bean with a getCity() getter.
> 
> * "customer" is a bean where getMailAddress() returns a Map that has
>   (among others) an entry with a key of "city".
> 
> * "customer" is a Map that has a key "mailAddress" whose value is a
>   bean with a getCity() method.
> 
> * "customer" is a Map with a key of "mailAddress" that returns a Map
>   that has a key of "city" ...
> 
> You get the idea?  The business tier developer has a fair 
> amount of freedom in how they implement the beans 
> representing the data required by the view tier -- or even 
> skips implementing them if Maps do the trick. And changing 
> your mind among these choices does not invalidate the syntax 
> of the expression that is embedded in your page.
> 
> The other thing I like about EL expressions is that the 
> syntax is very close to what page authors familiar with 
> JavaScript already understand, so it's natural for them to be 
> able to script with it, without having to know any java at 
> all.  Consider a personnel management app that wants to 
> restrict the display of salary information to managers.  In a 
> JSP 1.2 environment (with JSTL), you could write:
> 
>   
> 
>   
> 
> and have a fair chance that the page author can understand it 
> -- while the corresponding scriptlet version is pretty opaque 
> to a non-programmer:
> 
>   <%
>  if (user.getRole().equals("Manager")) {
>out.println(employee.getSalary());
>  }
>   %>
> 
> to say nothing of the fact that the Java code requires you to 
> expose "user" and "employee" as instance variables in the 
> page class, while the tagged version doesn't.  (And, by the 
> way, you'd better be prepared for NullPointerException errors 
> in the scriptlet, while the expression language deals with 
> them for you.)
> 
> By the way, in a JSP 2.0 environment, this example will get 
> even simpler:
> 
>   
> ${employee.salary}
>   
> 
> because you will be able to use EL expressions anywhere 
> (including template text), not just in tags that understand it.
> 
> Craig McClanahan
> 
> 
> 

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



RE: Servlet Mapping

2003-03-06 Thread Edgar Dollin
You can have a servlet mapped to /context/test/*.

Map struts to /context/live/*.

Your struts-config would have to have the /context/live/* entries.

Your servlet does the url calculations and forward to the struts Action
servlet.

Edgar

> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 05, 2003 11:17 PM
> To: '[EMAIL PROTECTED]'
> Subject: Re: Servlet Mapping
> 
> 
> You can only supply one mapping to the ActionServlet.
> 
> It's impolite to mark your posts as "urgent" because it's rather 
> presumptuous.
> 
> David
> 
> 
> 
> >From: usha <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Servlet Mapping: urgent
> >Date: Thu, 06 Mar 2003 12:01:33 +0800
> >
> >Hi
> >
> >i posted this question previously also but i didn't get any 
> answer from 
> >any
> >body so i am posting it again.
> >
> >i am trying to give servletmapping for the following URL 
> >http://localhost:8080/context/test/0/
> >
> >in the above URL '0' is going to be changed dynamically depending on 
> >the
> >link the user select.how i can give a servlet-mapping for 
> such type of URL 
> >for the ActionServlet.
> >
> >is this possible to do like this.
> >
> >Thanks
> >usha
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> Tired of spam? Get advanced junk mail protection with MSN 8. 
> http://join.msn.com/?page=features/junkmail
> 
> 

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



RE: redirecting to HTTPS

2003-03-06 Thread Ditlinger, Steve
There are examples with each of the different versions.  (1.02, 1.1b1, 1.1b2
etc) at sslext.sourceforge.net.

I intend to do some updating for an 1.1RC1 release soon (this weekend?).
Also, I am usually able to answer questions in (semi-)prompt fashion..

Steve

 -Original Message-
 From: Sterin, Ilya [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 06, 2003 4:42 PM
 To: 'Struts Users Mailing List'
 Subject: RE: redirecting to HTTPS
 
 
 Ah, great, just found it, but I can't find any examples to go with it,
 nor a user's guide.  Any links? :-)
 
 Ilya
 
 -Original Message-
 From: alexj [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, March 06, 2003 7:37 PM
 To: Struts Users Mailing List
 Subject: Re: redirecting to HTTPS
 
 
 Have a look for SSLext. (you may find a sample
 with it)
 
 --
 Alexandre Jaquet
 
 - Original Message - 
 From: "Sterin, Ilya" <[EMAIL PROTECTED]>
 To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
 Sent: Friday, March 07, 2003 1:16 AM
 Subject: redirecting to HTTPS
 
 
 > What's the easiest way to redirecting to https and back.  Meaning, 
 > what's the I guess more common/prefered way of doing it in struts.
 > 
 > Any small examples, would be great:-)
 > 
 > Thanks a bunch.
 > 
 > Ilya
 > 
 > -
 > To unsubscribe, e-mail: [EMAIL PROTECTED]
 > For additional commands, e-mail: [EMAIL PROTECTED]
 > 
 > 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: logic:iterate tag revisited

2003-03-06 Thread Rick Reumann
On Fri, 7 Mar 2003 11:33:50 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Hi there
> 
> Here's my problem, I have modelled my iterate tag on a working example
> I was given by a colleague.
> 
> this is my jsp code
> 
>  type="com.crm.util.TemplateBeans.IMGTemplateBean"
> property="imageFieldsList" id="imfFile">
>   
>  property="id"/> property="file"
> accept="image/gif,image/jpeg"/>
>   
>   nameArray[cnt] =
>   '<%=TemplateBeans.IMG_TMPLT%>: name="imfFile" property="id"/>';
>   cnt++;
>   
> 
> 
> 
> when I run it I get
> 
> javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope

are you sure it's not saying "imgFile" is not any scope??? If you look
you named one of them imgFile and the other imfFile but I don't see
where you ever declared the id imgFile ? Is imgFile declared somewhere
else? 

Also, are you positive your list has IMGTemplateBeans in it? If you
remove all the  stuff and just print out "test" in there do
you get a bunch of "test"s printed out?

Are you also positive that your imageFieldsList is being populated with
the type "com.crm.util.TemplateBeans.IMGTemplateBean" You sure nothing
is spelled wrong there..etc. ?

I know a lot of this is probably obvious but it's always the obvious
that gets me:) A mistyped letter or something.


-- 
Rick Reumann

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



Re: redirecting to HTTPS

2003-03-06 Thread Max Cooper
There are a number of issues involved that make it more complicated than it
should be (cookie domains, writing out all the links properly, etc.).
Fortunately, there is a project designed just for this purpose that extends
Struts to support relatively painless HTTP/HTTPS switching:
http://sslext.sourceforge.net

The main author of the extension has written a few articles about the issues
involved with such switching and what the extension does specifically.
Reading these would be a nice jump-start if you haven't been through this
kind of thing before:
http://www.javaworld.com/javaworld/jw-02-2002/jw-0215-ssl.html
http://www.javaworld.com/javaworld/jw-05-2002/jw-0510-struts.html

-Max

- Original Message -
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 4:16 PM
Subject: redirecting to HTTPS


> What's the easiest way to redirecting to https and back.  Meaning,
> what's the I guess more common/prefered way of doing it in struts.
>
> Any small examples, would be great:-)
>
> Thanks a bunch.
>
> Ilya
>
> -
> 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]



Multiple beans in request scope?

2003-03-06 Thread Jeff Smith
I'm building my first real struts app. (Okay, its also my first real Java app, my 
first real servlet app and a bunch of other firsts, but who's counting? :-)

I'd like to present a form that contains a few selection lists, with values taken from 
a few tables in my database.

Let's say the lists are:
1) A list of documents the user can have sent to him
2) A list of transport methods he can choose (ftp, email, snail mail, etc...)
3) A list of credit cards that we currently accept.

Obviously, these are logically disparate lists, so I would rather not create a 
form-specific bean to encapsulate all this information.

What I'd *REALLY* like to do is have a DocsBean, a DeliveryOptionsBean and a 
CreditCardBean that each load themselves from the database. And in a perfect world, 
I'd like to be able to specify (in the action tag of my struts-config) that form 
UserOrder wants all three of those beans loaded into the request scope.

Is that possible? It appears to me that the action tag only takes a single formbean 
name, so I am assuming I have to find a different way to do what I want. Any 
suggestions?

Failing that, I suppose I could chain together a couple of actions: a) a pre-action 
that would load my beans for me and then b) the actual forward to the userform.jsp. 
But that seems a bit tedious. (Why write by hand what could be abstracted out and 
built into the next version of Struts?)

I've got lots more questions, but I'll try to keep them in separate threads.

Jefficus

RE: redirecting to HTTPS

2003-03-06 Thread Sterin, Ilya
Ah, great, just found it, but I can't find any examples to go with it,
nor a user's guide.  Any links? :-)

Ilya

-Original Message-
From: alexj [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 7:37 PM
To: Struts Users Mailing List
Subject: Re: redirecting to HTTPS


Have a look for SSLext. (you may find a sample
with it)

--
Alexandre Jaquet

- Original Message - 
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 1:16 AM
Subject: redirecting to HTTPS


> What's the easiest way to redirecting to https and back.  Meaning, 
> what's the I guess more common/prefered way of doing it in struts.
> 
> Any small examples, would be great:-)
> 
> Thanks a bunch.
> 
> Ilya
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



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

2003-03-06 Thread Jeff_Mychasiw
I Had read that Arron had submitted patches to the nested tags to allow the
upgrade to tomcat 4.1.x.
(I assume that the zip jakarta-struts-20030306 contains the nested fixes)

We are currently developing on TC4.04 with 1.1b2.

I dropped that latest binaries in and got several problems (compile errors)
on many pages that work fine other wise.

If I understand the upgrade.I just replace the JARS, *.tld, and the
*.dtd 's...?


This is not all the problems but two main ones are the nested:img tag and
the nested:radio tag

With a usage such as:

I get:
javax.servlet.jsp.JspException: No getter method for property  of bean taskListForm
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:881)
at org.apache.struts.taglib.html.ImgTag.url(ImgTag.java:622)
at org.apache.struts.taglib.html.ImgTag.doEndTag(ImgTag.java:410)
at 
org.apache.struts.taglib.nested.html.NestedImgTag.doEndTag(NestedImgTag.java:106)
at 
org.apache.jsp.TaskListMainForm$jsp._jspService(TaskListMainForm$jsp.java:390)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
..

If I replace it with:

It will work Fine.


The nested:radio tag gives me this:

javax.servlet.jsp.JspException: Cannot find bean under name
at org.apache.struts.taglib.html.RadioTag.doStartTag(RadioTag.java:229)
at 
org.apache.struts.taglib.nested.html.NestedRadioTag.doStartTag(NestedRadioTag.java:94)
at 
org.apache.jsp.InvOnDemandFilterTable$jsp._jspService(InvOnDemandFilterTable$jsp.java:126)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)

with a usage of:
inside a jsp:include



  All
  
  Open
  




sorry for the long email..

Jeff



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



Re: redirecting to HTTPS

2003-03-06 Thread alexj
Have a look for SSLext. (you may find a sample
with it)

--
Alexandre Jaquet

- Original Message - 
From: "Sterin, Ilya" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 07, 2003 1:16 AM
Subject: redirecting to HTTPS


> What's the easiest way to redirecting to https and back.  Meaning,
> what's the I guess more common/prefered way of doing it in struts.
> 
> Any small examples, would be great:-)
> 
> Thanks a bunch.
> 
> Ilya
> 
> -
> 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]



logic:iterate tag revisited

2003-03-06 Thread Steve Vanspall
Hi there

Here's my problem, I have modelled my iterate tag on a working example I was
given by a colleague.

this is my jsp code


  


  
  nameArray[cnt] = '<%=TemplateBeans.IMG_TMPLT%>:';
cnt++;




when I run it I get

javax.servlet.jsp.JspException: Cannot find bean imfFile in any scope

having debugged, when struts puts the bea into pageContext, the id it tries
to pass is set to null.

Looking at the list of variables set at the time, there are two variables
named id one set to null and one set to 'imgFile'.

I figure this is where the problem lies,

Is there something wrong withmy coding?

Any help would be appreciated

Steve


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



redirecting to HTTPS

2003-03-06 Thread Sterin, Ilya
What's the easiest way to redirecting to https and back.  Meaning,
what's the I guess more common/prefered way of doing it in struts.

Any small examples, would be great:-)

Thanks a bunch.

Ilya

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



RE: any sample code on struts using sub modules that works?

2003-03-06 Thread khalim
Hello,

after reading some more stuff, I found an article in Apache Jakarta 
Project site, that you can use multiple struts-config as comma-delimited 
list.  I think this would be easier to do when you want to use 
sub-modules.  And it seems to work correctly with tiles too.

Hope this helps.






"James Mitchell" <[EMAIL PROTECTED]>
03/06/2003 02:03 PM
Please respond to "Struts Users Mailing List"

 
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc: 
Subject:RE: any sample code on struts using sub modules that works?


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> 
> James,
> thank you so much for your information and zip.  I've tried 
> this before 
> and works on my application.
> But the question is, when we tried to use other sub modules, 
> why we need 
> to have this extra steps to do it (with forward bean) ? 
> Rather than just 
> called the action itself from the struts-config.xml and sub modules.

Because, the controller must switch to using the new module that you are
wanting to go to.  Otherwise, it can't find the action-mappings for a
different module.


> And another reason for me not using this way is that tiles 
> will not work 
> properly, as mentioned  in this message..
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg
> 41762.html
> 
> Is there any other way to do this ?
> Again thank you for your help.
> 
> 

Yes...

Eddie wrote:
> Unfortunately, I haven't managed to make Tiles work 
> correctly with sub-applications yet.

I too have not had the pleasure (yet) to battle with the complexities of
combining Tiles and/or Validator with Modules.


--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/

"People demand freedom of speech to make up for the freedom of thought
which they avoid."
- Soren Aabye Kierkegaard (1813-1855)







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





SV: date format problems

2003-03-06 Thread Søren Blidorf
That did it, Thanks a million.

It looks almost like what I did, but I found my mistake.

-Oprindelig meddelelse-
Fra: Michael Cardon [mailto:[EMAIL PROTECTED] 
Sendt: 7. marts 2003 00:50
Til: Struts Users Mailing List
Emne: RE: date format problems

Here is what I do. The client enters a date of birth date as a string on
the
form, then I convert it to a java.sql.Date object in this method.


/**
 * Sets the dobStr
 * @param dobStr The dobStr to set
 */
public void setDobStr(String dobStr) throws
java.text.ParseException {
this.dobStr = dobStr;

// reset the Date object
this.dobDate = null;

if ((dobStr != null) && (dobStr.length() > 0)) {
SimpleDateFormat sdf = new
SimpleDateFormat("MM/dd/yy");
sdf.setLenient(false);

try {
java.util.Date dt = sdf.parse(dobStr);
this.dobDate = new
java.sql.Date(dt.getTime());

} catch (ParseException pe) {
throw new java.text.ParseException("Date
Of Birth:",
pe.getErrorOffset());
}
}
}

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


Hi.
Thanks for all the answers

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

I need one thing:

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

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

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

What is the best way to fix it?

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

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


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


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

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


Hi.

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

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

Any idears? I am lost and it is very urgent

Søren Blidorf


HTTP Status 500 -




type Exception report

message

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

exception

javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:774)
at
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.jav
a:2061)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
o

RE: logic iterate with nested class (I think that's the term)

2003-03-06 Thread Steve Vanspall
Yeah, I am trying to make input tags out of them

Thanks anywa

Steve

-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 10:54 AM
To: Struts Users Mailing List
Subject: Re: logic iterate with nested class (I think that's the term)


On Fri, 7 Mar 2003 10:31:08 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Ignore this one,
> 
> It seems that Struts doesn't know to go into the Hashtable entry and
> just get the value,

You can iterate through a map and display the keys and values just fine:


 - 



Or better yet use JSTL tags:


 - 



 
-- 
Rick Reumann

-
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: logic iterate with nested class (I think that's the term)

2003-03-06 Thread Rick Reumann
On Fri, 7 Mar 2003 10:31:08 +1100
"Steve Vanspall" <[EMAIL PROTECTED]> wrote:

> Ignore this one,
> 
> It seems that Struts doesn't know to go into the Hashtable entry and
> just get the value,

You can iterate through a map and display the keys and values just fine:


 - 



Or better yet use JSTL tags:


 - 



 
-- 
Rick Reumann

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



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

2003-03-06 Thread Becky Norum
Thanks to everyone for their suggestions!

Mitchell, yes, I've heard many raves about ERWin, but never actually
used it myself.  

James and Alex, I'd played around with ArgoUML for sequence diagrams,
etc. but hadn't used it to do ERDs.. it would be nice if ArgoUML had
more ERD shapes, but I can work with it.  

Rick, I took a look at jEdit and bookmarked it for looking at more
thoroughly in my free time :P .  The same for Poseidon, Robert.  :D

I'll probably end up trying to get things working with ArgoUML and see
how the exported eps files look.

Regards,

Becky Norum
Database Administrator
Center for Subsurface Sensing and Imaging Systems (CenSSIS)
Northeastern University
http://www.censsis.neu.edu


On Thu, 2003-03-06 at 15:25, James Higginbotham wrote:
> Ah, yes... I can't imagine my life without ERWin, though I haven't
> upgraded since it was owned by Platinum. It still works like a champ
> after 6 years.. Too bad there isn't a similar product that is x-plat for
> Becky's needs. 
> 
> James




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



RE: date format problems

2003-03-06 Thread Michael Cardon
Here is what I do. The client enters a date of birth date as a string on the
form, then I convert it to a java.sql.Date object in this method.


/**
 * Sets the dobStr
 * @param dobStr The dobStr to set
 */
public void setDobStr(String dobStr) throws java.text.ParseException {
this.dobStr = dobStr;

// reset the Date object
this.dobDate = null;

if ((dobStr != null) && (dobStr.length() > 0)) {
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy");
sdf.setLenient(false);

try {
java.util.Date dt = sdf.parse(dobStr);
this.dobDate = new java.sql.Date(dt.getTime());

} catch (ParseException pe) {
throw new java.text.ParseException("Date Of Birth:",
pe.getErrorOffset());
}
}
}

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


Hi.
Thanks for all the answers

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

I need one thing:

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

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

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

What is the best way to fix it?

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

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


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


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

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


Hi.

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

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

Any idears? I am lost and it is very urgent

Søren Blidorf


HTTP Status 500 -




type Exception report

message

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

exception

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

SV: date format problems

2003-03-06 Thread Søren Blidorf
Hi.
Thanks for all the answers

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

I need one thing:

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

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

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

What is the best way to fix it?

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

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


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


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

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


Hi.

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

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

Any idears? I am lost and it is very urgent

Søren Blidorf


HTTP Status 500 - 




type Exception report

message 

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

exception 

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

getPathInfo with Struts/Resin?

2003-03-06 Thread Kevin Tung
Hi,

I have searched the archives and the newsgroups but couldn't find an answer
that applies to my specific environment, hopefully someone here has done
this before.

I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6

I want to be able to do the following

www.somehost.com/myapp/execute/edit/username/
www.somehost.com/myapp/execute/view/username/

where view and edit will map to different Actions.  And within each action,
I want to be able to retrieve the username by using getPathInfo().

in my web.xml

  
action
/execute/*
  

in my struts_config.xml




But when I point the browser to

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

400 Invalid path /edit/username/

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

400 Invalid path /

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

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

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

Thanks,
Kevin





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



RE: logic iterate with nested class (I think that's the term)

2003-03-06 Thread Steve Vanspall
Ignore this one,

It seems that Struts doesn't know to go into the Hashtable entry and just
get the value,

Very strange, but basically it was looking to cast the whole entry rather
than just the value.

Will have to convert it to use a list instead

STeve

-Original Message-
From: Steve Vanspall [mailto:[EMAIL PROTECTED]
Sent: Friday, 7 March 2003 10:08 AM
To: Struts User Mailing List
Subject: logic iterate with nested class (I think that's the term)


Hi there,

this  is my problem,

I hap a Map, namely a hashtable, that I want struts to iterate through,

Now the bean class of each entry in the map is
com.crm.util.TemplateBeans.IMGTemplateBean

where TemplateBeans is a class itself.

using the following tag



causes a ClassCastException, even though, I have checked and the object
class matches.

I then tried



this didn't work, I got a error stating that It was expecting a value of
class

com.crm.util.TemplateBeans.IMGTemplateBean but got one of type
java.lang.Object

If I can, I would like to keep these classes nested under
com.crm.util.TemplateBeans, just of eas of use and neatness. Is there a way
to properly reference these classes in the iterate tag??

Thaks in advance

Steve



-
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: JspException: Exception thrown by getter for property XXX of bean YYY?

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

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

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


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

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


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

Thanks,
- Alex

*** code ***

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

*** stack ***

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

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

---

logic iterate with nested class (I think that's the term)

2003-03-06 Thread Steve Vanspall
Hi there,

this  is my problem,

I hap a Map, namely a hashtable, that I want struts to iterate through,

Now the bean class of each entry in the map is
com.crm.util.TemplateBeans.IMGTemplateBean

where TemplateBeans is a class itself.

using the following tag



causes a ClassCastException, even though, I have checked and the object
class matches.

I then tried



this didn't work, I got a error stating that It was expecting a value of
class

com.crm.util.TemplateBeans.IMGTemplateBean but got one of type
java.lang.Object

If I can, I would like to keep these classes nested under
com.crm.util.TemplateBeans, just of eas of use and neatness. Is there a way
to properly reference these classes in the iterate tag??

Thaks in advance

Steve



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



Re: editable list using nested:iterate and lazyList

2003-03-06 Thread alexj
Hi,

I didn't get any trouble with the sample I show, It's was just
to help somebody.

--
Alexandre Jaquet

- Original Message -
From: "Arron Bates" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, March 06, 2003 11:45 PM
Subject: Re: editable list using nested:iterate and lazyList


> Alex,
>
> The JSP wasn't shown probably because it's like all other Struts table
> creation using the iterate tag. Example JSP...
>
> 
> 
>   
> 
> 
> 
>   
> 
> 
>
> ...when submitted, if you're "student bean" is in a LazyList, then it'll
> populate correctly, and all the data will be there for your action for
processing.
>
> This what you're after?...
>
>
> Arron.
>
> (Monkey Boy?...)
>
>
> > Is this an example of an editable list (ie. a table like structure)?
Based
> on your student example, I am trying to edit a list of students all on one
> page. ie. I could change five students names with one submit.
> > Maybe I didn't fully understand your example, but it sounds like your
> example is list/detail page setup where one page has a list (non editable)
and
> from that list page you can select a single student which is displayed in
a
> detail page from which you can edit that one student's info.
> >
> > I am using a LazyList because the only example of an editable list that
I
> have every seen was given by Arron Bates (monkey boy) and that is what he
did,
> but he did not show how the jsp page was done.
> >
> > >>> [EMAIL PROTECTED] 03/05/03 05:11PM >>>
> > I give a sample is use when I need to populate an view :
> >
> > I got an ActionForm :
> >
> > public class StudentForm extends ActionForm {
> >
> > private String formationSelected = "Analyste Programmeur";
> >
> > private Collection formationList = null;
> >
> > private Collection formationListID = null;
> >
> > private Collection groupList = null;
> >
> > private Collection groupListID = null;
> >
> > private String group = "cycle 1a";
> >
> > ..
> >
> > ..
> >
> > /**
> >
> > * Get the formationList.
> >
> > * @return Collection.
> >
> > */
> >
> > public Collection getFormationList () {
> >
> > formationList = Formation.getFormations();
> >
> > return formationList;
> >
> > }
> >
> > /**
> >
> > * Get the formationListID.
> >
> > * @return Collection.
> >
> > */
> >
> > public Collection getFormationListID () {
> >
> > formationListID = Formation.getFormationsID();
> >
> > return formationListID;
> >
> > }
> >
> > /**
> >
> > * Get the groupList.
> >
> > * @return Collection.
> >
> > */
> >
> > public Collection getGroupList () {
> >
> > groupList = Groupe.getGroupsOfStudent();
> >
> > return groupList;
> >
> > }
> >
> > /**
> >
> > * Get the groupList.
> >
> > * @return Collection.
> >
> > */
> >
> > public Collection getGroupListID () {
> >
> > groupListID = Groupe.getGroupID();
> >
> > return groupListID;
> >
> > }
> >
> > ..
> >
> > I got an viewstudent action :
> >
> > public ActionForward execute(
> >
> > ActionMapping mapping,
> >
> > ActionForm form,
> >
> > HttpServletRequest request,
> >
> > HttpServletResponse response)
> >
> > throws Exception {
> >
> > Collection students = null;
> >
> > StudentForm studentForm = (StudentForm) form;
> >
> > students = getStudents ();
> >
> > HttpSession session = request.getSession();
> >
> > session.setAttribute("students", students);
> >
> > return mapping.findForward("viewstudent");
> >
> > }
> >
> > /**
> >
> > * Get all students.
> >
> > */
> >
> > protected ArrayList getStudents () {
> >
> > return Student.getStudents();
> >
> > }
> >
> > And my jsp view for studentview is :
> >
> > <%@ page session="true" %>
> > <%@ page import="org.apache.taglibs.display.test.TestList,
> >  org.apache.taglibs.display.test.ListHolder,
> >  java.util.List"%>
> > <%@ taglib uri="http://jakarta.apache.org/taglibs/display";
prefix="display"
> > %>
> > <%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>
> >
> > 
> > 
> > 
> >
> > 
> >   
> >   
> >   
> > 
> >
> >  >
> >  bundle="org.apache.struts.action.MESSAGE">
> >
> > 
> > 
> > 
> > 
> > 
> >  
> >  
> >  
> >  
> >  
> >  
> >
> >  >   name="students"
> >   scope="session"
> >   pagesize="5"
> >   requestURI="/ibmss/form/viewstudent.jsp"
> >   export="true"
> >   decorator="org.apache.taglibs.display.test.Wrapper">
> >
> >>   href="/ibmss/getstudent.do"
> >   paramId="idPersonne"
> >   paramProperty="idPersonne"  />
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> >   
> > 
> >
> > 
> > 
> >
> > The getstudent action serve me to get
> >
> > the student an user who whant to edit him
> >
> > I got an getstudentaction who create a new
> >
> > studentform and populate this form with
> >
> > the data of the choosen student previously
> >
> > selected.
> >
> > I hope this can help you.
> >
> > --
> >
> > Al

Re: editable list using nested:iterate and lazyList

2003-03-06 Thread Arron Bates
Alex,

The JSP wasn't shown probably because it's like all other Struts table
creation using the iterate tag. Example JSP...



  



  



...when submitted, if you're "student bean" is in a LazyList, then it'll
populate correctly, and all the data will be there for your action for processing.

This what you're after?...


Arron.

(Monkey Boy?...)


> Is this an example of an editable list (ie. a table like structure)? Based
on your student example, I am trying to edit a list of students all on one
page. ie. I could change five students names with one submit.
> Maybe I didn't fully understand your example, but it sounds like your
example is list/detail page setup where one page has a list (non editable) and
from that list page you can select a single student which is displayed in a
detail page from which you can edit that one student's info.
>  
> I am using a LazyList because the only example of an editable list that I
have every seen was given by Arron Bates (monkey boy) and that is what he did,
but he did not show how the jsp page was done.
> 
> >>> [EMAIL PROTECTED] 03/05/03 05:11PM >>>
> I give a sample is use when I need to populate an view :
> 
> I got an ActionForm :
> 
> public class StudentForm extends ActionForm {
> 
> private String formationSelected = "Analyste Programmeur";
> 
> private Collection formationList = null;
> 
> private Collection formationListID = null;
> 
> private Collection groupList = null;
> 
> private Collection groupListID = null;
> 
> private String group = "cycle 1a";
> 
> ..
> 
> ..
> 
> /**
> 
> * Get the formationList.
> 
> * @return Collection.
> 
> */
> 
> public Collection getFormationList () {
> 
> formationList = Formation.getFormations();
> 
> return formationList;
> 
> }
> 
> /**
> 
> * Get the formationListID.
> 
> * @return Collection.
> 
> */
> 
> public Collection getFormationListID () {
> 
> formationListID = Formation.getFormationsID();
> 
> return formationListID;
> 
> }
> 
> /**
> 
> * Get the groupList.
> 
> * @return Collection.
> 
> */
> 
> public Collection getGroupList () {
> 
> groupList = Groupe.getGroupsOfStudent();
> 
> return groupList;
> 
> }
> 
> /**
> 
> * Get the groupList.
> 
> * @return Collection.
> 
> */
> 
> public Collection getGroupListID () {
> 
> groupListID = Groupe.getGroupID();
> 
> return groupListID;
> 
> }
> 
> ..
> 
> I got an viewstudent action :
> 
> public ActionForward execute(
> 
> ActionMapping mapping,
> 
> ActionForm form,
> 
> HttpServletRequest request,
> 
> HttpServletResponse response)
> 
> throws Exception {
> 
> Collection students = null;
> 
> StudentForm studentForm = (StudentForm) form;
> 
> students = getStudents ();
> 
> HttpSession session = request.getSession();
> 
> session.setAttribute("students", students);
> 
> return mapping.findForward("viewstudent");
> 
> }
> 
> /**
> 
> * Get all students.
> 
> */
> 
> protected ArrayList getStudents () {
> 
> return Student.getStudents();
> 
> }
> 
> And my jsp view for studentview is :
> 
> <%@ page session="true" %>
> <%@ page import="org.apache.taglibs.display.test.TestList,
>  org.apache.taglibs.display.test.ListHolder,
>  java.util.List"%>
> <%@ taglib uri="http://jakarta.apache.org/taglibs/display"; prefix="display"
> %>
> <%@ taglib uri="/WEB-INF/struts-menu.tld" prefix="menu"%>
> 
> 
> 
> 
> 
> 
>   
>   
>   
> 
> 
>  
>  bundle="org.apache.struts.action.MESSAGE">
> 
> 
> 
> 
> 
> 
>  
>  
>  
>  
>  
>  
> 
>name="students"
>   scope="session"
>   pagesize="5"
>   requestURI="/ibmss/form/viewstudent.jsp"
>   export="true"
>   decorator="org.apache.taglibs.display.test.Wrapper">
> 
>  href="/ibmss/getstudent.do"
>   paramId="idPersonne"
>   paramProperty="idPersonne"  />
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> 
> 
> The getstudent action serve me to get
> 
> the student an user who whant to edit him
> 
> I got an getstudentaction who create a new
> 
> studentform and populate this form with
> 
> the data of the choosen student previously
> 
> selected.
> 
> I hope this can help you.
> 
> --
> 
> Alexandre Jaquet
> 
> - Original Message -
> From: "William Salvucci" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 05, 2003 10:14 PM
> Subject: editable list using nested:iterate and lazyList
> 
> I posted this already on another thread, but I thought that I would try it
> again with some more detail.
> 
> I am trying to create an editable list based on some examples using
> nested:iterate and ListUtils.lazyList that I have seen offered on this
> mailing list.
> I have created a simple example, the flow of which is detail action ->
> jsp -> control action. The form that is used by all of these looks like:
> 
> private List bananas = ListUtils.lazyList(new ArrayList(),
>   new Factory()
>  

Re: Exceeding sessions on load test

2003-03-06 Thread Ashish Kulkarni
Hi
what application server are u using, does it use
servlet2.3 specifications, if yes u can use the
session listener to find out when the session was
created and destroyed
http://www.javaworld.com/javaworld/jw-01-2001/jw-0126-servletapi-p2.html

Ashish

--- [EMAIL PROTECTED] wrote:
> Hi,
>   I'm running iPlanet Web server on NT with Struts
> 1.0
>   I'm facing this problem where the number of
> sessions goes beyond the
> 1000 session limit during load test. We are
> invalidating sessions during
> logout. The load test has at the most 35 concurrent
> users. I confirmed that
> the session is being invalidated at logout. Is
> struts creating a session
> somewhere after logout?
>   So i'm not sure why we are running out of sessions.
>   Any ideas?
>   I am guessing one possible reason could be that the
> web server is
> not reaping sessions quickly enough after we have
> invalidated them.
>   Is there any way, in which i could print out the
> count of sessions
> as the load test proceeds?
> 
> Thanks,
> Gaurav
>   
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

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

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



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

2003-03-06 Thread Chen, Gin
look further down the trace.
there's a line that says root cause.
the exception after that is your true error.
-Tim

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


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

Thanks,
- Alex

*** code ***

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

*** stack ***

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

-
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: JspException: Exception thrown by getter for property XXX ofbean YYY?

2003-03-06 Thread Dave Newton
On Thu, 2003-03-06 at 17:18, Viggio, Alex wrote:
> We've had some additions to our production Struts app out for two months,
> and today is the first time I have seen this specific error (see below).
> I've includded the getter method below. How could an exception be thrown by
> this method? It should handle the case where previousUrl is null.

I'd look further up the chain, because even if previousUrl was null it
wouldn't throw anything, it'd just put a "null" in your href.

Dave

> public String getPreviousUrl() {
> return ((null != previousUrl) ? " "\">«" : "«");
> }
> 
> *** stack ***
> 
> javax.servlet.jsp.JspException: Exception thrown by getter for property
> calendar.previousUrl of bean meetingWizardForm
>   at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:513)
>   at
> org.apache.struts.taglib.bean.WriteTag.doStartTag(WriteTag.java:179)
>   at
> org.apache.struts.taglib.nested.bean.NestedWriteTag.doStartTag(NestedWriteTa
> g.java:93)
[...]


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



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

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

Thanks,
- Alex

*** code ***

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

*** stack ***

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

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



RE: Multiple "input" within one Action?

2003-03-06 Thread Zheng, Gang
Thanks for the help. I think I will call the validate() from within the
action.

- GZ


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 06, 2003 4:42 PM
To: Struts Users Mailing List
Subject: Re: Multiple "input" within one Action?


I can pass on some help recently provided by others, plus what I did. You
can either have a separate action mapping for each, if you want to have the
validation framework do all the work, or, you can do what I finally ended up
with:

use all the validation rules, etc.

but call validate() from your Action

then, based on your current page and the button you
pushed (back, next, done), send them to the correct page.

actually, if they hit a 'back' button (not the browser's back
button)
you don't want to validate anyway.

Here's a snippet from my config file - /go2wizard has the input= to get the
initial tile loaded, and then everything else is handled by the /wizard
action.

 
 

 
 
 
 
 
 
 
 
 
 

HTH,

-jeff

On Thursday, March 6, 2003, at 03:05  PM, Zheng, Gang wrote:

> I have a problem with the "input" attribute of the .
>
> I have a dummy action that takes care of the requests posted from a
> number
> of JSPs. It's like a "wizard" type of scenario: input something on the 
> first
> page, then input some other stuff from the second page, etc. All of 
> these
> inputs are directed to the same action, and the action class will 
> decide
> which next page to forward to.
>
> I use validate() within the dummyForm to do validation on the input
> fields.
> Now, if validation fails, I want go back to the same page with an error
> message displayed. I know struts will send me back to the page that is
> defined by "input" attribute once validate() return an error. Since 
> there is
> only one "input" that I can specify for this action, how can I go back 
> to
> "dummy1.jsp" if data from "dummy1.jsp" fails the validation?
>
> Here's the  element from struts-config.xml.
>
> 
>  type="DummyAction"
> name="dummyForm"
> scope="session"
> input="/jsp/dummy0.jsp">
>redirect="true" />
>redirect="true" />
>redirect="true" />
> 
>
> I am sure I can do it if I split the single action into individual
> actions
> to handle each dummy page. But is there anyway that I can do it with 
> the
> single action?
>
> Please point me to the right direction.
>
> Thanks very much for any help.
>
> - GZ


-
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: validating input fields which are not required

2003-03-06 Thread Ashish Kulkarni
Hi James,
Thanx i was using the old validation-rules.xml file

Ashish
--- James Turner <[EMAIL PROTECTED]> wrote:
> Make sure you're not using the validation-rules.xml
> from an earlier
> release of Struts, where the rules had "required"
> implicit in them.
> 
> James
> 
> > -Original Message-
> > From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 06, 2003 4:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: validating input fields which are not
> required 
> > 
> > 
> > Hi
> > I am using struts 1.1b3 and struts validator to
> > validate input from user, 
> > I have a numeric field which is not required , but
> if
> > the user enters some value in this field then i
> need
> > to validate that field,
> > how do i do that, 
> > I have the following defination and i get error
> saying
> > field is required even thought i have not
> mentioned
> > required in depends, 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Ashish
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, more
> 
> http://taxes.yahoo.com/
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

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

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



RE: [Unverified Sender] RE: [OT] response.sendRedirect with proxy servers

2003-03-06 Thread Bueno Carlos M
I agree. ick. We did that until the UAT people worried about browsers with
no javascript. So then we sent a meta refresh tag:



but now Mozilla allows you to disable that, too. :)


Good idea with the host header, but I like general solutions. my app server
is currently down, but I wonder if the getRequestURI() method returns the
original url? Maybe we could make a java.net.URL object to parse out the
host and port?

-Original Message-
From: Nelson, Laird [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 4:45 PM
To: 'Struts Users Mailing List'
Subject: RE: [Unverified Sender] RE: [OT] response.sendRedirect with
proxy servers


> -Original Message-
> From: Nelson, Laird [mailto:[EMAIL PROTECTED]
> send back a
> tiny response that contains a Javascript payload that 
> instructs the browser
> to replace its location with the correct URL (relative).

The other thing I thought of: perhaps there's some Apache module you could
write (or one that exists already) to add the host and port and other
original protocol information as an X-Header.  Then you could see if those
headers are present in your webapp code, and if so, construct the proper
URL.

Hacking frenetically,
Laird

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


Exceeding sessions on load test

2003-03-06 Thread Gaurav . Goyal
Hi,
I'm running iPlanet Web server on NT with Struts 1.0
I'm facing this problem where the number of sessions goes beyond the
1000 session limit during load test. We are invalidating sessions during
logout. The load test has at the most 35 concurrent users. I confirmed that
the session is being invalidated at logout. Is struts creating a session
somewhere after logout?
So i'm not sure why we are running out of sessions.
Any ideas?
I am guessing one possible reason could be that the web server is
not reaping sessions quickly enough after we have invalidated them.
Is there any way, in which i could print out the count of sessions
as the load test proceeds?

Thanks,
Gaurav


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



RE: validating input fields which are not required

2003-03-06 Thread James Turner
Make sure you're not using the validation-rules.xml from an earlier
release of Struts, where the rules had "required" implicit in them.

James

> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2003 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: validating input fields which are not required 
> 
> 
> Hi
> I am using struts 1.1b3 and struts validator to
> validate input from user, 
> I have a numeric field which is not required , but if
> the user enters some value in this field then i need
> to validate that field,
> how do i do that, 
> I have the following defination and i get error saying
> field is required even thought i have not mentioned
> required in depends, 
> 
> 
> 
> 
> 
> 
> 
> Ashish
> 
> __
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more 
http://taxes.yahoo.com/

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



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



RE: [Unverified Sender] RE: [OT] response.sendRedirect with proxy servers

2003-03-06 Thread Nelson, Laird
> -Original Message-
> From: Nelson, Laird [mailto:[EMAIL PROTECTED]
> send back a
> tiny response that contains a Javascript payload that 
> instructs the browser
> to replace its location with the correct URL (relative).

The other thing I thought of: perhaps there's some Apache module you could
write (or one that exists already) to add the host and port and other
original protocol information as an X-Header.  Then you could see if those
headers are present in your webapp code, and if so, construct the proper
URL.

Hacking frenetically,
Laird

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



validating input fields which are not required

2003-03-06 Thread Ashish Kulkarni
Hi
I am using struts 1.1b3 and struts validator to
validate input from user, 
I have a numeric field which is not required , but if
the user enters some value in this field then i need
to validate that field,
how do i do that, 
I have the following defination and i get error saying
field is required even thought i have not mentioned
required in depends, 







Ashish

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

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



Re: Multiple "input" within one Action?

2003-03-06 Thread Jeff Kyser
I can pass on some help recently provided by others, plus what I did.
You can either have a separate action mapping for each, if you
want to have the validation framework do all the work, or, you can
do what I finally ended up with:
	use all the validation rules, etc.

	but call validate() from your Action

then, based on your current page and the button you
pushed (back, next, done), send them to the correct page.
actually, if they hit a 'back' button (not the browser's back button)
you don't want to validate anyway.
Here's a snippet from my config file - /go2wizard has the input=
to get the initial tile loaded, and then everything else is handled by
the /wizard action.













HTH,

-jeff

On Thursday, March 6, 2003, at 03:05  PM, Zheng, Gang wrote:

I have a problem with the "input" attribute of the .

I have a dummy action that takes care of the requests posted from a 
number
of JSPs. It's like a "wizard" type of scenario: input something on the 
first
page, then input some other stuff from the second page, etc. All of 
these
inputs are directed to the same action, and the action class will 
decide
which next page to forward to.

I use validate() within the dummyForm to do validation on the input 
fields.
Now, if validation fails, I want go back to the same page with an error
message displayed. I know struts will send me back to the page that is
defined by "input" attribute once validate() return an error. Since 
there is
only one "input" that I can specify for this action, how can I go back 
to
"dummy1.jsp" if data from "dummy1.jsp" fails the validation?

Here's the  element from struts-config.xml.



type="DummyAction"
name="dummyForm"
scope="session"
input="/jsp/dummy0.jsp">
  
  
  


I am sure I can do it if I split the single action into individual 
actions
to handle each dummy page. But is there anyway that I can do it with 
the
single action?

Please point me to the right direction.

Thanks very much for any help.

- GZ


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


RE: [OT] response.sendRedirect with proxy servers

2003-03-06 Thread Nelson, Laird
> -Original Message-
> From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
> I have Tomcat sitting behind a firewall. I have two Apaches 
> that forward
> requests to this Tomcat. I am never able to perform a
> response.sendRedirect() command because the Location header 
> sent to the
> browser contains the host and port of my Tomcat, not the 
> Apache. This is as
> it should be, as the Tomcat has no notion of the external 
> host or IP of the
> Apaches. Nevertheless, it bugs me that a useful function is 
> rendered useless
> by most common architectures. Anyone have an idea how to solve this
> programmatically?

We have the same problem.  The way that I see code doing it around here is
extremely, extremely, extremely, extremely nasty, but works: send back a
tiny response that contains a Javascript payload that instructs the browser
to replace its location with the correct URL (relative).

Hacking furiously,
Laird

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



[OT] response.sendRedirect with proxy servers

2003-03-06 Thread Bueno Carlos M
Consider this scenario:

I have Tomcat sitting behind a firewall. I have two Apaches that forward
requests to this Tomcat. I am never able to perform a
response.sendRedirect() command because the Location header sent to the
browser contains the host and port of my Tomcat, not the Apache. This is as
it should be, as the Tomcat has no notion of the external host or IP of the
Apaches. Nevertheless, it bugs me that a useful function is rendered useless
by most common architectures. Anyone have an idea how to solve this
programmatically?


Re: paginator tags

2003-03-06 Thread Ashish Kulkarni
Hi
u may wanna have a look at this
http://jsptags.com/tags/navigation/pager/index.jsp

it works well for me

Ashish

--- alexj <[EMAIL PROTECTED]> wrote:
> you may use  or struts-el
> here is a sample from JSTL in Action :
> <%@ taglib prefix="c"
> uri="http://java.sun.com/jstl/core"; %>
> 
>  value="100"/>
> 
> 
> 
>  
> var="boundaryStart"
> 
> begin="0"
> 
> end="${totalCount - 1}"
> 
> step="${perPage}">
> 
> ">
> 
> [
> 
> 
> 
> -
> 
> 
> 
> ]
> 
> 
> 
> 
> 
>  
> var="current"
> 
> varStatus="status"
> 
> begin="${param.start}"
> 
> end="${param.start + perPage - 1}">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Alexandre Jaquet
> - Original Message -
> From: "Jacky Kimmel" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 06, 2003 9:22 PM
> Subject: paginator tags
> 
> 
> >
> > Does anyone know how to implement paginator tags? 
> Ie: you have a list of
> 30 items out of 100.  You now want to display the
> next 30 and so on.
> >
> >
> >
> > Also, I am using application.resource for all
> labels.  I want to have a
> name with a trademark symbol as a superscript. 
> Anyone know how to do this?
> >
> >
> >
> > -
> > Do you Yahoo!?
> > Yahoo! Tax Center - forms, calculators, tips, and
> more
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

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

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



RE: Struts Tiles and UTF-8

2003-03-06 Thread Bueno Carlos M
http://www.esperanto.mv.ru/UniRed/ENG/index.html

btw -- UniRed is a very good Unicode text editor for windows.

-Original Message-
From: Bueno Carlos M [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 4:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts Tiles and UTF-8


Hey, Jim -- 
 
the @page directive tells the app server to send a content-type header to
the browser, which in your case includes the characterset. It does not
perform any conversion; you are simply asserting what format the text is
already in. If you have none, the browser uses your OS or webserver default
which is probably iso-8859-1 or -2 (similar to Western European, latin-1,
cp-1252, etc, etc, etc). Since it's likely the same computer you wrote the
files on, they will display correctly. Most browsers allow you to override
this. Under the View->Encodings menu in IE, for instance.

My last reply assumed your resource files were in different character codes.
That is a tricky thing to be sure of and the most common cause of problems
like yours. I don't like to be skeptical, but E+ doesn't do character code
conversion. So I have to ask how you are sure the files are in UTF-8. In
UTF-8, high-bit (decimal 128+) characters are encoded as two or more
characters; "Â{" (194, 123) is the French close-quote, "»". You will see
many odd capital A-something character pairs.

Here's where it gets really tricky. If you put "Â{", "»" and "»" in the
same html and view it as UTF-8, you see *three* French close-quotes. This is
an attempt at 'do what I mean' programming on the part of the Unicode
people, at the expense of ambiguity.  

A quick way to make sure your resource files are really in UTF-8: 

1. Append '.html' to the file name. 

2. Open it in IE, make sure they are all displaying correctly (play with the
encodings if you need to)

3. Do File->Save As. In the save as dialog, there should be a drop down for
the encoding. Choose UTF8 and save. IE will convert your text. 

4. Take out the miscellaneous html it puts in there and you should be good
to go.

For now I am ignoring the part about data in the database. There usually is
lots and lots of conversion that happens with DB data, and it's harder to
confirm that (a) your data is stored in the right format, and (b) it's being
returned from the db driver in the right format.

btw, congrats on using a real text editor. :)

Carlos "EBCDIC" Bueno

-Original Message-
From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 3:22 PM
To: Struts Users Mailing List
Subject: Re: Struts Tiles and UTF-8


Hi Carlos

I use edit plus and i have save both files as UTF-8
But why using  <%@ page contentType="text/html; charset=UTF-8" %>
from jsp page the data and messages from application.resources does not
displayed ?
If i remove the tag <%@ page contentType="text/html; charset=UTF-8" %>
everything is fine?


- Original Message -
From: "Bueno Carlos M" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 11:52 PM
Subject: RE: Struts Tiles and UTF-8


> Hey, Jim -- It sounds like your tiles-defs.xml and applications.properties
> are in two different character sets. XML is by default UTF-8, and I'm
> guessing your apps properties file is in iso-8859-2 or something like
that.
> Keep in mind this is a SWAG, but if you copy some characters from your
> tiles-defs file into your properties file using a good, 8-bit-clean editor
> like vi, those will come out ok.
>
>
>
> -Original Message-
> From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 4:21 PM
> To: Struts Users Mailing List
> Subject: Struts Tiles and UTF-8
>
>
> Hi.
>
> I use PostgreSQL with UNICODE and Greek characters
>
> when i display the data from struts without tiles everything is fine
> The characters displays in greek from database and from
> application.properties
> without <%@ page contentType="text/html; charset=UTF-8" %>
>
> The problem is when i tried to use tiles
> then if i use <%@ page contentType="text/html; charset=UTF-8" %>
> at classicLayout the characters from tiles-def.xml displayed fine but the
> data and the characters from  application.properties displays as 
>
> When i remove <%@ page contentType="text/html; charset=UTF-8" %> from
> classicLayout then  the data and the characters from
application.properties
> displays fine but the characters from tiles-def.xml displays as 
>
> Whats happening?
>
>
>
>
>
>
> -
> 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: forward using Struts

2003-03-06 Thread Pani R
Thanks for the response.

-Pani.
 
--

On Thu, 6 Mar 2003 16:10:23   
 James Mitchell wrote:
>Ah, then you'll definitely have to use JavaScript on that page.
>If I were you, I would leave off target="..." and add code to the button
>that should open in a new window.  
>
>Like this:
>
>   
>onclick="JavaScript:this.form.target='_new';this.form.submit();">
>Submit to new window
>
>
>
>
>--
>James Mitchell
>Web Developer/Struts Evangelist
>http://jakarta.apache.org/struts/
>
>"People demand freedom of speech to make up for the freedom of thought
>which they avoid."
>- Soren Aabye Kierkegaard (1813-1855)
>
>
>
>
>> -Original Message-
>> From: Pani R [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, March 06, 2003 4:02 PM
>> To: 'Struts Users Mailing List'
>> Subject: RE: forward using Struts 
>> 
>> 
>> --
>> 
>> On Thu, 6 Mar 2003 15:51:36   
>>  James Mitchell wrote:
>> >No, that won't work either.  But you are right about this being html
>> >stuff.
>> >
>> >Once you submit a form, you cannot forward it to any window. 
>>  In fact,
>> >you are not really forwarding it to anything.  When the 
>> browser submits
>> >a form, it is simply making a request for a document that it 
>> can display
>> >in its window.  The document name might happen to be called 
>> 'mypage.do',
>> >but your browser doesn't know that there is no such document by that
>> >name, it simply retrieves the stream and displays it in the browser.
>> >
>> >Where (I think) you were going with your question is how to have the
>> >results of some process display in another window.
>> >
>> >You need to answer a few questions first.
>> >
>> 
>> Thanks for the thoughts James. 
>> 
>> >Do you want the user to still see the form (as it was filled 
>> out prior
>> >to hitting submit)?
>> 
>> YES!
>> 
>> >If yes, then you will submit that form to a new target 
>> (> >target="_new">)
>> 
>> In this case, all three buttons is going to open the result 
>> in a new page which I dont want. I want only one button to 
>> open the page in a new browser and other 2 buttons when 
>> clicked should open the page in the same browser.
>> 
>> 
>> -Pani.
>> 
>> 
>> >If no, then you must use JavaScript.  After the page is 
>> submitted, you
>> >process the form and return the user to some page that can (with
>> >JavaScript) open a new window to a URL that you specify.
>> >
>> >
>> >--
>> >James Mitchell
>> >Web Developer/Struts Evangelist
>> >http://jakarta.apache.org/struts/
>> >
>> >"People demand freedom of speech to make up for the freedom 
>> of thought
>> >which they avoid."
>> >- Soren Aabye Kierkegaard (1813-1855)
>> >
>> >
>> >
>> >
>> >> -Original Message-
>> >> From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] 
>> >> Sent: Thursday, March 06, 2003 3:36 PM
>> >> To: Struts Users Mailing List
>> >> Cc: Robert S. Sfeir
>> >> Subject: Re: forward using Struts 
>> >> 
>> >> 
>> >> make the button a link and use target="_blank"  this is 
>> html stuff.  
>> >> The link can point to a new URL which will call your Action.
>> >> 
>> >> On Thursday, Mar 6, 2003, at 15:32 US/Eastern, Pani R wrote:
>> >> 
>> >> > Hi:
>> >> >
>> >> > I have 3 SUBMIT buttons and one of which, when clicked, 
>> should open 
>> >> > the resultant page in a new browser. I dont want to use 
>> >> JavaScript. I 
>> >> > want the ActionClass to handle the request and for a 
>> >> particular Submit 
>> >> > button, it should forward the JSP to a new browser.
>> >> >
>> >> > Can struts forward the page to a new browser?
>> >> >
>> >> > -Pani.
>> >> >
>> >> >
>> >> >
>> >> > _
>> >> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for 
>> $19.95/year.
>> >> > 
>> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lm
>tplus
>>> >
>>> > 
>>> -
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail:
>[EMAIL PROTECTED]
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>_
>Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
>http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


_
Get 25MB, POP3, Spam Filter

RE: forward using Struts

2003-03-06 Thread James Mitchell
Ah, then you'll definitely have to use JavaScript on that page.
If I were you, I would leave off target="..." and add code to the button
that should open in a new window.  

Like this:


Submit to new window




--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/

"People demand freedom of speech to make up for the freedom of thought
which they avoid."
- Soren Aabye Kierkegaard (1813-1855)




> -Original Message-
> From: Pani R [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2003 4:02 PM
> To: 'Struts Users Mailing List'
> Subject: RE: forward using Struts 
> 
> 
> --
> 
> On Thu, 6 Mar 2003 15:51:36   
>  James Mitchell wrote:
> >No, that won't work either.  But you are right about this being html
> >stuff.
> >
> >Once you submit a form, you cannot forward it to any window. 
>  In fact,
> >you are not really forwarding it to anything.  When the 
> browser submits
> >a form, it is simply making a request for a document that it 
> can display
> >in its window.  The document name might happen to be called 
> 'mypage.do',
> >but your browser doesn't know that there is no such document by that
> >name, it simply retrieves the stream and displays it in the browser.
> >
> >Where (I think) you were going with your question is how to have the
> >results of some process display in another window.
> >
> >You need to answer a few questions first.
> >
> 
> Thanks for the thoughts James. 
> 
> >Do you want the user to still see the form (as it was filled 
> out prior
> >to hitting submit)?
> 
> YES!
> 
> >If yes, then you will submit that form to a new target 
> ( >target="_new">)
> 
> In this case, all three buttons is going to open the result 
> in a new page which I dont want. I want only one button to 
> open the page in a new browser and other 2 buttons when 
> clicked should open the page in the same browser.
> 
> 
> -Pani.
> 
> 
> >If no, then you must use JavaScript.  After the page is 
> submitted, you
> >process the form and return the user to some page that can (with
> >JavaScript) open a new window to a URL that you specify.
> >
> >
> >--
> >James Mitchell
> >Web Developer/Struts Evangelist
> >http://jakarta.apache.org/struts/
> >
> >"People demand freedom of speech to make up for the freedom 
> of thought
> >which they avoid."
> >- Soren Aabye Kierkegaard (1813-1855)
> >
> >
> >
> >
> >> -Original Message-
> >> From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] 
> >> Sent: Thursday, March 06, 2003 3:36 PM
> >> To: Struts Users Mailing List
> >> Cc: Robert S. Sfeir
> >> Subject: Re: forward using Struts 
> >> 
> >> 
> >> make the button a link and use target="_blank"  this is 
> html stuff.  
> >> The link can point to a new URL which will call your Action.
> >> 
> >> On Thursday, Mar 6, 2003, at 15:32 US/Eastern, Pani R wrote:
> >> 
> >> > Hi:
> >> >
> >> > I have 3 SUBMIT buttons and one of which, when clicked, 
> should open 
> >> > the resultant page in a new browser. I dont want to use 
> >> JavaScript. I 
> >> > want the ActionClass to handle the request and for a 
> >> particular Submit 
> >> > button, it should forward the JSP to a new browser.
> >> >
> >> > Can struts forward the page to a new browser?
> >> >
> >> > -Pani.
> >> >
> >> >
> >> >
> >> > _
> >> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for 
> $19.95/year.
> >> > 
> http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lm
tplus
>> >
>> > 
>> -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail:
[EMAIL PROTECTED]
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

-
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: paginator tags

2003-03-06 Thread Roeland Lengers
With regards to your second question:


name.with.trademark=SomeName™

Will get you where you want.
The ™ code is already a "tm" in superscript. If it's still not
superscripted enough you could try

name.with.trademark=SomeName™

Regards,

Roeland Lengers


"Jacky Kimmel" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> 
> Does anyone know how to implement paginator tags?  Ie: you have a list
of 30 items out of 100.  You now want to display the next 30 and so on.
> 
>  
> 
> Also, I am using application.resource for all labels.  I want to have
a name with a trademark symbol as a superscript.  Anyone know how to do
this?
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, and more



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



RE: Struts Tiles and UTF-8

2003-03-06 Thread Bueno Carlos M
Hey, Jim -- 
 
the @page directive tells the app server to send a content-type header to
the browser, which in your case includes the characterset. It does not
perform any conversion; you are simply asserting what format the text is
already in. If you have none, the browser uses your OS or webserver default
which is probably iso-8859-1 or -2 (similar to Western European, latin-1,
cp-1252, etc, etc, etc). Since it's likely the same computer you wrote the
files on, they will display correctly. Most browsers allow you to override
this. Under the View->Encodings menu in IE, for instance.

My last reply assumed your resource files were in different character codes.
That is a tricky thing to be sure of and the most common cause of problems
like yours. I don't like to be skeptical, but E+ doesn't do character code
conversion. So I have to ask how you are sure the files are in UTF-8. In
UTF-8, high-bit (decimal 128+) characters are encoded as two or more
characters; "Â{" (194, 123) is the French close-quote, "»". You will see
many odd capital A-something character pairs.

Here's where it gets really tricky. If you put "Â{", "»" and "»" in the
same html and view it as UTF-8, you see *three* French close-quotes. This is
an attempt at 'do what I mean' programming on the part of the Unicode
people, at the expense of ambiguity.  

A quick way to make sure your resource files are really in UTF-8: 

1. Append '.html' to the file name. 

2. Open it in IE, make sure they are all displaying correctly (play with the
encodings if you need to)

3. Do File->Save As. In the save as dialog, there should be a drop down for
the encoding. Choose UTF8 and save. IE will convert your text. 

4. Take out the miscellaneous html it puts in there and you should be good
to go.

For now I am ignoring the part about data in the database. There usually is
lots and lots of conversion that happens with DB data, and it's harder to
confirm that (a) your data is stored in the right format, and (b) it's being
returned from the db driver in the right format.

btw, congrats on using a real text editor. :)

Carlos "EBCDIC" Bueno

-Original Message-
From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 3:22 PM
To: Struts Users Mailing List
Subject: Re: Struts Tiles and UTF-8


Hi Carlos

I use edit plus and i have save both files as UTF-8
But why using  <%@ page contentType="text/html; charset=UTF-8" %>
from jsp page the data and messages from application.resources does not
displayed ?
If i remove the tag <%@ page contentType="text/html; charset=UTF-8" %>
everything is fine?


- Original Message -
From: "Bueno Carlos M" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 11:52 PM
Subject: RE: Struts Tiles and UTF-8


> Hey, Jim -- It sounds like your tiles-defs.xml and applications.properties
> are in two different character sets. XML is by default UTF-8, and I'm
> guessing your apps properties file is in iso-8859-2 or something like
that.
> Keep in mind this is a SWAG, but if you copy some characters from your
> tiles-defs file into your properties file using a good, 8-bit-clean editor
> like vi, those will come out ok.
>
>
>
> -Original Message-
> From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 05, 2003 4:21 PM
> To: Struts Users Mailing List
> Subject: Struts Tiles and UTF-8
>
>
> Hi.
>
> I use PostgreSQL with UNICODE and Greek characters
>
> when i display the data from struts without tiles everything is fine
> The characters displays in greek from database and from
> application.properties
> without <%@ page contentType="text/html; charset=UTF-8" %>
>
> The problem is when i tried to use tiles
> then if i use <%@ page contentType="text/html; charset=UTF-8" %>
> at classicLayout the characters from tiles-def.xml displayed fine but the
> data and the characters from  application.properties displays as 
>
> When i remove <%@ page contentType="text/html; charset=UTF-8" %> from
> classicLayout then  the data and the characters from
application.properties
> displays fine but the characters from tiles-def.xml displays as 
>
> Whats happening?
>
>
>
>
>
>
> -
> 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 IDE

2003-03-06 Thread mailinglist


> Yeah, and how does JSF affect Struts?

Craig wrote an introduction :
http://jakarta.apache.org/struts/proposals/struts-faces.html


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



RE: any sample code on struts using sub modules that works?

2003-03-06 Thread James Mitchell
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> 
> James,
> thank you so much for your information and zip.  I've tried 
> this before 
> and works on my application.
> But the question is, when we tried to use other sub modules, 
> why we need 
> to have this extra steps to do it (with forward bean) ?  
> Rather than just 
> called the action itself from the struts-config.xml and sub modules.

Because, the controller must switch to using the new module that you are
wanting to go to.  Otherwise, it can't find the action-mappings for a
different module.


> And another reason for me not using this way is that tiles 
> will not work 
> properly, as mentioned  in this message..
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg
> 41762.html
> 
> Is there any other way to do this ?
> Again thank you for your help.
> 
> 

Yes...

Eddie wrote:
> Unfortunately, I haven't managed to make Tiles work 
> correctly with sub-applications yet.

I too have not had the pleasure (yet) to battle with the complexities of
combining Tiles and/or Validator with Modules.


--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/

"People demand freedom of speech to make up for the freedom of thought
which they avoid."
- Soren Aabye Kierkegaard (1813-1855)







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



RE: struts IDE

2003-03-06 Thread Jacob Hookom
Yeah, and how does JSF affect Struts?

| -Original Message-
| From: Chappell, Simon P [mailto:[EMAIL PROTECTED]
| Sent: Thursday, March 06, 2003 9:54 AM
| To: Struts Users Mailing List
| Subject: RE: struts IDE
| 
| So ... how is that 1.1 release coming? ;-)
| 
| Simon
| 
| >-Original Message-
| >From: James Higginbotham [mailto:[EMAIL PROTECTED]
| >Sent: Thursday, March 06, 2003 9:50 AM
| >To: Struts Users Mailing List
| >Subject: RE: struts IDE
| >
| >
| >No kidding! This needs to be on the frontpage, just as the question of
| >when 1.1 is going to be released.. This is getting painful!
| >
| >www.mail-archive.com - use it people!
| >
| >> -Original Message-
| >> From: Tony Baity [mailto:[EMAIL PROTECTED]
| >> Sent: Thursday, March 06, 2003 8:04 AM
| >> To: Struts Users Mailing List
| >> Subject: Re: struts IDE
| >>
| >>
| >>
| >> [SERIOUS] The number of times that this topic has come up,
| >> does anyone have a poll-taking web site that struts users can
| >> place their votes on for favorite IDEs or OR Mapping tools or
| >> whatever? [NOT SERIOUS] Or perhaps C|NET could be talked into
| >> providing this. .  Buics <[EMAIL PROTECTED]> wrote:how
| >> about scioworks camino 3.0.1
| >>
| >>
| >>
| >> Alok Garg wrote:
| >>
| >> > Jbulider8.0
| >> > and Eclipse
| >> > - Original Message -
| >> > From: "Buics"
| >> > To: "Struts Users Mailing List"
| >> > Sent: Thursday, March 06, 2003 12:52 PM
| >> > Subject: struts IDE
| >> >
| >> > > good day!
| >> > >
| >> > > anyone could suggest an IDE for struts rapid development?
| >> > >
| >> > > thank you in advance!
| >> > >
| >> > >
| >> > >
| >> >
| >> >
| >>
| >--
| >> > --
| >> > 
| >> >
| >> > >
| >> 
| >> > > -
| >> > > To unsubscribe, e-mail:
| >[EMAIL PROTECTED]
| >> > > For additional commands, e-mail:
| >> [EMAIL PROTECTED]
| >> >
| >> >
| >> -
| >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
| >> > For additional commands, e-mail:
| >[EMAIL PROTECTED]
| >>
| >> -
| >> To unsubscribe, e-mail: [EMAIL PROTECTED]
| >> For additional commands, e-mail: [EMAIL PROTECTED]
| >>
| >> .
| >> .
| >> .
| >> Tony Baity
| >> .
| >> .
| >> .
| >>
| >>
| >> -
| >> Do you Yahoo!?
| >> Yahoo! Tax Center - forms, calculators, tips, and more
| >>
| >
| >-
| >To unsubscribe, e-mail: [EMAIL PROTECTED]
| >For additional commands, e-mail: [EMAIL PROTECTED]
| >
| >
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: forward using Struts

2003-03-06 Thread Pani R
--

On Thu, 6 Mar 2003 15:51:36   
 James Mitchell wrote:
>No, that won't work either.  But you are right about this being html
>stuff.
>
>Once you submit a form, you cannot forward it to any window.  In fact,
>you are not really forwarding it to anything.  When the browser submits
>a form, it is simply making a request for a document that it can display
>in its window.  The document name might happen to be called 'mypage.do',
>but your browser doesn't know that there is no such document by that
>name, it simply retrieves the stream and displays it in the browser.
>
>Where (I think) you were going with your question is how to have the
>results of some process display in another window.
>
>You need to answer a few questions first.
>

Thanks for the thoughts James. 

>Do you want the user to still see the form (as it was filled out prior
>to hitting submit)?

YES!

>If yes, then you will submit that form to a new target (target="_new">)

In this case, all three buttons is going to open the result in a new page which I dont 
want. I want only one button to open the page in a new browser and other 2 buttons 
when clicked should open the page in the same browser.


-Pani.


>If no, then you must use JavaScript.  After the page is submitted, you
>process the form and return the user to some page that can (with
>JavaScript) open a new window to a URL that you specify.
>
>
>--
>James Mitchell
>Web Developer/Struts Evangelist
>http://jakarta.apache.org/struts/
>
>"People demand freedom of speech to make up for the freedom of thought
>which they avoid."
>- Soren Aabye Kierkegaard (1813-1855)
>
>
>
>
>> -Original Message-
>> From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, March 06, 2003 3:36 PM
>> To: Struts Users Mailing List
>> Cc: Robert S. Sfeir
>> Subject: Re: forward using Struts 
>> 
>> 
>> make the button a link and use target="_blank"  this is html stuff.  
>> The link can point to a new URL which will call your Action.
>> 
>> On Thursday, Mar 6, 2003, at 15:32 US/Eastern, Pani R wrote:
>> 
>> > Hi:
>> >
>> > I have 3 SUBMIT buttons and one of which, when clicked, should open 
>> > the resultant page in a new browser. I dont want to use 
>> JavaScript. I 
>> > want the ActionClass to handle the request and for a 
>> particular Submit 
>> > button, it should forward the JSP to a new browser.
>> >
>> > Can struts forward the page to a new browser?
>> >
>> > -Pani.
>> >
>> >
>> >
>> > _
>> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
>> > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
>> >
>> > 
>> -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>


_
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

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



Multiple "input" within one Action?

2003-03-06 Thread Zheng, Gang
I have a problem with the "input" attribute of the .

I have a dummy action that takes care of the requests posted from a number
of JSPs. It's like a "wizard" type of scenario: input something on the first
page, then input some other stuff from the second page, etc. All of these
inputs are directed to the same action, and the action class will decide
which next page to forward to.

I use validate() within the dummyForm to do validation on the input fields.
Now, if validation fails, I want go back to the same page with an error
message displayed. I know struts will send me back to the page that is
defined by "input" attribute once validate() return an error. Since there is
only one "input" that I can specify for this action, how can I go back to
"dummy1.jsp" if data from "dummy1.jsp" fails the validation?

Here's the  element from struts-config.xml.



  
  
  


I am sure I can do it if I split the single action into individual actions
to handle each dummy page. But is there anyway that I can do it with the
single action?

Please point me to the right direction.

Thanks very much for any help.

- GZ


RE: forward using Struts

2003-03-06 Thread James Mitchell
No, that won't work either.  But you are right about this being html
stuff.

Once you submit a form, you cannot forward it to any window.  In fact,
you are not really forwarding it to anything.  When the browser submits
a form, it is simply making a request for a document that it can display
in its window.  The document name might happen to be called 'mypage.do',
but your browser doesn't know that there is no such document by that
name, it simply retrieves the stream and displays it in the browser.

Where (I think) you were going with your question is how to have the
results of some process display in another window.

You need to answer a few questions first.

Do you want the user to still see the form (as it was filled out prior
to hitting submit)?
If yes, then you will submit that form to a new target ()
If no, then you must use JavaScript.  After the page is submitted, you
process the form and return the user to some page that can (with
JavaScript) open a new window to a URL that you specify.


--
James Mitchell
Web Developer/Struts Evangelist
http://jakarta.apache.org/struts/

"People demand freedom of speech to make up for the freedom of thought
which they avoid."
- Soren Aabye Kierkegaard (1813-1855)




> -Original Message-
> From: Robert S. Sfeir [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2003 3:36 PM
> To: Struts Users Mailing List
> Cc: Robert S. Sfeir
> Subject: Re: forward using Struts 
> 
> 
> make the button a link and use target="_blank"  this is html stuff.  
> The link can point to a new URL which will call your Action.
> 
> On Thursday, Mar 6, 2003, at 15:32 US/Eastern, Pani R wrote:
> 
> > Hi:
> >
> > I have 3 SUBMIT buttons and one of which, when clicked, should open 
> > the resultant page in a new browser. I dont want to use 
> JavaScript. I 
> > want the ActionClass to handle the request and for a 
> particular Submit 
> > button, it should forward the JSP to a new browser.
> >
> > Can struts forward the page to a new browser?
> >
> > -Pani.
> >
> >
> >
> > _
> > Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
> > http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



  1   2   3   >