submitting a form from another frameset with struts
hi I`m having difficulties when I try to submit a form with javascript inside a frameset. The form that I want to submit is located inside a different frameset. I`m wondering if this have anything to do with the struts taglibs that im using to build my forms. Please help Jan Fredrik
can`t submit form when using ie 5.0
Hi I have a form like this: html:form action=jsp/usermanagement_updateuser.do html:text property=firstname size=15 / html:radio property=sex property=sex value=female / html:radio property=sex property=sex value=male/ td class=texth3bwhitea href=# onClick=document.forms[0].submit()Send skjema/a/td /html:form In ie 5.0 this form is not submitted. Can anyone tell me if there is something I can do different or is this a bug in ie 5.0. ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]
calling actionmapping from a URL
Hi I have a action class that is used in several actionmappings and in some situations it is called directly from a url, like href=myaction.do, but in these cases the validation implemented prevents me from continuing the process. My question is: how can i turn off validation when calling a action class from a URL. thanks in advance Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]
RE: ActionErrors
hi One way to populate a form before it is used (say you want to load user information for editing) is to create an action called preloadUserAction. In the config file create an action mapping such as actionpath=/edituser type=actionbeans.PreloadUserAction name=userForm scope=session input=/selfAdmin.jsp forward name=success path=/selfAdmin.jsp/ /action The userForm is passed into the preload action. This populates the form and then forwards onto the page that will use that form. Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED] -Original Message- From: Langøren, Knut Harald [mailto:[EMAIL PROTECTED]] Sent: 13. juli 2001 10:54 To: 'Struts-User (E-mail) Subject: ActionErrors Hi. I'm not sure that I've done this the right way, but we'll all have to learn some day. We're using struts to help us in building a web-klient accessing a db through EJB on weblogic6.0. The jsp-pages I'm making has a lot of different information, which are coming from different enterprise beans. These beans are initiated in the Action/perform method. And here is the problem: If I generate an error in the validate method, the flow is directed to the page in the input attribute in the xml-file. This page is a jsp-page, and if you start a jsp-page directly, the perform method is not executed. The perform is only executed if you access the page through the .do. So when the system tries to show the jsp-page, the information from the different beans is not available, due to the perform method not beeing executed. How should I do this? Is it possible to initiate the enterprise beans in some other methods than the perform? Thanks -KHL
File upload
I am experiencing some difficulties trying to upload a file form a form. My formbean stores the file in a FormFile object. The problem is that strings passed from the form gets trunchcated while executing the post request to the server. If found that what was causing this is the enctype=multipart/form-data in my form. What is was hoping that some of you could help me with, is a simple working example of a file upload jsp page with a formbean. Thanks in advance Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]
No context loader error
Hi When I try to deploy my struts-application to a SilverStream app. server I get the following error message: No context class loader: java.util.collection Thanks in advace Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]
Error when deploying to SilverStream application server
Hi When I deploy a war file to my app. server I get the following error message: [exec] Catastrophic error: /jsp/accomodation_application_step2.jsp: An unexpected fatal exception 'String index out of range: 0' occured. In the jsp page I use the struts-html.tld tag lib and these are the tags that I use: 1. html:form action=accomodation_application_step2.do 2. html:text property=fromday size=1 maxlength=2 styleClass=boxboligdato20/ 3. html:select property=nationality styleClass=boxboligsok254 html:option value=valnull.../html:option /html:select 4.html:hidden property=submitter value=/ Thanks in advance Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]
URL encoded request parameters
hi How can I read request parameters with URL encoding from a FormBean? Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]
Architecture for a form-wizzard
Hi I`m building a site that uses a application form that spans over several pages. How should I design this application? 1. With formBeans for every page 2. One formBean for the entire application form All suggestions appreciated Jan Fredrik ___ Jan Fredrik Øveraasen | Senior Systems Developer ___ Cell Network ASA | Pb. 5313, Sørkedalsv. 10A, N-0304 Oslo, Norway ___ Tel: +47 23196600/35 | Fax: +47 23196601 | Mob: +47 93 49 99 88 ___ http://www.cellnetwork.com/ | mailto:[EMAIL PROTECTED]