RE: Still struggeling: howto get ActionForward to calling page

2003-08-09 Thread Yansheng Lin
Will this work with browser's back button as well?  You need to use session
scope for this to work, right?  No cache allowed of course...


-Original Message-
From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] 
Sent: August 6, 2003 8:13 AM
To: 'Struts Users Mailing List'
Subject: RE: Still struggeling: howto get ActionForward to calling page


This is definitely what I would do.
And just to be more clear, I would copy that action mapping into as many new
ones as you need.  Just change the name and input page, then you should be
all set.

Also, if you don't specify the input page correctly, you can't return to
that page if there are validation errors.

I think this is the best solution by far.


- Keith


-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 8:23 AM
To: Struts Users Mailing List
Subject: RE: Still struggeling: howto get ActionForward to calling page


Hi Alex

Please try following solution 

In multiple screen scenario having same display list .Have separate actions
for each screen then you can have forwards in case of error in respective
Action which will map to original action.

Regards
Rohit




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2003 5:12 PM
To: Struts Users Mailing List
Subject: Re: Still struggeling: howto get ActionForward to calling page

yeap, that's something in a way i thought of as 'dirty fix' for a framework.
As i am 
looking into struts for 2-3 days only i am surprised to find such an
elementary 
functionallity not implemented? Should be interessting for plenty of people
having more 
than 2-3 pages nested in not linear way?

Alex

Send reply to:  "Struts Users Mailing List"
<[EMAIL PROTECTED]>
Date sent:  Wed, 06 Aug 2003 10:50:00 +0200
From:   Adam Hardy <[EMAIL PROTECTED]>
To: Struts Users Mailing List
<[EMAIL PROTECTED]>
Subject:Re: Still struggeling: howto get ActionForward to
calling page

[ Double-click this line for list subscription options ] 

The input attribute on the action mapping is what you specify for the 
return page when validation of the form bean fails, so that is not going 
to help you.

The easiest solution I can think of is to put a hidden field in your 
selection screens with the screen's URL in it.

Alternatively you could try using the HTTP header referer e.g.:

Referer: http://www.w3.org/hypertext/DataSources/Overview.html

but this is an optional header so not all browsers have to send it. I've 
never used it so I don't know which browsers do send it.

hth
Adam

[EMAIL PROTECTED] wrote:
> Hi, 
> 
> i am still looking for a clean way to get an ActionForward to the page
that called my 
> current Action. That means e.g. I am a displayListAction and have been
called by a 
> selection screen. In case i don't find a result for the selection
parameters I would like to 
> bring a specific error to the calling selection screen. That would give
users a chance to 
> change their selection. 
> 
> Sounding easy, this gets complicate in case there are several selection
screens 
> bringing up the same list. I don't like to create a specific forward for
each selection page 
> and then somehow determine which one called me (can do that, but there
should be a 
> nice way in such a famous framework?). 
> 
> The hint using 
>   ActionMapping.getInputForward()
>   or new ActionForward(mapping.getInput())
> didn't help me to much, seems to me there is hardcoded value inside,
specified in the 
> input attribute of the specific action.
> 
> How would an expert solve that problem?
> 
>  :-) Alex
> 
> 
> 
> 
>>Looking for a way to get an ActionForward to the page calling the 
>>current page. 
>>
>>The example: 
>>Want to realize 5-XX pages where to enter values for a 
>>calculation. The calculation & result page would check if 
>>everything was fine (using db queries etc..)
>>Now in case that one of the input values is incorrect / 
>>missmatching the context, I'd like to redisplay the calling page 
>>showing the values entered before + an error message. 
>>
>>How can i realize that without having to define specific forwards 
>>to the 5 pages and then deciding which one was the calling one?
>>
>>Tried the ActionMapping.getInputForward(), but it brought back 
>>null values in the ActionForward only.
>>
>>Comments and keywords to look for welcome.
> 
> 
> 
> -
> 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: [OFF TOPIC] JavaScript + tag question

2003-08-09 Thread Adam Hardy
Might be OT, but I still think the selectbox element doesn't have a 
value property - only an options collection, so -

x = document.forms[0].elements[anySelectbox].selectedIndex;
item = document.forms[0].elements[anySelectbox].options[x].value
BTW do you know if using the name directly as in

document.formname.selectelementname

is kosher W3C?

Adam

Brian Lee wrote:
The line you want will look like this:
document.formname.selectelementname[document.formname.selectelementname.selectedIndex].value 

BAL


From: "Mark Galbreath" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: RE: [OFF TOPIC] JavaScript +  tag question
You may be right - might have to use the .index property instead.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:19 AM
To: Struts Users Mailing List
Subject: Re: [OFF TOPIC] JavaScript +  tag question
I believe that document.forms[0].elements[anySelectbox].value will be
invalid. .value only works on non-select form-elements. AFAIK without
testing it now.
Mark Galbreath wrote:
> If you read the API you will see that JavaScript functions are built
> into the Struts  tag:
>
> http://jakarta.apache.org/struts/userGuide/struts-html.html#select
>
> so you have several event handlers to use for transferring control.
> E.g., 
>
>  ].value";
> var selected = string;
> location = "/search.do?action=" + docObject + "&selectedItem=" +
string;
>   }
> 
>
> And map an action path for "search.do" in your struts-config.xml file.
>
> Mark
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 7:37 AM
>
> I would like to do the following :
>
> I have a form with different fields and drop down boxes
> When A drop down box is selectd I would like to do a submit that looks
> more or less like this :
>
> submit=/search.do?action=dropdownbox1&selectedItem=item
>
>
>
> -
> 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]
_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
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: Howto get ActionForward to calling Page?

2003-08-09 Thread Deepak
Try 
new ActionForward(mapping.getInput())

deepak

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 4:17 PM
Subject: Howto get ActionForward to calling Page?


> Hi, 
> 
> looking for a way to get an ActionForward to the page calling the 
> current servlet. 
> 
> Example: 
> Want to realize 5-XX pages where to enter values for a 
> calculation. The calculation & result page would check if 
> everything entered was fine (using db queries etc..)
> Now in case that one of the input values is incorrect / 
> missmatching the context, I'd like to redisplay the calling page 
> to the user, showing the values entered before + an error message. 
> 
> How can i realize that without having to define specific forwards 
> to the 5 pages and then deciding which one was the calling one?
> 
> Tried the ActionMapping.getInputForward(), but it brought back 
> null values in the ActionForward only.
> 
> Comments and keywords to look for welcome.
> 
> Thanks, Alex
> 
> -
> 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: How to configure commons-logging on JDK1.4

2003-08-09 Thread Koni Roth
No answer until now! It looks like nobody is using commons-logging!
Very frustrating to be the only one using it...
Is there really no useful example or documentation?

Cheers and enjoy the Friday Beer.
Koni
 Original Message 
Subject: How to configure commons-logging on JDK1.4
Date: Fri, 8 Aug 2003 10:11:58 +0200
From: Koni <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Hello
I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
file is in the CLASSPATH and has the following 2 entries:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.log.LogonAction=info

When I run my application the Log should use the 'SimpleLog', as defined
in 'commons-logging.properties'. BUT it uses the default logger for my 
environment
org.apache.commons.logging.impl.Jdk14Logger

How can I configure logging to use 'SimpleLog'?? Any examples??

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


Allowing only POST for form submittal ????

2003-08-09 Thread Bailey, Shane C.
 

 

I have worked with Struts at a few different companies now and I noticed
none of them try

to do any checks to see that only POST methods can successfully make it to
Actions

which handle forms submittals.  Struts allows GETs and POSTs to make it to
every Action

so it seems like this would be something to think about (or maybe not, that
is one reason

I am asking).

 

So I guess I have a few questions then:

 

1.  Shouldn't I worry about (and defend against) which request methods
types (GET, POST, etc.) can make it to which actions?
2.  If so, does Struts have a built in mechanism like  or if not 
3.  Should I be doing something like this at the top of my execute()
method: 

  if( ! "POST" == request.getMethod() ){ return
mapping.findForward("failure"); }  for Actions which should require a POST
only

 

 

With #1 I mean should it matter if someone can go to the URL field in the
browser and type in all the field / value pairs for a form

and hit enter (I am thinking it does matter) compared to HAVING to do a POST
for it to succeed?

 

I am just thinking back to the Servlet programming days when you put the
form submittal handling code in the doPost() and the

other code in the doGet() methods.

 

Any thoughts on this?



RE: Cancel Button Not Working in 1.1

2003-08-09 Thread Bradley M. Handy
Please post the tag you're using to render the cancel button on the page.

Brad

-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 1:07 PM
To: Struts Users Mailing List
Subject: Cancel Button Not Working in 1.1

Hi,

I am trying to use the cancel button in Struts 1.1.  It is not
working

The isCancelled(request) is always returnning false

Can anyone help me?

Natalie



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



RE: [OT] - [TOPIC] - [VOTE]

2003-08-09 Thread Andrew Hill
-1
What James said, with the extra note that you wont get any support from me
for a scheme that doesnt include a [FRIDAY] tag, or a [BEER] tag, or a
[FRIDAY].[BEER] tag, or a [FRIDAY].[BEER].[42], then again I suppose all
those discussions might best be summed up with [FRIDAY].[BEER] == [42] ;->
Is it only Tuesday still? 

[OT] is pretty well entrenched as a defacto standard already though :-)

As for naming this thread "[OT] - [TOPIC]  - [VOTE]" Id say it would more
appropriately have been entitled "[META] -
[TOPIC].[META].[NOMENCLATURE].[PROPOSAL].[VOTE]" or should that be "[META] -
[VOTE].[PROPOSAL].[TOPIC].[META].[NOMENCLATURE]". Garrrgh!





-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 5 August 2003 18:21
To: Struts Users Mailing List
Subject: RE: [OT] - [TOPIC] - [VOTE]


-1

We tried this a long time ago.  Fact is, it would be impossible to
categorize discussions by any label.  Especially when you consider how
topics can vary from one area to another or could be a mix of more than a
few that you listed.

Your best bet is to just go through what you can and delete the rest.  There
is a massive amount of knowledge transfer being spread among the threads
here (and other lists), so it is up to you to get what you need or save what
you might need in the future.  I have a technique where I save (what I
consider) important discussions in subfolders within my mail client.  That
makes for quicker searches among relevant messages.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
770-822-3359
AIM:jmitchtx




> -Original Message-
> From: Puneet Agarwal [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 05, 2003 1:08 AM
> To: [EMAIL PROTECTED]
> Subject: [OT] - [TOPIC] - [VOTE]
>
>
> With growing traffic on this mailing list, it has become difficult to
> search for mails to read or not to read.
> For better participation in the forum, we can have following norm.
>
> We can have the Subject of mails prefix any of the following categories.
> If all agree we could request ASF people to publish these on the struts
> site too.
>
> By doing so we can apply message filtering rules to sort the mails and
> read/answer those that interest you.
> I hope this would lead to better participation in the forum.
>
> [OT]  -Off Topic
> [FB]  -Form Bean
> [AF]  -Action Form
> [RP]  -Request Processor
> [AS]  -ActionServlet
> [SC]  -Scope Related mails
> [GE]  -General Error
> [DG]  -Design Consideration
> [PR]  -Problem in Struts
> [TL]  -Tiles
> [T-BE] -Bean Tag Library
> [T-HT] -HTML Tag Library
> [T-NS] -Nested Tag Library
> [T-LG] -Logic Tag Library
>
> etc
>
> Shall we start voting for this...!!!
>
> Regards,
> Puneet Agarwal
>
> Tata Consultancy Services,
> C-56, Phase - II, NOIDA 201305 (India)
> Phone: +91-120-2461001, 2, 7, 8, 9, 12, 13 (Ext. 1031)
> FAX              : +91-120-246 1521
>
> Struts ... Action ... Struts in Action ... Action in Struts ...
>
>
> -
> 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: RE: [FRIDAY] [JOKE] Here is an old one

2003-08-09 Thread 苗启广


ÔÚ 2003-08-09 03:39:00 ÄúдµÀ£º
>The way I remember that joke, the word wasn't "Mating" ;)of you ? Could you tell me ? 
>Thanks~~
>
>--
>James Mitchell
>Software Engineer / Struts Evangelist
>http://www.struts-atlanta.org
>678.910.8017
>AIM:jmitchtx
>
>
>
>
>> -Original Message-
>> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 08, 2003 2:24 PM
>> To: [EMAIL PROTECTED]
>> Subject: [FRIDAY] [JOKE] Here is an old one
>>
>>
>>
>>
>> Can anyone name the book the following joke appeared in?
>>
>> I have cleaned it up a little (the punch line) and I am typing it from
>> memory so it isn't exactly like the book.
>>
>>
>>
>>
>>
>> There once was a native American Chief who named everybody in
>> his tribe.
>> One of the young boys who was a
>>
>> member of the tribe asked one day...
>>
>>
>>
>> Boy: How do you come up with all of the names of each member
>> of the tribe?
>>
>>
>>
>> Chief: At the moment of birth I look to our surroundings and
>> see what is
>> happening in nature and that is how I know.
>>
>>  For instance, if the weather is violent and restless
>> the name I
>> give may be "Thunder-Cloud".
>>
>>  If the animals are at play the name may be "Running-Deer"
>>
>>
>>
>> So why do you ask, Two-Dogs-Mating???
>>
>>
>>
>> :-)
>>
>>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: [OFF TOPIC] JavaScript + tag question

2003-08-09 Thread Mark Galbreath
If you read the API you will see that JavaScript functions are built into
the Struts  tag:

http://jakarta.apache.org/struts/userGuide/struts-html.html#select

so you have several event handlers to use for transferring control.  E.g.,



Re: RE: [FRIDAY] [JOKE] Here is an old one

2003-08-09 Thread 苗启广


ÔÚ 2003-08-09 13:13:00 ÄúдµÀ£º
>so u both are completing last answerof you ? Could you tell me ? Thanks~~
>
>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 09, 2003 1:09 PM
>To: 'Struts Users Mailing List'
>Subject: RE: [FRIDAY] [JOKE] Here is an old one
>
>
>The way I remember that joke, the word wasn't "Mating" ;)
>
>--
>James Mitchell
>Software Engineer / Struts Evangelist
>http://www.struts-atlanta.org
>678.910.8017
>AIM:jmitchtx
>
>
>
>
>> -Original Message-
>> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 08, 2003 2:24 PM
>> To: [EMAIL PROTECTED]
>> Subject: [FRIDAY] [JOKE] Here is an old one
>>
>>
>>
>>
>> Can anyone name the book the following joke appeared in?
>>
>> I have cleaned it up a little (the punch line) and I am typing it from
>> memory so it isn't exactly like the book.
>>
>>
>>
>>
>>
>> There once was a native American Chief who named everybody in
>> his tribe.
>> One of the young boys who was a
>>
>> member of the tribe asked one day...
>>
>>
>>
>> Boy: How do you come up with all of the names of each member
>> of the tribe?
>>
>>
>>
>> Chief: At the moment of birth I look to our surroundings and
>> see what is
>> happening in nature and that is how I know.
>>
>>  For instance, if the weather is violent and restless
>> the name I
>> give may be "Thunder-Cloud".
>>
>>  If the animals are at play the name may be "Running-Deer"
>>
>>
>>
>> So why do you ask, Two-Dogs-Mating???
>>
>>
>>
>> :-)
>>
>>
>
>
>-
>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]
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



Re: Apache Tomcat web servers

2003-08-09 Thread message message
Have you considered running tomcat & apache on your machine
and getting your ISP to redirect to your machine at your premises.


From: Adam Hardy <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Apache Tomcat web servers
Date: Fri, 08 Aug 2003 09:24:15 +0200
How much are you expecting to pay for a shared machine with tomcat on? And 
is that with or without root access? I am not suggesting anything, but I am 
planning to do this myself and would like to find out prices. What I have 
looked at so far for root access costs 49 euros (= dollars almost) for 2GHz 
CPU with 256MB ram, 40 Gig HD & 75 Gigs traffic per month.

The next one up with 2.4GHz + 512RAM + 100Gig traffic is 99 euros / month.

Adam

Philip Seay wrote:
Yan,

Jason Hunter has a list of reviewed sites at
http://servlets.com/isps/servlet/ISPViewAll
Regards,
Phil Seay
mailto:[EMAIL PROTECTED]
-Original Message-
From: yan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 
2003 4:21 PM
To: [EMAIL PROTECTED]
Subject: Apache Tomcat web servers

Hi,

I am trying to find a Web host for my JSP applications, but I am finding
it very difficult locating a suitable host.
Anyone know of any good Web hosting vendors who support MySQl, Apache
server and the Apache Tomcat servlet container?  I prefer a UK based
host as this is where I reside.
I have had a response to an enquiry from a hosting company called
'Houxou '.  This is what they have replied:
"Assuming Tomcat is "well-behaved", I would have no problem running on
our servers, but would need to investigate how happy it is to co-exist
with two competitors on the same machine:
Apache server pages; and Sun's Chilisoft ASP"

I am not sure what they mean

Any advice would be gratefully received

yan

KickStartESolutions - Intelligent Web Services
[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]
_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


RE: [OT] Lightweight weblogger

2003-08-09 Thread Greg Ludington
> I am looking for a lightweight, Java based weblogger that can be 
> *easily* integrated into an existing Struts-based web application.  I 

You mentioned that you were looking at MiniBlog, but did not like the
scriplet approach.  Neil Eyde's PersonalBlog began as a struts-based
rewrite of MiniBlog.  It has since been rewritten heavily, but it is
still struts and tiles based, so it might suit your needs.

http://www.eyde.net/index.do?cat=D
http://sourceforge.net/projects/personalblog

-Greg



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



RE : RE : Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF

2003-08-09 Thread Laurent MARQUEZ
To access /WEB-INF/common/index.jsp

Web.xml:

/common/index.jsp



That does'nt  work!
How can i do?

Best regard, 
Laurent.


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



Re: Has anyone used Hibernate with Struts?

2003-08-09 Thread Dan Tran
Victor,

The beauty of Struts (MVC2) is that it does not care on how
you persist you model objects.  Struts' action object is the place
you glue your view and model together.

With that, all you need is to learn how to work with Hibernate.
The following link will give you a good introduction to Hibernate
 thru a simple example.  After that you can look further into
what David has recommmended (see below)

http://glen.blog-city.com/files/1018/b/HibernateKickstart.html


-Dan

- Original Message - 
From: "David Friedman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Saturday, August 09, 2003 12:35 PM
Subject: RE: Has anyone used Hibernate with Struts?


> Dear Victor,
>
> I'm in the same boat with Struts and Hibernate.  I found the Hibernate 2.0
> reference PDF
>
http://hibernate.bluemars.net/hib_docs/reference/pdf/hibernate_reference.pdf
> and the struts-hibernate example PlugIn (by Tedd Husted, at
> http://sourceforge.net/projects/struts under the name "hibernate") to be
> very helpful.  Let's just say that before finding that, my attempt at a
> PlugIn was VERY crude (though it DID work).
>
> I'll be trying to get it to work for my site's member login feature this
> weekend so I should be more help next week. :)
>
> Regards,
> David
>
> -Original Message-
> From: victor gusz [mailto:[EMAIL PROTECTED]
> Sent: Saturday, August 09, 2003 11:52 AM
> To: [EMAIL PROTECTED]
> Subject: Has anyone used Hibernate with Struts?
>
>
> Hi, Guys:
>
> I want to learn Hibernate, Hibernate site does not
> seem to provide good examples. Has anyone have this
> kind simple running example for starters to follow?
>
>
> regards,
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.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]
>
>

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



The Joseph Ottinger Editorial

2003-08-09 Thread Mark Galbreath
As I look over my choices for various tasks, I'm a little unsettled at how
many choices I have, what they do, and how they interoperate. I'm not going
to be the one to say that innovation is a bad thing, but too much innovation
probably is a bad thing. In software design, it usually means the innovator
hasn't looked into appropriate technology enough to know how to us= e what's
available, so a new technology, a new mechanism, is invented. Witness
BlueDragon, Vignette StoryServer, Velocity, Cocoon, XTP, CFMX, and JSP: all
attempt to solve the same problem, albeit in different ways.

That means that people wanting to generate active content have a lot of
choices: master CFML, Vignette's deployment, Velocity's templating syntax= ,
Cocoon and XSL, Resin's XTP, or JSP's various oddities; we can throw in
other variants like ATG Dynamo...it goes on and on, even without necessarily
leaving Java. (Leave out the Java requirement and it gets worse: PHP, ASP,
Tcl, mod_perl, CGI itself, etc.) No longer is generating content a simple
decision, and while each technology has strengths and weaknesses, what I've
found is that, in general, each "innovation" is a marketing tool, a result
of laziness in researching available technology, or an attempt to lock in
customers to proprietary mechanisms.

I've used most of these technologies, and I find myself using JSP for
presentation, with WebWork providing the activation framework, and my own
persistence framework handling data storage. Why? The real reason is because
they're the best straight-line solution I see. I don't want to impress my
peers with my continued mastery of technology for technology's sake; I want
to impress my peers by not needing to trumpet how cool my tools are, by
having a system that's under th= e radar. JSP may not be very impressive,
but it gets the job done, and I don't have to spend time teaching people how
to use it. WebWork takes a little getting used to for some people, but I've
found that the payoff in discussing action invocations is well worth the
time it takes. My persistence framework (PortalWizard) is based on simple
DAO abstractions. The innovation f= actor isn't very high, but then again,
I'm able to roll up applications that are very flexible in a very short
time.

I don't want to focus on presentation. I don't care, really, how my actions
are called. Storage is something I only worry about if it's too slow or
incorrect. I could try to innovate here; I could try to write a
one-size-fits-all solution...but I don't care. I want to get the application
working as a whole.

So when do I think you should innovate?

When you have little choice, that's when. The first step should always be
investigation, and thorough investigation at that. That means actually using
the technology at hand and pushing its limits to make sure it can't do what
you need before you start blazing a new trail that won't help anyone in the
long run. In general, what I've found is that people don't innovate to
improve current technology; they innovate to see their names in lights, to
impress others, or simply to get out of doing technology assessment.
Innovation shouldn't be horizontal. It should be vertical. An innovation's
strength should be  so clear to those who understand it that using an
alternate technology seems unsound. CGI was nice, for example, but having a
way of executing content in the server is a Better Thing, because you don't
waste time starting up new processes. This was an innovation, something new,
something necessary. Coming up with lateral technologies that don't
radically improve = things is wasted time. (Consider Velocity, which I don't
use - it's a templ= ating mechanism that I should use, because it fills some
needs I have in fantastic ways. It's lateral, but the way it renders is very
nice. It gets my personal seal of approval.)  

Innovation is good; it's even necessary. Nobody claims the technology we
have is enough - not fast enough,  not good enough, not complete enough.
However, unbridled innovation is hurting our industry more than it's helping
by breeding underpowered technology and clouding the market's vision. It's
time to curb it.



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



RE: BeanUtils.Populate exception(Indexed Properties)

2003-08-09 Thread Slattery, Tim - BLS
> 4)Now Im able to diplay in the jsp page but when I submit 
> this page its throwing 
> javax.servlet.ServletException: BeanUtils.populate at 
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java
> :1098)  exception.

See the response I made a couple of hours ago on this same issue. I just
came through one of these. The problem in my case, and probably in yours, is
that when Struts tries to populate your form bean on submission, it calls
the indexed getter for alist. It expects to get a bean of type
"com.register.struts.account.IpAddress" . In my case, I had created an array
of the proper type and length, and was returning an element of this array.
But my "reset" method did not assign anything to the elements of the array,
so I was returning nulls. Struts reacted to the null by throwing the "No
bean specified" error.


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



RE: A Relevant Observation

2003-08-09 Thread rajendra . x . yadav

OK. Thanks :)
But i did not get that how you posted the article for Europeans?

thanks
-raj



   

  "Mark Galbreath" 

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

   Subject:  RE: A Relevant Observation

  06/08/2003 07:23 

  PM   

  Please respond to

  "Struts Users

  Mailing List"

   

   





I did - look below at my msg...but for the benefit of the Europeans, I
posted the article to this list.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:47 AM
To: Struts Users Mailing List
Subject: Re: A Relevant Observation



Can you give the URL ?

thanks
-raj





  "Mark Galbreath"

  <[EMAIL PROTECTED]To:   "'Struts Users
Mailing List'" <[EMAIL PROTECTED]>, "'Rich'"
  at.com>   <[EMAIL PROTECTED]>,
"'Antoine Chahine'" <[EMAIL PROTECTED]>
   cc:

  06/08/2003 07:13 Subject:  A Relevant
Observation
  PM

  Please respond to

  "Struts Users

  Mailing List"









Check out the June issue of "Java Developer's Journal" (vol. 8, issue 6),
page 8.  I agree 100 percent with Joseph Ottinger.  Things have gotten
entirely out of hand.

http://sys-con.com/java/ -> content:editorial -> vol. 8, issue 6


Mark



-
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 problem(Unable to populate the form in the jsp to ActionFormbean)

2003-08-09 Thread Nicholas L Mohler





Sridhar,

See the thread from 7/28-7/30 titled inxeded properties.  Everything you
need is in that thread.  The basic problem here is that your Form class
properties and your jsp names need to line up properly.  The thread I
mentioned should help you out.

Nick



   

  Paul Thomas  

  <[EMAIL PROTECTED]To:   struts-user <[EMAIL 
PROTECTED]>  
  co.uk>   cc: 

   Subject:  Re: struts problem(Unable to 
populate the form in the jsp to ActionForm bean) 
  08/08/2003 06:19 

  AM   

  Please respond to

  "Struts Users

  Mailing List"

   

   






On 08/08/2003 02:11 Sridhar Kotagiri wrote:
> Hi,
>I have a Action form which contains an arraylist the array list adds
> beans which are called IpAddress(two String properties).I am able to
> display in the jsp page but when I submit this form it is unable to
> populate to the action form.
>
>
>
>
> bundle="content" key="title.ipaddresses"/>
> border="0">
> property="alist">
> style="width:150px;">

> property="domainName"
> />
>
 bundle="content"
> key="common.pointsto"/>
> property="ipValue"
> />

>
>
>
>
>
>
>
>
>
> public class EditAdvancedForm extends ValidatorForm {
> //~ Instance fields
> 
>
>private String domain_Id;
>private ArrayList alist;
>private IpAddress ip1;
>
>public EditAdvancedForm(){
>alist=new ArrayList();
>ip1=new IpAddress();
>
>}
>
>public void setDomainName(String name)
>{
>ip1.setDomainName(name);
>}
>public String getDomainName()
>{
>return ip1.getDomainName();
>}
>public void setIpValue(String name)
>{
>ip1.setIpValue(name);
>alist.add(new
> IpAddress(ip1.getDomainName(),ip1.getIpValue()));
>}
>public String getIpValue()
>{
>return ip1.getIpValue();
>}
>
>/**
> * @return
> */
>public String getDomain_Id() {
>return domain_Id;
>}
>/**
> * @return
> */
>public IpAddress getIp1() {
>return ip1;
>}
>
>/**
> * @param address
> */
>public void setIp1(IpAddress address) {
>ip1 = address;
>}
>
>/**
> * @return
> */
>public ArrayList getAlist() {
>return alist;
>}
>
>/**
> * @param list
> */
>public void setAlist(ArrayList list) {
>alist = list;
>}
>
> }
>
>
>
> public class IpAddress {
>private String domainName;
>private String ipValue;
>private String flag;
>private String flag1;
>
>public IpAddress(String str1,String str2)
>{
>this.setDomainName(str1);
>this.setIpValue(str2);
>}
>   

RE: Update button on a form

2003-08-09 Thread Syed, Nazeer

Writing a javascript on the onclick Event may work.


Thanks
Nazeer


-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 12:44 PM
To: Struts-Users
Subject: Update button on a form

Hi;

I have a form with a submit, reset, and update button. How do I handle
control of the update button (go to a different action)?

thanks - dave

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



RE: method to get new Id to next action when old Id is in request?

2003-08-09 Thread Bailey, Shane C.


I guess you could do this:

sectionInsert_execute()
{
insert into DB
int id = someHowGetTheNewId();

request.setAttribute("my.NewId", new Integer(id));
return mapping.findForward("success");
}


sectionEdit_execute()
{
int newId = 0;
try{
newId =
((Integer)request.getAttribute("my.NewId")).intValue();
}catch(Exception e){
//do whatEver
}

return mapping.findForward("displayEdit");
}


-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 5:26 PM
To: Struts Users Mailing List
Subject: method to get new Id to next action when old Id is in request?

I have two actions chained together. They both take the same formbean. 
The first is sectionInsert.do and the second, which sectionInsert 
forwards to on success, is sectionEdit.do

sectionInsert.do receives the properties of a Section in the request 
parameters, including id=0 where it is 0 because it does not exist in 
the DB yet. So it inserts the new Section into the DB and returns the 
new id, which is needed by sectionEdit to put into the html for the edit 
page.

I originally thought I could save the new id to the formbean and this 
would get passed on, but sectionEdit instantiates its own formbean and 
fills it with the request parameters - include id=0.

Is there an intuitive way of passing on the new id?

I already use sectionEdit.do as a first action by calling it with an id 
on a querystring, where the formbean picks it up. I would like to use a 
method that is easy for both these situations.

I'd appreciate any inspiration.
Adam


-
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: DynaActionForm

2003-08-09 Thread Ted Husted
There are several disadvantages, which may or may not be important to a 
particular application:

* A DynaActionForm can't be instantiated with a zero-argument 
constructor. To create one yourself, you have to use the Struts utility 
methods or use the factory method to copy an existing instance.

* While BeanUtils can see the DynaProperties, other utilities may not. 
So if you use them with Struts EL or Velocity templates, you have to go 
through the map method.

* Likewise, any references in your Actions or other Java code must go 
through the map and pass the property name as a  String. (The 
recommended approach is to transfer the properties to another bean via 
BeanUtils.)

* Struts doesn't provide a way to define a DynaActionForm "type". If you 
want to reuse the same DynaActionForm in a different context using a 
different validation form, you have to give it a different attribute 
property in the ActionMapping.

* The properties to be accessed via BeanUtils are an either/or 
proposition. You cannot extend a DynaActionForm with conventional 
properties; it checks the DynaProperties and stops. =:(

* Since you you can't mix helper properties in with data-input 
properties, if the input needs to be massaged, you may need to put 
helper properties on a separate bean (which might incorporate the 
DynaActionForm through composition).

The major advantage is that between the Struts Validator and 
DynaActionForms, you can prototype a good deal of the presentation layer 
without writing a line of Java code. Likewise, a greater number of 
changes can be made without compiling Java classes. (Heck, with 
something like Struts BSF , you might 
be able to do some applications with any custom Java code whatsoever).

Politically, DynaActionForms also sit well with people who already have 
business beans with the same sort of properties found on the formbeans. 
While you still need to maintain the property names in two places, 
maintaining one in XML seems less redundant.

For a new project, I would probably suggest starting with 
DynaActionForms and using a conventional ActionForm only when any of the 
disadvantages prove to be a problem. Of course, you can mix both 
approaches and use one or the other as the use-case dictates.

-Ted.

--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .


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


Re: RE: Chain of Command

2003-08-09 Thread 苗启广


ÔÚ 2003-08-09 11:20:00 ÄúдµÀ£º
>Use forwards & do the chaining of actionsof you ? Could you tell me ? Thanks~~
>
>Regards,
>Rohit
>
>-Original Message-
>From: McRobb, John [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 08, 2003 8:31 PM
>To: '[EMAIL PROTECTED]'
>Subject: Chain of Command
>
>Are there any good design guidelines for implementing a chain of
>Command/Workflow like approach to actions.
>
>ie a specific action can drive a number of different flow of pages.
>
>a->b->c->d->a
>a->c->a
>a->b->d->a
>
>Thanks
>
>John
>
>> John McRobb
>> Corporate Channel Delivery
>> Royal Bank of Scotland
>> 4th Floor
>113 Dundas Street
>Edinburgh
>> *:  mailto:[EMAIL PROTECTED]
>> *Internal:  24643
>> *External:   (0131) 523 4643
>> * Mobile:  0776 3217501
>>
>>
>
>
>Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
>plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 
>173199. Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE.
>
>This e-mail message is confidential and for use by the addressee only. If you are not 
>the addressee, please return the message to the sender by replying to it and then 
>delete the message from your computer.
>
>Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
>accept responsibility for changes made to this message after it was sent.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>*--
>This message and any attachment(s) is intended only for the use of the addressee(s) 
>and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
>intended addressee(s), you are hereby notified that any use, distribution, disclosure 
>or copying of this communication is strictly prohibited. If you have received this 
>communication in error, please erase all copies of the message and its attachment(s) 
>and notify the sender or Kanbay postmaster immediately.
>
>Any views expressed in this message are those of the individual sender and not of 
>Kanbay.
>
>Although we have taken steps to ensure that this e-mail and any attachment(s) are 
>free from any virus, we advise that in keeping with good computing practice the 
>recipient should ensure they are actually virus free.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: Button labels and DispatchActions mix?

2003-08-09 Thread Van Riper, Mike
Actually, I think the least amount of work (assuming you don't object to
adding a small amount of trivial JavaScript logic to the JSP page) is to
change your  to an  and then add an onclick
JavaScript event handler that sets a hidden form field with the desired
submit action value before submitting the form. You can even embed the event
handler logic directly in the HTML button definitions like so:




  



  


This should work even with two separate forms being used in the same JSP for
the two identically named buttons. Of course, you would then need two
instances of the  tag to include the "action" property in the
two separate HTML forms.

Note: I haven't tested this exact code snippet above. So, there could be
some minor typo in it. However, I have used this technique successfully in
the past.

Cheers, Van

Mike Van Riper
mailto:[EMAIL PROTECTED]
http://www.baychi.org/bof/struts

> -Original Message-
> From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 6:12 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Button labels and DispatchActions mix?
> 
> 
> I guees if you want to assign the meaning to your form based on the
> context where you placed it, it might make some sence. 
> 
> Todor, you can probably create another action and extend it from your
> original action, where you would override getKeyMethodMap (). 
> This will
> probably the least amount of work.
> 
> HTH,
> Alex.
> 
> > -Original Message-
> > From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 07, 2003 9:06 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: Button labels and DispatchActions mix?
> > 
> > I'm not sure I understand you. Why would you want multple buttons,
> with
> > the
> > same label doing different things? Surely this would just 
> confuse the
> > user?
> > 
> > -Original Message-
> > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > Sent: 07 August 2003 13:58
> > To: Struts Users Mailing List
> > Subject: Re: Button labels and DispatchActions mix?
> > 
> > 
> > 
> > Even DispatchLookupAction doesn't work if you want to use the same
> label
> > eg. buttons.reset or buttons.search
> > for two different buttons useing the same Action...
> > 
> > Paul McCulloch wrote:
> > >
> > > I believe that the solution is to use a 
> DispatchLookupAction rather
> than
> > a
> > > dispatch action. See p226 in Struts in Action for a description.
> > >
> > > Paul
> > >
> > > -Original Message-
> > > From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> > > Sent: 07 August 2003 13:27
> > > To: Struts Users Mailing List
> > > Subject: RE: Button labels and DispatchActions mix?
> > >
> > > Its better you use javascript
> > > There you can append your action also with submit value
> > >
> > > Eg:
> > >
> > > Document..action="search.do"+"";
> > >
> > > Regards
> > > Rohit
> > >
> > > -Original Message-
> > > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 07, 2003 5:49 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: Button labels and DispatchActions mix?
> > >
> > > It works with the button label But I have two Search 
> buttons on
> the
> > > same page both labeled
> > > search.button.reset but they perform two different actions. So I
> need a
> > > way to distinguish which was pressed
> > > inside my DispatchAction
> > >
> > > Rohit Aeron wrote:
> > > >
> > > > This will work ..
> > > >
> > > >  > > > value="" >
> > > > 
> > > >
> > > > -Original Message-
> > > > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, August 07, 2003 5:29 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Button labels and DispatchActions mix?
> > > >
> > > > Hello people,
> > > >
> > > > I have the following code :
> > > >
> > > >  
> > > >  
> > > >  
> > > >
> > > > What I am trying to do is have a Dispatch Action
> > > > so that when this button is pressed the request is 
> something like
> > > > search.do?action=resetg
> > > > But I don't want my button to have the resetg title on 
> it. I want
> it
> > to
> > > > have the search.button.reset title from ApplicationResources
> bundle
> > > > on it. It seems tha Struts html tag library mixes the two. Is
> there a
> > > > way out of this?
> > > >
> > > > Thanks
> > > >
> > > >
> -
> > > > To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > > >
> > > > *--
> > > > This message and any attachment(s) is intended only for 
> the use of
> the
> > > addressee(s) and may contain information that is PRIVILEGED and
> > > CONFIDENTIAL. If you are not the intended addressee(s), you are
> hereby
> > > notified that any use, distribution, disclosure or copying of this
> > > communication is strictly prohibited. If you have received this
> > > communication in error, please erase all copies of

Re: Allowing only POST for form submittal ????

2003-08-09 Thread Jason Lea
Adam Hardy wrote:
Hi Jason,
I've heard of Get, Post, Put and Delete, but what are Head, Options and 
Trave?
Oops, should be Trace.

as to what they do...

Servlet Spec 2.3,  2.1.2 says:
The doHead method in HttpServlet is a specialized form of the doGet 
method that returns only the headers produced by the doGet method. The 
doOptions method responds with which HTTP methods are supported by the 
servlet. The doTrace method generates a response containing all 
instances of the headers sent in the TRACE request.

The RFC gives some more details: http://www.ietf.org/rfc/rfc2616.txt

--
Jason Lea
Jason Lea wrote:

Hi Shane,

I guess it is so they can have one servlet method per HTTP method

The spec includes doGet(), doPost(), doPut(), doDelete(), doHead(), 
doOptions(), doTrave()

HTTP/1.0 has doGet, doPut, doHead.  HTTP/1.1 adds the others.



-
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: single checkbox - still use html:multibox?

2003-08-09 Thread David Thielen
Thanks - the book I have didn't list it so of course I assumed it didn't
exist.

Any idea what the something special is? The javadocs don't list anything.

thanks - dave


- Original Message - 
From: "Yansheng Lin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 12:19 PM
Subject: RE: single checkbox - still use html:multibox?



Um,  ?  Please read the api carefully if you want to use this
tag.  There is something you have to do in your form's reset()...

-Original Message-
From: David Thielen [mailto:[EMAIL PROTECTED]
Sent: August 7, 2003 11:33 AM
To: Struts-Users
Subject: single checkbox - still use html:multibox?


Hi;

If I have a single checkbox on my page, should I still use multibox? And if
not,
what do I use?

thanks - dave


-
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: DynaActionForm

2003-08-09 Thread Paananen, Tero
> Is there a place where the disadvantages of using 
> DynaActionForm is listed? Needed this for a discussion.

I haven't found any...

They make my life so much easier that even if there
was a disadvantage, I'd still continue using them.

-TPP - maintains a suite of large Struts based applications

-
This email may contain confidential and privileged material for the sole use of the 
intended recipient(s). Any review, use, retention, distribution or disclosure by 
others is strictly prohibited. If you are not the intended recipient (or authorized to 
receive for the recipient), please contact the sender by reply email and delete all 
copies of this message.  Also, email is susceptible to data corruption, interception, 
tampering, unauthorized amendment and viruses. We only send and receive emails on the 
basis that we are not liable for any such corruption, interception, tampering, 
amendment or viruses or any consequence thereof.


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



Re: JSTL ot struts taglibs?

2003-08-09 Thread David Graham
--- David Thielen <[EMAIL PROTECTED]> wrote:
> Hi;
> 
> For the logic and I18N taglibs - what do you recommend - using the
> struts taglibs or the JSTL taglibs?

Definitely JSTL.  They're more powerful, easier to use, potentially
faster, and a Java standard.

David

> 
> thanks - dave


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: (help!!! plz!!) Select Box and validation (repost)

2003-08-09 Thread Sachin
You should maintain a hiddne variable which will store previous value and if
it is not valid
then set Your original value and return error back to user with selected
Comobo box.

I think it should work..

-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:31 PM
To: Struts Users Mailing List
Subject: (help!!! plz!!) Select Box and validation (repost)



Any suggestion? please??? :)

I am submitting a form using "onchange" javascript even handler w/
 tag.  This works fine until I turn on
VALIDATION,
If validation is set to true, and there are any validation errors, when
the page is displayed w/ the validation errors, the value of the SELECT box
has already changed ??
Which causes the cline to see errors messages for the 'wrong' displayed
item.
any ideas??
Thanks,

using struts 1.0.2/webshere env.



-
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: German Testreaders needed

2003-08-09 Thread Stephan Wiesner
Hi Stefan,
hier findest Du die ersten Kapitel und den zugehörigen Source:
http://rzserv2.fhnon.de/~lg002556/sbuch/
Sind Worddateien, ist vom Verlag vorgegeben, da kann ich nischts machen .-)
Musst Du nach c:\strutsbuch entpacken, sonst werden die Bilder nicht 
richtig referenziert.

Rechtschreibung und so etwas ist nocht nicht korrigiert, das kommt am 
Schluß. Mir gehts einfach um Verständnis Sachen, kommste irgendwo nicht 
weiter, schreib mir nen Vermerk, dann erweitere ich die Erläuterung.

Abgabe des Manusskripts ist in zwei Wochen, eilt mir also ein wenig.

Wer mir am meisten hilft (subjektive Entscheidung) kommt mit ins 
Dankwort und bekommt ein Freiexemplar des Buchs...

Stephan

Rene Mischak wrote:

Hallo Stephan,

Ich würde gerne etwas Testlesen.

Gruss, Rene
 



Stefan Werner wrote:

Hi Stephan,

mach ich gerne.
Grüsse aus Koeln
Stefan

-
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: JSTL ot struts taglibs?

2003-08-09 Thread Reinhard
> So many things are a step backwards like config files for instance.  J2EE
> is supposed to be for the Enterprise which means there is at least a DB and
> maybe the LDAP at your disposal yet people go back to storing stuff in
> files.

I don't agree.
You have to think about the time after the rollout - so, things which are not 
subject of change, IMHO are ok in config files.
All other stuff it's already possible, read from database.
So I can see no step backward.

cheers Reinhard 

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



Has anyone used Hibernate with Struts?

2003-08-09 Thread victor gusz
Hi, Guys:

I want to learn Hibernate, Hibernate site does not
seem to provide good examples. Has anyone have this
kind simple running example for starters to follow? 


regards,

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Bean tag help

2003-08-09 Thread Steve Armstrong
I really don't know how to explain things any more clearly.  I suggest you
buy a Struts book, and check out the documentation for the tag libraries on
the Struts web site.  Your bean:define tags make absolutely no sense.
Please read the following:

http://jakarta.apache.org/struts/userGuide/struts-bean.html#define

In particular:

The corresponding value to which this new attribute (and scripting variable)
is set are specified via use of exactly *one* of the following approaches
(trying to use more than one will result in a JspException being thrown):

Specify a name attribute (plus optional property and scope attributes) - The
created attribute and scripting variable will be of the type of the
retrieved JavaBean property, unless it is a Java primitive type, in which
case it will be wrapped in the appropriate wrapper class (i.e. int is
wrapped by java.lang.Integer).

Specify a value attribute - The created attribute and scripting variable
will be of type java.lang.String, set to the value of this attribute.

Specify nested body content - The created attribute and scripting variable
will be of type java.lang.String, set to the value of the nested body
content.

--

Your bean:define tags are performing both 1 and 2 and hence, according to
the doc, a JspException should be thrown.  As I also mentioned, they seem to
make no semantic sense for the context you provided in your e-mail.  Why are
you creating scripting variables via bean:define?  What is the purpose of
this step?

-Steve

-Original Message-
From: Vance Heredia [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 12:01 AM
To: 'Struts Users Mailing List'
Subject: RE: Bean tag help



Huh  Sorry but you've lost me completely ...

Maybe I should have explained that I've never programmed struts before and
that I've been assigned to fix up the work of a person who has left the
project, and while I've understood, overcome and finished most of the
concepts and problems this particular one completely stumps me.

I should also point out that all exmples of http://www.lonelyplanet.com/
http://mobile.lonelyplanet.com/
http://wap.lonelyplanet.com/


> -Original Message-
> From: Steve Armstrong [mailto:[EMAIL PROTECTED]
> Sent: Friday, 8 August 2003 1:01 PM
> To: Struts Users Mailing List
> Subject: RE: Bean tag help
>
>
> Howdy,
>
> There are a number of things that are incorrect in your example:
>
> 1. Concerning your definition:
>
>  property="processName" value = "filesForm" type="java.lang.Object" />
>
> You can set the value of your scripting variable
> "processName" from a bean, a property of a bean, or a
> "hard-coded" value.  I believe you are trying to set your
> scripting variable from the "processName" property of a bean
> named "filesForm" (i.e., filesForm.getProcessName()).
> However, you also specify a value attribute which probably
> overrides this (I'd have to look at the source code for the
> tag to see how it is actually resolving this ambiguity) which
> would set your scripting variable "processName" to the String
> "filesForm".  This is probably not what you want.
>
> 2.  I believe that as soon as you use the value attribute,
> the scripting variable will automatically be set to
> java.lang.String and your value for the type attribute is
> promptly ignored.  Once again, I'd have to look at the source
> for the tag to be 100% sure.  Anyway, you have to set the
> type attribute correctly if you're getting the value from a
> bean or the property of a bean, otherwise the type is
> java.lang.Object by default.  So, if your getter for
> processName returns a String, specify that the type of the
> define is java.lang.String.
>
> 3. There is no need to create a scripting variable as above
> to be able to do .  This
> is saying that you want to create an HTML form input tag of
> type hidden with the value of the named property associated
> with the form bean that is associated with your action. I
> assume that "filesForm" is the bean associated with your
> action, and it has a property named "processName".  If this
> is a request scope form bean, and the value of "processName"
> isn't editable (i.e., it isn't used in a text field on your
> form), and you want its original value to be set in your form
> bean when the form is submitted, then the html:hidden tag is
> all you need. Your bean:define is trying to set a scripting
> variable with the same name (and value) as your form bean
> property and has nothing to do with the task you're trying to
> accomplish (I believe).
>
> Cheers,
> -Steve
>
> -Original Message-
> From: Vance Heredia [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 8:33 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Bean tag help
>
>
>
> Hm
>
> Why do I need a bean name and type in struts-conifg.
>
> The JSP I'm running is a basic page all it does is user the
> bean tag eg:
>
> 
>
> <%@ page language="java" import="java.net.URLEncoder"
> c

RE: New Bie : org.apache.jasper.JasperException: Cannot retrieve mapping foraction /login

2003-08-09 Thread message message
probably because the error message says login
whilst your config says /Login
your config should say 

From: Seshadhri Srinivasan <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
CC: "Balabaskaran, Kanagasabai" <[EMAIL PROTECTED]>
Subject: RE:  New Bie : org.apache.jasper.JasperException: Cannot retrieve 
mapping for action /login
Date: Wed, 6 Aug 2003 11:50:55 +0530

Hi,
This is my first Struts app, I have a login.jsp in which I have declared a
form tag with action as login.do and I have two buttons(a login button and 
a
browse button) on the page.

I have written a form bean and an action class also. While trying to access
login.jsp I get an "Internal Server Error". I have appended the
struts-config.xml and the exception that I get.
Kindly help me out.
The following is an extract from struts-config.xml:



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>


  
  

  

  
  




  



The Stack trace:

org.apache.jasper.JasperException: Cannot retrieve mapping for action 
/login
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
	at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:536)

Thanks,
Seshadhri Srinivasan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus

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


Struts 1.1: what's the preferred way to use databases?

2003-08-09 Thread Graham Stark
Hi,
   apologies if this is an obvious question, but I can't work it out.

If you're trying to configure a datasource in Struts 1.1, what's the
preferred method? 

The only way I've got this work using the struts-config file is if 
I force the data source to be org.apache.struts.util.GenericDataSource,
as in:


[..]


None of the pooling methods from, for example, the
org.apache.commons.dbcp package seem to work at all. 

Looking at the source code (around line 1080 in
org.apache.struts.action.ActionServlet.java), this seems to be
deliberate.

Could someone explain all this to me? Obviously, I can configure
connection pools manually outside of the Struts framework, but I assume
there are advantages in doing so in a Struts-centric way if you can, and
the DBCP implementation looks quite nice, if I could only get it to
work.

I'd be grateful for any guidance anyone had on this.

thanks,

Graham



-- 
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual Learning Arcade http://www.bized.ac.uk/virtual/vla
Virtual Economy http://www.bized.ac.uk/virtual/economy 


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



RE: DigestingPlugIn [potential bug]

2003-08-09 Thread Joe Germuska
At 3:21 -0400 8/9/03, James Mitchell wrote:
Did my response ever make it?  I was using Yahoo web-mail and couldn't
remember if I flipped the "from" selector to use the address I'm
subscribed with.
If not, then here's basically what I said:

In my existing project, I added the complete source (per the cvs commit
message).  I figured that it should work fine with the existing 1.1
final jars that I already use.but I could be wrong.
To what did you add the source?  If you have some Struts classes in 
/WEB-INF/classes and others in /WEB-INF/lib, I'm pretty sure the ones 
in classes won't be seen.  I'm not sure of the formal rules, but I 
seem to have experienced an inability to load classes in the same 
package from two different sources.

Joe
--
--
Joe Germuska
[EMAIL PROTECTED]  
http://blog.germuska.com
"If nature worked that way, the universe would crash all the time." 
	--Jaron Lanier

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


How to realize forward to the same page?

2003-08-09 Thread Dirk Behrendt
Hello!

I want, that the user can switch the language from a drop down menu at
runtime. When he chose a language, an action class is called and sets
the locale.

I want, that there is no forward to another page. The current page
should be maintained. When I do it without the  tag, an empty
page came as a result. But I want the same page. 

example:
The user switches the language

before switch   after switch
/login.jsp  --> /login.jsp
/someJSP.jsp--> /someJSP.jsp

What I have to add to the struts-config.xml?

Dirk


struts-config.xml
-


   
  



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



Re: Seven Lessons from the Trenches: 4. Protect JSPs behind WEB-INF

2003-08-09 Thread Laurent PETIT
Can't you be more explicit about the error ?

Did you try to view the source of the html produced ?

 ( And, oh, please, just DON'T CRY ! )

- Original Message -
From: "Laurent MARQUEZ" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>;
"'Laurent PETIT'" <[EMAIL PROTECTED]>
Sent: Friday, August 08, 2003 2:23 PM
Subject: RE : Seven Lessons from the Trenches: 4. Protect JSPs behind
WEB-INF


#
In /WEB-INF/web.xml
#
  
/index.jsp
  
#
In /index.jsp
#
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


#
In /WEB-INF/struts-config.xml
#


#
And in /WEB-INF/common/index.jsp
#


Hello world!



Hello world!


#
THAT DOES'NT WORK!



#
-Message d'origine-
De : Laurent PETIT [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 8 août 2003 16:02
À : Struts Users Mailing List
Objet : Re: Seven Lessons from the Trenches: 4. Protect JSPs behind
WEB-INF


Hi,

you can't do that.

Your welcome file must be accessible directly via
http://yourserver/yourwebappcontext/common/index.jsp, without involving
the pattern matching mechanism -> so it must not be in the WEB-INF
directory.

Just put a single index.jsp at the root of your webapp, with a
 (for example) in it, in order to
inlvove the Struts mechanism.

--
Laurent




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



RE: Button labels and DispatchActions mix?

2003-08-09 Thread Alex Shneyderman
Woo hoo, I missed that!

Thanks.

> -Original Message-
> From: Paul McCulloch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 8:39 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Button labels and DispatchActions mix?
> 
> I believe that the solution is to use a DispatchLookupAction rather
than a
> dispatch action. See p226 in Struts in Action for a description.
> 
> Paul
> 
> -Original Message-
> From: Rohit Aeron [mailto:[EMAIL PROTECTED]
> Sent: 07 August 2003 13:27
> To: Struts Users Mailing List
> Subject: RE: Button labels and DispatchActions mix?
> 
> 
> Its better you use javascript
> There you can append your action also with submit value
> 
> Eg:
> 
> Document..action="search.do"+"";
> 
> Regards
> Rohit
> 
> 
> -Original Message-
> From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 5:49 PM
> To: Struts Users Mailing List
> Subject: Re: Button labels and DispatchActions mix?
> 
> It works with the button label But I have two Search buttons on
the
> same page both labeled
> search.button.reset but they perform two different actions. So I need
a
> way to distinguish which was pressed
> inside my DispatchAction
> 
> 
> Rohit Aeron wrote:
> >
> > This will work ..
> >
> >  > value="" >
> > 
> >
> > -Original Message-
> > From: Todor Sergueev Petkov [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 07, 2003 5:29 PM
> > To: Struts Users Mailing List
> > Subject: Button labels and DispatchActions mix?
> >
> > Hello people,
> >
> > I have the following code :
> >
> >  
> >  
> >  
> >
> > What I am trying to do is have a Dispatch Action
> > so that when this button is pressed the request is something like
> > search.do?action=resetg
> > But I don't want my button to have the resetg title on it. I want it
to
> > have the search.button.reset title from ApplicationResources bundle
> > on it. It seems tha Struts html tag library mixes the two. Is there
a
> > way out of this?
> >
> > Thanks
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > *--
> > This message and any attachment(s) is intended only for the use of
the
> addressee(s) and may contain information that is PRIVILEGED and
> CONFIDENTIAL. If you are not the intended addressee(s), you are hereby
> notified that any use, distribution, disclosure or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please erase all copies of the message and its
> attachment(s) and notify the sender or Kanbay postmaster immediately.
> >
> > Any views expressed in this message are those of the individual
sender
> and
> not of Kanbay.
> >
> > Although we have taken steps to ensure that this e-mail and any
> attachment(s) are free from any virus, we advise that in keeping with
good
> computing practice the recipient should ensure they are actually virus
> free.
> >
> >
-
> > 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]
> 
> 
> **
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained in this message.
If
> you are not the addressee indicated in this message (or responsible
for
> delivery of the message to such person), you may not copy or deliver
this
> message to anyone. In such case, you should destroy this message, and
> notify us immediately. If you or your employer does not consent to
> Internet email messages of this kind, please advise us immediately.
> Opinions, conclusions and other information expressed in this message
are
> not given or endorsed by my Company or employer unless otherwise
indicated
> by an authorised representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent computer viruses from
being
> transmitted via electronic mail attachments we cannot guarantee that
> attachments do not contain computer virus code.  You are therefore
> strongly advised to undertake anti virus checks prior to accessing the
> attachment to this electronic mail.  Axios Systems Ltd grants no
> warranties regarding performance use or quality of any attachment and
> undertakes no liability for loss or damage howsoever caused.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-

RE: [newbie]: forwarding to a URL from Action class

2003-08-09 Thread Sachin
Actually your forwards should be part of your mapping object

but you are trying to pass forward with matching of it in
struts-config.xml..

So it oyu should define it in global forwards so that mapping will get That
URL...

Thanks
Sachin

-Original Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:49 PM
To: [EMAIL PROTECTED]
Subject: [newbie]: forwarding to a URL from Action class


Hi,

I have an application that is accessed from another
application and I need to return a user to the
original application when the user logs out/times out
of my application.

I always get a "HTTP - Bad Request" error when I try
to forward to a URL from my DispatchAction class. I
have tried defining the URL in my struts-config and
used the following code in the Action class methods:

return (servlet.findForward("login"));

Also, I get the same result if I define the URL as a
constant and use the code below:

return (new ActionForward(Constants.URL));

The reason I guess is that the ActionForward object
uses a relative path and inserts a "/" at the
beginning of the URL.

Any help would be greatly appreciated.

Thanks,
Shyam


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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: Percieved Performance Issues using MVC

2003-08-09 Thread Ted Husted
Off hand, I'm not sure if you've broken from a pure MVC implementation. 
If you are using server pages, it's a good idea to keep the model code 
out of the server page, since you end up mixing concerns within the same 
component.

But if your servlet is designed so that, internally, the model code is 
cleanly separated from the presentation code, and the Struts controller 
is handling any incoming user gestures, then I don't see how it 
necessarily violates MVC.

In the original desktop MVC, the view called the model directly, and the 
controller just coped with the user gestures. The reasons we don't do 
that with server pages has more to do with HTTP and how server pages are 
implemented, then it does with MVC. While server pages are a useful 
tool, they should not be seen as a panacea. If another presentation 
system is needed, then use it.

The true beauty of MVC is that the Struts controller can delegate 
processing this use-case and view to your servlet, but then still use 
server pages for other cases. One size doesn't have to fit all.

-Ted.

Ortega, Carlos wrote:
I have a client that requires very large reports to be rendered
dynamically in various formats, HTML, PDF, XML, etc. Various clients
have complained about system performance. The database has already been
optimized and the delegate class responsible for managing the dataset is
very efficient. It's just a large complicated query with a very large
result set.
I believe part of the problem is "Perceived Performance". The SQL query
executes and returns a cursor relatively fast. I've found that
processing the result set that takes more than 90% of the response-time.
While the delegate class processes the result-set and updates the Model,
the user is made to wait.
I've been forced to break away from a pure MVC implementation in order
to satisfy the performance needs of my client. I now employ a servlet
that opens a cursor and transforms the results in real-time. I realize
the query does not complete any faster using this method; however, users
see results in their browsers almost immediately; thus, perceived
performance is much better.
Question: Is there a method under the MVC design pattern to accommodate
perceived performance?
Best Regards,
Carlos Ortega
Senior Consultant
Enterprise Information Systems, Inc.
--
Ted Husted,
  Junit in Action  - ,
  Struts in Action - ,
  JSP Site Design  - .


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


Re: RE: Chain of Command

2003-08-09 Thread 苗启广


ÔÚ 2003-08-09 11:20:00 ÄúдµÀ£º
>Use forwards & do the chaining of actionsof you ? Could you tell me ? Thanks~~
>
>Regards,
>Rohit
>
>-Original Message-
>From: McRobb, John [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 08, 2003 8:31 PM
>To: '[EMAIL PROTECTED]'
>Subject: Chain of Command
>
>Are there any good design guidelines for implementing a chain of
>Command/Workflow like approach to actions.
>
>ie a specific action can drive a number of different flow of pages.
>
>a->b->c->d->a
>a->c->a
>a->b->d->a
>
>Thanks
>
>John
>
>> John McRobb
>> Corporate Channel Delivery
>> Royal Bank of Scotland
>> 4th Floor
>113 Dundas Street
>Edinburgh
>> *:  mailto:[EMAIL PROTECTED]
>> *Internal:  24643
>> *External:   (0131) 523 4643
>> * Mobile:  0776 3217501
>>
>>
>
>
>Tesco Personal Finance Limited is a joint venture between The Royal Bank of Scotland 
>plc and Tesco PLC. Tesco Personal Finance Limited is registered in Scotland No 
>173199. Registered Office: 42 St Andrew Square, Edinburgh EH2 2YE.
>
>This e-mail message is confidential and for use by the addressee only. If you are not 
>the addressee, please return the message to the sender by replying to it and then 
>delete the message from your computer.
>
>Internet e-mails are not necessarily secure. Tesco Personal Finance Limited does not 
>accept responsibility for changes made to this message after it was sent.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>*--
>This message and any attachment(s) is intended only for the use of the addressee(s) 
>and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
>intended addressee(s), you are hereby notified that any use, distribution, disclosure 
>or copying of this communication is strictly prohibited. If you have received this 
>communication in error, please erase all copies of the message and its attachment(s) 
>and notify the sender or Kanbay postmaster immediately.
>
>Any views expressed in this message are those of the individual sender and not of 
>Kanbay.
>
>Although we have taken steps to ensure that this e-mail and any attachment(s) are 
>free from any virus, we advise that in keeping with good computing practice the 
>recipient should ensure they are actually virus free.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: method to get new Id to next action when old Id is in request?

2003-08-09 Thread ansuman_behera
what if there is a restriction that the developers should not be using hidden 
variables? what do you do in this case?

-Original Message-
From: Rohit Aeron [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 11:54 AM
To: Struts Users Mailing List
Subject: RE: method to get new Id to next action when old Id is in
request?


Try putting up id as a hidden variable...

Eg:




it would work 

regards
Rohit

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2003 2:56 AM
To: Struts Users Mailing List
Subject: method to get new Id to next action when old Id is in request?

I have two actions chained together. They both take the same formbean. 
The first is sectionInsert.do and the second, which sectionInsert 
forwards to on success, is sectionEdit.do

sectionInsert.do receives the properties of a Section in the request 
parameters, including id=0 where it is 0 because it does not exist in 
the DB yet. So it inserts the new Section into the DB and returns the 
new id, which is needed by sectionEdit to put into the html for the edit 
page.

I originally thought I could save the new id to the formbean and this 
would get passed on, but sectionEdit instantiates its own formbean and 
fills it with the request parameters - include id=0.

Is there an intuitive way of passing on the new id?

I already use sectionEdit.do as a first action by calling it with an id 
on a querystring, where the formbean picks it up. I would like to use a 
method that is easy for both these situations.

I'd appreciate any inspiration.
Adam


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



*--
This message and any attachment(s) is intended only for the use of the addressee(s) 
and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the 
intended addressee(s), you are hereby notified that any use, distribution, disclosure 
or copying of this communication is strictly prohibited. If you have received this 
communication in error, please erase all copies of the message and its attachment(s) 
and notify the sender or Kanbay postmaster immediately.

Any views expressed in this message are those of the individual sender and not of 
Kanbay.

Although we have taken steps to ensure that this e-mail and any attachment(s) are free 
from any virus, we advise that in keeping with good computing practice the recipient 
should ensure they are actually virus free.


-
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: Cancel Button Not Working in 1.1

2003-08-09 Thread Bradley M. Handy
I don't see anything wrong w/ your tag.  However, you're using the
 tag in the body of the  tag, you can
get rid of the "value" attribute.

Brad


-Original Message-
From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 07, 2003 2:51 PM
To: Struts Users Mailing List
Subject: Re: Cancel Button Not Working in 1.1

Here is the tag I am using:


  
  

"Bradley M. Handy" wrote:

> Please post the tag you're using to render the cancel button on the page.
>
> Brad
>
> -Original Message-
> From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 07, 2003 1:07 PM
> To: Struts Users Mailing List
> Subject: Cancel Button Not Working in 1.1
>
> Hi,
>
> I am trying to use the cancel button in Struts 1.1.  It is not
> working
>
> The isCancelled(request) is always returnning false
>
> Can anyone help me?
>
> Natalie
>
> -
> 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: RE: [FRIDAY] [JOKE] Here is an old one

2003-08-09 Thread 苗启广


ÔÚ 2003-08-09 13:13:00 ÄúдµÀ£º
>so u both are completing last answerof you ? Could you tell me ? Thanks~~
>
>-Original Message-
>From: James Mitchell [mailto:[EMAIL PROTECTED]
>Sent: Saturday, August 09, 2003 1:09 PM
>To: 'Struts Users Mailing List'
>Subject: RE: [FRIDAY] [JOKE] Here is an old one
>
>
>The way I remember that joke, the word wasn't "Mating" ;)
>
>--
>James Mitchell
>Software Engineer / Struts Evangelist
>http://www.struts-atlanta.org
>678.910.8017
>AIM:jmitchtx
>
>
>
>
>> -Original Message-
>> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 08, 2003 2:24 PM
>> To: [EMAIL PROTECTED]
>> Subject: [FRIDAY] [JOKE] Here is an old one
>>
>>
>>
>>
>> Can anyone name the book the following joke appeared in?
>>
>> I have cleaned it up a little (the punch line) and I am typing it from
>> memory so it isn't exactly like the book.
>>
>>
>>
>>
>>
>> There once was a native American Chief who named everybody in
>> his tribe.
>> One of the young boys who was a
>>
>> member of the tribe asked one day...
>>
>>
>>
>> Boy: How do you come up with all of the names of each member
>> of the tribe?
>>
>>
>>
>> Chief: At the moment of birth I look to our surroundings and
>> see what is
>> happening in nature and that is how I know.
>>
>>  For instance, if the weather is violent and restless
>> the name I
>> give may be "Thunder-Cloud".
>>
>>  If the animals are at play the name may be "Running-Deer"
>>
>>
>>
>> So why do you ask, Two-Dogs-Mating???
>>
>>
>>
>> :-)
>>
>>
>
>
>-
>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]
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: Bean tag lib help

2003-08-09 Thread Vance Heredia

Ummm don't worry about that last post I re-read it and used the
java.lang.String but it didn't work correctly
Same error  

If anyone has encountered this error I would really appreciate any help

Vance


Vance Heredia

Java Wireless Architect
Global Applications
Lonely Planet Publications
Email: [EMAIL PROTECTED]
Phone: +61 3 8379 8000

http://www.lonelyplanet.com/
http://mobile.lonelyplanet.com/
http://wap.lonelyplanet.com/


> -Original Message-
> From: Vance Heredia 
> Sent: Wednesday, 6 August 2003 5:43 PM
> To: 'Struts Users Mailing List'
> Subject: RE: Bean tag lib help
> 
> 
> Thats my code
> 
> 
>  property="processName" type="fully-qualified-class-type-name" 
> />  property="folder" type="fully-qualified-class-type-name" /> 
>   property="processName"/>  cellspacing="0" cellpadding="0">
> 
> 
> I changed it as suggested and this was the error I got
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 51 in the jsp file: /files.jsp
> 
> Generated servlet error:
> [javac] Compiling 1 source file
> 
> /usr/local/tomcat-imageshed/work/Standalone/localhost/spoolera
> dmin/files_jsp
> .java:154: illegal start of expression
>   fully-qualified-class-type-name processName = null;
>   ^
> 
> 
> 
> An error occurred at line: 51 in the jsp file: /files.jsp
> 
> Generated servlet error: 
> /usr/local/tomcat-imageshed/work/Standalone/localhost/spoolera
> dmin/files_jsp
> .java:154: not a statement
>   fully-qualified-class-type-name processName = null;
>  ^
> 
> 
> 
> An error occurred at line: 51 in the jsp file: /files.jsp
> 
> Generated servlet error: 
> /usr/local/tomcat-imageshed/work/Standalone/localhost/spoolera
> dmin/files_jsp
> .java:154:  expected
>   fully-qualified-class-type-name processName = null;
>^
> 
> 
> 
> Vance Heredia
> 
> Java Wireless Architect
> Global Applications
> Lonely Planet Publications
> Email: [EMAIL PROTECTED]
> Phone: +61 3 8379 8000
> 
> http://www.lonelyplanet.com/
> http://mobile.lonelyplanet.com/
> http://wap.lonelyplanet.com/ 
>  
> -Original Message-
> From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 6 August 2003 5:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Bean tag lib help
> 
> 
> try
> 
>  property="processName" type="fully-qualified-class-type-name"/>
> 
> -- nagi
> 
> 
> ---Original Message---
> 
> From: Struts Users Mailing List
> Date: Wednesday, August 06, 2003 12:18:43 PM
> To: '[EMAIL PROTECTED]'
> Subject: Bean tag lib help
> 
> Hello,
> 
> I got a question. My struts-bean tag doesnot seem to work correctly.
> 
> Everytime I use the Bean tag
> 
> Eg  property="processName"/>
> 
> I get a 
> 
> java.lang.ClassCastException
> at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:766)
> at
> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:481)
> at org.apache.jsp.files_jsp._jspService(files_jsp.java:149)
> 
> 
> The Java code looks like 
> 
> _jspx_th_html_form_0.setParent(_jspx_th_html_html_0);
> _jspx_th_html_form_0.setMethod("POST");
> _jspx_th_html_form_0.setAction("/files");
> 149-> int _jspx_eval_html_form_0 = _jspx_th_html_form_0.doStartTag();
> if (_jspx_eval_html_form_0 !=
> javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
> do {
> out.write("\r\n ");
> /*  bean:define  */
> java.lang.Object processName = null; 
> org.apache.struts.taglib.bean.DefineTag 
> _jspx_th_bean_define_0 = (org.apache.struts.taglib.bean.DefineTag)
> _jspx_tagPool_bean_define_property_name_id.get(org.apache.stru
> ts.taglib.bean
> ..DefineTag.class);
> 
> 
> Doea anyone have any ideas how to fix it 
> 
> 
> Vance Heredia
> 
> __
> This email, including attachments, is intended only for the 
> addressee and may be confidential, privileged and subject to 
> copyright. If you have received this email in error, please 
> advise the sender and delete it. If you are not the intended 
> recipient of this email, you must not use, copy or disclose 
> its content to anyone. You must not copy or 
> communicate to others content that is confidential or subject to 
> copyright, unless you have the consent of the content owner.
> 
> 
> 
> 
> 
>   IncrediMail - Email has finally evolved - Click Here 
> 

__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you mus

Still struggeling: howto get ActionForward to calling page

2003-08-09 Thread asaupp
Hi, 

i am still looking for a clean way to get an ActionForward to the page that called my 
current Action. That means e.g. I am a displayListAction and have been called by a 
selection screen. In case i don't find a result for the selection parameters I would 
like to 
bring a specific error to the calling selection screen. That would give users a chance 
to 
change their selection. 

Sounding easy, this gets complicate in case there are several selection screens 
bringing up the same list. I don't like to create a specific forward for each 
selection page 
and then somehow determine which one called me (can do that, but there should be a 
nice way in such a famous framework?). 

The hint using 
ActionMapping.getInputForward()
or new ActionForward(mapping.getInput())
didn't help me to much, seems to me there is hardcoded value inside, specified in the 
input attribute of the specific action.

How would an expert solve that problem?

 :-) Alex



>Looking for a way to get an ActionForward to the page calling the 
>current page. 
>
>The example: 
>Want to realize 5-XX pages where to enter values for a 
>calculation. The calculation & result page would check if 
>everything was fine (using db queries etc..)
>Now in case that one of the input values is incorrect / 
>missmatching the context, I'd like to redisplay the calling page 
>showing the values entered before + an error message. 
>
>How can i realize that without having to define specific forwards 
>to the 5 pages and then deciding which one was the calling one?
>
>Tried the ActionMapping.getInputForward(), but it brought back 
>null values in the ActionForward only.
>
>Comments and keywords to look for welcome.


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



Re: how to use requiredif

2003-08-09 Thread George Hill
I am trying to do a change password action. It has three fields, original password, 
new password and confirm new password. I want to check the confirm new password if the 
new password is not null.So i
want to use the requiredif.
thank you for you answer.

- Original Message - 
From: "Kamholz, Keith (corp-staff) USX" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, August 07, 2003 9:28 PM
Subject: RE: how to use requiredif


> It looks like you're just trying to make sue that the password field is
> filled in right?  If so, all you need to use is the 'required' validation.
> Just replace requiredif with required, and get rid of the var section.  This
> will make sure a password was entered.
> Is this what you want to do?
> 
> - Keith
> 
> 
> -Original Message-
> From: georgehill [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 06, 2003 11:35 PM
> To: [EMAIL PROTECTED]
> Subject: how to use requiredif
> 
> 
> Hi all,
>  
> I hava question about the use of required in the validation.xml file.My
> example is :
>   
> 
> 
>   test
>   ((newPassword != null)
> 
>   
> Is it right? If it's wrong, please give me a right example.
> Thanks a lot. :)
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


Re: RE: DigestingPlugIn [potential bug]

2003-08-09 Thread 苗启广


ÔÚ 2003-08-09 03:21:00 ÄúдµÀ£º
>Did my response ever make it?  I was using Yahoo web-mail and couldn'tof you ? Could 
>you tell me ? Thanks~~
>remember if I flipped the "from" selector to use the address I'm
>subscribed with.
>
>If not, then here's basically what I said:
>
>In my existing project, I added the complete source (per the cvs commit
>message).  I figured that it should work fine with the existing 1.1
>final jars that I already use.but I could be wrong.
>
>
>--
>James Mitchell
>Software Engineer / Struts Evangelist
>http://www.struts-atlanta.org
>678.910.8017
>AIM:jmitchtx
>
>
>
>
>> -Original Message-
>> From: Joe Germuska [mailto:[EMAIL PROTECTED]
>> Sent: Friday, August 08, 2003 10:19 AM
>> To: Struts Users Mailing List
>> Subject: RE: DigestingPlugIn [potential bug]
>>
>>
>> At 0:20 -0400 8/8/03, James Mitchell wrote:
>> >Ok, I haven't dug in my heals to figure this out myself.  I
>> downloaded
>> >jgs-struts-0.2-dev.jar, then configured my plugin:
>> >
>> >   > className="com.jgsullivan.struts.plugins.DigestingPlugIn">
>> > > value="/WEB-INF/config.xml"/>
>> > 
>> > > value="digester-menu.xml"/>
>> > 
>> > 
>> >   
>> >
>> >
>> >works fine.
>> >
>> >I'm using the 1.1 final jar, so I simply added your new file
>> to my own
>> >project.
>> >
>> >Now when I change the className from
>> >
>> >"com.jgsullivan.struts.plugins.DigestingPlugIn" to
>> >"org.apache.struts.plugins.DigestingPlugIn"
>> >
>> >it fails and causes my app to be unavailable.
>> >
>> >
>> >I'm not looking for a fix just yet.  I just thought you should know.
>>
>> Check me if I'm missing something -- but if you're using 1.1 final,
>> where will it find "org.apache.struts.plugins.DigestingPlugIn"?
>>
>> Joe
>>
>> --
>> --
>> Joe Germuska
>> [EMAIL PROTECTED]
>> http://blog.germuska.com
>> "If nature worked that way, the universe would crash all the time."
>>  --Jaron Lanier
>>
>> -
>> 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]
>
>
 mqg

- SOUVENIR --- .
| Souvenir of China |
| A Good Place for You  |
`--> http://www.souvenirchina.com -'
mailto:[EMAIL PROTECTED]




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



RE: Nobody know how to replace a struts submit button by an image ?

2003-08-09 Thread Alex Shneyderman
Oops sorry it it is 

> -Original Message-
> From: Alex Shneyderman [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 08, 2003 7:35 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Nobody know how to replace a struts submit button by an
image
> ?
> 
> Just put  tag inside your form and it will be rendered as
>  element of your HTML. If someone clicks your
image
> the form will be submitted.
> 
> > -Original Message-
> > From: Florent LOTHON [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 08, 2003 7:08 AM
> > To: Struts
> > Subject: Nobody know how to replace a struts submit button by an
image
> ?
> >
> > Nobody know how to replace a struts submit button by an image ?
> >
> > -Message d'origine-
> > De : Florent LOTHON <[EMAIL PROTECTED]>
> > À : Struts <[EMAIL PROTECTED]>
> > Date : jeudi 7 août 2003 15:17
> > Objet : image instead button for submiting a struts form ?
> >
> >
> > >Hello,
> > >
> > >is there a simple way to make an image submiting a form with
> 
> > ,
> > > or  struts Tag ?
> > >
> > >Flo
> > >
> > >
> > >--
> > >Ce message est protege par les regles relatives au secret des
> > correspondances ; il peut en outre contenir des informations a
> caractere
> > confidentiel ou protegees par differentes regles et notamment le
> secret
> > des
> > affaires ; il est etabli a destination exclusive de son
destinataire.
> > Toute
> > divulgation, utilisation, diffusion ou reproduction (totale ou
> partielle)
> > de
> > ce message, ou des informations qu'il contient, doit etre
> prealablement
> > autorisee.
> > >Tout message electronique est susceptible d'alteration et son
> integrite
> > ne
> > peut etre assuree. Les AGF declinent toute responsabilite au titre
de
> ce
> > message s'il a ete modifie ou falsifie.
> > >Si vous n'etes pas destinataire de ce message, merci de le detruire
> > immediatement et d'avertir l'expediteur de l'erreur de distribution
et
> de
> > la
> > destruction du message.
> > >This message is protected by the secrecy of correspondence rules ;
> > furthermore it may contain privileged or confidential information
that
> is
> > protected by law, notably by the secrecy of business relations rule
;
> it
> > is
> > intended solely for the attention of   the addressee . Any
disclosure,
> > use,
> > dissemination or reproduction (either whole or  partial) of this
> message
> > or
> > the information contained herein is strictly prohibited without
prior
> > consent.
> > >Any electronic message  is susceptible to alteration  and  its
> integrity
> > can not be assured.  AGF declines any  responsibility for  this
> message in
> > the event of  alteration  or falsification..
> > >If you are not the intended  recipient, please destroy it
immediately
> and
> > notify the sender of the wrong delivery and the mail deletion.
> > >--
> > >
> > >
> >
> >
> >
> > --
> > Ce message est protege par les regles relatives au secret des
> > correspondances ; il peut en outre contenir des informations a
> caractere
> > confidentiel ou protegees par differentes regles et notamment le
> secret
> > des affaires ; il est etabli a destination exclusive de son
> destinataire.
> > Toute divulgation, utilisation, diffusion ou reproduction (totale ou
> > partielle) de ce message, ou des informations qu'il contient, doit
> etre
> > prealablement autorisee.
> > Tout message electronique est susceptible d'alteration et son
> integrite ne
> > peut etre assuree. Les AGF declinent toute responsabilite au titre
de
> ce
> > message s'il a ete modifie ou falsifie.
> > Si vous n'etes pas destinataire de ce message, merci de le detruire
> > immediatement et d'avertir l'expediteur de l'erreur de distribution
et
> de
> > la destruction du message.
> > This message is protected by the secrecy of correspondence rules ;
> > furthermore it may contain privileged or confidential information
that
> is
> > protected by law, notably by the secrecy of business relations rule
;
> it
> > is intended solely for the attention of   the addressee . Any
> disclosure,
> > use, dissemination or reproduction (either whole or  partial) of
this
> > message or the information contained herein is strictly prohibited
> without
> > prior consent.
> > Any electronic message  is susceptible to alteration  and  its
> integrity
> > can not be assured.  AGF declines any  responsibility for  this
> message in
> > the event of  alteration  or falsification..
> > If you are not the intended  recipient, please destroy it
immediately
> and
> > notify the sender of the wrong delivery and the mail deletion.
> > --
> >
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For ad

How to configure commons-logging on JDK1.4

2003-08-09 Thread Koni
Hello
I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
file is in the CLASSPATH and has the following 2 entries:


org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.log.LogonAction=info


When I run my application the Log should use the 'SimpleLog', as defined
in 'commons-logging.properties'. BUT it uses the default logger for my environment
org.apache.commons.logging.impl.Jdk14Logger

How can I configure logging to use 'SimpleLog'?? Any examples??

Thanks
Koni


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



Re: DigestingPlugIn

2003-08-09 Thread Robert Leland
David Graham wrote:

--- Robert Leland <[EMAIL PROTECTED]> wrote:
 

Joe Germuska wrote:

   

At 14:12 -0700 8/7/03, James Mitchell wrote:

 

I noticed the check in of DigestingPlugIn and I want to try it out.

Unless I missed it somewhere, it's not clear to me how to use it. If 
it actually does what I'm
hoping/guessing (based on the name and comments),  I'll be one happy 
camper

Can you give us a brief 'how to'?
   

I wrote up an example last weekend based on the version in jgs-struts 
-- see
http://demo.jgsullivan.com/struts/DigestingPlugIn.html
and
http://demo.jgsullivan.com/struts/DigestingPlugIn_Example.html

Some of this may not apply directly to the version which was 
committed, but it should get you rolling.If there *are* 
discrepancies, we can discuss whether to adjust the version in CVS or 
adjust the docs. 
 

I liked the factored out classes on you web site better than what was 
committed. Look for those
to make it into Struts real soon, (With your blessing) .
   

I didn't commit PlugInSupport because a support class should contain
support methods that many plugins need.  I'm not convinced that most
plugins need what DigestingPlugIn needed so that's why it's not there.  Do
any other plugins need PlugInSupport type functionality?
The ability to read external configuration files from other types of 
sources seems pretty fundamental,
and a good building block.

-Rob

David

 

-Rob

   

The xdocs for those two documentation pages are in the source 
distributions downloadable from 
http://demo.jgsullivan.com/struts/download.html

Let me know if I can clarify anything...

Joe
 




RE: DigestingPlugIn [potential bug]

2003-08-09 Thread James Mitchell
Did my response ever make it?  I was using Yahoo web-mail and couldn't
remember if I flipped the "from" selector to use the address I'm
subscribed with.

If not, then here's basically what I said:

In my existing project, I added the complete source (per the cvs commit
message).  I figured that it should work fine with the existing 1.1
final jars that I already use.but I could be wrong.


--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx




> -Original Message-
> From: Joe Germuska [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 10:19 AM
> To: Struts Users Mailing List
> Subject: RE: DigestingPlugIn [potential bug]
> 
> 
> At 0:20 -0400 8/8/03, James Mitchell wrote:
> >Ok, I haven't dug in my heals to figure this out myself.  I 
> downloaded
> >jgs-struts-0.2-dev.jar, then configured my plugin:
> >
> >className="com.jgsullivan.struts.plugins.DigestingPlugIn">
> >  value="/WEB-INF/config.xml"/>
> > 
> >  value="digester-menu.xml"/>
> > 
> > 
> >   
> >
> >
> >works fine.
> >
> >I'm using the 1.1 final jar, so I simply added your new file 
> to my own
> >project.
> >
> >Now when I change the className from
> >
> >"com.jgsullivan.struts.plugins.DigestingPlugIn" to
> >"org.apache.struts.plugins.DigestingPlugIn"
> >
> >it fails and causes my app to be unavailable.
> >
> >
> >I'm not looking for a fix just yet.  I just thought you should know.
> 
> Check me if I'm missing something -- but if you're using 1.1 final, 
> where will it find "org.apache.struts.plugins.DigestingPlugIn"?
> 
> Joe
> 
> -- 
> --
> Joe Germuska
> [EMAIL PROTECTED]  
> http://blog.germuska.com
> "If nature worked that way, the universe would crash all the time." 
>   --Jaron Lanier
> 
> -
> 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] XForms

2003-08-09 Thread Andrew Hill
Thanks for the reply Simon,

I guess my first question for you isn't so much about using XForms as about
deploying an XForms based solution: what are you using for an XForms
processor on the client side (or on the middle tier)?

Fate has consipired against me in my attempts to evaluate plugins (Im using
IE5 and the IE6 box I can use isn't on SP1 yet and I dont have admin rights
on it, and I couldnt even download the novell plugin etc...) and the two
server side ones Ive had a (very) quick look at (Chiba and IBM XML Forms (an
alphaworks thing)) both seemed very buggy when I tried playing with their
samples.

Only processor implementation Ive seen so far that appears to work is
XSmiles, but I cant see us deploying that on every seat at large customer
sites... :-(

Interesting to note that XForms has moved up to a "Proposed Recommendation"
status now. Hopefully that means the spec is pretty stable now which might
prompt more moves to implement it.

regards
Andrew

-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]
Sent: Friday, 1 August 2003 16:47
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: [OT] XForms


I'm just starting to use it myself. And it's a bit of a pain in the RS
really. I think that it will become a standard next year, as for use within
static sites it's an extremely easy thing to use. (The wizard can knock up a
form page in about 2 minutes, and saves a boat load of typing)

However, if like me, your forms are dynamic, it can be a bit of a sh*t to
deal with. You will need to know exactly how to generate the xform xml doc
on the fly, and this means knowing it inside out and back to front. (I'm on
my fifth or sixth read through and it's starting to make my brain hurt)

But I've read enough to know the basics, so any question drop me a line.

Cheers

Simon



- Original Message -
From: "Andrew Hill" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Friday, August 01, 2003 8:02 AM
Subject: [OT] XForms


> Currently the app Im working on is using an xhtml front end (with struts
of
> course) but Ive been asked to look at XForms with an eye to migrating to
it
> in the future (and probably throwing in a migration to JSF while Im
there).
>
> Currently the XForms spec is only a candidate release with afaik very
little
> browser support, though I gather there are a number of plugins that
> implement an XForms processor.
>
> I'm in the process of reading through whats on the w3c site about it but
am
> still pretty clueless as to what it really implies in terms of what we
would
> do different to now. While I understand what I am reading I dont truly
grok
> it yet.
>
> Anyone else been looking into this and can share some pointers on what I
> need to think about?
>
> Is XForms really going to be the next stage in the evolution of forms on
the
> browser or is it just some hyped up hot air thats really a wild goose
chase?
>
>
> -
> 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]



content type header

2003-08-09 Thread Amit Rana
Hi,

We display a lot of Japanese content on our pages, we have lots
of jsps etc which were initially build for English content only. 

In order to append the right header I tried following two
approaches but failed
1. Passed "content" parameter to AcionServlet 
  
  content
  text/html; charset=Shift_JIS

2. Above is deprecated so I also tried to add an attribute
contentType="text/html; charset=Shift_JIS" to controller tag in
struts-config

Neither of the above two approaches have any affect although including
<%@ page contentType="text/html; charset=Shift_JIS"%> in the JSPs work.

Is there something wrong in the changes I do to xml? Or there is no
alternative I will have to edit all the JSPs?

Please feel free to direct me to any documentation/link.

Regards,
Amit.




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



RE: JSTL ot struts taglibs?

2003-08-09 Thread Stephen Brown
Maybe you could post this to the ECS users group.  Scriptlets are fine, but
tend to lend themselves to having lots of lines of code in a page that
doesn't actually generate html, which is tough to read if you are trying to
lay things out.

> 
> Why do you think Ant is so popular??? It got rid of all the 
> $var UNIX script
> like crap and made it more like tags should be!!!
> 
What are you talking about?  ${var} is pretty standard in Ant.  

> 
> -Original Message-
> From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
> Sent: August 8, 2003 11:21 AM
> To: 'Struts Users Mailing List'
> Subject: RE: JSTL ot struts taglibs?
> 
> 
> 
> Scriptlets are more powerful (you can do ANYTHING Java can 
> do), faster, is a
> standard (it is the Java language you know) and if you are 
> going to spend
> time learning a new language (${var} == "pooPoo") then you 
> would be better
> off learning Java (assuming you don't already know it) cause 
> then you could
> do scriptlets and middle tier coding and more whereas if you 
> use your time
> learning JSTL all you will know is JSTL.  
> 
> Believe me, JSTL will be easy to replace if someone comes out with an
> alternative.  I am a programmer but I understand the 
> importance of having
> the tags be similar to HTML tags and not like tags containing 
> scriptlets.
> 
> If it makes you happy $var is a legal Java variable name so 
> you could just
> write scriptlets with $var and no one would realize you 
> weren't writing JSTL
> 
> 
> :)
> 
> Why do you think Ant is so popular??? It got rid of all the 
> $var UNIX script
> like crap and made it more like tags should be!!!
> 
> Bottom line is, yes, Struts tags aren't the best but JSTL is 
> not much better
> and will probably be replaced with something not so ugly in 
> the future.
> 
> 
> Just my .02 sense.
> 
> I like it how some people don't get disturbed by questions 
> about connecting
> to a database with JDBC to the Struts user list but get mad 
> if you post a
> differing opinion about the crappy way some tags were written that
> interfaces with Struts code.  What an ACE!
> 
> 
> 
> 
> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 10:28 AM
> To: Struts Users Mailing List
> Subject: Re: JSTL ot struts taglibs?
> 
> --- David Thielen <[EMAIL PROTECTED]> wrote:
> > Hi;
> > 
> > For the logic and I18N taglibs - what do you recommend - using the
> > struts taglibs or the JSTL taglibs?
> 
> Definitely JSTL.  They're more powerful, easier to use, potentially
> faster, and a Java standard.
> 
> David
> 
> > 
> > thanks - dave
> 
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.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]
> 


Model and Business in Struts-Expresso

2003-08-09 Thread Mehdi Bizhani

Hi,

I think Expresso uses struts internally,  and you should use its
own front controller, tag libraries and  You can't use
struts directly.


Mehdi Bizhani writes:

> 
> Hi,
> 
> Please introduce me a Struts-compatible and complete framework
> for the business part and model part of an Sruts application
> that it can also handle the security issue. My application is 
> middle-weight.
> 
> Thanks
> 
> Free multi-lingual web-based and  POP3 email service with a
> generous 15MB of storage, a choice of themes for your mailbox,
> message filtering, plus spam and virus protection
> Sign up now: http://www.gawab.com
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

Free multi-lingual web-based and  POP3 email service with a
generous 15MB of storage, a choice of themes for your mailbox,
message filtering, plus spam and virus protection
Sign up now: http://www.gawab.com


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



Re: JSP Exception, HELP!!!

2003-08-09 Thread tim
Samanth Athrey wrote:

Hello All,

This is a real strange exception am getting. I have a main page which has 6 links. First time I can select any of the link and the page is rendered. Once I come back the main page and select any other link, I get the following message:

===
javax.servlet.jsp.JspException: No getter method for property accountNo of bean 
org.apache.struts.taglib.html.BEAN

"accountNo" attribute is declared and even the methods are present.

When I close and open a new instance of Explorer, I dont get this message, but this repeats for other pages!! Please could anybody help me?

Thanx in advance.

Regards,
Samanth
 

Just take a look at what it says.  

First,  
javax.servlet.jsp.JspException: No getter method for property accountNo 
of bean org.apache.struts.taglib.html.BEAN I would suggest that this is 
accurate, you have to ask yourself exactly what bean is it looking for 
getAccountNo() in?  It looks to me like it's looking in 
org.apache.struts.taglib.html.BEAN which it is unlikely to have that 
property.  So the error will likely be that the tag is not examining the 
correct bean for the property your interested in.

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