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 s

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 PRO

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 con

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.Lia

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

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 w

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.* **Wen

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. > > - A

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

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 exce

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 redirect

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 partic

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

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 replace

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 2

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 tha

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

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 -

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.co

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 -

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

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 McLaughl

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

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

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 w

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 "

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 poste

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

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 ju

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 failu

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 Valid

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

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 d

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 sev

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 res

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

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

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: [EM

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

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 > "boo

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 creat

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 el

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 confirm

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 sa

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

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, ha

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

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: [EMAI

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 o

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

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

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 -

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

[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/

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.

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

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

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

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 pa

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 con

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

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

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