RE: problem with module
I've just finished fixing what I think is the same problem you guys have been having i.e. switching modules on Struts 1.1 First, make sure you have the most recent release build of struts, as I had problems with earler 1.1 builds on weblogic 8.1 I originally started with the simple-module-switching application to get things going and I had to make a few modifications to get it working. You can download it from http://www.garvey.ie/struts/multimod.zip and hopefully you will be able to spot where things are going wrong. Hope this helps, Colm -Original Message- From: ruben [mailto:[EMAIL PROTECTED] Sent: 25 March 2004 15:22 To: Struts Users Mailing List Subject: Re: problem with module Daniel wrote: If someone know the solution help us.. - Original Message - From: Daniel [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 11:01 AM Subject: Re: problem with module Hi I have the the same problem, but in other situation, I using popups windows of other modules, if you find the solution tell me , if I find the solution I tell you... - Original Message - From: ruben [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, March 25, 2004 6:19 AM Subject: problem with module hi everybody, excuse me for my english, that is the scenario, i've got 2 modules, default and mod1, i call from mod1 an action that load a page with 2 iframes, that load a page resource, these resources are in the /page context, struts add /mod1 to the context, and i have to use a SwitchAction. My problem is when load a form that is in the page resource,i've got a ServletException: Cannot retrieve mapping for action /GestionUbicacion, i try to prepend /mod1 but i've got the same error, does anybody know the way to slove this? thanks a lot. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] hi, i solve this. I do the next thing that i found in the archives ... http://www.mail-archive.com/[EMAIL PROTECTED]/msg96007.html i change the module before call the page, and it seems to work in this scenario, - 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: html:options where values have embedded quotes
It might not be sexy, but a fast solution would be to use something else instead of quotes e.g. ^ or | and then use a small Javascript replace function to write out the text correctly? Colm -Original Message- From: Doug [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 23:25 To: Struts Users Mailing List Subject: Re: html:options where values have embedded quotes Anyone? Doug wrote: We have some customer-supplied selection options that have double quotes in their values, and Struts 1.1 isn't seeming to handle this correctly. Best I can tell from the HTML spec, these should be placed on the page as quot; , which will submit them as %22 , which *should* be seen on the server side as double quotes again, right? And Struts should be able to match that to an existing entry so it can properly set the selected value. Instead, it seems the options tag isn't escaping the quotes at all (changing them to quot;) and that if we manually do it ourselves, the selected item still isn't being set when the page is reloaded. IIRC, the tag is just leaving the quotes inside the attribute value, which outputs invalid HTML. Am I missing something? Is there a better way to do this? Thanks. Doug - 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: Populating a Listbox
I've come across this in a few difference manifestations and the best course of action I've come across is dependant on the number of variations. If you're only talking about a couple of hundred or less, use a javascript array to populate the second dropdown on the fly. If you're dealing with more than that [6,000 in my case :)] then you're better off using an onChange event handler on the first dropdown to submit the page back to itself and use the action to generate the 2nd one from the database. By default, I set the first dropdown to the 1st value and populate the 2nd one based on that selection. HTH Colm -Original Message- From: Nilesh [mailto:[EMAIL PROTECTED] Sent: 12 February 2004 05:50 To: Struts Users Mailing List Subject: Populating a Listbox I need to populate some lisbox from database at runtime. Also, there are situations when I populate one list box depending upon the value selected in another listbox, all from database. I am using DBCP to connect to mySQL 1)Are there any special tags available in Struts? 2)Can any one suggest a most efficient method to do this, so that there is minimum fetching from database. Also please let me know the syntax of populating the listbox and the event on which it is to be populated, since I have never done it before. A small sample code(If you have tried it earlier) would help more. Thanks in advance. Nilesh. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .swf file
Just the same as any other hyperlink you create with Flash. Just point your hyperlink to nameoflink.do instead of nameoflink.jsp Colm -Original Message- From: Jignesh Patel [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:02 To: [EMAIL PROTECTED] Subject: .swf file Dear Friends, Can anybody explain me how to use .swf file as a button in struts framework. -Jignesh - 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: blocking bookmarked actions
Or wrap the whole app up in frames. That'll do the trick. Colm -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:32 To: Struts Users Mailing List Subject: Re: blocking bookmarked actions where do I do the blocking? The action I am having problems with is a LookupDispatchAction and I get this kind of error message javax.servlet.ServletException: Request[/RechartFiles] does not contain handler parameter named method org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction. java:199) ... Paul McCulloch wrote: You code code your app to always use http POST, but block GETs. This may not be suitable if you've already written the app though! Paul -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:17 To: Struts Users Mailing List Subject: blocking bookmarked actions Suppose someone bookmarked an action such as /yourhost/yourapp/someAction.do and you really want them to only go through the html pages. How do your block or catch these actions and redirect them to the appropriate place? mas - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:javascript question
And alternatively, logic:messagesPresent script language=jscriptalert('bean:message key=global.error.heading/\n\nhtml:messages id=error - bean:write name=error/\n\n/html:messages') /script /logic:messagesPresent global.error.heading=An Error(s) has occured: Colm -Original Message- From: Andreas Solarik [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 15:18 To: 'Struts Users Mailing List' Subject: AW: html:javascript question nice one, didn't even occur to me to do this. Andreas -Ursprüngliche Nachricht- Von: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 24. März 2004 16:05 An: Struts Users Mailing List Betreff: RE: html:javascript question var myMessage = bean:write name=msg /; alert(myMessage) -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 6:23 PM To: Struts Users Mailing List Subject: html:javascript question I want to put the msg inside a javasript alert (popup with error message ),some one know how can I make it ??? font color=red html:messages id=msg message=true bundle=geral bean:write name=msg /br /html:messages /font - 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: are you sure?
Simplest thing to do here is make the method handle the submit for you. Replace the submit button with : html:button property=dummySubmit onclick=areyousure();Submit/html:button Then change the javascript to use ...if (agree){formname.submit();} Good Luck, Colm -Original Message- From: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED] Sent: 23 March 2004 09:44 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: are you sure? Try with this - html:form action=/adddate name=dateForm type=nl.rinke.DateForm onsubmit=return areyousure() Should work -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 23, 2004 3:10 PM To: [EMAIL PROTECTED] Subject: are you sure? Hi list, Still a struts newbie, I try to write an are you sure javascript confirmation box for my submit button. The question is: how can I prevent the form from being submitted when the user clicks no? In the Jsp, I put the following code in the head: SCRIPT LANGUAGE=javascript function areyousure(){ var agree = false; agree = confirm(are you sure?); if(agree){ ... some code which is not important } return agree; } /SCRIPT And the form tag looks like this: html:form action=/adddate name=dateForm type=nl.rinke.DateForm onsubmit=areyousure() Whatever the user clicks, yes or no, the form gets submitted. I want to stop submitting the form when the user click no. thanks, Rinke - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Odd behaviour with utf-8 on weblogic 8.1
I've just discovered a very odd bug/feature , but I'm not entirely sure what's causing it. I have a resource bundle for thai which has been encoded as utf-8. If I specify %@ page contentType=text/html; charset=UTF-8 language=java ... in my JSP pages I wind up with gobbledigook, but if I simply use: %@ page contentType=text/html language=java ignoring the encoding reference entirely, it works perfectly! Now I'm not one to look a gift horse in the mouth, but this is the kind of thing that comes back and bites you in the behind later, so does anyone have any idea why this is happening? Colm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: access variable value in html tag
Hmm..Your syntax looks right to me, though you are missing a closing just before /html:option Could the problem lie elsewhere? Can you write out the accounts.number/account.no_account label/value as a simple list? Colm -Original Message- From: Steltner, Joern [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 12:28 To: [EMAIL PROTECTED] Subject: access variable value in html tag Dear, I'm not an expert in Struts and Java. I need some simple help: html:select property=no_account c:forEach var=accounts items=${Accounts} varStatus=status html:option value=c:out value=${accounts.number}/html:option /c:forEach /html:select Everything works fine, but at ??? mark I would like take account.no_account like ${accounts.number}, but it doesn't work. May someone can give me a small note about the right syntax to get the value from accounts.number as text in the quotes. Thanks Regards J. Steltner - 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: Two beans in same form
Need to see the code, compadre :) -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 13:07 To: [EMAIL PROTECTED] Subject: Two beans in same form Hi I have two beans - teacher and student in same form and with same variable(property) SSN. Teacher is a subclass of my studnet (in my design) error comes as no getter for SSN for bean student ... javax.servlet.jsp.JspException: No getter method for property employeeID of student how do i differentiate these two ,. Thanks much for help. Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html:form focus problem
Anyone else noticed an issue whereby the focus javascript is popping up an error because it can't find the element to which the focus is attached? I've tested the code by re-invoking it after the page has fully loaded and it works just fine. The problem seems to be that for some very odd reason the javascript is being called before the element is available. Anyone else experience this and if so, any workarounds? Colm
RE: UTF-8 characters in the name of the uploaded document
In this article: http://www.anassina.com/struts/i18n/i18n.html The author mentions that a filter is required for UTF-8 encoded forms. Worth a go? Colm -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 14:22 To: Struts Users Mailing List Subject: UTF-8 characters in the name of the uploaded document Hi, I use struts-1.1 with tomcat-4.1.30 and cannot get the name of the uploaded document correctly if that contains UTF-8 (Asian) characters. The application itself does work fine with UTF-8 characters in forms etc. the only exception is upload. Is there a fix to solve this problem or will it be fixed in the next release? Zsolt - 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: html:form focus problem
I'm using the built in struts html:form ... focus=[elementname] functionality so I don't have any control over where in the page the code goes, but looking at the source, the code is indeed below the form. I'd like to attach it to an body onload event trigger, but that's going to require extending the struts classes and I'm trying not to digress too much from the norm. Any other suggestions? Colm -Original Message- From: Brendan Richards [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 15:24 To: Struts Users Mailing List Subject: RE: html:form focus problem What about if you move the javascript to below the form in the page? Unless the javascript is being called by an onload in the body tag, it will need to be below the form elements for them to exist when the javascript executes. -Original Message- From: Colm Garvey [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 15:18 To: Struts Users Mailing List Subject: html:form focus problem Anyone else noticed an issue whereby the focus javascript is popping up an error because it can't find the element to which the focus is attached? I've tested the code by re-invoking it after the page has fully loaded and it works just fine. The problem seems to be that for some very odd reason the javascript is being called before the element is available. Anyone else experience this and if so, any workarounds? Colm - 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]
Module switching issue on weblogic 8.1
hi there, I've run into a persistent problem with weblogic 8.1 using struts 1.1 I'm trying to switch modules and have downloaded the sample simple-module-switching.war archive from sourceforge to try to get it working. I deployed it on Tomcat and it worked perfectly, but no matter which mechanism I use to try to use on weblogic I get a message key not found exception. Having trawled a few newsgroups, I gather that I am not the only one who has come across this, nor is this issue unique to WebLogic application servers. Is there a workaround? Incidentally, I can't use weblogic proprietary pageflows because this application has to be platform independant. Kind Regards, Colm Garvey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 March 2004 09:00 To: [EMAIL PROTECTED] Subject: Important Information Regarding Your BEA eSupport Login ID To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Important Information Regarding Your BEA eSupport Login ID Colm Garvey: Thank you for your recent registration to BEA eSupport. As a new user to BEA eSupport, you're entitled to comprehensive self-help resources, product downloads, personalized interfaces, and the ability to manage support cases online. BEA eSupport is seamlessly integrated with BEA Support Centers, allowing you to use the telephone and web while interacting with BEA. We recommend that you log-in now by clicking http://support.bea.com. The Login link is located at the top of the page. We also recommend that you take the time to customize your views and complete your environment profiles. To help us better serve you, please review the following information: BEA Login ID: cgarvey Name : Colm Garvey E-mail : [EMAIL PROTECTED] Don't know your password? For security reasons, your password is not displayed in this message. Try our Password Finder, located in the User Status Bar on http://support.bea.com. Incorrect information? You can view and update your registration information by clicking the link that says Manage User Profile, in the User Status Bar on http://support.bea.com. Still need help? Please contact us by replying to this message and we will make every effort to assist you with your account. Thank you for choosing BEA products and services! -BEA Customer Support This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
RE: calling ASP inside a JSP
Mohan, please go to and read: http://www.w3schools.com/html/html_frames.asp Colm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 18 March 2004 13:50 To: [EMAIL PROTECTED] Subject: Re: calling ASP inside a JSP Hi James Can u tell me how can acheive this. I have never developed stuff in HTML or ASP. Suppose the link is www.xyz.com/abc/dba.asp, how do we read this stuff into a frame. Please let me know. --Mohan This has nothing to do with ASP or JSP specifically. You simply want to use one frame as the target of another's links/posts. This is very easy to do. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx MSN: [EMAIL PROTECTED] Yahoo IM:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All I have a webpage in which i have two Frames. In my left frame i want to display an ASP page. In the main frame i have a JSP page. Can i do this at all. I have a link to the ASP page, but i do not want to provide a link but only want to display the content of the ASP page. Please let me know if i can do this. Thanks --Mohan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Way tho highlight error form field
I've been thinking about this myself, and the way I plan on doing it is using a variation on my usual theme of: logic:messagesPresent html:messages id=error script language=jscriptalert('bean:write name=error/')/script /html:messages /logic:messagesPresent to using a superior jscript function to read the errors into an array which then either pops up an alert and/or dynamically changes the class of the element in question. HTH Colm -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: 18 March 2004 12:26 To: 'Struts Users Mailing List' Subject: RE: Way tho highlight error form field But, how about server side errors that I can't not validate in Javascript? I tought about something like this: html:text property=test styleClass=normal_class styleClassOnError=error_class/ So, if I return an ActionError about the property test, the style class to use would be error_class, otherwise, normal_class. I know this doesn't exist in Struts but is there something that can do something like this? Thanks -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 18 de março de 2004 10:06 To: Struts Users Mailing List Subject: Re: Way tho highlight error form field You could modify the client-side validation stuff to do this rather than just alerting. An easy way of layering this on is to define a compulsory array of fields and then loop through the form on validation. changing the borderColor style attribute when you have a match between the element name and your array. compulsary = [name,email]; function validate(form) { for(i = 0;i compulsary.length;i++) { field = compulsary[i]; value = form.elements[field].value; if(value == ) { form.elements[field].style.borderColor = #ff; } } } Then you can think about having your compulsary array populated in the same way as the struts validator client-side stuff. In fact you could use the array then it defines. On 18 Mar 2004, at 10:49, Joao Batistella wrote: Hello! Is there a way in Struts to highlight the HTML form field that has an error? I mean, changing the style class of the form field, for example. Is there some feature in Struts that can help me? Thanks, JP - 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: Module switching issue on weblogic 8.1
Well, after a bit of experimentation, I've noticed that Weblogic seems to be managing the leap from one module to another. The problem is that is the message bundles aren't being found. So, a possible workaround based on: http://www.mail-archive.com/[EMAIL PROTECTED]/msg85246.html may well be the short-term solution Colm -Original Message- From: sougata [mailto:[EMAIL PROTECTED] Sent: 18 March 2004 12:23 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Module switching issue on weblogic 8.1 I guess there is some problem in installation .Can u pls send me the apps so that i can try it Thanks Sougata -Original Message- From: Colm Garvey [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 3:26 PM To: [EMAIL PROTECTED] Subject: Module switching issue on weblogic 8.1 hi there, I've run into a persistent problem with weblogic 8.1 using struts 1.1 I'm trying to switch modules and have downloaded the sample simple-module-switching.war archive from sourceforge to try to get it working. I deployed it on Tomcat and it worked perfectly, but no matter which mechanism I use to try to use on weblogic I get a message key not found exception. Having trawled a few newsgroups, I gather that I am not the only one who has come across this, nor is this issue unique to WebLogic application servers. Is there a workaround? Incidentally, I can't use weblogic proprietary pageflows because this application has to be platform independant. Kind Regards, Colm Garvey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 17 March 2004 09:00 To: [EMAIL PROTECTED] Subject: Important Information Regarding Your BEA eSupport Login ID To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Important Information Regarding Your BEA eSupport Login ID Colm Garvey: Thank you for your recent registration to BEA eSupport. As a new user to BEA eSupport, you're entitled to comprehensive self-help resources, product downloads, personalized interfaces, and the ability to manage support cases online. BEA eSupport is seamlessly integrated with BEA Support Centers, allowing you to use the telephone and web while interacting with BEA. We recommend that you log-in now by clicking http://support.bea.com. The Login link is located at the top of the page. We also recommend that you take the time to customize your views and complete your environment profiles. To help us better serve you, please review the following information: BEA Login ID: cgarvey Name : Colm Garvey E-mail : [EMAIL PROTECTED] Don't know your password? For security reasons, your password is not displayed in this message. Try our Password Finder, located in the User Status Bar on http://support.bea.com. Incorrect information? You can view and update your registration information by clicking the link that says Manage User Profile, in the User Status Bar on http://support.bea.com. Still need help? Please contact us by replying to this message and we will make every effort to assist you with your account. Thank you for choosing BEA products and services! -BEA Customer Support This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - 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]