Re[2]: no struts classes (jar files) found by application

2004-06-22 Thread Dirk Markert
Hello Michael, *** MK> Hello Dirk, MK> thanks for your answer. MK> That means that I end up with tons of redundant struts packages on my MK> production machines and many redundantdantdant class loading processes MK> on server start

RE: How To Create a Form That Contains Two Drop-Down Menu?

2004-06-22 Thread Joe Hertz
I'm not getting your question. You'd have -- I assume an OptionsCollection or Options tag follows. I generally don't do it that way... -- I assume an OptionsCollection or Options tag follows. I generally don't do it that way... ...etc It's doesn't look like your lists content is going

[OT] Issues while developing and deploying enterprise application

2004-06-22 Thread Navjot Singh
hi, I have N ejb jars packaged into a single EAR file. 1. ProductEJB.jar ( with entities Product, Category etc..) 2. OrderEJB.jar (with entities OrderItem, Orders etc..) Now, i have a unidirectional cmr based relation OrderItem-Product where each item refers to one of the products. But both e

New Validating system instructions?

2004-06-22 Thread David Erickson
Just wondering if there are any docs up on how the validator works in the new nightly builds of struts... trying to transition everything to using ActionMessages and storing the errors/messages under different keys within that object, just wondering how to do that using the validator.xml plugin. Th

How To Create a Form That Contains Two Drop-Down Menu?

2004-06-22 Thread Caroline Jen
I know how to create a drop-down menu; for example: ArrayList sort = new ArrayList(); sort.add(new LabelValueBean("Last Post Date", "thread_last_post_date")); sort.add(new LabelValueBean("First Post Date", "thread_creation_date")); sort.add(new Label

RE: Actions and Anchors

2004-06-22 Thread Frank Zammetti
I haven't tried this, but... Instead of doing what is usually done in an action, that is, ending with... return mapping.findForward("whatever"); ...get a reference to the ActionForward returned like so... ActionForward af = mapping.findForward("whatever"); ...then, add your anchor portion like so..

Tiles and Module Paths

2004-06-22 Thread David Erickson
I'm using one of the newest daily builds of struts, and I am employing modules within my app. Each struts config file declares tiles as a plugin and its associated tiles-XXX.xml mapping. What is strange to me is that while the struts actions are all relative to its module name, the tiles defs are

Tiles config dtd not found

2004-06-22 Thread Ashwin D
Hi, Our application resides on a machine which does not have a direct connection to the internet. So, I have changed all the references to dtds to be on the local machine. The struts & the tiles config file reference their dtds in the same directory. This works fine with Struts. However, Tile

RE: Actions and Anchors

2004-06-22 Thread Wendy Smoak
From: Christopher Marsh-Bourdon [mailto:[EMAIL PROTECTED] > Normally (well under Servlets) you can pass a parameter in > the url like > this: http://www.pyplia.com/wibble.jsp#ImAnAnchor, and the > browser will take > you to the point of the Anchor. Has anyone managed to get > this to work unde

Re: RE : problem with returning a pdf

2004-06-22 Thread Niall Pemberton
A couple of comments - I'm streaming pdf files and using IE6 and my action is only called once - are you sure its not a pre IE6 issue? Secondly - what about implementing this behaviour in the request processor. You could customise ActionMapping to add a contentType property - when required you set

Re: Preventing user from validating a form twice

2004-06-22 Thread Colin Kilburn
Olivier, Here's the article that Jacob is talking about (I think): http://www.javaworld.com/javaworld/javatips/jw-javatip136.html I'm using this approach and am very pleased. Colin Hookom, Jacob wrote: Look up request tokens in the documentation/API. There was also an article on www.javaworld.com a

RE: Preventing user from validating a form twice

2004-06-22 Thread Hookom, Jacob
Look up request tokens in the documentation/API. There was also an article on www.javaworld.com a while back that you can search for. -Original Message- From: Olivier Citeau [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 4:10 PM To: [EMAIL PROTECTED] Subject: Preventing user from

Actions and Anchors

2004-06-22 Thread Christopher Marsh-Bourdon
Evening All I have a sticky problem, and it goes something like this: I have a JSP which will be returned by an Action. On this JSP page there are a fair few Anchors like: I¹m an Anchor. Normally (well under Servlets) you can pass a parameter in the url like this: http://www.pyplia.com/wibble.js

RE: Calling a static method using bean write tag

2004-06-22 Thread [EMAIL PROTECTED]
I would look at perhaps encapsulating this functionality with a Custom Tag. This way you can define the functioanlity you want and how you want to return it to the JSP/HTML/... They are very easy to knock up and really allow you to extend the functionality you can embed. Cheers Christopher M

Preventing user from validating a form twice

2004-06-22 Thread Olivier Citeau
Hi, i think it must be a FAQ, but i did not found anything on this issue. When my user submits a form, the action executes an SQL Insert in the DBMS. What happened is that when user click twice, the second inserts fails with SQLException. What is strange, is that i cannot reproduce it in WSAD, but

Re: RE : problem with returning a pdf

2004-06-22 Thread tvvincam
Thanks for your help Frank, Davlid, Shayam, Unfortunatly, non of the solutions worked. I renamed my reset method in the form bean and am calling it manually at the end of the action - this stops the booleans from being reset when IE resubmits the request. Dodgy but it works. Also, there was a bi

RE: Different form tags on same jsp

2004-06-22 Thread Geeta Ramani
Chris, i think what David is trying to say is that such a test of authorization does not belong in a tag (because of the nesting problem). An easy and (non-javascript!) way of dealing with this is to in the Action *before* the jsp is shown, determine what the authority of the user is and then di

Fwd: Re[4]: Different form tags on same jsp

2004-06-22 Thread Pavlikus
GR> Pavlikus, the error message you posted was: >> >> But when jsp compiles - it show following error: >> >> -- The end tag " So are you saying this is not the error you got (or are getting now?) GR> In any case, post the error you got and then maybe someone can take it from there. Ok. The code:

RE: Different form tags on same jsp

2004-06-22 Thread CRANFORD, CHRIS
Can someone illustrate an example of this? -Original Message- From: Hibbs, David [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 2:51 PM To: Struts Users Mailing List Subject: RE: Different form tags on same jsp You've got a tag nesting error, to be sure. This is like doing

RE: Re[2]: Different form tags on same jsp

2004-06-22 Thread Geeta Ramani
Pavlikus, the error message you posted was: > >> But when jsp compiles - it show following error: > >> -- The end tag " -Original Message- > From: Pavlikus [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 2:22 PM > To: Struts Users Mailing List > Subject: Re[2]: Different form tags

RE: Different form tags on same jsp

2004-06-22 Thread Hibbs, David
You've got a tag nesting error, to be sure. This is like doing ...or at least to a JSP compiler it is. The solution to your problem is that the form action attribute (and onsubmit attribute) can be a runtime expression. David Hibbs, ACS Staff Programmer / Analyst American Na

RE: Re[2]: Different form tags on same jsp

2004-06-22 Thread Pingili, Madhupal
Looking at this : is missing closing tag . Just give another try with closing . Reddy Pingili > -Original Message- > From: Pavlikus [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 2:22 PM > To: Struts Users Mailing List > Subject:

RE: Struts 1.1 / WebSphere 5.1 logging - [SOLVED]

2004-06-22 Thread Pingili, Madhupal
Hello All, Thanks to all who have responded to the same post on commons-user list. Here are the settings that solved the problem: After deploying J2EE app (.ear) on WAS 5.1, make sure you have Classloader mode as PARENT_LAST and WAR Classloader Policy as Application. Now it's logging all message

Re[2]: Different form tags on same jsp

2004-06-22 Thread Pavlikus
Hello Geeta, Tuesday, June 22, 2004, 8:47:08 PM, you wrote: GR> Hi Pavlikus : GR> I think you may just have a typo: GR> <-- don't end tag here.. I'm sorry, this is just misprint when I typing letter. I decide to simplify example and make an error. Original tags: May be s

RE: Pulling Punches

2004-06-22 Thread mike
In my humble opinion, which is humble for good reason, learning the ins and outs and use of reflection is one of the most important things a Java developer can do to enhance his or her career. Mike At 10:49 AM 6/22/2004, Frank Zammetti wrote: This is similar to some things we've done or thought

RE: Different form tags on same jsp

2004-06-22 Thread Geeta Ramani
Hi Pavlikus : I think you may just have a typo: <-- don't end tag here.. Regards, Geeta > -Original Message- > From: Pavlikus [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 1:53 PM > To: Struts Users Mailing List > Subject: Different form tags on same jsp > > > Hi all. > I

Re: Different form tags on same jsp

2004-06-22 Thread DGraham
You've closed this tag -. />     Pavlikus <[EMAIL PROTECTED]> 06/22/2004 01:52 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "Struts Users Mailing List" <[EMAIL PROTECTED]> cc Subject Different form tags on same jsp Hi all. I want to re

Re: How to use dynamically generated CSS style with Struts tags

2004-06-22 Thread Frank Zammetti
I had to do something almost identical... My solution was to make my CSS file a JSP, and when I referenced that stylesheet in all the other JSP's, I did: where styles.act is actually an ActionMapping. I then had my StylesAction class, just like any other Action, that got some info out of the

Different form tags on same jsp

2004-06-22 Thread Pavlikus
Hi all. I want to reuse the jsp page with form where user can Register or Edit Profile. I do like: I expect what it render form tag for registrationForm if user have GUEST_ROLE role, and tag for editProfileForm is user have prepotent roles. But when jsp compiles - it show follo

RE: Pulling Punches

2004-06-22 Thread Frank Zammetti
This is similar to some things we've done or thought about. Well, at least that makes me think I'm on the right track :) Personally, I'm a pretty big fan of using reflection to find methods (a la DispatchAction) although I do think that some folks find it less appealing. I've always been a bit con

Re: How to use dynamically generated CSS style with Struts tags

2004-06-22 Thread Bill Siggelkow
Sounds like a custom JSP tag would work pretty well here ... Voinea, Marina wrote: Hi everybody, Can you please help with the following question: What are the possible ways (and best) to modify the style sheet at run time using Struts framework? Our application is using Struts tags which refer

Re: no struts classes (jar files) found by application

2004-06-22 Thread Ricardo Andres Quintero
Hello: all of the web app when using Sevlets or Jsps, must conform the Servlet 2.1 especification. I mean it must have a WEB-INF directory and a lib and classes directories into it, in addition to a web.xml file, called the web deployment descriptor. The webclassloader follows certain steps when

RE: Pulling Punches

2004-06-22 Thread Joe Germuska
One way I could see doing it would be do add a PrepView attribute to the action mapping that would be in the form "class.method". Basically, any time validation fails and your going to return to the input page, call that method, who's job it is to prep the page for viewing. There's of course d

Re: Pulling Punches

2004-06-22 Thread Joe Germuska
I notice that as soon as someone is talking about forwarding to another Action all these flags go up and "Chain of Responsibility" gets said. The flags go up just because Struts was not designed to make two passes through the RequestProcessor with a single HttpServletRequest, and action chainin

Re: Tiles and paths

2004-06-22 Thread Bob Thomas
Mike, Thanks so much. This solution works if my classes are in a directory (like WEB-INF/classes), but not if my classes are in a JAR file (like WEB-INF/lib/myJar.jar). Here's the Exception:(i shortened it with "..."s). java.io.FileNotFoundException: file:/.../jakarta-tomcat-5.0.18/webapps

RE: Pulling Punches

2004-06-22 Thread Frank Zammetti
I was thinking very simplistically... from within execute() of ActionA: ActionB a = new ActionB(); ActionForward af = a.execute(mapping, inForm, request, response); I've done this in some limited circumstances. Then you can either use the ActionFoward returned, or just ignore it (which is almost

How to use dynamically generated CSS style with Struts tags

2004-06-22 Thread Voinea, Marina
Hi everybody, Can you please help with the following question: What are the possible ways (and best) to modify the style sheet at run time using Struts framework? Our application is using Struts tags which refer to a static style sheet elements as presented below:

Re: Illegal target of jump or branch

2004-06-22 Thread Bill Siggelkow
This might be caused by bumping into a 64K bytecode limit -- here's a link that discusses it: http://www.scioworks.net/devnews/strutsDistilled/updates/update-030401/jspSize.html P.S. Google is your friend ;) Le Goff, Yoann wrote: Hi, does this message talk to somebody ? Illegal target of jump

Re: no struts classes (jar files) found by application

2004-06-22 Thread Bill Siggelkow
Actually -- that is how its supposed to work :) Sharing of the Struts jars across applications is not supported. For more details see: http://jakarta.apache.org/struts/userGuide/configuration.html#config_add Bill Siggelkow Michael Kastner wrote: Hello, maybe someone can help. I've tried to deploy

Re: how do i get members of DynaActionForm inside Action Class

2004-06-22 Thread Bill Siggelkow
In your execute() method: DynaActionForm myForm = (DynaActionForm) form; String foo = (String) myForm.get("foo"); String bar = (String) myForm.get("bar"); Asim Ghosh wrote: hi guys, if somebody can give me the solution to this problem. i am using DynaActionForm and now i want to retrieve the

Re: Pulling Punches

2004-06-22 Thread Mark R. Diggory
Joe Germuska wrote: At 10:48 PM -0400 6/21/04, Joe Hertz wrote: Okay, whew. Knew I had seen something else about it. http://www.jguru.com/faq/view.jsp?EID=1057613 "...There are times when one Action should forward to another, but only to display the final result. Using a second action to complete a

Re: no struts classes (jar files) found by application

2004-06-22 Thread Michael Kastner
Hello Dirk, thanks for your answer. That means that I end up with tons of redundant struts packages on my production machines and many redundantdantdant class loading processes on server startup. Oh well, hard to digest ... BTW, do you know by any chance whether this applies to the velocity pac

RE: how do i get members of DynaActionForm inside Action Class

2004-06-22 Thread Robert Taylor
DynaActionForm theForm = (DynaActionForm) form; String myValue = (String) theForm.get("myValueName"); robert > -Original Message- > From: Asim Ghosh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 5:30 AM > To: [EMAIL PROTECTED] > Subject: how do i get members of DynaActionForm i

Re: no struts classes (jar files) found by application

2004-06-22 Thread Dirk Markert
Hello Michael, *** MK> Hello, MK> maybe someone can help. I've tried to deploy two struts applications to MK> two tomcat test servers (one running tomcat 5.0 and one running tomcat MK> 4.1) but I can't get it to work on neither of t

RE: Pulling Punches

2004-06-22 Thread Joe Germuska
At 9:28 AM -0400 6/22/04, Frank Zammetti wrote: Interesting... I wonder if the answer would be different if you make the distinction between forwarding to another Action and just calling execute() of another Action. I think both have problems certainly, but just calling execute() seems a little

Re: no struts classes (jar files) found by application

2004-06-22 Thread DGraham
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html For classes and resources that must be shared across all web applications, place unpacked classes and resources under $CATALINA_BASE/shared/classes, or p

RE: how do i get members of DynaActionForm inside Action Class

2004-06-22 Thread Matthias Wessendorf
execute(...){ DynaActionForm myForm = (DynaActionForm) form; myForm.get("property"); Cheers, > -Original Message- > From: Asim Ghosh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 11:30 AM > To: [EMAIL PROTECTED] > Subject: how do i get members of DynaActionForm inside Actio

RE: [ANNOUNCEMENT] 6/27 Struts User Gathering at JavaOne

2004-06-22 Thread Pilgrim, Peter
> -Original Message- > From: Van Riper, Mike [mailto:[EMAIL PROTECTED] ==== > > Since there were no strong preferences stated in the initial > responses, I > made an executive decision and went with Sunday evening after > the conference > opening reception. We'll be gathering around

RE: Detecting browser close

2004-06-22 Thread Guillermo Meyer
We are detecting when the user closes the browser window with this javascript (only in IE with JS enabled): function logoff() { if (document.all) { // IExplorer if (window.screenTop > 9000) { // window closed top.location="<%=req

RE: ActionForm returning blank jsp

2004-06-22 Thread Guillermo Meyer
I have a blank page appearing when a null forward is returned. How is your input page attribute in the validator form set? May be Struts is trying to forward to a null forward so blank page appears. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Lunes, 21 de J

RE: I Wondor Why Validation Doesn't Validate

2004-06-22 Thread Mailing List
Dear Friends Thank you very much for your attention; I checked both 'validate="true" ' and also 'empty spaces', they didn't solve the problem. Actually the part of 'if (!errors.isEmpty())' returns false all the time(see below, section 4). My previous project is already working properly with 'val

RE: Re[2]: I Wondor Why Validation Doesn't Validate

2004-06-22 Thread Mailing List
I've converted the property type to String, there's no difference. Regards, Nafise -Original Message- From: Pavlikus [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 22, 2004 5:36 PM To: Struts Users Mailing List Subject: Re[2]: I Wondor Why Validation Doesn't Validate ML> Dear Friends

Re: Validator Error Messages different way to show them ?

2004-06-22 Thread Rouven Gehm
do work. But i also show all my other messages, which aren't errors this way : And additional I only want to show the errors from the validator framework, but it doesn't work as for my own messages. - Original Message - From: "Joe Hertz" <[EMAIL PROTECTED]> To: "'Struts Users Mail

Illegal target of jump or branch

2004-06-22 Thread Le Goff, Yoann
Hi, does this message talk to somebody ? Illegal target of jump or branch I've get it by spelling a jsp through struts ... Tomcat 4.0 / JB-X / Struts 1.1 when i'm using jb-8 it works ... Y.

RE: Pulling Punches

2004-06-22 Thread Joe Germuska
At 10:48 PM -0400 6/21/04, Joe Hertz wrote: Okay, whew. Knew I had seen something else about it. http://www.jguru.com/faq/view.jsp?EID=1057613 "...There are times when one Action should forward to another, but only to display the final result. Using a second action to complete a business transactio

RE: [OT] JavaOne Struts User Gathering

2004-06-22 Thread Pilgrim, Peter
> -Original Message- > From: Van Riper, Mike [mailto:[EMAIL PROTECTED] > Sent: 19 June 2004 22:11 > To: 'Struts Users Mailing List' > Cc: '[EMAIL PROTECTED]' > Subject: [OT] JavaOne Struts User Gathering > > > Hi Everyone, > > Depending upon the interest level, I'm willing to organize a

no struts classes (jar files) found by application

2004-06-22 Thread Michael Kastner
Hello, maybe someone can help. I've tried to deploy two struts applications to two tomcat test servers (one running tomcat 5.0 and one running tomcat 4.1) but I can't get it to work on neither of them. For development purposes I had all required jar files in the application's WEB-INF lib. Then

RE: Pulling Punches

2004-06-22 Thread Frank Zammetti
Interesting... I wonder if the answer would be different if you make the distinction between forwarding to another Action and just calling execute() of another Action. I think both have problems certainly, but just calling execute() seems a little less offensive to me because there is a greater

how do i get members of DynaActionForm inside Action Class

2004-06-22 Thread Asim Ghosh
hi guys, if somebody can give me the solution to this problem. i am using DynaActionForm and now i want to retrieve the value of a particular field. in execute method i have the reference of ActionForm. asim - ALL-NEW Yahoo! Messenger

RE: Pulling Punches

2004-06-22 Thread Hibbs, David
Turn validation off in your struts config and manually in your action. Otherwise, when form validation fails, it will go to your input location. If manual validation invokation doesn't work for you, then you probably want to use the "us an action as input parameter" suggestion. David Hibbs, ACS S

Re[2]: I Wondor Why Validation Doesn't Validate

2004-06-22 Thread Pavlikus
ML> Dear Friends ML> Thank you very much for your attention; I checked both 'validate="true" ' ML> and also 'empty spaces', they didn't solve the problem. ML> Actually the part of 'if (!errors.isEmpty())' returns false all the time(see ML> below, section 4). ML> My previous project is already wor

Calling a static method using bean write tag

2004-06-22 Thread Suresh S
Hi all, Is it possible to call directly a static method using tag .Actually i need to write something in the jsp with help of some utility class and the utility class is static.But it seems tag requires so is there any other way to do this? Thanx in Advance for u r suggestions

RE: I Wondor Why Validation Doesn't Validate

2004-06-22 Thread Mailing List
-Original Message- From: Mailing List Sent: Tuesday, June 22, 2004 1:47 PM To: 'Struts Users Mailing List' Subject: RE: I Wondor Why Validation Doesn't Validate Dear Friends Thank you very much for your attention; I checked both 'validate="true" ' and also 'empty spaces', they didn't s

ActionForm returning blank jsp

2004-06-22 Thread Guillermo Meyer
I have a blank page appearing when a null forward is returned. How is your input page attribute in the validator form set? May be Struts is trying to forward to a null forward so blank page appears. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Lunes, 21 de J

Detecting browser close

2004-06-22 Thread Guillermo Meyer
We are detecting when the user closes the browser window with this javascript (only in IE with JS enabled): function logoff() { if (document.all) { // IExplorer if (window.screenTop > 9000) { // window closed top.location="<%=re