Re: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert
What if it could be solved by escaping again the '\' symbol?. Instead of using '\n' use '\\n'. --- Just Fun 4 You [EMAIL PROTECTED] escribió: Hi Mark, the properties file holds for critical.schedule.text: critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung für The rendered jsp looks like this: ... logic:messagesPresent script language=javascript alert(Folgende Termine sind wg zeitlicher Überlastung für Schmidt (SCHM05) kritisch: 16.03.2004: 11 PS Tagesaufwand) /script /logic:messagesPresent ... the following shows the source from the ActionClass: ActionMessages messages = new ActionMessages(); String noteText = + person.getPersonDataShort() + kritisch:\n; Iterator it = scheduleReportList.iterator(); while(it.hasNext()){ Object object = it.next(); if(object instanceof ScheduleModel){ ScheduleModel scheduleOversized = (ScheduleModel)object; noteText = noteText + scheduleOversized.formatSqlDateToDate(scheduleOversized.getStartDate().toStr ing()) + : + scheduleOversized.getIntDailyManHour() + PS Tagesaufwand\n; } } if(messages != null){ System.out.println(Note: + noteText); messages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(critical.schedule.text, noteText.trim())); saveMessages(request, messages); } thx, Dirk -Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22. März 2004 18:25 An: Struts Users Mailing List Betreff: Re: AW: multiple lines in an ActionMessage object displayed via javascript alert Whats actually in your properties file..? Paste the rendered source into the reply, i think its a javascript problem. On 22 Mar 2004, at 18:04, Just Fun 4 You wrote: hm. In my ActionClass I have something like this: ActionMessages messages = new ActionMessages(); String text = \n: + getCriticalDate.toString() + --; text = text + getTotalHours() + hours.\n; messages.add(critical.schedule.text, text); saveMessages(request, messages); In my jsp: logic:messagesPresent script language=javascript html:messages id=message message=true alert(c:out value=${message} /) /html:messages /script logic:messagesPresent This does not work: I get a javascript error (unterminated string constant). However everything works and the text is being displayed when I remove the \n from the text. the evaluated text string looks something like this if I print the text string to the console (seems ok): The following dates are critical: 20.03.2004: 5 hours. I want this format exactly being displayed using the alert function. I cannot see where the problem is. any idea? thx, Dirk -Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22. März 2004 00:46 An: Struts Users Mailing List Betreff: Re: multiple lines in an ActionMessage object displayed via javascript alert What characters have you in your strings ? There must be something a quote or something give js a bad day. I assume you've something like this. msg1 = bean:message key=message1 /; msg2 = bean:message key=message2 /; msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2 +\n+ msg3; alert(msg); Paste the rendered source in to a reply and I'm sure one or more of you messages has a character that needs escaping or something like that. On 22 Mar 2004, at 00:17, Just Fun 4 You wrote: Hi, I create an ActionMessages object and store one ActionMessage in it. The ActionMessage is a string which contains the \n character to display the whole message in more than one line: message1\nmessage2\nmessage3... In my jsp I have defined the html:message for iteration within a javascript block as I would like to display the message by the javascript alert function. The problem is, that I always get a javascript error for the \n character (unterminated string constant). However, if I remove the \n character everything works. But then, the whole message is displayed in one line. Can someone help? thx, Dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Gays and computing
Now that really sounds gay... I think no one is an idiot for replying to a message from a list. Idiots are the ones who tend to classify other's people's replies as 'from idiots'. As this is an Off-Topic message, I suggest people to avoid replying it anymore. Thank you. --- David Adelson [EMAIL PROTECTED] escribió: No, recursion is you sticking your finger up your butt and smelling it, sticking your finger up your butt and smelling, sticking your finger up your butt and smelling it, all day long -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:49 AM To: Struts Users Mailing List Subject: RE: [OT] Gays and computing That would, I believe, be you're an idiot? This is like recursion. At 05:35 AM 2/28/2004, you wrote: Your an idiot for forwarding this -Original Message- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 7:06 PM To: Struts Users Mailing List Subject: Re: [OT] Gays and computing Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Gays and computing
Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionForward and onLoad()
body onload=javascript:getValues(); function getValues{ // sample code // I would pass a hidden param % String param= request.getParameter(myHidden); String load= param==null?first_time:next_time; % var pass= document.forms[0].myHidden; if(pass.value=='first_time') document.forms[0].myHidden.value='first_time'; document.forms[0].submit(); }; } --- Leticia Golubov [EMAIL PROTECTED] escribió: Hello Gurus, I'm in a bit of a predicament, and my lack of expertise in Javascript and Struts isn't helping... :( I have a jsp page which I need to retrieve some values at onLoad time, i.e.: body onload=javascript:getValues(); all getValues() does is submit the form on this page which sets a bunch of bean values for me to retrieve further down this page... The problem is, on the Action for this form, I need to redisplay the same page... As you can imagine I find myself in a never ending onload loop using this setup of mine... Assuming anyone can understand my description of this situation, my question is: how can I get a page to execute the onload first time but not to do it second time around? Basically, I would like the onload for that window to be called from the parent window, but I've no idea how to do it... I've tried doing below from the parent window: window.open(editUrl, scope, width=380px,height=300px).onload(document.forms[0].submit()); but that didn't work, i'd imagine that submitted the current window, not the one about to be opened. thanks in advance Leticia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ActionForward and onLoad()
SOY... var pass= '%=load%'; if(pass=='first_time') SOY... --- Domingo A. Rodriguez S. [EMAIL PROTECTED] escribió: body onload=javascript:getValues(); function getValues{ // sample code // I would pass a hidden param % String param= request.getParameter(myHidden); String load= param==null?first_time:next_time; % var pass= '%=load%'; if(pass=='first_time') document.forms[0].myHidden.value='first_time'; document.forms[0].submit(); }; } --- Leticia Golubov [EMAIL PROTECTED] escribió: Hello Gurus, I'm in a bit of a predicament, and my lack of expertise in Javascript and Struts isn't helping... :( I have a jsp page which I need to retrieve some values at onLoad time, i.e.: body onload=javascript:getValues(); all getValues() does is submit the form on this page which sets a bunch of bean values for me to retrieve further down this page... The problem is, on the Action for this form, I need to redisplay the same page... As you can imagine I find myself in a never ending onload loop using this setup of mine... Assuming anyone can understand my description of this situation, my question is: how can I get a page to execute the onload first time but not to do it second time around? Basically, I would like the onload for that window to be called from the parent window, but I've no idea how to do it... I've tried doing below from the parent window: window.open(editUrl, scope, width=380px,height=300px).onload(document.forms[0].submit()); but that didn't work, i'd imagine that submitted the current window, not the one about to be opened. thanks in advance Leticia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: open new window from struts page, leaves [object] in parent w indow
Use javascript:var handle= window.open(..) instead of javascript:window.open(..) Regards Domingo A. Rodriguez S. --- Gopalakrishnan, Jayesh [EMAIL PROTECTED] escribió: This is more of a javascript issue than Struts thing. I guess you are missing a return false; at the end of the javascript. Try the script on a simple html page verify that it works as expected. I have seen such links use the onclick event rather than the href, like, a href=javascript:void(0); onClick=javascript:window.open(..)/a possibly to prevent the script from appearing on the status barnot sure. hth -jayash -Original Message- From: Martin Alley [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 12:27 PM To: [EMAIL PROTECTED] Subject: open new window from struts page, leaves [object] in parent window Hi, I guess this has been asked before, but I can't find the answer.. I've got a struts generated page, from which I want to open a new window. I do this with the following line, and I get my new window just like I want a href=javascript:window.open('%= request.getContextPath() %/dataimages/bean:write name=itemForm property=itemValue.imagePath/') click here /a but the original window then contains a page that says [object] - literally that!! How do I get the original window not to change from what it displayed before I click on the above link? Thanks Martin - 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] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: question regarding dynamic Tile capability
Hello, That could be handled in the controllerClass of the tile, retrieving the values from the session, evaluating them and proceeding depending on those values. Just check some past posts about Dynamic Tiles explaining the usage of the controllerClass attribute in the 'tile' tag. Regards Domingo A. Rodriguez S. --- Anderson, James H [IT] [EMAIL PROTECTED] escribió: We want to display different tiles, depending on the characterics of a logged-in user. In other words, some users would see one tile, others another. Is this possible? If so, could someone please send me a short code sample? Thanks very much, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About config struts
Would this be ok? action path=/*/Administrar type=com.danosa.struts.actions.Administrar name=Administrar forward name=ok path=/{1}/index.jsp / forward name=error path=/{1}/error.jsp / forward name=inicioAdmin path=/{1}/configuracion.jsp / /action Just validate it. If your path is /contenidos/Administrar, then 'contenidos' will be used instead of the {1} placeholder. If your path is /administrador/Administrar, then 'administrador' will be used instead of the {1} placeholder. Atte. Domingo A. Rodriguez S. --- Eloy_Mier_Pérez [EMAIL PROTECTED] escribió: I would like to do something like this : action path=/administrador/Administrar type=com.danosa.struts.actions.Administrar name=Administrar forward name=ok path=/administrador/index.jsp / forward name=error path=/Contenidos/error.jsp / forward name=inicioAdmin path=/administrador/configuracion.jsp / /action action path=/Contenidos/Administrar type=com.danosa.struts.actions.Administrar name=Administrar forward name=ok path=/administrador/index.jsp / forward name=error path=/Contenidos/error.jsp / forward name=inicioAdmin path=/administrador/configuracion.jsp / /action but using one line only action path=/*/Administrar .. ¿is this possible? Eloy Mier Pérez TANTA, Tecnología y Comunicación Una compañía del Grupo OneTec C/ Julián Camarillo, 26. 1º , 28037 Madrid (Spain) Phone: +34 91 440 10 40, Fax : +34 91 304 91 24 Mobile: +34 646 016 850 www.tantacom.com _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: popups with action forwarding
This double dotted package string looks weird to me.. What if it is not using the type you are providing? type=com.gcw.aid.controller..UserActions Regards, Domingo A. Rodriguez S. --- ngonqua [EMAIL PROTECTED] escribió: I have a jsp page that when I click on the button it calls a javascript method to opens a popups windows. The popus should return some information about the user base on their id which I pass it but I'm having trouble getting it to work. I'm keep getting message from my weblogic terminal like this: [ERROR] DispatchAction - -Request[/userInfo] does not contain handler parameter named parm Can someone tell me what I'm doing wrong. Thanks. From my jsp page: script function openPopups() { var sURL=userInfo.do?parm=lookupuserId=+arguments[0]; var vArguments=[]; var sFeatures=dialogHeight:500px;dialogWidth:300px;center:yes;edge:raised;help:no;resizable:no;scroll:no;status:no;unadorned:yes;; vReturnValue = window.showModelessDialog(sURL,vArguments,sFeatures); } /script From my stuts-config.xml: struts-config form-beans form-bean name=userForm type=org.apache.struts.action.DynaActionForm form-property name=username type=java.lang.String/ form-property name=fname type=java.lang.String/ form-property name=lname type=java.lang.String/ form-property name=email type=java.lang.String/ form-property name=address1 type=java.lang.String/ form-property name=address2 type=java.lang.String/ form-property name=city type=java.lang.String/ form-property name=state type=java.lang.String/ form-property name=zipcode type=java.lang.String/ /form-bean /form-beans global-forwards forward name=welcome path=/welcome.do redirect=true/ /global-forwards action-mappings action path=/welcome forward=/html/login.jsp/ action path=/userInfo type=com.gcw.aid.controller..UserActions parameter=parm scope=request name=userForm validate=true forward name=SUCCESS path=/html/userInfo.jsp redirect=true/ /action /action-mappings /struts-config From my UserActions: package com.gcw.aid.controller.UserActions; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class UserActions extends DispatchAction { public ActionForward lookup(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { long userId=Long.parseLong(request.getAttribute(userId)); //do something here return mapping.findForward(SUCCESS); } } _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is it possible to nest Tiles layouts?
Something like this?? definition name=common.pagina page=/layouts/classicLayout.jsp put name=title value=Tiles 1.1 Dynamic Portal Example / put name=header value=/tiles/header.jsp / put name=menu value=common.pagina.menu / put name=footer value=/tiles/footer.jsp / put name=body value=/tiles/body.jsp / /definition Regards --- Anderson, James H [IT] [EMAIL PROTECTED] escribió: For example, I'd like to be able to reformat the content tile into a number of different layouts... Thanks, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dynamic Tiles?
I definitively agree with that answer :P --- Pedro Salgado [EMAIL PROTECTED] escribió: Here goes a response to your question... Pedro Salgado - PREVIOUS MESSAGE (on this mailing list) Hi Robert.. I guess you could achieve the same using the controllerClass attribute and building your class.. For instance, I have this definition in the tiles-defs.xml file: --- definition name=.layout path=/common/layout.jsp controllerClass='com.dars.XTileAction' put name=title value=Encabezado primario/ put name=leftsidevalue=/common/leftside.jsp/ put name=rightside value=/common/rightside.jsp/ put name=header value=/common/header.jsp/ put name=footer value=/common/footer.jsp/ put name=bodyvalue=/common/body.jsp/ /definition --- And I have this controllerClass --- package com.dars; import org.apache.struts.tiles.actions.TilesAction; import org.apache.struts.tiles.ComponentContext; import org.apache.struts.tiles.Controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletContext; import javax.servlet.ServletException; import java.io.IOException; public class XTileAction extends TilesAction implements Controller{ public void perform(ComponentContext tilesctx, HttpServletRequest request, HttpServletResponse response, ServletContext servctx) throws ServletException, IOException{ /* GetAttributes */ String titulo= (String)tilesctx.getAttribute(title); String derecha= (String)tilesctx.getAttribute(rightside); /* GetAttributes */ System.out.println( Titulo: +titulo); System.out.println( Derecha: +derecha); /* SetAttributes */ tilesctx.putAttribute(title, Titulo nuevo de esta vaina..); tilesctx.putAttribute(rightside, /common/footer.jsp); /* SetAttributes */ } } --- You can change the values of those attributes at runtime. I prefer to do it using this method. Atte. Domingo A. Rodriguez S. --- Robert Taylor [EMAIL PROTECTED] escribió: Greetings, I have a tiles definition in my tiles-defs.xml similar to below: definition name=search extends=layout put name=heading value={0}Search type=string / put name=content value=/search.jsp type=page / /definition which I would like to be able to modify the heading value such that at runtime I could substitute a value for {0}. For example, it would be ideal to use a JSTL type of syntax such as: definition name=search extends=layout put name=heading value=${param.myValue}Search type=string / put name=content value=/search.jsp type=page / /definition but this does not work. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] On 08/01/2004 20:22, Anderson, James H [IT] [EMAIL PROTECTED] wrote: I'm wondering if Tiles provides support for choosing a Tile dynamically, i.e., programatically at runtime. Our business users have the capability to not only modify include files, but to create new include file directories based on client defined data. We're looking for a way to support this in Struts. Thanks. jim - 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] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with action chaining
Can you post the naughty class source code and the stack trace so we can check the problem better? Regards, Domingo A. Rodriguez S. --- [EMAIL PROTECTED] escribió: Hi, I have a problem with action chaining. My action tag action path=/producerCreate type=com.epolicy.arch.brokerage.web.agency.AgencyAction name=agencyForm validate=true parameter=create scope=request forward name=create path=agencyCreate.do/ forward name=find path=agencyFind.do/ forward name=success path=producerCreate.page/ /action forwards control to the following: action path=/agencyCreate type=com.epolicy.arch.brokerage.web.agency.AgencyCreateAction name=agencyCreateForm validate=true scope=session forward name=success path=producerCreate.page/ /action Now AgencyCreateForm extends AgencyForm and AgencyCreateAction extends AgencyAction. When the derived class AgencyCreateAction tries to type cast the AgencyCreateForm in the execute() method, it throws a type cast exception. This is because no instance of AgencyCreateForm is created and it still persists the instance of AgencyForm. Can anyone guide me as to how I can resolve this problem. Regards, Kavita C. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 31, 2003 10:19 AM To: Kavita Cardoz Subject: WELCOME to [EMAIL PROTECTED] Hi! This is the ezmlm program. I'm managing the [EMAIL PROTECTED] mailing list. I'm working for my owner, who can be reached at [EMAIL PROTECTED] Acknowledgment: I have added the address [EMAIL PROTECTED] to the struts-user mailing list. Welcome to [EMAIL PROTECTED] Please save this message so that you know the address you are subscribed under, in case you later want to unsubscribe or change your subscription address. --- Administrative commands for the struts-user list --- I can handle administrative requests automatically. Please do not send them to the list address! Instead, send your message to the correct command address: To subscribe to the list, send a message to: [EMAIL PROTECTED] To remove your address from the list, send a message to: [EMAIL PROTECTED] Send mail to the following for info and FAQ for this list: [EMAIL PROTECTED] [EMAIL PROTECTED] Similar addresses exist for the digest list: [EMAIL PROTECTED] [EMAIL PROTECTED] To get messages 123 through 145 (a maximum of 100 per request), mail: [EMAIL PROTECTED] To get an index with subject and author for messages 123-456 , mail: [EMAIL PROTECTED] They are always returned as sets of 100, max 2000 per request, so you'll actually get 100-499. To receive all messages with the same subject as message 12345, send an empty message to: [EMAIL PROTECTED] The messages do not really need to be empty, but I will ignore their content. Only the ADDRESS you send to is important. You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) --- Enclosed is a copy of the request I received. Return-Path: [EMAIL PROTECTED] Received: (qmail 38403 invoked from network); 31 Dec 2003 04:49:08 - Received: from unknown (HELO mumbai2.ezbroadnet.com) (203.124.136.26) by daedalus.apache.org with SMTP; 31 Dec 2003 04:49:08 - Received: from ind-spz7gwy003.mastek.com (meghdoot.mastek.com [203.124.144.12]) by mumbai2.ezbroadnet.com (8.11.7p1+Sun/8.11.7) with SMTP id hBV4k7A06598 for [EMAIL PROTECTED] ta.apache.org; Wed, 31 Dec 2003 10:16:07 +0530 (IST) Received: FROM ind-spz7gwy002.mastek.com BY ind-spz7gwy003.mastek.com ; Wed Dec 31 10:16:36 2003 +0500 Received: from IND-SPZ7ECL001.mastek.com (unverified) by ind-spz7gwy002.mastek.com (Content Technologies SMTPRS 4.3.12) with ESMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED] ta.apache.org ; Wed, 31 Dec 2003 10:16:36 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0
Re: how to submit action form while invoking a popup
You mean something like this? .script. var a= window.open(url,childwin,features); parent.document.YourFormName.action='%=target%'; parent.document.YourFormName.submit(); ./script. Atte. Domingo A. Rodriguez S. --- Nisith Dash [EMAIL PROTECTED] escribió: Hi, i am using window.open(url,childwin,features) to open pop up screen where the url= contextRoot + '/someAction.do?'. I also want to submit the action form of my parent screen so that i can use it in the action class method corresponding to my action mapping someAction.do?. How can in do it using java script. Any suggestions??? Thanks, Nisith ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm ** No virus found in attached file noname.htm NO VIRUS FOUND: SERVER GENERATED MESSAGE * End of message *** DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dynamic arg0 in bean:message?
Either escape the double quotes (bean:write name=\globals\ property=\minChars\ / ) or use single quotes (bean:write name='globals' property='minChars' / ). --- Frank Maritato [EMAIL PROTECTED] escribió: Hi, What I want to do is something like this: bean:message key=error.minCharacters arg0=bean:write name=globals property=minChars / / or bean:message key=error.minCharacters arg0=%=minChars% / Where arg0 is the result of a bean property, but I can't seem to get it to work. If I hard-code the value bean:message key=error.minCharacters arg0=20 / It works, but it kinda defeats the purpose. What am I doing wrong, or is there a better way to accomplish this? Thanks -- Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tiles] Populating Tiles definition attribute at runtime
Hi Robert.. I guess you could achieve the same using the controllerClass attribute and building your class.. For instance, I have this definition in the tiles-defs.xml file: --- definition name=.layout path=/common/layout.jsp controllerClass='com.dars.XTileAction' put name=title value=Encabezado primario/ put name=leftsidevalue=/common/leftside.jsp/ put name=rightside value=/common/rightside.jsp/ put name=header value=/common/header.jsp/ put name=footer value=/common/footer.jsp/ put name=bodyvalue=/common/body.jsp/ /definition --- And I have this controllerClass --- package com.dars; import org.apache.struts.tiles.actions.TilesAction; import org.apache.struts.tiles.ComponentContext; import org.apache.struts.tiles.Controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.ServletContext; import javax.servlet.ServletException; import java.io.IOException; public class XTileAction extends TilesAction implements Controller{ public void perform(ComponentContext tilesctx, HttpServletRequest request, HttpServletResponse response, ServletContext servctx) throws ServletException, IOException{ /* GetAttributes */ String titulo= (String)tilesctx.getAttribute(title); String derecha= (String)tilesctx.getAttribute(rightside); /* GetAttributes */ System.out.println( Titulo: +titulo); System.out.println( Derecha: +derecha); /* SetAttributes */ tilesctx.putAttribute(title, Titulo nuevo de esta vaina..); tilesctx.putAttribute(rightside, /common/footer.jsp); /* SetAttributes */ } } --- You can change the values of those attributes at runtime. I prefer to do it using this method. Atte. Domingo A. Rodriguez S. --- Robert Taylor [EMAIL PROTECTED] escribió: Greetings, I have a tiles definition in my tiles-defs.xml similar to below: definition name=search extends=layout put name=heading value={0}Search type=string / put name=content value=/search.jsp type=page / /definition which I would like to be able to modify the heading value such that at runtime I could substitute a value for {0}. For example, it would be ideal to use a JSTL type of syntax such as: definition name=search extends=layout put name=heading value=${param.myValue}Search type=string / put name=content value=/search.jsp type=page / /definition but this does not work. robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Is there a way to prevent urls from being entered from the browser?
Hmmm.. I would use a 'state machine' because: 1. You just can't disable the URL bar in your browser without rendering it useless (..). 2. Use javascript and your users will disable it. 3. Hack your browser to disallow entering URLs in the URL bar and then hack everyone else's who need to use your application. Definitively I would use a State Machine where I could control what URLs (and their parameters) are supposed to be allowed anytime. I could control their flow from inside the servlet without having to buy expensive hardware or hacking everyone's pcs just to keep the users behaving properly. Atte. Domingo A. Rodriguez S. --- Andy Schmidgall [EMAIL PROTECTED] escribió: That would require a keyboard, would it not? :) Could you not have a flag var in the session or something that is only set by a certain piece of code? If the user typed in the URL directly, the flag wouldn't be set, and you could filter requests based on that. -Andy -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:41 PM To: Struts Users Mailing List Subject: Re: Is there a way to prevent urls from being entered from the browser? Is like the one in virgin stores where you can ctrl+esc and get the menu/desktop up? On 29 Dec 2003, at 19:30, Chappell, Simon P wrote: Oh that's far too clever! We just used thin-client terminals locked in kiosk mode with I.E. running in full screen, using touch screens and taking away the keyboard and mouse. Ha ha ... now try typing in a URL!!! :-) Simon -Original Message- From: Brice Ruth [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:09 PM To: Struts Users Mailing List Subject: Re: Is there a way to prevent urls from being entered from the browser? In theory, you could write a filter for the forwards that would check to see if a REFERER is set for the request. If not, the request was likely entered directly in a browser. Jim Anderson wrote: To clarify: I would like to be able to define ActionForwards for use within the app but which cannot be entered directly into the browser by the user. Is this possible? Thanks. jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]