Job

2004-05-05 Thread Freddy Villalba Arias
Sorry for the spam, everybody. Didn't mean to reply to all of you. Regards, Freddy.

RE: [OT] Job-Posting

2004-05-05 Thread Freddy Villalba Arias
Does it require moving there or is distance working a possibility? What's the job description / responsabilities? Salary? (Euros, please) -Mensaje original- De: Oliver Thiel [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 05 de mayo de 2004 19:35 Para: Struts Users Mailing List CC: [EM

RE: close pop-up window

2004-05-05 Thread brati . sankarghosh
Hi all, I recently had this problem with a pop up window. Sometimes after the pop up window is closed the session in the parent window is lost too. Anyone have any solution. I am working with JDeveloper and IE 6 using struts-ejb (a framework based on struts). Brati Sankar Ghosh Tata Consultancy S

RE: JSTL 1.1 + HTML-EL Problem

2004-05-05 Thread Zsolt Koppany
What are "runtime" and "request-time"? Where can I change "runtime"? Zsolt > -Original Message- > From: Kris Schneider [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 05, 2004 7:41 PM > To: Struts Users Mailing List > Subject: Re: JSTL 1.1 + HTML-EL Problem > > > Ugh. Change "runtime" to

Jboss 3.2.2 default contextpath

2004-05-05 Thread N.N.S.S. Ravi Krishna
Hi All, I am facing a problem with JBoss ver 3.2.2. I know this is not the forum to address this issue but in the hope that some one can help me I am posting it here. My application is a struts based web application which I have been developing on my local system.The application server is JBoss v

Re: is this posible? return to the same page after being executed

2004-05-05 Thread Curtis Taylor
Hi Julio, There are 2 ways I'm aware of: 1.) In your struts-config.xml action-mappings, add a "success" mapping that points to your mapping path; i.e.: Then, in your action class, return mapping.findForward("Success"); and you're done. (Note the ".do" required in the forward; thanks

Re: inserting delimiters

2004-05-05 Thread Dean A. Hoover
Thanks again. Where is the spec? I tried what you gave me, slightly edited, as follows: / I get the following exception: [ServletException in:/WEB-INF/tiles/content/misc/EditSeries.jsp] /WEB-INF/tiles/content/misc/EditSeries.jsp(21,0) According to TLD or attribute directive in tag file, att

user@struts.apache.org

2004-05-05 Thread Julia Weaver
Hi, Please help, I have following in the jsp: T C D E L But when I select any

Re: inserting delimiters

2004-05-05 Thread James Watkin
JSTL in Action by Shawn Bayern Paperback: 480 pages ; Dimensions (in inches): 0.97 x 9.32 x 7.50 Publisher: Manning Publications Company; (July 2002) ISBN: 1930110529 http://www.manning.com/bayern Shawn Bayern is the reference implementation lead for JSTL. You can hear him speak in a video clip at

RE: inserting delimiters

2004-05-05 Thread Robert Taylor
There are several good references on line for learning JSTL, but I have found the actual spec itself to be great. I'm assuming you want something like AAA/BBB/CCCDDD/EEE/FFF etc... / To avoid the first , use the same logic as the inner loop: / should produce something like: AAA/B

Re: inserting delimiters

2004-05-05 Thread Dean A. Hoover
Thanks Robert. It looks like I need to learn JSTL. Any suggestions? Also, the original problem I posted has changed a little. I am now stuffing a Vector of Vectors of SeriesCategory (my object). SeriesCategory has a getSafeTitle() method that gets an XML safe character string title for the category

Re: struts.jar and struts source code

2004-05-05 Thread Craig McClanahan
Zhang, Larry (L.) wrote: When using Struts, it is easy to download struts.jar and put it in your class path and then you are done. What if you want to use source code instead of binary download. How can we identify those classes included in struts.jar from the source download? This seems not to be

Re: How to forward to an Action in one web app, from the Action of a different web app

2004-05-05 Thread Craig McClanahan
Frank L. Bowar wrote: I have 3 different Struts (1.1) web applications all running in the same Tomcat (4.1) server. When the user presses a button on a form of one of the applications, tied to a Struts Action, I would like that Action to be able to forward control to an Action within a different w

Re: Struts failing under load ?

2004-05-05 Thread Niall Pemberton
I only have questions rather than answers... I'd been interested to know how you're automated emulation of 100 users works - could it be that you have two requests operating on the same form and your form has some kind of nested/mapped/indexed properties in it? Do the 100 users all have separate s

Re: struts-scaffold and commons-scaffold

2004-05-05 Thread Peter Martin
I looked at the zip file, and the files are all from 2002. Are these the most current? I see that the commons-scaffold.jar is included in the struts-scaffold.zip file. Do I have to then build this file to create the commons-scaffold.jar file. -Pete - Original Message - From: "Ted Huste

Re: struts.jar and struts source code

2004-05-05 Thread Niall Pemberton
The source download includes alot more than just whats in struts.jar (documentation, for automated testing stuff, examples etc etc) but all the stuff in struts.jar is in the src/share directory. Niall - Original Message - From: "Zhang, Larry (L.)" <[EMAIL PROTECTED]> To: "Struts Users Ma

Building Wizard navigation using Struts

2004-05-05 Thread Venkat Maddipati
Hi there, I am new to Struts and I want to know if Sturts framework has any direct support for building a Wizard kind of navigation. Basically, I want to build a wizard, which navigates through about 5 pages where user can input data on all the five pages and click on the "Finish" button to save t

struts.jar and struts source code

2004-05-05 Thread Zhang, Larry \(L.\)
When using Struts, it is easy to download struts.jar and put it in your class path and then you are done. What if you want to use source code instead of binary download. How can we identify those classes included in struts.jar from the source download? This seems not to be easy since source down

RE: close pop-up window

2004-05-05 Thread Julia Weaver
It works! Thank you Amar! --- "Jirole, Amar" <[EMAIL PROTECTED]> wrote: > You can take care of that your action class. > > Something like this > Execute(ActionMapping) > { > result = saveToDatabase(); > If(result == success) > { > forward = mapping.findForward

How to forward to an Action in one web app, from the Action of a different web app

2004-05-05 Thread Frank L. Bowar
I have 3 different Struts (1.1) web applications all running in the same Tomcat (4.1) server. When the user presses a button on a form of one of the applications, tied to a Struts Action, I would like that Action to be able to forward control to an Action within a different web application, which w

RE: Struts issue..working in local WSAD/iwndows but not in Web s phere Deployment/ AIX

2004-05-05 Thread Barett McGavock
Matthew, I don't think abstract is part of the problem. I would recommend that you define the ActionForm as its actual class myForm1/myForm2 and totally ignore myCommonForm in the struts-config and your JSPs. Sounds like that's the way you're doing things? I'd do as David Hibbs mentions and also

Re: indexed="true" is only valid within an enclosing iterate tag

2004-05-05 Thread Niall Pemberton
Hmmm. The thinking behind my suggestion was "is jstl working properly for you or is the indexed thing just hinding some other root cause" I'm out of ideas - the only other thing I can think of is what version of Struts are you using - I believe jstl was only catered for from Struts 1.1 - so if you

Validating a composite object?

2004-05-05 Thread Mick . Knutson
I have dependencies between a composite object that needs validation. I have a composite DTO (CA), that has 1 BI, 1..* OI's, and 1..* Prod's. But there are fields in the BI that are dependant on fields in the various OI's? I.E: CA: |--> 1 BI |--> BI.EIN |--> BI.Type |--> 1..* OI

Struts failing under load ?

2004-05-05 Thread Tom Vekemans
Hi, We are currently stress-testing a struts-based application. We are using JBoss 3.2.3 (with integrated tomcat) on a 2-processor Dell with 1 Gig of RAM. We use struts v1.1. The application just runs fine until we get to around 100 concurrent users. From that point on, we get a "java.lang.Ille

actionerrors problem in multiple struts

2004-05-05 Thread Normanjaisingh pauldurai
Hi, I'm using struts-modular approach. i.e. in web.xml I've definitions like this - config /WEB-INF/struts-config.xml config/module2 /WEB-INF/struts-config-module2.xml - But when ActionErrors object

Re: indexed="true" is only valid within an enclosing iterate tag

2004-05-05 Thread Paul Barry
I meant Paul Barry wrote: If I do this: It gives me the results I want: ... But I can't get indexed="true" to work with c:forEach Paul Barry wrote: Yeah, if I remove the indexed="true", my JSP code looks like this: I get a bunch of HTML inputs like this: With different val

RE: close pop-up window

2004-05-05 Thread Jirole, Amar
You can take care of that your action class. Something like this Execute(ActionMapping) { result = saveToDatabase(); If(result == success) { forward = mapping.findForward("success"); } else { forward = mapping.find

Re: indexed="true" is only valid within an enclosing iterate tag

2004-05-05 Thread Paul Barry
If I do this: It gives me the results I want: ... But I can't get indexed="true" to work with c:forEach Paul Barry wrote: Yeah, if I remove the indexed="true", my JSP code looks like this: I get a bunch of HTML inputs like this: With different values but all named code. Code

RE: close pop-up window

2004-05-05 Thread Julia Weaver
Thanks, but I want to close the window only if without any error message (only if data is saved to the database successfully). Please give me further help. Thanks! --- "Jirole, Amar" <[EMAIL PROTECTED]> wrote: > Step 4 is be simple : > map success forward to a jsp, which has something > li

RE: close pop-up window

2004-05-05 Thread Jirole, Amar
Step 4 is be simple : map success forward to a jsp, which has something like this : function refreshAndClose() { opener.focus(); window.close(this); } Step 5 is more tricky and depends upon your app design HTH -Amar -Original Message- From: Julia Weaver [mailto:[EMA

Re: indexed="true" is only valid within an enclosing iterate tag

2004-05-05 Thread Paul Barry
Yeah, if I remove the indexed="true", my JSP code looks like this: I get a bunch of HTML inputs like this: With different values but all named code. Code is a property of item, and each item in items has a different code. Niall Pemberton wrote: What happens if you remove the "indexed"

close pop-up window

2004-05-05 Thread Julia Weaver
Hi, I have done the following 1, 2, 3 steps, but do not know how to do step 4 and 5. Please help me, thanks! 1. When the user clicks on the link a pop-up browser window appears with a form containing all the details about that item. 2. After modifying the item 's details the user clicks on th

Re: indexed="true" is only valid within an enclosing iterate tag

2004-05-05 Thread Niall Pemberton
What happens if you remove the "indexed" attribute from all the - does it work properly then (except for the "name" attribute) is the html page generated OK? Niall - Original Message - From: "Paul Barry" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 9:49 PM S

RE: Strange Form Behavior

2004-05-05 Thread Daniel Kalcevich
That was it! An included page was declaring another form tag. Thanks Niall! -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:52 PM To: Struts Users Mailing List Subject: Re: Strange Form Behavior Someone else had a similar problem rece

RE: struts repopulate bug?

2004-05-05 Thread Barett McGavock
Dana, The documentation for the name attribute of the form element says: "If not specified, the bean associated with the form tag we are nested within is utilized." If the name, type and scope matched those defined for the action you specified, I would expect Struts to have pulled the correct pre

indexed="true" is only valid within an enclosing iterate tag

2004-05-05 Thread Paul Barry
I am trying to use indexed properties in a form, as described in James Turner's Article "Succeeding With Struts: Indexed Properties and Beans as Properties" at http://www.developer.com/java/ejb/article.php/2233591 The example shows you can use c:forEach with , like this: But when I

Re: Strange Form Behavior

2004-05-05 Thread Niall Pemberton
Someone else had a similar problem recently and it was caused by having an additional element on his jsp page. I'd start by checking your jsp page. Niall - Original Message - From: "Daniel Kalcevich" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday

Re: [OT] running application server (OC4J) as a background process

2004-05-05 Thread Shyam A
Duncan, Thanks for the help. I did search the OTN site earlier but didn't find the official answer. Shyam --- Duncan Mills <[EMAIL PROTECTED]> wrote: > See the OC4J Configuration FAQ on OTN for the > official answer :-) > http://otn.oracle.com/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j

Re: Newbie question - struts-config.xml parse error

2004-05-05 Thread Niall Pemberton
You should only have one which contains all your 's Niall - Original Message - From: "None None" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 9:34 PM Subject: Newbie question - struts-config.xml parse error > Hello all. I am a new struts user (but an acco

RE: Newbie question - struts-config.xml parse error

2004-05-05 Thread Liu, Anne I
I think you can only have one action-mappings per struts-config. Change your struts-config.xml to look like this. > -Original Message- > From: None None [SMTP:[EMAIL PROTECTED] > Sent: Wednesd

Re: Newbie question - struts-config.xml parse error

2004-05-05 Thread None None
See now I knew I was going to feel incredibly stupid... I must have been staring at it too long because I didn't spoit that and it was completely obvious. You are competely correct, that fixed it. I should have caught that, it was obviously NOT valid according to the DTD with that. Thank you

RE: Newbie question - struts-config.xml parse error

2004-05-05 Thread Barett McGavock
Dear None None, :) You have two elements. You may only have 0 or 1. Put multiple action elements inside one of the action-mappings, and delete the other one. B > -Original Message- > From: None None [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 05, 2004 1:34 PM > To: [EMAIL PROTECTE

Strange Form Behavior

2004-05-05 Thread Daniel Kalcevich
I have the following actions defined in my struts-config: When I go to /addLender.do the page loads fine, and actually calls the AddLenderAction class. The page that /addLender forwards to is a global forward using a Tile definition. On that page I have a form that is declared

Re: Newbie question - struts-config.xml parse error

2004-05-05 Thread dennis . graham
Excessive? Maybe the struts console could be of assistance? http://www.jamesholmes.com/struts/ Dennis "None None" <[EMAIL PROTECTED]> 05/05/2004 04:34 PM Please respond to "Struts Users Mailing List" To: [EMAIL PROTECTED] cc: Subject:Newbie qu

RE: Submit with a link

2004-05-05 Thread Guillermo Meyer
In struts 1.0, we do as follows to determine formName for situations like this: <% String formName = ((org.apache.struts.action.ActionMapping)request.getAttribute(org.apache .struts.action.Action.MAPPING_KEY)).getName(); %> This attribute is set in processPopulate method of ActionServlet:

Newbie question - struts-config.xml parse error

2004-05-05 Thread None None
Hello all. I am a new struts user (but an accomplished web developer... don't ask how those statements can possibly be logical consistent! :) ) ... for my first learning project I decided to do a file manager app. I was going OK with the basics, but then I ran into an issue I can't seem to re

FYI Some problems I had with JSTL 1.1, JSP 2.0 and Struts

2004-05-05 Thread Jim Collins
Hi, This might be of interest to anyone working with JSTL x tags and JSP 2.0 and Servlet spec 2.4. I am writing an application that has to generate XML and post it to another web app. To generate the XML I use Dom4J and this worked fine. Next I wanted to display some XML that the other app return

Re: [OT] running application server (OC4J) as a background process

2004-05-05 Thread Duncan Mills
See the OC4J Configuration FAQ on OTN for the official answer :-) http://otn.oracle.com/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j_configuring But if you do still want to do it check out Steve Button's blog entry on the Subject: http://radio.weblogs.com/0132383/stories/2004/04/28/oc4jAs

RE: Submit with a link

2004-05-05 Thread Geeta Ramani
Michael: I think "forms" stands for the list (array?) of all forms in that document. So the form which appears (physically) first on the document has index 0, the next one has 1, etc. Is this what you are asking..? Geeta > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROT

RE: JSTL 1.1 + HTML-EL Problem

2004-05-05 Thread Ricardo Cortes
Thanks Kris. Removing the use of the tags solved my problem. Ciao, Ricardo -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 1:41 PM To: Struts Users Mailing List Subject: Re: JSTL 1.1 + HTML-EL Problem Ugh. Change "runtime" to "request-ti

Re: Submit with a link

2004-05-05 Thread Michael McGrady
I am a notice in JavaScript. I have wondered in my brief perusal of JavaScript books how you tell which form is the referent of the formindex numbers? At 10:37 AM 5/5/2004, Henrique VIECILI wrote: you can use javascript to do this job... like this: Enviar Formulário where is the index of t

RE: Dealing with XSS in struts

2004-05-05 Thread Van Riper, Mike
> -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 05, 2004 11:01 AM > To: Struts Users Mailing List > Subject: Re: Dealing with XSS in struts > > > Van Riper, Mike wrote: > > >>-Original Message- > >>From: Craig McClanahan [mailto:[EMA

[OT] running application server (OC4J) as a background process

2004-05-05 Thread Shyam A
Hello, I'm working on a Struts application using stand alone OC4J (Oracle 9i AS) as my application server. I need to deploy my application on a Windows NT machine (remote), and run the application server as a background process. Is it possible to run the server as a Windows service? Has anybody

Re: Submit with a link

2004-05-05 Thread Daniel H A Lima
Cacau, you must use a javascript function to submit your form. You can render a link like : or using --- cacau_braga <[EMAIL PROTECTED]> escreveu: > thanks... but my problem is with the atributtes of > form, like codUf, operacao, that parameteres don´t > go > to the action when i use the htm

Reset all forms in an application?

2004-05-05 Thread Steven Nakhla
Is there a way within Struts to reset all of the ActionForms within a web application? I have a web application that allows users to enter information into a database. The input is divided up into a series of forms, and once the final form has been filled out, the information is committed to t

[ANNOUNCE] Struts Console v4.6 - GUI tool

2004-05-05 Thread James Holmes
Struts Console version 4.6 is now available. http://www.jamesholmes.com/struts/ Download Now: http://www.jamesholmes.com/struts/struts-console-4.6.zip -- OR -- http://www.jamesholmes.com/struts/struts-console-4.6.tar.gz --- BIG ENHANCEMENT --- The JBuilder and IDEA plugins now give you the opt

Re: Validation-Substituting Values Question

2004-05-05 Thread Johannes Wolfgang Woger
David Erickson wrote: Hi I am using some ValidatorActionForms.. here's an example of my validation mapping: say than in your Applicaltinresources.properies: name.of.my.email=" this email" error.email.format="has a wrong format" my message looks like error.email.format={0} is no

Re: Dealing with XSS in struts

2004-05-05 Thread Craig McClanahan
Van Riper, Mike wrote: -Original Message- From: Craig McClanahan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:47 AM To: Struts Users Mailing List Subject: Re: Dealing with XSS in struts jeff mutonho wrote: Hi What are the recommendations to deal with cross-site

Re: Submit with a link

2004-05-05 Thread cacau_braga
thanks... but my problem is with the atributtes of form, like codUf, operacao, that parameteres don´t go to the action when i use the html:link. Do you know, how do i submit that parameters ? Regards, Henrique, are u a brazilian ? - eu sou (i am.)

Re: Clearing Input fields

2004-05-05 Thread Brian Boyle
I sorted that problem out of clearing the fields by setting the scope to request. It was set to session by default. Dennis set me a link to http://j2ee.lagnada.com/struts/html-buttons.htm It is very useful, but can someone please explain to me the need for the class HTMLBUtton.java? THanks for a

Re: JSTL 1.1 + HTML-EL Problem

2004-05-05 Thread Kris Schneider
Ugh. Change "runtime" to "request-time"... Quoting Kris Schneider <[EMAIL PROTECTED]>: > The Struts-EL tags are essentially useless in JSP 2.0. Use the standard > Struts > tags and JSP 2.0 will automatically allow EL expressions for attribute > values. > At least for those that would normally acc

Re: JSTL 1.1 + HTML-EL Problem

2004-05-05 Thread Kris Schneider
The Struts-EL tags are essentially useless in JSP 2.0. Use the standard Struts tags and JSP 2.0 will automatically allow EL expressions for attribute values. At least for those that would normally accept runtime expressions... Quoting Ricardo Cortes <[EMAIL PROTECTED]>: > Hey guys, > > I've been

Re: Submit with a link

2004-05-05 Thread Henrique VIECILI
you can use javascript to do this job... like this: Enviar Formulário where is the index of the form you want to submit (starts in 0 - zero) Henrique Viecili - Original Message - From: "cacau_braga" <[EMAIL PROTECTED]> To: "user" <[EMAIL PROTECTED]> Sent: Wednesday, May 05, 2004 2:17

[OT] Job-Posting

2004-05-05 Thread Oliver Thiel
Hi all, jamba! (lacated in berlin - germany) is recently searching for good J2EE programmer ... so if your interessed ... please send your cv to: [EMAIL PROTECTED] THX Oliver Senior Software Engineer J2EE (m/w) Unternehmensprofil: Die Jamba! AG (http://www.jamba.de) ist eines der wachstum

JSTL 1.1 + HTML-EL Problem

2004-05-05 Thread Ricardo Cortes
Hey guys, I've been banging my head with this for sometime so I'm hoping someone has an answer. We are running JBoss 3.2.3 and have successfully replaced Tomcat 4 with Tomcat 5 so we can use the JSP 2.0 and Servlet 2.4 specifications. I decided to download Standard 1.1 which has support for J

RE: Dealing with XSS in struts

2004-05-05 Thread Van Riper, Mike
> -Original Message- > From: Craig McClanahan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 05, 2004 9:47 AM > To: Struts Users Mailing List > Subject: Re: Dealing with XSS in struts > > > jeff mutonho wrote: > > >Hi > >What are the recommendations to deal with cross-site > scriptin

RE: Submit with a link

2004-05-05 Thread Glenn Wilson
Hi, The only way I've heard of to submit via a hyperlink would be some javascript call. You could try: This would work only if the form in question was the first form on the page. Since there are many different ways to get to the form you want to submit through the DOM, you may also find so

Submit with a link

2004-05-05 Thread cacau_braga
Hi All, I need a help. I have a page that contains many forms each form represents a record of database. I am need to submit that information when a user click on link, because i can´t use the buttons ( "> .

RE: is this posible? return to the same page after being executed

2004-05-05 Thread Geeta Ramani
ah yes, that's what i was afraid of ( - what i meant by "many ways of getting to that action etc..").. I suppose you don't want to use hidden vars..? Because that may be a simple solution to your problem.. :) > -Original Message- > From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED] >

Re: Clearing Input fields

2004-05-05 Thread Hubert Rabago
By default, Struts places your form bean in session scope. This means everytime you bring up the form using this bean, it'll have the values entered the last time it was used. You can put your forms in request scope so that Struts will start with a new form bean instance everytime a form needs th

RE: Struts Form Beans Question

2004-05-05 Thread Daniel Kalcevich
Cool. It works great now. Thanks Hubert! -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:47 AM To: Struts Users Mailing List Subject: RE: Struts Form Beans Question Messages sent as recently as a few hours ago say you'd run into problem

Re: Clearing Input fields

2004-05-05 Thread Brian Boyle
Hubert, thanks fo ryour reply. As I explained to Rudiger earlier, I am farily new to Struts so please excuse my lack of knowledge! Would you be able to explain to me how I put my form bean into the request scope, and what difference does this make form putting it into the session scope? Regards

RE: Struts Form Beans Question

2004-05-05 Thread Hubert Rabago
Messages sent as recently as a few hours ago say you'd run into problems using the name attribute in your form tag. You'd want to go the intended path, which is: ... ... --- Daniel Kalcevich <[EMAIL PROTECTED]> wrote: > It works, but only if I use the name attribute on my tag. I > set it t

Re: [OT] Production app server

2004-05-05 Thread Riyad Kalla
Why not use Tomcat 5, and increase the memory that the server uses? I don't know that many people that took Tomcat 4 seriously for production in its early stages, usually preferring Resin. However as 4.1.x stabalized and 5 came out, it seems its a non-issue anymore... I don't see the holy-wars t

Re: Dealing with XSS in struts

2004-05-05 Thread Craig McClanahan
jeff mutonho wrote: Hi What are the recommendations to deal with cross-site scripting in struts? I'm got an app that a use can access at a URL , let's call it http://localhost/myapplication , now doing something like http://localhost/myapplication/applicationInit.do?mode=alert(document.cookie)

RE: is this posible? return to the same page after being executed

2004-05-05 Thread Julio Cesar De Salvo
The issue is that there's multiples ways to call the action that I want to come back. So I cannot set this in the struts-config.xml, but maybe there's some way to recall the url of the action or jsp inside the action that process the request and then come back to the caller action. Is that clear?

Re: Clearing Input fields

2004-05-05 Thread Brian Boyle
Hey Rudiger, Please excuse my lack of knowledge about Struts! I've only started learning it recently. First of all you said that I would need the two buttons with the same but different values. Is this what you mean and If this is what you mean, what would I use in the Action class to disting

RE: Struts Form Beans Question

2004-05-05 Thread Daniel Kalcevich
It works, but only if I use the name attribute on my tag. I set it to name="searchForm". Although my first part of my form tag is mailto:[EMAIL PROTECTED] Sent: Wednesday, May 05, 2004 9:12 AM To: Struts Users Mailing List Subject: RE: Struts Form Beans Question When validation fails during th

[OT] Production app server

2004-05-05 Thread Daniel Perry
I've developed a struts+ojb based webapp running under tomcat 4.1. The question is, should i go live with tomcat4? I've been looking into the alternatives, but none seem that great. JBoss lacks free documentation. Any comments? Resin looks good, but the license is a bit unclear. The way its wri

Re: Clearing Input fields

2004-05-05 Thread Riyad Kalla
Brian you can either use 1 action, and parse the submit button values to determine what code to execute, OR you can use 2 seprate forms and actions, OR you can put all related actions into one MappingDispatchAction or LookupDispatchAction. If you don't want to get into DispatchActions then I'd

No Stack Information For Null Ptr Caught By Request Processor

2004-05-05 Thread Hohlen, John C
Hi, We're currently getting quite a few stack dumps in our production application (like the one at the bottom of this e-mail) where there is no stack information indicating where a Null Pointer Exception occurred. Instead, all we see is where the RequestProcessor (Struts 1.1) threw a new exce

RE: Dealing with XSS in struts

2004-05-05 Thread Van Riper, Mike
Jeff, The way that I solved this was to implement my own subclass of the TilesRequestProcessor (because we use Tiles) and then specify that request processor in the controller element of the struts config file. In this subclass, I override processValidate() and in my override I wrap the incoming r

logic:match?

2004-05-05 Thread Greg Hess
Hi All,   I have a populated form bean with a property that returns an int indicating a transaction type either(0,1 or 2). In my jsp I would like to display some data depending on the state of this flag. The evaluation is:   If(transType == 0 || transType == 1) … else if(transType ==2

RE: Struts Form Beans Question

2004-05-05 Thread Hubert Rabago
When validation fails during the call to /executeSearchResults, Struts will show the resource specified in the input attribute (".search") using the form that failed validation. You don't need to put it in request scope, Struts will already know what to do with it. Try it. --- Daniel Kalcevich <

RE: Struts Form Beans Question

2004-05-05 Thread Daniel Kalcevich
But is that for Request Scope forms as well? Can I say something like request.setAttribute( myFormName, this) in the validate() method and have the page recognize the form bean and populate the fields? There are basically two actions: When the /search Page is subm

RE: is this posible? return to the same page after being executed

2004-05-05 Thread Geeta Ramani
oh, ok! This exact question I think was asked and answered maybe in the past month or so - sorry, I don't have the exact reference. So maybe you could search the archives - or the poster of that answer will oblige again.. (have you looked into HttpServletRequestgetRequestUrl() (going from memor

Re: Clearing Input fields

2004-05-05 Thread Hubert Rabago
Brian, Aside from putting your form bean in request scope, you really don't need to do anything special to clear the form when a new form is being shown. Javascript certainly isn't required to clear it. Try it out and mail back if just putting it to request scope doesn't work as you expected. H

RE: Clearing Input fields

2004-05-05 Thread Pingili, Madhupal
I have not tried that. But you can try and let us know if it works. The Reset button's behavior is resetting form field value to initial value when we click it. Even if you clear all form fileds using javascript for onLoad event, it may still have that value='x' as part of html form and when y

Re: Struts Form Beans Question

2004-05-05 Thread Hubert Rabago
Yes. As long as your mappings are correct (and they would be if you're already seeing the behavior you described), Struts will preserve the values in case of a validation error and allow the user to correct the mistakes. --- Daniel Kalcevich <[EMAIL PROTECTED]> wrote: > Is there a way that I can u

Re: Clearing Input fields

2004-05-05 Thread Rüdiger Schulz
Hello Brian Boyle, on 05.05.2004 at 17:39 you wrote: > On my last page I have two buttons. One that will let me continue > with the applicaiton and the other is the button that will bring me back to > the original page. Will I need to have two forms and an differnent Action > class for each form?

Re: Clearing Input fields

2004-05-05 Thread Brian Boyle
Thanks Reddy that seems like a good idea. However, that brings me to another problem. On my last page I have two buttons. One that will let me continue with the applicaiton and the other is the button that will bring me back to the original page. Will I need to have two forms and an differnent A

RE: is this posible? return to the same page after being executed

2004-05-05 Thread Julio Cesar De Salvo
Yeah... :) what I was trying to ask is what the best way to get in the action the path to the page that originally called the action. Thnks again. -Mensaje original- De: Geeta Ramani [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 05 de Mayo de 2004 11:56 a.m. Para: Struts Users Mailing

Struts Form Beans Question

2004-05-05 Thread Daniel Kalcevich
Is there a way that I can use "request" scope on an action mapping and have the submitted form bean be returned in the case of errors? What I have is a search form that when its submitted, calls the Validator and the Form Beans validate() method. Can I like set the form bean back into the request

Re: Clearing Input fields

2004-05-05 Thread Riyad Kalla
If it needs to be cleared every time, why not just reset the form before going back to the page? I had a problem similar to this w.r.t. to a login page, it was unsafe because if someone logged out, their login info was automatically populated back into the form. SO if they walked away, another

Re: is this posible? return to the same page after being executed

2004-05-05 Thread Riyad Kalla
Julio, This isn't a problem at all. I do this now with a page that builds itself out top-to-bottom as the user makes more selections and 'submits' them, then the page reloads with another section showing asking for more user input. I guess its kinda like a 1-page wizard. Julio Cesar De Salvo wr

Re: Forward to original page

2004-05-05 Thread Christian Grobmeier
Hello Rüdiger You could pass the name of the forwarding as a hidden field into the form. The value of the field is defined in the tile definition of the actual page template. You might put into the page templates to have access to that page attribute (not sure about this). Does this work? This so

Re: is this posible? return to the same page after being executed

2004-05-05 Thread Martin Gainty
forward takes the current request and response objects and sends them to another resource which then handles the request as it sees fit. Redirect sends a response back to the client that causes the clients browser to send a new request to the new provided URL. response courtesy of JavaRanch articl

RE: Clearing Input fields

2004-05-05 Thread Brian Boyle
Hi Reddy, Thanks for your reply. I understand what you are saying by writing a javascript function for an onClick event. What I would like to know is if it is possible to call the function for an onLoad event. Would this function be called when the apage is loaded? I would prefer this instead o

RE: is this posible? return to the same page after being executed

2004-05-05 Thread Geeta Ramani
Yes, this will work: try it! :) Geeta > -Original Message- > From: Julio Cesar De Salvo [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 05, 2004 11:06 AM > To: 'Struts Users Mailing List' > Subject: is this posible? return to the same page after being executed > > > Is there some way t

is this posible? return to the same page after being executed

2004-05-05 Thread Julio Cesar De Salvo
Is there some way to return to the page / action that called to action that is being executed? I've 1 jsp that forwards to an action and I would like to return to the same page that called the action, by setting the path in the ActionForward object. Thanks.

  1   2   >