problems when migrating Struts 1.0 to Struts 1.1 on WebSphere?

2006-05-16 Thread Emilia Ipate








Hello!

 

I am trying to upgrade Struts 1.0.2 to Struts 1.1 on WebSphere
Application Server. 

 

At beginning, the application was developed on WebSphere
version 3.5.4  with Struts 1.0.2. 
The application used a Struts1.0.2 patch, because: "The JASPER version
used by the WebSphere 3.5.4 servlet engine was not  up to date to the
latest spec and such did not support the way the Form tag was written. A fix to
Struts 1.0.2 was required (for more info see  http://mail-archives.apache.org/mod_mbox/struts-user/200107.mbox/browser
: the discussion thread “Struts 1.0 on WebSphere
3.5.4”)" 

 

So, now, in order to upgrade to Struts 1.1, we have
already upgraded to JSP 1.2, Servlet 2.3 and  WebSphere Application Server
v5 (using as IDE: WSAD 5.1.2).

 

So, if there someone who had to do the same thing?
Did he/she encounter any problems? What should I be aware of?

Any idea is appreciated!

 

 

Kind regards,

Emilia

 






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

Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

*Dakota Jack,*your solution is awesome;cool.
Actually I am a freshman to struts;as a result,I need your help to do the
same as you.
**Greatly appreciated if you send your code of the very action class  which
is to deliver all images or other resources.

Thanks .
On 5/17/06, Dakota Jack <[EMAIL PROTECTED]> wrote:


Using standard URLs is just a guarantee that you will keep having these
sorts of problems.  I use an action to deliver all images, including
flash,
or other resources, CSS, etc.  I would suggest you do the same and you
will
never have to worry about this recurrent problem again.




Re: [shale] All Hail Shale

2006-05-16 Thread Dakota Jack

Dead on, Wendy.  Brett lives in Portland, as does Craig, the perpetrator of
Shale.  You would have to be daffy to use Shale in my opinion.  I have a lot
of respect generally for Brett and was really disappointed to see him say
that Shale has a service-oriented architecture.  As anyone remotely
conversant with SOA knows, the services are orthongonal to the normal layers
of a framework, so this is patent nonsense and is just another sales job.
If you are starting out, I would highly recommend using Spring and its web
framework until someone can tell what will become of the madness here at
Struts.

On 5/16/06, Wendy Bossons <[EMAIL PROTECTED]> wrote:


Hi, I'm new to this list. I'm looking at new frameworks for my app --
does anyone know when Shale will officially be released?

Also, what is the benefit of it working with JSF? Wouldn't you want to
do one or the other?

..\Wendy


Jonathan Revusky wrote:
> Niall Pemberton wrote:
>> Brett McLaughlin is writing a series of five articles (titled "All
>> Hail Shale") on Shale and the second has just been published:
>>
>> Part 1: Shale isn't Struts
>>
http://www-128.ibm.com/developerworks/library/j-shale0228/?ca=dgr-lnxw07Shale
>
>
>
> Good for the laugh anyway. I was just starting to read the above one
> and chuckled when I got to the the last sentence of the first
> paragraph under "Evaluating Shale":
>
> You'll put as much work into writing a new Shale application,
> or converting a Struts application to Shale, as if Shale had nothing
> at all to do with Struts.
>
> 
>
> "as if"... Indeed :-)
>
> Jonathan Revusky
> --
> lead developer, FreeMarker project, http://freemarker.org/
>
>>
>>
>> Part 2: Anatomy of a Shale application
>> http://www-128.ibm.com/developerworks/java/library/j-shale05126/
>>
>> See the wiki for a full list of Shale articles:
>> http://wiki.apache.org/struts/Shale/Resources
>>
>> Niall
>
>
> -
> 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]





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


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Dakota Jack

Using standard URLs is just a guarantee that you will keep having these
sorts of problems.  I use an action to deliver all images, including flash,
or other resources, CSS, etc.  I would suggest you do the same and you will
never have to worry about this recurrent problem again.

On 5/16/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.Iuse Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I
typed the very url of this page.But when I put this page in my
layout.jsptiles files,nothing displayed.
  I defined the xml file as following:

>  Tiles Configuration 1.1//EN" "
> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
And I opened welcome.do mapping to ".index" and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.





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


Re: [shale] All Hail Shale

2006-05-16 Thread Ted Husted

On 5/16/06, Ted Husted <[EMAIL PROTECTED]> wrote:

I'm not sure how far we are from a Beta or GA release, but there is an
Alpha available, and notes about the API stability are posted on the
website.


* http://struts.apache.org/downloads.html

* http://struts.apache.org/struts-shale/api-stability.html

-T.

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



Re: [shale] All Hail Shale

2006-05-16 Thread Ted Husted

On 5/16/06, Wendy Bossons <[EMAIL PROTECTED]> wrote:

Hi, I'm new to this list. I'm looking at new frameworks for my app --
does anyone know when Shale will officially be released?

Also, what is the benefit of it working with JSF? Wouldn't you want to
do one or the other?


I'm not sure how far we are from a Beta or GA release, but there is an
Alpha available, and notes about the API stability are posted on the
website.

Shale is a JSF framework, without compromise. We tried integrating JSF
with action-based frameworks, but the result was awkward. Rather than
pound a square peg into a round hole, Craig started a new framework
that extends JSF with a View Controller, Dialog Manager, Validator,
and other features missing from the standard JSF implementation. Like
the original Struts, Shale fills in the gaps, making it easier for
developers to build enterprise-grade applications.

For more, see the Roadmap FAQ.

* http://struts.apache.org/roadmap.html

HTH, Ted.

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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

Thanks a lot for your immediate reply which helped me a lot to resolve this
problem.

The solution *Christian Bollmeyer *provided is just fine;I make the image
display properly;*
**Bart Busschots's *advice is of great useful,I check all my webapp to make
sure all the things go as expected.*

**Wendy Bossons's * code is right in a jsp page---it is the same as
mime.But the flash can NOT display when I put it in a Tiles file,and it is
the real problem I met as Dave Newton pointed out.*

*The solution to flash-problem is* *to name the movie's value you want to
insert as a  context-Relative url as following:


and the code to insert a flash is to be:


codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0
"
width="783" height="90" id="logo" align="middle">




http://www.macromedia.com/go/getflashplayer";
/>



I got it as what I said.And if there is any better way ,please notice me.

Thanks again.


Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Paul Benedict
saveErrors is not deprecated. I use it in Struts 1.2.

--- Asad Habib <[EMAIL PROTECTED]> wrote:

> Paul, what method do I use to save them? I am using Struts 1.2.9 and as 
> far as I know the saveErrors method has been deprecated. Is there another 
> method that replaced this one? Thanks.
> 
> - Asad
> 
> On Tue, 16 May 2006, Paul Benedict wrote:
> 
> > Asad,
> >
> > I have not had this problem. I use declarative exception all the time.
> > Two things to look for:
> >
> > 1) Make sure you're actually saving the errors messages after you generate
> > them. Calling form.validate() only makes them; make sure you save them
> > in the request.
> >
> > 2) Make sure you're not redirecting. You will lose them, unless you
> > place the error messages in the session.
> >
> > Paul
> >
> > --- Asad Habib <[EMAIL PROTECTED]> wrote:
> >
> >> Okay, I've finally got this working except for one piece. I use
> >> form.validate in my action to retrieve errors placed by the Struts
> >> Validator in the ActionErrors object. Depending on the type of error in
> >> ActionErrors, my action throws an exception and this in turn triggers
> >> forwarding to a particular view based on the value of the path attribute
> >> of the exception element in my 'struts-config.xml'. Once I have been
> >> forwarded to the correct view, I cannot display the error message using
> >> . Does anyone know why?
> >>
> >> I have the validate attribute of the action element set to false in my
> >> 'struts-config.xml' and this is the only way that I have been able to
> >> make declarative exception handling work with the Struts Validator. If I
> >> set the validate attribute to true, declarative exception handling does
> >> not work and I am forwarded to the view specified in the input attribute
> >> of my action element. In this case however, 
> >> does display the error placed in ActionErrors by the Struts Validator.
> >> Any help would be appreciated. Thank you.
> >>
> >> - Asad
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



Re: [shale] All Hail Shale

2006-05-16 Thread Ryan Wynn

On 5/16/06, Wendy Bossons <[EMAIL PROTECTED]> wrote:

Hi, I'm new to this list. I'm looking at new frameworks for my app --
does anyone know when Shale will officially be released?

Also, what is the benefit of it working with JSF? Wouldn't you want to
do one or the other?


Wendy, Shale augments JSF as opposed to replacing it.  In fact Shale
requires a JSF implementation.

The features section on http://struts.apache.org/struts-shale/ pretty
much spells out what you get in jsf+shale that you don't get in
vanilla jsf.


Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Asad Habib
Paul, what method do I use to save them? I am using Struts 1.2.9 and as 
far as I know the saveErrors method has been deprecated. Is there another 
method that replaced this one? Thanks.


- Asad

On Tue, 16 May 2006, Paul Benedict wrote:


Asad,

I have not had this problem. I use declarative exception all the time.
Two things to look for:

1) Make sure you're actually saving the errors messages after you generate
them. Calling form.validate() only makes them; make sure you save them
in the request.

2) Make sure you're not redirecting. You will lose them, unless you
place the error messages in the session.

Paul

--- Asad Habib <[EMAIL PROTECTED]> wrote:


Okay, I've finally got this working except for one piece. I use
form.validate in my action to retrieve errors placed by the Struts
Validator in the ActionErrors object. Depending on the type of error in
ActionErrors, my action throws an exception and this in turn triggers
forwarding to a particular view based on the value of the path attribute
of the exception element in my 'struts-config.xml'. Once I have been
forwarded to the correct view, I cannot display the error message using
. Does anyone know why?

I have the validate attribute of the action element set to false in my
'struts-config.xml' and this is the only way that I have been able to
make declarative exception handling work with the Struts Validator. If I
set the validate attribute to true, declarative exception handling does
not work and I am forwarded to the view specified in the input attribute
of my action element. In this case however, 
does display the error placed in ActionErrors by the Struts Validator.
Any help would be appreciated. Thank you.

- Asad

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





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

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




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



Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Paul Benedict
Asad,

I have not had this problem. I use declarative exception all the time.
Two things to look for:

1) Make sure you're actually saving the errors messages after you generate 
them. Calling form.validate() only makes them; make sure you save them
in the request.

2) Make sure you're not redirecting. You will lose them, unless you 
place the error messages in the session.

Paul

--- Asad Habib <[EMAIL PROTECTED]> wrote:

> Okay, I've finally got this working except for one piece. I use 
> form.validate in my action to retrieve errors placed by the Struts 
> Validator in the ActionErrors object. Depending on the type of error in 
> ActionErrors, my action throws an exception and this in turn triggers 
> forwarding to a particular view based on the value of the path attribute 
> of the exception element in my 'struts-config.xml'. Once I have been 
> forwarded to the correct view, I cannot display the error message using 
> . Does anyone know why?
> 
> I have the validate attribute of the action element set to false in my 
> 'struts-config.xml' and this is the only way that I have been able to 
> make declarative exception handling work with the Struts Validator. If I 
> set the validate attribute to true, declarative exception handling does 
> not work and I am forwarded to the view specified in the input attribute 
> of my action element. In this case however,  
> does display the error placed in ActionErrors by the Struts Validator.
> Any help would be appreciated. Thank you.
> 
> - Asad
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

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



Declarative Exception Handling with Struts Validation

2006-05-16 Thread Asad Habib
Okay, I've finally got this working except for one piece. I use 
form.validate in my action to retrieve errors placed by the Struts 
Validator in the ActionErrors object. Depending on the type of error in 
ActionErrors, my action throws an exception and this in turn triggers 
forwarding to a particular view based on the value of the path attribute 
of the exception element in my 'struts-config.xml'. Once I have been 
forwarded to the correct view, I cannot display the error message using 
. Does anyone know why?


I have the validate attribute of the action element set to false in my 
'struts-config.xml' and this is the only way that I have been able to 
make declarative exception handling work with the Struts Validator. If I 
set the validate attribute to true, declarative exception handling does 
not work and I am forwarded to the view specified in the input attribute 
of my action element. In this case however,  
does display the error placed in ActionErrors by the Struts Validator.

Any help would be appreciated. Thank you.

- Asad

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



loading message resources from a webapp location

2006-05-16 Thread tim.fulcher
Hi
 
We wish to load message resources from a local url within our webapp. I can't 
see an easy way to obtain servlet context within my MessageResourcesFactory / 
MessageResources implementations. Am I missing something here? 
Also ( yeah I know this is often raised), if I were to wipe the servlet context 
attribute  "" 
programmatically, will that get Struts to reload message resources again or is 
it a plain bad idea  :)
 
ps:I'm using struts 1.2.7
 
thanks
 
Tim

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



Re: Cannot install struts 1.2.9 properly

2006-05-16 Thread Paul Benedict
You can be assured 1.2.9 works, but your issue is not with Struts.
I've at times had libraries go mysteriously crazy on me and will not
load. When this happens, I delete the jar files and install them fresh
again from the distribution. At least twice, my server jars (I use Tomcat)
had to be replaced -- for those too can go bad. I recommend you do this,
because it is not with Struts, but with your computer.

--- [EMAIL PROTECTED] wrote:

> I am trying to switch struts 1.1 to struts 1.2.9.  However, after I 
> unpacked the struts-blank.war and tried to run the sample, I got the 
> following warning messages that I never got from struts 1.1:
> 
> [16/May/2006:08:54:48] INFO ( 3224): CORE1116: Sun ONE Application Server 
> 7.0.0_01
> [16/May/2006:08:54:52] INFO ( 3224): CORE5076: Using [Java HotSpot(TM) 
> Server VM, Version 1.4.1_01] from [Sun Microsystems Inc.]
> [16/May/2006:08:55:06] INFO ( 3224): JMS5023: JMS service successfully 
> started. Instance Name = domain1_Others, Home = 
> [C:/Sun/studio5_se/appserver7/imq/bin].
> [16/May/2006:08:55:06] INFO ( 3224): core.preprocessor_class_name
> [16/May/2006:08:55:08] INFO ( 3224): JTS5014: Recoverable JTS instance, 
> serverId = [100]
> [16/May/2006:08:55:09] INFO ( 3224): RAR5060: Install JDBC Datasources ...
> [16/May/2006:08:55:09] INFO ( 3224): RAR5059: Binding [JDBC DataSource 
> Name: jdbc/WebAccessDB, Pool Name: WebAccessDB]
> [16/May/2006:08:55:09] INFO ( 3224): JMS5015: Install JMS resources ...
> [16/May/2006:08:55:11] INFO ( 3224): WEB0100: Loading web module [Charts] 
> in virtual server [Others] at [/]
> [16/May/2006:08:55:15] WARNING ( 3224): Current Security Manager restricts 
> use of workarounds for reflection bugs  in pre-1.4 JVMs.
> [16/May/2006:08:55:18] INFO ( 3224): Tiles definition factory loaded for 
> module ''.
> [16/May/2006:08:55:18] INFO ( 3224): Loading validation rules file from 
> '/WEB-INF/validator-rules.xml'
> [16/May/2006:08:55:18] INFO ( 3224): Loading validation rules file from 
> '/WEB-INF/validation.xml'
> [16/May/2006:08:55:19] INFO ( 3224): CORE3282: stdout: Error parsing class 
> (classInfo.getName() = null)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr: 
> com.sun.tools.profiler.classfile.ClassFileParser$ClassFileReadRuntimeException:
>  
> Illegal start of class file (magic number = 218767392)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
>
com.sun.tools.profiler.classfile.ClassFileParser.classFileReadException(ClassFileParser.java:385)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> com.sun.tools.profiler.classfile.ClassFileParser.readPreamble(ClassFileParser.java:56)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> com.sun.tools.profiler.classfile.ClassFileParser.parseClassFile(ClassFileParser.java:40)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> com.sun.tools.profiler.classfile.ClassInfo.(ClassInfo.java:75)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> com.sun.tools.profiler.server.StaticClassInfo.(StaticClassInfo.java:28)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> com.sun.tools.profiler.server.J2EEPreprocessor.preprocess(J2EEPreprocessor.java:130)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> com.sun.appserv.server.util.PreprocessorUtil.processClass(PreprocessorUtil.java:59)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1862)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
>
org.apache.catalina.loader.WebappClassLoader$PrivilegedFindResource.run(WebappClassLoader.java:170)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> java.security.AccessController.doPrivileged(Native Method)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:1034)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1240)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.commons.validator.ValidatorAction.readJavascriptFile(ValidatorAction.java:423)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.commons.validator.ValidatorAction.loadJavascriptFunction(ValidatorAction.java:404)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.commons.validator.ValidatorAction.init(ValidatorAction.java:370)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> org.apache.commons.validator.ValidatorResources.addValidatorAction(ValidatorResources.java:242)
> [16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [16/M

Re: - Design Issue with Struts Validation

2006-05-16 Thread Angelo zerr

Hi Scott Mulligan,

I use validator just with server side, and this solution works.
I have never use it with javascript, but I think validator with javascript
works like server side. I configure my validation XML where name
of my form is the name of my path action and it works.

Regards Angelo


2006/5/16, Mulligan, Scott H <[EMAIL PROTECTED]>:


Angelo,

I like your solution using the DispatchAction and setting
validate="false". I am currently using multiple action mappings.
However, will the client-side javascript validation be generated using
that scheme? Does the  tag look at the "validate"
attribute in the config?


Scott Mulligan



-Original Message-
From: Angelo zerr [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 16, 2006 1:47 PM
To: Struts Users Mailing List
Subject: Re: - Design Issue with Struts Validation

Hi,

Me, I use DispatchAction, and I prefer call validate in my action,
instead of struts launch automaticaly validate (validate="true" in
action). So in my struts-config, I have just one mapping for an action
(I set validate="false"). After in my dispatchAction I design my
DispatchAction with several dispatch :

* display dispatch which load data which must be all time loaded (when
you arrive for the first time in the page and  after an error). Usually
this date are list used in html:select. My dispatch return ActionForward
to my JSP. All my dispatch in this action (load, create, update,...)
call this dispatch.

* load dispatch which load data (but not list for the combo). This
dispatch is called just at first time. For example if you have UPDATE
form, you want load the record to fill the form.

* create/update... dispatch which validate form, and if there is error,
return to display dispatch, otherwise save data in my Database, and
after call load dispatch to reload record comming from database.

I created an OpenSource project which design Actions Struts with
display/load/ dispatch. It's an application whith
Struts/Hibernate/Spring and AJAX called GestCV. If you want you can go
at http://gestcv.sourceforge.net/index.html  to download it.

If you can read Frensh, I explained this design to
http://gestcv.sourceforge.net/fr/architecture/struts.html#Action Struts.
I'm sorry, it's in frensh, but I will translate it in english soon.

Regards
Angelo



2006/5/16, Frank W. Zammetti <[EMAIL PROTECTED]>:
>
> Hi,
>
> Create two different mappings, one for the initial view (which has
> validate set to false), one for the submission (with validate set to
> true).
>
> Frank
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Java Web Parts -
> http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
> On Tue, May 16, 2006 1:07 pm, J Gotsch wrote:
> > When I go to a page for the 1st time, the validation takes affect.
> > Obviously I don't want that, I only want to validate upon
> submitting.  How
> > do I get around this?
> >
> >   My form extends ValidatorActionForm
> >
> >   My Action Mapping in Struts-Config:
> >
> >>type="
> com.its.action.request.callingcard.SubmitCallingCardDeactivateAction"
> >name="callingCardDeactivateForm"
> >scope="request"
> >validate="true"
> >input="callingCardDeactivate">
> >
> > > path="requestDeactivateCallingCardDraft" />
> >   
> >
> >
> > -
> > How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone
> > call rates.
>
>
> -
> 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: - Design Issue with Struts Validation

2006-05-16 Thread Michael Jouravlev

On 5/16/06, Dave Newton <[EMAIL PROTECTED]> wrote:


Remember the days when newsgroups had a daily or weekly FAQ posting?
Whaddya think?



We have wiki now. (I believe that wiki needs a bit of reorganization)

* Any more or less important/frequent issues should be reflected in
wiki. I believe that if a person cared about replying with an
informative and a long answer, he can make another effort and put the
answer into wiki.
* Users should  be referred to wiki
* Wiki solutions should be voted as best/good/ok/bad practice (by
whom? I don't know.)
* Best/good practices from wiki should make their way into official docs.
* Users should be refferred to the docs if issue is explained in the docs.

Struts users stumble upon the same issues and ask the same questions.
This does not seem right to me.

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



RE: - Design Issue with Struts Validation

2006-05-16 Thread Mulligan, Scott H
Angelo,

I like your solution using the DispatchAction and setting
validate="false". I am currently using multiple action mappings.
However, will the client-side javascript validation be generated using
that scheme? Does the  tag look at the "validate"
attribute in the config?  


Scott Mulligan



-Original Message-
From: Angelo zerr [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 16, 2006 1:47 PM
To: Struts Users Mailing List
Subject: Re: - Design Issue with Struts Validation

Hi,

Me, I use DispatchAction, and I prefer call validate in my action,
instead of struts launch automaticaly validate (validate="true" in
action). So in my struts-config, I have just one mapping for an action
(I set validate="false"). After in my dispatchAction I design my
DispatchAction with several dispatch :

* display dispatch which load data which must be all time loaded (when
you arrive for the first time in the page and  after an error). Usually
this date are list used in html:select. My dispatch return ActionForward
to my JSP. All my dispatch in this action (load, create, update,...)
call this dispatch.

* load dispatch which load data (but not list for the combo). This
dispatch is called just at first time. For example if you have UPDATE
form, you want load the record to fill the form.

* create/update... dispatch which validate form, and if there is error,
return to display dispatch, otherwise save data in my Database, and
after call load dispatch to reload record comming from database.

I created an OpenSource project which design Actions Struts with
display/load/ dispatch. It's an application whith
Struts/Hibernate/Spring and AJAX called GestCV. If you want you can go
at http://gestcv.sourceforge.net/index.html  to download it.

If you can read Frensh, I explained this design to
http://gestcv.sourceforge.net/fr/architecture/struts.html#Action Struts.
I'm sorry, it's in frensh, but I will translate it in english soon.

Regards
Angelo



2006/5/16, Frank W. Zammetti <[EMAIL PROTECTED]>:
>
> Hi,
>
> Create two different mappings, one for the initial view (which has 
> validate set to false), one for the submission (with validate set to 
> true).
>
> Frank
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM: fzammetti
> Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Java Web Parts -
> http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
> On Tue, May 16, 2006 1:07 pm, J Gotsch wrote:
> > When I go to a page for the 1st time, the validation takes affect.
> > Obviously I don't want that, I only want to validate upon
> submitting.  How
> > do I get around this?
> >
> >   My form extends ValidatorActionForm
> >
> >   My Action Mapping in Struts-Config:
> >
> >>type="
> com.its.action.request.callingcard.SubmitCallingCardDeactivateAction"
> >name="callingCardDeactivateForm"
> >scope="request"
> >validate="true"
> >input="callingCardDeactivate">
> >
> > > path="requestDeactivateCallingCardDraft" />
> >   
> >
> >
> > -
> > How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone 
> > call rates.
>
>
> -
> 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: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Dave Newton
Wendy Bossons wrote:
> If you just want to embed a flash movie, the following is an example:

The original poster was having a (probable) relative path issue; I don't
think it was a don't-know-how-to-embed-flash problem.

Dave



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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Wendy Bossons

If you just want to embed a flash movie, the following is an example:

OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-44455354"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0";
WIDTH="550" HEIGHT="400" id="myMovieName">



http://www.macromedia.com/go/getflashplayer";>





Dave Newton wrote:

Martin Gainty wrote:
  

My cursory understanding of Flash is that it runs as a Gateway thru Jrun 
Container I invite you to look at 
http://www.adobe.com/support/documentation/en/flash/
  



What? Flash runs locally.

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: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Dave Newton
Martin Gainty wrote:
> My cursory understanding of Flash is that it runs as a Gateway thru Jrun 
> Container I invite you to look at 
> http://www.adobe.com/support/documentation/en/flash/
>   

What? Flash runs locally.

Dave



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



Re: - Design Issue with Struts Validation

2006-05-16 Thread Dave Newton
Chaudhary, Harsh wrote:
> I would go with the declarative approach. It lends to more flexibility.
>   

Not really.

If I'm doing something the exact same way every time I'd much rather
handle it by implementing a method (that you'd have to implement anyway)
and not bother with a config file change rather than introducing yet
another point of failure that doesn't buy you anything. In other words,
rather than introduce another class and another action that simply
forwards to the action that does the form processing why not just write
a method that sets up the page?

Dave



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



Re: [shale] All Hail Shale

2006-05-16 Thread Wendy Bossons
Hi, I'm new to this list. I'm looking at new frameworks for my app -- 
does anyone know when Shale will officially be released?


Also, what is the benefit of it working with JSF? Wouldn't you want to 
do one or the other?


..\Wendy


Jonathan Revusky wrote:

Niall Pemberton wrote:

Brett McLaughlin is writing a series of five articles (titled "All
Hail Shale") on Shale and the second has just been published:

Part 1: Shale isn't Struts
http://www-128.ibm.com/developerworks/library/j-shale0228/?ca=dgr-lnxw07Shale 




Good for the laugh anyway. I was just starting to read the above one 
and chuckled when I got to the the last sentence of the first 
paragraph under "Evaluating Shale":


You'll put as much work into writing a new Shale application, 
or converting a Struts application to Shale, as if Shale had nothing 
at all to do with Struts.




"as if"... Indeed :-)

Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/




Part 2: Anatomy of a Shale application
http://www-128.ibm.com/developerworks/java/library/j-shale05126/

See the wiki for a full list of Shale articles:
http://wiki.apache.org/struts/Shale/Resources

Niall



-
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: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Martin Gainty
Hello Christian
You're probably better off asking on livedocs.macromedia.com
My cursory understanding of Flash is that it runs as a Gateway thru Jrun 
Container I invite you to look at
http://www.adobe.com/support/documentation/en/flash/
Let me know how this works for you,
Viel Gluck,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Christian Bollmeyer" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, May 16, 2006 2:52 PM
Subject: Re: I've got a big problem:Can NOT insert flash into jsp---using 
struts 1.1 and Tiles


> This is kind of trivial and not related to Tiles at all.
> Fact is, your Flash thing or "even" the image, if you like,
> are not found because their URLs are incorrect. Solution
> is to specify context-relative URLs like this (JSP 2.0):
> 
> 
> 
> and the like. For older JSP versions, use the  or
>  tags.
> 
> HTH,
> -- Chris
> 
> M.Liang Liu schrieb:
> 
>> My GOD!
>> The same thing  happened when I try to insert an image!!
>> 
>> Help,please.
>> On 5/16/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi,guys!
>>>I am meeting with a problem when I tried to insert a flash to my
>>> pages.I use Tiles plug-in and it works well.
>>>   I put a flash in my header.jsp and the flash can display as expected as
>>> I typed the very url of this page.But when I put this page in my
>>> layout.jsp tiles files,nothing displayed.
>>>   I defined the xml file as following:
>>>
>>> > >> > Tiles Configuration 1.1//EN" "
>>> > http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > 
>>> >
>>> And I opened welcome.do mapping to ".index" and the pages displayed
>>> successfully ,except the flash.
>>>
>>> Who can help me?And it is strange,yup?
>>>
>>> Beg your pardon for my poor English.
>>>
>>> Thanks for reading.
>>>
>> 
>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: using modules with JSPs behind WEB-INF

2006-05-16 Thread Joe Germuska

At 1:58 PM -0500 5/16/06, David Durham wrote:

Berk, Jason R. wrote:

I'm using struts 1.2.9 which the struts site claims is the "prime time"
ready version.

I would like to use modules and put my JSPs behind WEB-INF to protect
them.  When I try this with struts, it rewrites my URL with the module
name and causes 404 errors on validation failures.

I read all over the net that I need to change my forwardPattern &
pagePattern in my controller to "/WEB-INF/$M$P", but again, the struts
site docs explicitly state that anything other then $$, $M and $P are
"silently swallowed".

Been trying to get this to work for almost two weeks now.  Any help
appreciated.


The thing is that The Browser can not request /WEB-INF/..., but a 
RequestDispatcher will happily "forward" to /WEB-INF/...


Does this answer your question?


Also, note that you do not need to use modules to hide your pages 
behind WEB-INF, as David noted.  Don't use them if that's all you 
want to do.  You should only use them if you really need them.  (I 
just found a handful of bugs in Struts 1.3 related to modules; 
modules are infrequently used by the Struts community, which I think 
will lead to your team being surprised by certain things as well as 
possibly having a hard time finding good support here with them.)


Joe
--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com


"You really can't burn anything out by trying something new, and
even if you can burn it out, it can be fixed.  Try something new."
-- Robert Moog

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



Re: - Design Issue with Struts Validation

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

>> If we are speaking of the real "FAQ" i can contribute ;-) Have some cool
>> links of you guys here...
> 
> Sounds like a Wiki to me :)  There is a page for Struts FAQs (probably
> more than one) already on the Wiki.  Go to it, I'm certain everyone will
> appreciate any input you can provide ;)

Hm- sounds like you are right :-)
I will try to do that

Chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEaidKkv8rKBUE/T4RAr9tAJ0WBr8/GjARFP1rqoH1GJaefd9dLQCglU7c
L9m8cdvLPX0S/MQlRyVynHs=
=IbQh
-END PGP SIGNATURE-

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



Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
On Tue, May 16, 2006 3:19 pm, C. Grobmeier wrote:
> Good idea. But i think Dave is speaking of a FAQ which is not just
> summing up what happened this week on the struts list, but he is
> speaking of a "real" FAQ, with the most important links (to the wiki) etc.
>
> If we are speaking of the real "FAQ" i can contribute ;-) Have some cool
> links of you guys here...

Sounds like a Wiki to me :)  There is a page for Struts FAQs (probably
more than one) already on the Wiki.  Go to it, I'm certain everyone will
appreciate any input you can provide ;)

> Regards,
> Chris

Frank


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



Re: - Design Issue with Struts Validation

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

>> 
>> Remember the days when newsgroups had a daily or weekly FAQ posting?
>>
>> Whaddya think?
>> 
> 
> Not a bad idea, but someone would have to put it together each week.  You
> voluntering? :)  It would work if you simply put it together and posted it
> here every Friday or whenever, no need for any infrastructure to do
> anything that way, and I doubt too many people would complain (one more
> message a week isn't going to kill anyone, whether they read it or not).

Good idea. But i think Dave is speaking of a FAQ which is not just
summing up what happened this week on the struts list, but he is
speaking of a "real" FAQ, with the most important links (to the wiki) etc.

If we are speaking of the real "FAQ" i can contribute ;-) Have some cool
links of you guys here...

Regards,
Chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEaiWpkv8rKBUE/T4RAobRAJ9U4XZ1JKXFlq9sHsQcIzuBjvtuVwCeKyLq
7pWusghUK4jWE59dBUPUb6Y=
=3vlO
-END PGP SIGNATURE-

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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Christian Bollmeyer

This is kind of trivial and not related to Tiles at all.
Fact is, your Flash thing or "even" the image, if you like,
are not found because their URLs are incorrect. Solution
is to specify context-relative URLs like this (JSP 2.0):



and the like. For older JSP versions, use the  or
 tags.

HTH,
-- Chris

M.Liang Liu schrieb:


My GOD!
The same thing  happened when I try to insert an image!!

Help,please.
On 5/16/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

>  Tiles Configuration 1.1//EN" "
> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
And I opened welcome.do mapping to ".index" and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.








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



Re: [shale] All Hail Shale

2006-05-16 Thread Jonathan Revusky

Niall Pemberton wrote:

Brett McLaughlin is writing a series of five articles (titled "All
Hail Shale") on Shale and the second has just been published:

Part 1: Shale isn't Struts
http://www-128.ibm.com/developerworks/library/j-shale0228/?ca=dgr-lnxw07Shale 



Good for the laugh anyway. I was just starting to read the above one and 
chuckled when I got to the the last sentence of the first paragraph 
under "Evaluating Shale":


You'll put as much work into writing a new Shale application, or 
converting a Struts application to Shale, as if Shale had nothing at all 
to do with Struts.




"as if"... Indeed :-)

Jonathan Revusky
--
lead developer, FreeMarker project, http://freemarker.org/




Part 2: Anatomy of a Shale application
http://www-128.ibm.com/developerworks/java/library/j-shale05126/

See the wiki for a full list of Shale articles:
http://wiki.apache.org/struts/Shale/Resources

Niall



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



Re: using modules with JSPs behind WEB-INF

2006-05-16 Thread David Durham

Berk, Jason R. wrote:

I'm using struts 1.2.9 which the struts site claims is the "prime time"
ready version.

I would like to use modules and put my JSPs behind WEB-INF to protect
them.  When I try this with struts, it rewrites my URL with the module
name and causes 404 errors on validation failures.

I read all over the net that I need to change my forwardPattern &
pagePattern in my controller to "/WEB-INF/$M$P", but again, the struts
site docs explicitly state that anything other then $$, $M and $P are
"silently swallowed".

Been trying to get this to work for almost two weeks now.  Any help
appreciated.


The thing is that The Browser can not request /WEB-INF/..., but a 
RequestDispatcher will happily "forward" to /WEB-INF/...


Does this answer your question?

-Dave

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



RE: - Design Issue with Struts Validation

2006-05-16 Thread Chaudhary, Harsh
I would go with the declarative approach. It lends to more flexibility.
Harsh.

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 16, 2006 1:27 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: - Design Issue with Struts Validation


On Tue, May 16, 2006 2:02 pm, Dave Newton wrote:
> Frank W. Zammetti wrote:
>> Create two different mappings, one for the initial view (which has
>> validate set to false), one for the submission (with validate set to
>> true).
>>
>
> Create a base action that has separate handlers for GET (initial page
> hit) and POST (form submission).

That works too, as does the other suggestion posted... just a difference
between a declarative approach and a programmatic approach.

> 
> Remember the days when newsgroups had a daily or weekly FAQ posting?
>
> Whaddya think?
> 

Not a bad idea, but someone would have to put it together each week.
You
voluntering? :)  It would work if you simply put it together and posted
it
here every Friday or whenever, no need for any infrastructure to do
anything that way, and I doubt too many people would complain (one more
message a week isn't going to kill anyone, whether they read it or not).

> Dave

Frank

-
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: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
On Tue, May 16, 2006 2:02 pm, Dave Newton wrote:
> Frank W. Zammetti wrote:
>> Create two different mappings, one for the initial view (which has
>> validate set to false), one for the submission (with validate set to
>> true).
>>
>
> Create a base action that has separate handlers for GET (initial page
> hit) and POST (form submission).

That works too, as does the other suggestion posted... just a difference
between a declarative approach and a programmatic approach.

> 
> Remember the days when newsgroups had a daily or weekly FAQ posting?
>
> Whaddya think?
> 

Not a bad idea, but someone would have to put it together each week.  You
voluntering? :)  It would work if you simply put it together and posted it
here every Friday or whenever, no need for any infrastructure to do
anything that way, and I doubt too many people would complain (one more
message a week isn't going to kill anyone, whether they read it or not).

> Dave

Frank

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



Re: - Design Issue with Struts Validation

2006-05-16 Thread Dave Newton
Frank W. Zammetti wrote:
> Create two different mappings, one for the initial view (which has
> validate set to false), one for the submission (with validate set to
> true).
>   

Create a base action that has separate handlers for GET (initial page
hit) and POST (form submission).


Remember the days when newsgroups had a daily or weekly FAQ posting?

Whaddya think?


Dave



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



Re: - Design Issue with Struts Validation

2006-05-16 Thread Angelo zerr

Hi,

Me, I use DispatchAction, and I prefer call validate in my action, instead
of struts launch automaticaly validate (validate="true" in action). So in my
struts-config, I have just one mapping for an action (I set
validate="false"). After in my dispatchAction I design my DispatchAction
with several dispatch :

* display dispatch which load data which must be all time loaded (when you
arrive for the first time in the page and  after an error). Usually this
date are list used in html:select. My dispatch return ActionForward to my
JSP. All my dispatch in this action (load, create, update,...) call this
dispatch.

* load dispatch which load data (but not list for the combo). This dispatch
is called just at first time. For example if you have UPDATE form, you want
load the record to fill the form.

* create/update... dispatch which validate form, and if there is error,
return to display dispatch, otherwise save data in my Database, and after
call load dispatch to reload record comming from database.

I created an OpenSource project which design Actions Struts with
display/load/ dispatch. It's an application whith Struts/Hibernate/Spring
and AJAX called GestCV. If you want you can go at
http://gestcv.sourceforge.net/index.html  to download it.

If you can read Frensh, I explained this design to
http://gestcv.sourceforge.net/fr/architecture/struts.html#Action Struts. I'm
sorry, it's in frensh, but I will translate it in english soon.

Regards
Angelo



2006/5/16, Frank W. Zammetti <[EMAIL PROTECTED]>:


Hi,

Create two different mappings, one for the initial view (which has
validate set to false), one for the submission (with validate set to
true).

Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Tue, May 16, 2006 1:07 pm, J Gotsch wrote:
> When I go to a page for the 1st time, the validation takes affect.
> Obviously I don't want that, I only want to validate upon
submitting.  How
> do I get around this?
>
>   My form extends ValidatorActionForm
>
>   My Action Mapping in Struts-Config:
>
>   type="
com.its.action.request.callingcard.SubmitCallingCardDeactivateAction"
>name="callingCardDeactivateForm"
>scope="request"
>validate="true"
>input="callingCardDeactivate">
>
> path="requestDeactivateCallingCardDraft" />
>   
>
>
> -
> How low will we go? Check out Yahoo! Messenger's low  PC-to-Phone call
> rates.


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




Re: Forwarding or redirecting from a BaseAction

2006-05-16 Thread David Durham

Philihp Busby wrote:

One approach would be to extend the Struts ActionServlet controller.

I suggested this technique for auditing last week
.
You'd probably want to override processRoles instead, which happens
right after Struts resolves the URL path to an Action, but before the
ActionForm is created, populated, and validated. No sense validating a
user's input if you know he/she won't be granted access.


I've overridden the RequestProcessor.processPreProcess() to do this sort 
of thing.  RequestProcessor.processPreProcess() occurs before 
processMapping, so there isn't an ActionMapping yet.  You can still do 
URL based security mappings, or if you really want to get the Action 
class, you could do so from processPreprocess via processPath and 
processMapping, albeit in a redundant and sloppy fashion.


I think a filters based approach with something like Acegi is a good 
solution to this problem.



-Dave

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



Re: Set selected item to

2006-05-16 Thread Yariel Ramos Moreno
Your question was a great help... I just set the scope to session for the 
ActionForm and everything goes well.

Thanks very much...
  - Original Message - 
  From: Philihp Busby 
  To: Struts Users Mailing List 
  Sent: Tuesday, May 16, 2006 7:25 AM
  Subject: Re: Set selected item to 


  Is the ActionForm bean being saved to the session scope or the request scope?

  On 5/15/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote:
  > Hi everybody:
  >
  > How can I set the selected value to ???
  >
  > My problem is that I have a  field in my site (using 
struts-tiles) that remains functional in every page of it. When I submit the 
form that contains it (in it's tile), the selected value is loaded from the 
ActionForm very well. But when I go to another place without submit the combo's 
form, the selected value is changed to the first of its elements.
  >
  > How do I set its selected value getting it from session???
  >
  > Thanks and regards!!!
  > __
  >
  > XIII Convención Científica de Ingeniería y Arquitectura
  > 28/noviembre al 1/diciembre de 2006
  > Cujae, Ciudad de la Habana, Cuba
  > http://www.cujae.edu.cu/eventos/convencion
  >
  >

__

XIII Convenci�n Cient�fica de Ingenier�a y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion


Re: two forms on the same page?

2006-05-16 Thread David Durham

Franklin Phan wrote:

Is it possible to do this in Struts 1.1?  Two form beans on the same page?  How 
would the action mapping work?


Unless you're using wildcard mappings, you'll likely need 1 
ActionMapping per HTML form.



-Dave

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



Re: - Design Issue with Struts Validation

2006-05-16 Thread Frank W. Zammetti
Hi,

Create two different mappings, one for the initial view (which has
validate set to false), one for the submission (with validate set to
true).

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Tue, May 16, 2006 1:07 pm, J Gotsch wrote:
> When I go to a page for the 1st time, the validation takes affect.
> Obviously I don't want that, I only want to validate upon submitting.  How
> do I get around this?
>
>   My form extends ValidatorActionForm
>
>   My Action Mapping in Struts-Config:
>
>   type="com.its.action.request.callingcard.SubmitCallingCardDeactivateAction"
>name="callingCardDeactivateForm"
>scope="request"
>validate="true"
>input="callingCardDeactivate">
>
> path="requestDeactivateCallingCardDraft" />
>   
>
>
> -
> How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call
> rates.


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



- Design Issue with Struts Validation

2006-05-16 Thread J Gotsch
When I go to a page for the 1st time, the validation takes affect. Obviously I 
don't want that, I only want to validate upon submitting.  How do I get around 
this? 
   
  My form extends ValidatorActionForm
   
  My Action Mapping in Struts-Config:
   
  
   

   


-
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Re: Interesting question (to me)... Perl app conversion to SUNWappserver/Java/Struts

2006-05-16 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Cheers,

Alan Treece wrote:
> As the Subject: line states I'm in the middle of converting a larger
> Perl application to a Struts web-app running on the SUNWappserver. The
> question was posed as to how to deal with all of the folks who may have
> "bookmarked" a perl URL to the old app. I don't want to just cut those
> folks off when the switch is made.
> 
> Are there any tricks folks have used to deal with this scenario? The
> goal is to turn off the perl app and start the Struts web-app with the
> same server name and port.

i had to turn off an php-application. If you are using the apache httpd
before the appserver i recommend rewriting within the vhost, for example:

RewriteCond %{QUERY_STRING}
^(feat=2&loc=reviews|loc=reviews&feat=2)&id=([0-9]+)$
RewriteRule ^/index.php$
http://www.possessed.de/details.do?content=0&id=%2 [L,R=301]

This works for Apache 1.3.x. Maybe there is similar for other
webservers, but i don't.

Hope that helps.
Regards,
Chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEagJukv8rKBUE/T4RAlo8AJ4+AJwnmeoHsROMD7oXpg5bAHtdXgCeNSoB
uNXxm9OTmDZJabrzDYq76rI=
=RXhc
-END PGP SIGNATURE-

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



Re: Class diagrams in an Struts application

2006-05-16 Thread David Durham

Vaneet Sharma wrote:

Hii Frnds

I ahve developed a application using Struts and EJB, 
Now i need to create class daigrams of my projrect.


Can somebody clear some doubts 

 In  class diagrams do we incl;ude action classes, form beans classes 
,helper classes, (EJB classes) ?


Whenever you create documentation, diagrams or otherwise, it's up to you 
or your organization or team or whathaveyou to determine the level of 
detail required.



-Dave

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



Shale startup - without Spring.

2006-05-16 Thread Jason Vincent

Hi there,

Perhaps my error are unrealted, but...
I was trying to get get rid of Spring from my classpath - as it is so
stinkn huge when it is unzipped.  From what I read in the Shale doc'o,
spring is only needed if I was instantiating POJO objects outside the
JSF config file.  So... I tried to eliminate the Spring jars from my
classpath.

Before I attempted to remove Spring, I would occasionally get some
server 500 errors like this...
java.lang.IllegalStateException: No WebApplicationContext found: no
ContextLoaderListener registered?
org.springframework.web.jsf.FacesContextUtils.getRequiredWebApplicationContext(FacesContextUtils.java:79)


So ... After the removal, at Tomcat startup, I'm now getting:

2006-05-16 08:51:16,703 [main] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mac] -
org.apache.shale.component.Subview
javax.faces.FacesException: Can't instantiate class:
'org.apache.shale.component.Subview'.
at 
com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:728)
...
2006-05-16 08:51:16,718 [main] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mac] -
org.apache.shale.component.Token
javax.faces.FacesException: Can't instantiate class:
'org.apache.shale.component.Token'.
at 
com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:728)
...
2006-05-16 08:51:16,718 [main] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mac] -
org.apache.shale.component.ValidatorScript
javax.faces.FacesException: Can't instantiate class:
'org.apache.shale.component.ValidatorScript'.
at 
com.sun.faces.application.ApplicationImpl.newThing(ApplicationImpl.java:728)
...
2006-05-16 08:51:16,796 [main] ERROR
com.sun.faces.config.ConfigureListener - One or more confgured
application objects could not be created.  Check your web application
logs for details.
2006-05-16 08:51:16,796 [main] ERROR
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mac] -
Exception sending context initialized event to listener instance of
class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: One or more confgured application objects
could not be created.  Check your web application logs for details.
at 
com.sun.faces.config.ConfigureListener.verifyObjects(ConfigureListener.java:1152)

Am I missing something from my web.xml file?
Thanks,
Jason

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



Re: Declarative Excpetion Handling

2006-05-16 Thread David Durham

Asad Habib wrote:
Has anyone successfully used declarative exception handling with Struts? 
For some reason, my application always forwards to the input attribute 
of the action element instead of the path element of the exception 
element as defined in my struts configuration file. I have confirmed 
that the error is being generated by the validateRequired method of the 
Struts Validator by using  to flush the errors on the page 
that I am forwarded to (login.jsp in this case). However, I am never 
forwarded to 'loginError.jsp'. Below is my 'struts-config.xml'. Any help 
would be appreciated. Thanks.


I think what's happening here is that the Exception is being thrown 
before the action is executed, i.e., during the validateRequired method 
of DynaValidatorForm as you say.


Think the exception element that you've indicated applies only to 
exceptions thrown from Action.execute.  The validateRequired method 
occurs earlier in the request processing than does Action.execute.  If 
your curious, you can look at ActionServlet and RequestProcessor source 
for more info.



-Dave



- Asad



   
  type="org.apache.struts.validator.DynaValidatorForm">

  
  
  
   

   
  input="/login.jsp" validate="true">
  type="org.apache.struts.util.ModuleException" />

  
   

   

   
 value="/WEB-INF/validator-rules.xml, /WEB-INF/validator.xml" />

   


-
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: PDF forms

2006-05-16 Thread temp temp
User should fill the form and submit to the server   also  should have an 
option to print I mean a print button in pdf  which  will print the pdf.
  Thanks & Regards
  
  
  

-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: PDF forms

2006-05-16 Thread Frank W. Zammetti
iText is probably what you'll want to play with:

http://www.lowagie.com/iText/

I found this reference specifically for creating forms:

http://itextdocs.lowagie.com/tutorial/forms/index.html

I've done quite a bit of work with iText, but never interactive forms, so
I can't speak for how to do it or how well it works.  iText in generaly is
very good though.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Tue, May 16, 2006 11:18 am, temp temp wrote:
> My  application should have PDF forms. The servlet should create a PDF
> form which  user should be able to edit, take print out and  server
> should receive inputs  entered by the user.
>   What should  I look for to achieve this?
>   Thanks & Regards
>
>
>
> -
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great
> rates starting at 1¢/min.


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



Re: PDF forms

2006-05-16 Thread Dave Newton
temp temp wrote:
> My  application should have PDF forms. The servlet should create a PDF 
> form which  user should be able to edit, take print out and  server should 
> receive inputs  entered by the user.
>   What should  I look for to achieve this?
>   

You want to print out a form, have the user fill it out, and send the
results back to the server?

Dave



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



PDF forms

2006-05-16 Thread temp temp
My  application should have PDF forms. The servlet should create a PDF form 
which  user should be able to edit, take print out and  server should receive 
inputs  entered by the user.
  What should  I look for to achieve this?
  Thanks & Regards
  


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Wrapper cannot find servlet class

2006-05-16 Thread Dave Newton
M Faizal wrote:
> I have included servlet-api.jar in WEB-INF\lib ; now it works...
>   

That's weird...

Is that legal? Something in the back of my head says your setup is
broken somehow...

Dave



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



Cannot find bean under name __APPLICATION_CONTAINER_KEY.area

2006-05-16 Thread Jorge Martín Cuervo
Hi all,









I use html:select with html:options to populate the options from the
application scope.
In the application scope i have a attribute called "industryCodeMap"
with a Map that contains the data.
I used a ServletContextListener to load the data on the webapp startup
and goes fine.

Now i want to change the startup process with struts plugin, and also
works good with the service.

[...]
public void init(ActionServlet servlet, ModuleConfig config) throws
ServletException {

serviceClassName = findServiceClassName(config);

ItemDAO itemDAO = DAOFactory.getDAOFactory().getItemDAO();

ApplicationContainer container = new ApplicationContainer();

container.setSector(itemDAO.getItems(IConstants.SECTOR_BLOCK_NAME));
container.setArea(itemDAO.getItems(IConstants.AREA_BLOCK_NAME));

container.setCoutries(itemDAO.getItems(IConstants.COUNTRIES_BLOCK_NAME));

container.setServiceFactory(this);

servlet.getServletContext().setAttribute(
IConstants.APPLICATION_CONTAINER_KEY, container);
}
[...]
public interface IConstants {

String APPLICATION_CONTAINER_KEY = "__APPLICATION_CONTAINER_KEY";

[...]


I prefer to user a container bean to keep my data, and now i try to
change the html:options to:


and crash with:


javax.servlet.jsp.JspException: Cannot find bean under name
__APPLICATION_CONTAINER_KEY.area


the questionm is, how can i access to the container and then the
property area?

-- 
;-)

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384



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



Cannot install struts 1.2.9 properly

2006-05-16 Thread eric . szeto
I am trying to switch struts 1.1 to struts 1.2.9.  However, after I 
unpacked the struts-blank.war and tried to run the sample, I got the 
following warning messages that I never got from struts 1.1:

[16/May/2006:08:54:48] INFO ( 3224): CORE1116: Sun ONE Application Server 
7.0.0_01
[16/May/2006:08:54:52] INFO ( 3224): CORE5076: Using [Java HotSpot(TM) 
Server VM, Version 1.4.1_01] from [Sun Microsystems Inc.]
[16/May/2006:08:55:06] INFO ( 3224): JMS5023: JMS service successfully 
started. Instance Name = domain1_Others, Home = 
[C:/Sun/studio5_se/appserver7/imq/bin].
[16/May/2006:08:55:06] INFO ( 3224): core.preprocessor_class_name
[16/May/2006:08:55:08] INFO ( 3224): JTS5014: Recoverable JTS instance, 
serverId = [100]
[16/May/2006:08:55:09] INFO ( 3224): RAR5060: Install JDBC Datasources ...
[16/May/2006:08:55:09] INFO ( 3224): RAR5059: Binding [JDBC DataSource 
Name: jdbc/WebAccessDB, Pool Name: WebAccessDB]
[16/May/2006:08:55:09] INFO ( 3224): JMS5015: Install JMS resources ...
[16/May/2006:08:55:11] INFO ( 3224): WEB0100: Loading web module [Charts] 
in virtual server [Others] at [/]
[16/May/2006:08:55:15] WARNING ( 3224): Current Security Manager restricts 
use of workarounds for reflection bugs  in pre-1.4 JVMs.
[16/May/2006:08:55:18] INFO ( 3224): Tiles definition factory loaded for 
module ''.
[16/May/2006:08:55:18] INFO ( 3224): Loading validation rules file from 
'/WEB-INF/validator-rules.xml'
[16/May/2006:08:55:18] INFO ( 3224): Loading validation rules file from 
'/WEB-INF/validation.xml'
[16/May/2006:08:55:19] INFO ( 3224): CORE3282: stdout: Error parsing class 
(classInfo.getName() = null)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr: 
com.sun.tools.profiler.classfile.ClassFileParser$ClassFileReadRuntimeException: 
Illegal start of class file (magic number = 218767392)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.tools.profiler.classfile.ClassFileParser.classFileReadException(ClassFileParser.java:385)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.tools.profiler.classfile.ClassFileParser.readPreamble(ClassFileParser.java:56)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.tools.profiler.classfile.ClassFileParser.parseClassFile(ClassFileParser.java:40)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.tools.profiler.classfile.ClassInfo.(ClassInfo.java:75)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.tools.profiler.server.StaticClassInfo.(StaticClassInfo.java:28)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.tools.profiler.server.J2EEPreprocessor.preprocess(J2EEPreprocessor.java:130)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
com.sun.appserv.server.util.PreprocessorUtil.processClass(PreprocessorUtil.java:59)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1862)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.catalina.loader.WebappClassLoader$PrivilegedFindResource.run(WebappClassLoader.java:170)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
java.security.AccessController.doPrivileged(Native Method)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.catalina.loader.WebappClassLoader.findResource(WebappClassLoader.java:1034)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.catalina.loader.WebappClassLoader.getResourceAsStream(WebappClassLoader.java:1240)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.commons.validator.ValidatorAction.readJavascriptFile(ValidatorAction.java:423)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.commons.validator.ValidatorAction.loadJavascriptFunction(ValidatorAction.java:404)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.commons.validator.ValidatorAction.init(ValidatorAction.java:370)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.commons.validator.ValidatorResources.addValidatorAction(ValidatorResources.java:242)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
java.lang.reflect.Method.invoke(Method.java:324)
[16/May/2006:08:55:19] WARNING ( 3224): CORE3283: stderr:   at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
[16/May/2006:08:55:19] W

Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Bart Busschots

Hi,

This is probably a simple problem with relative paths, just do a 
view-source on the generated page to see what's going on. That or right 
click and 'view image' to see what URL the image is being retrieved 
from. I'd wager it won't be what you're expecting and that will be the 
cause of your problems.


HTH, Bart.

M.Liang Liu wrote:

My GOD!
The same thing  happened when I try to insert an image!!

Help,please.
On 5/16/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as 
expected as

I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

>  Tiles Configuration 1.1//EN" "
> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
And I opened welcome.do mapping to ".index" and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.








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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Emmanouil Batsis

M.Liang Liu wrote:


My GOD!
The same thing  happened when I try to insert an image!!



* Have you tried accessing the URL of the image directly from your 
browser? What is the response?

* Anything in the logs?

Manos

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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

My GOD!
The same thing  happened when I try to insert an image!!

Help,please.
On 5/16/06, M.Liang Liu <[EMAIL PROTECTED]> wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

>  Tiles Configuration 1.1//EN" "
> http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
And I opened welcome.do mapping to ".index" and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.





--
 http://blog.csdn.net/patriotlml
   Drink   Drank Drunk
http://my.donews.com/patriotlml/


[shale] All Hail Shale

2006-05-16 Thread Niall Pemberton

Brett McLaughlin is writing a series of five articles (titled "All
Hail Shale") on Shale and the second has just been published:

Part 1: Shale isn't Struts
http://www-128.ibm.com/developerworks/library/j-shale0228/?ca=dgr-lnxw07Shale

Part 2: Anatomy of a Shale application
http://www-128.ibm.com/developerworks/java/library/j-shale05126/

See the wiki for a full list of Shale articles:
http://wiki.apache.org/struts/Shale/Resources

Niall

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



I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

Hi,guys!
  I am meeting with a problem when I tried to insert a flash to my
pages.Iuse Tiles plug-in and it works well.
 I put a flash in my header.jsp and the flash can display as expected as I
typed the very url of this page.But when I put this page in my
layout.jsptiles files,nothing displayed.
 I defined the xml file as following:


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















And I opened welcome.do mapping to ".index" and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.


Re: Browser Back Button

2006-05-16 Thread temp temp
Can I use struts token  mechanisim without a formbean ?
Thanks & Regards
  
Manfred Wolff <[EMAIL PROTECTED]> wrote:  
Found at http://husted.com/struts/catalog.html


Use the Action Token methods to prevent duplicate submits

There are methods built into the Struts action to generate one-use
tokens. A token is placed in the session when a form is populated and
also into the HTML form as a hidden property. When the form is returned,
the token is validated. If validation fails, then the form has already
been submitted, and the user can be apprised.

* saveToken(request)
* /on the return trip,/
  o isTokenValid(request)
  o resetToken(request)

Perhaps someone (me?) must write a documentation? If I have a little
time, and no has do so, I will do.

Manfred


temp temp wrote:
> Can U suggets me an article which clearly explains using struts  tokens  
> mechanisim?
>
> Manfred Wolff  wrote:  
> Lixin.
>
> I think mostly it is no problem to go back in a struts implemented
> application. If it ist a problem (e.g. after a logout or if you saved
> data) you can take the struts token mechanism to prevend such backs.
>
> Manfred
>
> Lixin Chu wrote:
>   
>> A cleaner back button solution is almost a must-have for logout:
>> after logout, the back button should not bring back the previous page.
>>
>> looking at that Gmail does. any idea how it is implemented ?
>>
>> 
>
>
>   


-- 
===
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon  : +49 421 534522
Fax  : +49 421 4314578
Mobil: +49 173 2494181
---
http://www.manfred-wolff.de
http://www.struts-it.org
---


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




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: Forwarding or redirecting from a BaseAction

2006-05-16 Thread Philihp Busby

One approach would be to extend the Struts ActionServlet controller.

I suggested this technique for auditing last week
.
You'd probably want to override processRoles instead, which happens
right after Struts resolves the URL path to an Action, but before the
ActionForm is created, populated, and validated. No sense validating a
user's input if you know he/she won't be granted access.

On 5/16/06, Jose Moreira <[EMAIL PROTECTED]> wrote:

Hello, every action in my webapp extends a BaseAction and call
super.execute(...). I'm taking advantage of this pattern to implement a
security scheme where the Action classes class signature
(com.example.XYZAction) are mapped to security levels. Example:

user X as access to com.example.XYZAction but now com.example.ABCAction.

In the BaseAction i get the permission by looking up the class in the
database:

String currectAction = mapping.getType();


almost everything works fine except if the user has no access i cant
redirect to anywhere from the baseaction getting:

StandardWrapperValve[action]: Servlet.service() for servlet action threw
exception
java.lang.IllegalStateException: Cannot forward after response has been
committed
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)

event when there's no 'request.getSession' in its code 


i considered using a servlet filter mapped to the action servlet, but
there i cant get access to the mapping (?)

Any ideas besides changing the security implementation? (OMG nooo)




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




Forwarding or redirecting from a BaseAction

2006-05-16 Thread Jose Moreira
Hello, every action in my webapp extends a BaseAction and call
super.execute(...). I'm taking advantage of this pattern to implement a
security scheme where the Action classes class signature
(com.example.XYZAction) are mapped to security levels. Example:

user X as access to com.example.XYZAction but now com.example.ABCAction.

In the BaseAction i get the permission by looking up the class in the
database:

String currectAction = mapping.getType();


almost everything works fine except if the user has no access i cant
redirect to anywhere from the baseaction getting:

StandardWrapperValve[action]: Servlet.service() for servlet action threw
exception
java.lang.IllegalStateException: Cannot forward after response has been
committed
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)

event when there's no 'request.getSession' in its code 


i considered using a servlet filter mapped to the action servlet, but
there i cant get access to the mapping (?)

Any ideas besides changing the security implementation? (OMG nooo)




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



Re: Set selected item to

2006-05-16 Thread Philihp Busby

Is the ActionForm bean being saved to the session scope or the request scope?

On 5/15/06, Yariel Ramos Moreno <[EMAIL PROTECTED]> wrote:

Hi everybody:

How can I set the selected value to ???

My problem is that I have a  field in my site (using struts-tiles) 
that remains functional in every page of it. When I submit the form that contains it 
(in it's tile), the selected value is loaded from the ActionForm very well. But when 
I go to another place without submit the combo's form, the selected value is changed 
to the first of its elements.

How do I set its selected value getting it from session???

Thanks and regards!!!
__

XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion




Re: Set selected item to

2006-05-16 Thread Juergen Kopper

Hi,

Yariel Ramos Moreno schrieb:

Hi everybody:

How can I set the selected value to ???

  

If you use the  you can use the value attribute for this.

My problem is that I have a  field in my site (using struts-tiles) 
that remains functional in every page of it. When I submit the form that contains it 
(in it's tile), the selected value is loaded from the ActionForm very well. But when 
I go to another place without submit the combo's form, the selected value is changed 
to the first of its elements.
  
Your problem description is very confusing. It's always a good idea to 
send the code where you have the problem to get a solution for it.

How do I set its selected value getting it from session???
  
Use the name attribute of the select tag and set this to the name of the 
bean with the value in the session.

Thanks and regards!!!
__

XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion

  

Hope it helps you.

regards
Juergen


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



RE: Wrapper cannot find servlet class

2006-05-16 Thread M Faizal

I have included servlet-api.jar in WEB-INF\lib ; now it works...



-Original Message-
From: Philihp Busby [mailto:[EMAIL PROTECTED]
Sent: May 16, 2006 3:58 PM
To: Struts Users Mailing List
Subject: Re: Wrapper cannot find servlet class


Open your struts.jar file in winzip or some archive viewer to make
sure it isn't corrupt or empty.

On 16 May 2006 09:11:31 +0200, Jorge Martín Cuervo
<[EMAIL PROTECTED]> wrote:
> Try to map another simple servlet to exclude struts problem.
>
>
> El mar, 16 de 05 de 2006 a las 07:30, M Faizal escribió:
>
> > Hi,
> >
> > I am using struts 1.2.9 with tomcat 4.1.27..and Jbuilder X
> >
> > i have just one jsp in my root context
> >
> > and my web.xml has configured like below
> >   
> > action
> > 
org.apache.struts.action.ActionServlet
> > 
> >   config
> >   /WEB-INF/struts-config.xml
> > 
> > 
> >   debug
> >   2
> > 
> > 
> >   application
> >   ApplicationResources
> > 
> > 2
> >   
> >   
> > action
> > *.do
> >   
> >
> > while starting the tomcat it throws the following exception
> > and the application is not started
> >
> > Servlet /cash threw load() exception: 
javax.servlet.ServletException: Wrapper cannot find servlet 
class org.apache.struts.action.ActionServlet or a class it depends on
> > javax.servlet.ServletException: Wrapper cannot find servlet 
class org.apache.struts.action.ActionServlet or a class it depends on
> >  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWra
pper.java:873)
> >  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
> >  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardC
ontext.java:3279)
> >  at 
org.apache.catalina.core.StandardContext.start(StandardContext.j
ava:3421)
> >  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> >  at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
> >  at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
> >  at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
> >  at 
org.apache.catalina.core.StandardService.start(StandardService.java:388)
> >  at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
> >  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> >  at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> >  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> >  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.java:39)
> >  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
AccessorImpl.java:25)
> >  at java.lang.reflect.Method.invoke(Method.java:324)
> >  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> > StandardWrapper[/cash:invoker]: Loading container servlet invoker
> >
> >
> > any help appreciated
> >
> > Faizal
>
> --
> ;-)
> 
> Jorge Martin Cuervo
> Analista Programador
>
> Outsourcing Emarketplace
> deFacto Powered by Standards
>
> email <[EMAIL PROTECTED]>
> voz +34 985 129 820
> voz +34 660 026 384
> 
>
>


This message has been automatically scanned for viruses


Re: Wrapper cannot find servlet class

2006-05-16 Thread Philihp Busby

Open your struts.jar file in winzip or some archive viewer to make
sure it isn't corrupt or empty.

On 16 May 2006 09:11:31 +0200, Jorge Martín Cuervo
<[EMAIL PROTECTED]> wrote:

Try to map another simple servlet to exclude struts problem.


El mar, 16 de 05 de 2006 a las 07:30, M Faizal escribió:

> Hi,
>
> I am using struts 1.2.9 with tomcat 4.1.27..and Jbuilder X
>
> i have just one jsp in my root context
>
> and my web.xml has configured like below
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   2
> 
> 
>   application
>   ApplicationResources
> 
> 2
>   
>   
> action
> *.do
>   
>
> while starting the tomcat it throws the following exception
> and the application is not started
>
> Servlet /cash threw load() exception: javax.servlet.ServletException: Wrapper 
cannot find servlet class org.apache.struts.action.ActionServlet or a class it 
depends on
> javax.servlet.ServletException: Wrapper cannot find servlet class 
org.apache.struts.action.ActionServlet or a class it depends on
>  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
>  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
>  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
>  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>  at org.apache.catalina.core.StandardService.start(StandardService.java:388)
>  at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> StandardWrapper[/cash:invoker]: Loading container servlet invoker
>
>
> any help appreciated
>
> Faizal

--
;-)

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384





Re: Wrapper cannot find servlet class

2006-05-16 Thread Jorge Martín Cuervo
Try to map another simple servlet to exclude struts problem.


El mar, 16 de 05 de 2006 a las 07:30, M Faizal escribió:

> Hi,
>  
> I am using struts 1.2.9 with tomcat 4.1.27..and Jbuilder X
>  
> i have just one jsp in my root context
>  
> and my web.xml has configured like below
>   
> action
> org.apache.struts.action.ActionServlet
> 
>   config
>   /WEB-INF/struts-config.xml
> 
> 
>   debug
>   2
> 
> 
>   application
>   ApplicationResources
> 
> 2
>   
>   
> action
> *.do
>   
>  
> while starting the tomcat it throws the following exception
> and the application is not started
>  
> Servlet /cash threw load() exception: javax.servlet.ServletException: Wrapper 
> cannot find servlet class org.apache.struts.action.ActionServlet or a class 
> it depends on
> javax.servlet.ServletException: Wrapper cannot find servlet class 
> org.apache.struts.action.ActionServlet or a class it depends on
>  at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:873)
>  at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
>  at 
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
>  at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
>  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
>  at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
>  at org.apache.catalina.core.StandardService.start(StandardService.java:388)
>  at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
>  at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> StandardWrapper[/cash:invoker]: Loading container servlet invoker
>  
> 
> any help appreciated
>  
> Faizal

-- 
;-)

Jorge Martin Cuervo
Analista Programador

Outsourcing Emarketplace
deFacto Powered by Standards

email <[EMAIL PROTECTED]>
voz +34 985 129 820
voz +34 660 026 384