AW: How to submit form in pop-up window and forward parent result s page?
Hello bOOyah, I have had the same problem that you describe. Were you able to solve it?. If so could you share how you did it? Sam -Ursprungliche Nachricht- Von: news [mailto:[EMAIL PROTECTED] Auftrag von bOOyah Gesendet: Donnerstag, 11. Marz 2004 11:43 An: [EMAIL PROTECTED] Betreff: Q: How to submit form in pop-up window and forward parent results page? Hi all. (Caveat: this might actually turn out to be a Javascript question): I would appreciate any help or even alternatives to what I'm trying to achieve below:- Here's a rough sequence of what I'm trying to achieve... (1) My app has a page displaying an item link. (2) When the user clicks on the link a pop-up browser window appears with a form containing all the details about that item. (3) After modifying the item's details the user clicks on the form Submit button. (4) The Submit action saves the changes to the database. (5) The pop-up windows closes. (6) The original, parent page 'refreshes' to reflect the changes the user made in the pop-up windows (e.g. changing the name of the item under the link). I can get as far as step (4) using Struts and Javascript handlers. Here's how my parent pops-up the item editing window: -- % String link = javascript:popUp('+ request.getContextPath()+ /editItem.do?action=edititem=+ itemID + ');; % . . . tdhtml:link href=javascript:; onclick=%=link% c:out value=Edit Item//html:link /td -- Here's the form element of my pop-up: -- % String submitScript = form.submit(); opener.location='+ request.getContextPath()+ /showItemDetails.do';+ self.close();; % . . . html:form action=/saveItem onsubmit=%=submitScript% -- So I'm submitting the form, telling the parent to forward to the results page ('/showItemDetails.do') and closing the pop-up. But it doesn't work that way:-( The submission works fine; the data is written to the DB. But the pop-up browser window doesn't close and the parent isn't forwarded to the results page. So I guess once a form is submitted the rest of the Javascript just 'disappears' and isn't executed? Any help out there..? Many thanks in advance! -- bOOyah - 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]
AW: Examples of HTML-based user interfaces?
Try the file attached. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT: Examples of HTML-based user interfaces? Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two boxes of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically grow a field, when the user types something in a text box and clicks a button, that item moves up and a new, blank field appears. I'm currently doing this with an add button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a new line, it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - 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]
AW: Examples of HTML-based user interfaces?
Sorry. Forgot to attach file. Here we go again. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT: Examples of HTML-based user interfaces? Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two boxes of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically grow a field, when the user types something in a text box and clicks a button, that item moves up and a new, blank field appears. I'm currently doing this with an add button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a new line, it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !-- THREE STEPS TO INSTALL THE PICKLIST SCRIPT: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document -- !-- STEP ONE: Paste this code into the HEAD of your HTML document -- HEAD !-- This script and many more are available free online at -- !-- The JavaScript Source!! http://javascript.internet.com -- !-- Original: Sean Geraty ([EMAIL PROTECTED]) -- !-- Web Site: http://www.freewebs.com/sean_geraty/ -- SCRIPT LANGUAGE=JavaScript !-- // Control flags for list selection and sort sequence // Sequence is on option value (first 2 chars - can be stripped off in form processing) // It is assumed that the select list is in sort sequence initially var singleSelect = true; // Allows an item to be selected once only var sortSelect = true; // Only effective if above flag set to true var sortPick = true; // Will order the picklist in sort sequence // Initialise - invoked on load function initIt() { var selectList = document.getElementById(SelectList); var pickList = document.getElementById(PickList); var pickOptions = pickList.options; pickOptions[0] = null; // Remove initial entry from picklist (was only used to set default width) selectList.focus(); // Set focus on the selectlist } // Adds a selected item into the picklist function addIt() { var selectList = document.getElementById(SelectList); var selectIndex = selectList.selectedIndex; var selectOptions = selectList.options; var pickList = document.getElementById(PickList); var pickOptions = pickList.options; var pickOLength = pickOptions.length; // An item must be selected if (selectIndex -1) { pickOptions[pickOLength] = new Option(selectList[selectIndex].text); pickOptions[pickOLength].value = selectList[selectIndex].value; // If single selection, remove the item from the select list if (singleSelect) { selectOptions[selectIndex] = null; } if (sortPick) { var tempText; var tempValue; // Sort the pick list while (pickOLength 0 pickOptions[pickOLength].value pickOptions[pickOLength-1].value) { tempText = pickOptions[pickOLength-1].text; tempValue = pickOptions[pickOLength-1].value; pickOptions[pickOLength-1].text = pickOptions[pickOLength].text; pickOptions[pickOLength-1].value = pickOptions[pickOLength].value; pickOptions[pickOLength].text = tempText; pickOptions[pickOLength].value = tempValue; pickOLength = pickOLength - 1; } } } } // Deletes an item from the picklist function delIt() { var selectList = document.getElementById(SelectList); var selectOptions = selectList.options; var selectOLength = selectOptions.length; var pickList = document.getElementById(PickList); var pickIndex = pickList.selectedIndex; var pickOptions = pickList.options; if (pickIndex -1) { // If single selection, replace the item in the select list if (singleSelect) { selectOptions[selectOLength] = new Option(pickList[pickIndex].text); selectOptions[selectOLength].value = pickList[pickIndex].value; } pickOptions[pickIndex] = null; if (singleSelect sortSelect) { var tempText; var tempValue; // Re-sort the select list while
AW: Examples of HTML-based user interfaces?
I guess it can be done although I have not tried it before. -Ursprungliche Nachricht- Von: vasudevrao gupta [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. Dezember 2003 09:48 An: 'Struts Users Mailing List' Betreff: RE: Examples of HTML-based user interfaces? Can we enhance the script to transfer multiple values from one list box to other..(Currently it's a single value) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 19 December 2003 14:09 To: [EMAIL PROTECTED] Subject: AW: Examples of HTML-based user interfaces? Sorry. Forgot to attach file. Here we go again. -Ursprungliche Nachricht- Von: Wendy Smoak [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 23:52 An: Struts Users Mailing List Betreff: OT: Examples of HTML-based user interfaces? Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two boxes of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically grow a field, when the user types something in a text box and clicks a button, that item moves up and a new, blank field appears. I'm currently doing this with an add button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a new line, it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Confidentiality Notice The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately and destroy all copies of this message and any attachments. - 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]
AW: dynamically sized form (mostly solved)
Hallo Robert, I am having the same problems. I have a dynaActionvalidator form which has a few normal fields and an array of check or radio boxes which should have the same field name. My question is how do you implement this in the action class and and form bean and how does this Class come into play? Is it a separate class in addition to the ActionForm and if so how is it called for redisplay in the jsp? Sam -Ursprungliche Nachricht- Von: Robert Taylor [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 11. Dezember 2003 14:52 An: Struts Users Mailing List Betreff: RE: dynamically sized form (mostly solved) Nicholas, I use DynaActionValidatorForm almost exclusively in my application. I have successfully used IndexedProperties for structures that are dynamic using LazyLists. For me, when ever I have to do this, I always have to think about how Struts handles the sequence of events in a request and submission. What I do is subclass DynaActionValidatorForm and override the reset(). The reset() gets called before the action is executed. For example: /** * Reset all bean properties to their default state. This method is * called before the properties are repopulated by the controller servlet. * p * The default implementation uses the initial value specified in the * FormPropertyConfig element for each property. * * @param mapping The mapping used to select this instance * @param request The servlet request we are processing */ public void reset(ActionMapping mapping, HttpServletRequest request) { super.reset(mapping, request); /* * We have to create lazy lists for selected items * because we don't know which items will index * into the collection. A lazy list will create * the appropriate item at a specified index if it * doesn't exist there. */ List selectedItems = ListUtils .lazyList(new ArrayList(), new SelectedItemFactory()); this.set(selectedItems, selectedItems); // other stuff here if necessary } My Factory classes are usually inner classes to the subclassed Dyna*Form. For example: /** * codeSelectedItemFactory/code is used in the form * to create a lazy list that will lazily create selected items. * * @author Robert Taylor * @author last modified $Author: rtaylor $ * @version $Revision: 1.8 $ $Date: 2003/11/17 13:58:51 $ * @see org.apache.commons.ListUtils */ class SelectedItemFactory implements Factory { /** * Create a new instance of the specified object */ public Object create() { return new SelectedItemVO(); } } As long as the input fields which are added to the client have the correct syntax for indexing into your form (formName.selectedItems[0].fieldName) then Struts should handle the rest. Does that help at all? robert -Original Message- From: Nicholas L Mohler [mailto:[EMAIL PROTECTED] Sent: Thursday, December 11, 2003 7:46 AM To: Struts Users Mailing List Subject: Re: dynamically sized form (mostly solved) Ted, The origin of this thread had to do with using Indexed Properties and a Dyna* form. As when using the ActionForm, getting the values to the browser is not an issue. The area where the difficulty arises is when the values are returned from the browser. When using the ActionForm (or subclass), this is neatly handled by implementing the LazyList (or similar functionality) or by making the form have session scope. Note that the session scope solution fails if the end-user can add new entries to the list without a call to the server. In the app I work on, we use javascript to add and remove list elements, so we use LazyList functionality. The problem is when the Dyna* type forms are used. How do the indexed properties get back into the form when the page is submitted. Similar to ActionForm based implementations, the form can have session scope, but this also fails if the user can add new entries to the list without a server call. It isn't obvoius how one would implement LazyList type functionality in a dyna form. I have seen the suggestions for map-backed forms, but I don't see how this would help for the indexed properties...how it would be different from just grabbing the indexed properties out of the request. Any thoughts on this? Nick Ted Husted [EMAIL PROTECTED]To: Struts Users Mailing List [EMAIL PROTECTED] g cc: Subject: Re: dynamically sized form (mostly solved) 12/11/2003 07:03 AM Please respond to Struts Users Mailing List I've lost track of the underlying use case for this thread, but if it's about populating input options on a form, you might consider using a second object for
AW: Pass A String From Servlet And Write Out Its Value in JSP
bean:write name=c/ -Ursprungliche Nachricht- Von: Caroline Jen [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. Dezember 2003 03:37 An: [EMAIL PROTECTED] Betreff: Pass A String From Servlet And Write Out Its Value in JSP My servlet has a String called 'category'. I want to pass the String to a JSP. Therefore, I have the code shown below in the servlet: session.setAttribute( c, category ); OR request.setAttribute( c, category ); And, I do the following in my JSP: % String keyValue = (String)session.getAttribute( c ); % OR % String keyValue = (String)request.getAttribute( c ); % How do I write out keyValue in my JSP in Struts? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.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]
AW: Struts Validator with special characters
do This: global constant constant-namealphanumeric/constant-name constant-value^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-]*$/constant-value /constant constant constant-namealphanumericSP/constant-name constant-value^[a-zA-Z0-9\.\ü\Ü\ä\Ä\ß\ö\Ö\-\ ]*$/constant-value /constant /global -Ursprüngliche Nachricht- Von: Arne Brutschy [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 27. November 2003 12:20 An: [EMAIL PROTECTED] Betreff: Struts Validator with special characters Hello, I found a problem with the struts validator. It seems that it is not possible to use special characters (like german Umlaute) in an regular expression.. I tried this: constant constant-namename/constant-name constant-value^[\-\'\`\´\.\ a-zäöüßáéíúóàèìùòâêîôûñA-ZÄÖÜÁÉÍÓÚÀÈÌÒÙÑ]+$/constant-value /constant Hans Mueller evaluates, Hans Müller doesn't. The RegExp is simple and works with an external tester. Even if I use the simpler regexp ^[a-züA-Z]+$ Hans Müller does not evaluate. Is this some sort of encoding problem? I thought, http is clearly designed for 8bit-use. Can anybody explain this? Did I something wrong or is this a struts-bug? Regards, Arne - 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]
AW: ActionErrors and Servlet Filters
I think you need to implement the saveErrors() method some where in your code. You may also need to import the Action class in your Servlet Filter. Also you could check to make sure you have imported the html taglibrary in your home.jsp -Ursprungliche Nachricht- Von: Nate Drake [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 26. September 2003 02:08 An: [EMAIL PROTECTED] Betreff: ActionErrors and Servlet Filters I have a Servlet Filter that checks that the user has permission to access the requested page. If the user does not, I want to send them back to home.jsp. In home.jsp, I want to use the html:errors tag to display an error message. In the filter I do this: ActionError error = new ActionError(Constants.ERRORS_PERMISSION_DENIED); ActionErrors errors = new ActionErrors(); errors.add(ActionErrors.GLOBAL_ERROR, error); request.setAttribute(errparam, errors); RequestDispatcher rd = request.getRequestDispatcher(home.jsp); rd.forward(request, response); return; In home.jsp I've tried both: html:errors name=errparam/ html:errors property=errparam/ It forwards back to home.jsp, but the error messages are not displayed. Is it possible to use ActionErrors outside of an Action? Thanks, Nate - 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]
AW: Forwarding openNewWindow
Hallo Manuel, I also have ths same problem. How did you solve it? Sam -Ursprüngliche Nachricht- Von: Manuel Lenz [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. September 2003 12:02 An: Struts Users Mailing List Betreff: Forwarding openNewWindow Hi to all, I´d like to forward to an jsp-page which will be opened in a new window. How can I manage that in struts-config.xml ? I can´t use javascript to open the new window because the user is pressing a struts-submit button and not a normal link. Hope anybody can help me, bye, Manuel Lenz - 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]
How to automatically refresh a page after successfully executing a download in Struts
I have a jsp page which displays a table of results. By a hitting a download button the some changes are made in the back-end database. which should be reflected in the current page. The problem with Struts is that after executing a download using an outputstream you can only return null in the action Class for this to execute successfully. The question to you Gurus is how to automatically call another action class which redisplays the current page with the new changes Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: What in the world is bean:page tag for???
As an addition to this question, Is it possible declare a bean in Application Scope in Struts? Perhaps Craig could help us? -Ursprungliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 29. August 2003 04:55 An: Struts Users Mailing List Betreff: Re: What in the world is bean:page tag for??? On Thu, 28 Aug 2003, Bill Johnson wrote: Date: Thu, 28 Aug 2003 19:48:20 -0700 (PDT) From: Bill Johnson [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: What in the world is bean:page tag for??? Ok, unless I missed something this tag seems completely redundant. It is used to expose the properties of the PageContext object, but they all come pre-exposed by default with JSPs. Can someone please explain its purpose? Were these variables (session, request, etc.) not initially implicitly available in JSPs? They are pre-exposed as scripting variables (which is fine if you want to write scriptlets), but not anything you can get to with a custom tag that wants to use expressions (like bean:write, just to take one example). Regards, Bill Craig McClanahan - 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]
AW: Get URL
What kind of taglib is this? Does it come with Struts? -Ursprungliche Nachricht- Von: Mehta, Chirag (IT) [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. August 2003 12:55 An: [EMAIL PROTECTED] Betreff: Get URL Hi, I was wondering if anyone could help. I never had a need for this but i do no and I dunno how to go about it. Basically I'm using the display taglib to create a table. I want to only put 10 item on one page and have the table automatically page number the table. My code is: display:table width=100% border=1 pagesize=10 name=SQLList display:column property=gim2index title=Index / display:column property=sqltitle title=SQL Name href=GIM2Results.do paramId=testsqlscript paramProperty=sqlcode/ display:column property=description title=Description / display:column property=owner title=Owner / display:column property=lastused title=Last Used / /display:table This is the URL of the webpage: http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=gim2index=desc ription=submit=Submit The thing is that the automatic page numbering links on the page point to this URL: http://localhost:8080/wact/pages/GIM2Results.jsp?page=2 But I want it to point to this URL: http://localhost:8080/wact/pages/GIM2Search.do?sqltitle=gim2index=desc ription=submit=Submitpage=2 The thing is I can't just set the requestURI to GIM2Search.do and the rest of the parameters are dynamic. Anyone have any idea of how to do this? Thanks Chirag -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use 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]
Problem with file name when downloading from database with Internet Explorer
In my Struts application I download a file from a database that can be saved locally. However with Internet Explorer, the name is corrupted(with brackets and a number one in between). For example: Instead of file name, file_name, I have file_name[1] It works perfectly with Netscape but not IE. Has anyone of you ever experienced this problem and if so how did you solve it Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: how to pass a jsp variable to a javascript function
Do this: bean:write name=tmpIndex / -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 7. August 2003 23:30 An: Struts Users Mailing List Betreff: Re: how to pass a jsp variable to a javascript function I don't have javascript errors, the problem is %=tmpIndex% can't be translated into 0,1,2,. in javascript, only the String%=tmpIndex%. Adam Hardy [EMAIL PROTECTED] 08/07/03 04:32 PM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: how to pass a jsp variable to a javascript function Hi Julie, what do you get as a result of that iterate? It looks correct. Do you have javascript errors? Adam [EMAIL PROTECTED] wrote: Hi All, Can anyone suggest how to pass a jsp variable to a javascript function correctly? It is in a nested:iterate block that has an indexId=tmpIndex. what I would like to do is to have the 'y%=tmpIndex%' variable pass into my JavaScript function.It seems like the server side %=tmpIndex% variable can not be translated into the client side script function. Here is my code: nested:iterate property=projectList id=pro indexId=proIdx bean:define id=tmpIndex value=%= String.valueOf(proIdx.intValue())%/ script language='JavaScript' var y%=tmpIndex%=%=tmpIndex%; /script nested:select property=projectCodeId onchange= projectChange(y%=tmpIndex%) nested:optionsCollection property=../projectCodeList/ /nested:select /nested:iterate any suggestions? Very Appreciated. Julie = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = This transmittal and any attachments may contain confidential, privileged or sensitive information and is solely for the use of the intended recipient. If you are not intended recipient, you are hereby notified that you have received this transmittal and any such attachments in error and any review, dissemination, distribution or copying thereof is strictly prohibited. If you have received this transmittal and any attachments in error please notify the sender and immediately destroy the message and all its attachments. Any opinions herein expressed may be those of the author and not necessarily of Mizuho Corporate Bank, Ltd (the Bank). The Bank accepts no responsibility for the accuracy or completeness of any information herein contained. = = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = = - 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]
Strange Problem saving and retrieving file
In my struts application I save a text file in an oracle database. Whenever I retrieve the file from the database, it is always 8kb smaller. Has any one of you ever experienced this problem? Sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Strange Problem saving and retrieving file
Thanks. I have solved the problem. I was calling a BufferReaeder.readLine() method earlier before loading the InputStream in the database. Cheers!!! -Ursprungliche Nachricht- Von: Jones, Marty B. [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 1. August 2003 13:10 An: Struts Users Mailing List Betreff: RE: Strange Problem saving and retrieving file Are you using a input stream to load the file in the database? If so make sure that you flush the stream and close it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 4:59 AM To: [EMAIL PROTECTED] Subject: Strange Problem saving and retrieving file In my struts application I save a text file in an oracle database. Whenever I retrieve the file from the database, it is always 8kb smaller. Has any one of you ever experienced this problem? Sam - 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]
AW: AW: AW: Can I have a nbsp; _not_ URL encoded?
Hello Martin and Marco, Its working perfectly now. Thanks a lot. Samuel -Ursprungliche Nachricht- Von: Martin Naskovski [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. Juli 2003 19:52 An: Opoku-Boadu, Samuel; Marco Maier Cc: [EMAIL PROTECTED] Betreff: Re: AW: AW: Can I have a nbsp; _not_ URL encoded? Hi Samuel, and thank you Marco, the filter=false worked very well for me for the html:options. I just never bothered to look it up. I do know Struts :), but I don't know it THAT much :). Samuel, the answer is - use filter=false to avoid the character transformations. Thank you. Martin Tuesday, July 1, 2003, 2:01:09 AM, you wrote: SOBtsc Thanks Martin. I had particular problems for example with displaying SOBtsc a link, for example a href=blablabla/a that had been saved as a string in a bean. SOBtsc using the bean:write tag to write the String out in the jsp displayed the actual syntax instead of the link SOBtsc ie. a href=blablabla/a maybe someone on the forum could help us out SOBtsc -Ursprungliche Nachricht- SOBtsc Von: Martin Naskovski [mailto:[EMAIL PROTECTED] SOBtsc Gesendet: Dienstag, 1. Juli 2003 09:43 SOBtsc An: Opoku-Boadu, Samuel SOBtsc Cc: [EMAIL PROTECTED] SOBtsc Betreff: Re: AW: Can I have a nbsp; _not_ URL encoded? SOBtsc Hi Samuel - unfortunately no. I looked through the source code, I do SOBtsc not see how one could turn off (by a switch of some sort) url SOBtsc encoding. As a matter of fact, there is an unanswered FAQ questions SOBtsc that asks Why is it not possible to disable URL encoding in Struts? SOBtsc - so it isn't even asking HOW, but WHY - which means, it is _not_ SOBtsc possible (more than likely). SOBtsc Then again, I don't profess to know all of struts intricately, so SOBtsc there _may_ be a way, I just wish someone who knows more about this SOBtsc issue would chime in. SOBtsc Searching the archives on URL encoding does not yield anything worthy SOBtsc of consideration (or at least you couldn't get through the results in SOBtsc 1 week of 24/7 reading, as those two words appear too frequently). SOBtsc Martin SOBtsc Tuesday, July 1, 2003, 12:26:22 AM, you wrote: SOBtsc Yes I have the same problem. Were you able to silve it? SOBtsc Sam SOBtsc -Ursprungliche Nachricht- SOBtsc Von: Martin Naskovski [mailto:[EMAIL PROTECTED] SOBtsc Gesendet: Dienstag, 1. Juli 2003 08:12 SOBtsc An: Struts Users SOBtsc Betreff: Can I have a nbsp; _not_ URL encoded? SOBtsc I have a LabelValueBean, and the Label property contains spaces. SOBtsc However, they do not get encoded into nbsp;'s. If I actually include SOBtsc the nbsp; tag, I get a 'nbsp;' on the screen verbatim :), instead of SOBtsc what I really wanted - a space. SOBtsc Is this some catch-22 or is there really a way to specify a SOBtsc nbsp; for a label property in a LabelValueBean? Can the ampersand be SOBtsc escaped somehow??? Thanks :). SOBtsc Martin SOBtsc - SOBtsc To unsubscribe, e-mail: [EMAIL PROTECTED] SOBtsc For additional commands, e-mail: [EMAIL PROTECTED] SOBtsc - SOBtsc To unsubscribe, e-mail: [EMAIL PROTECTED] SOBtsc For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Can I have a nbsp; _not_ URL encoded?
Yes I have the same problem. Were you able to silve it? Sam -Ursprungliche Nachricht- Von: Martin Naskovski [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. Juli 2003 08:12 An: Struts Users Betreff: Can I have a nbsp; _not_ URL encoded? I have a LabelValueBean, and the Label property contains spaces. However, they do not get encoded into nbsp;'s. If I actually include the nbsp; tag, I get a 'nbsp;' on the screen verbatim :), instead of what I really wanted - a space. Is this some catch-22 or is there really a way to specify a nbsp; for a label property in a LabelValueBean? Can the ampersand be escaped somehow??? 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]
AW: AW: Can I have a nbsp; _not_ URL encoded?
Thanks Martin. I had particular problems for example with displaying a link, for example a href=blablabla/a that had been saved as a string in a bean. using the bean:write tag to write the String out in the jsp displayed the actual syntax instead of the link ie. a href=blablabla/a maybe someone on the forum could help us out -Ursprungliche Nachricht- Von: Martin Naskovski [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 1. Juli 2003 09:43 An: Opoku-Boadu, Samuel Cc: [EMAIL PROTECTED] Betreff: Re: AW: Can I have a nbsp; _not_ URL encoded? Hi Samuel - unfortunately no. I looked through the source code, I do not see how one could turn off (by a switch of some sort) url encoding. As a matter of fact, there is an unanswered FAQ questions that asks Why is it not possible to disable URL encoding in Struts? - so it isn't even asking HOW, but WHY - which means, it is _not_ possible (more than likely). Then again, I don't profess to know all of struts intricately, so there _may_ be a way, I just wish someone who knows more about this issue would chime in. Searching the archives on URL encoding does not yield anything worthy of consideration (or at least you couldn't get through the results in 1 week of 24/7 reading, as those two words appear too frequently). Martin Tuesday, July 1, 2003, 12:26:22 AM, you wrote: SOBtsc Yes I have the same problem. Were you able to silve it? SOBtsc Sam SOBtsc -Ursprungliche Nachricht- SOBtsc Von: Martin Naskovski [mailto:[EMAIL PROTECTED] SOBtsc Gesendet: Dienstag, 1. Juli 2003 08:12 SOBtsc An: Struts Users SOBtsc Betreff: Can I have a nbsp; _not_ URL encoded? SOBtsc I have a LabelValueBean, and the Label property contains spaces. SOBtsc However, they do not get encoded into nbsp;'s. If I actually include SOBtsc the nbsp; tag, I get a 'nbsp;' on the screen verbatim :), instead of SOBtsc what I really wanted - a space. SOBtsc Is this some catch-22 or is there really a way to specify a SOBtsc nbsp; for a label property in a LabelValueBean? Can the ampersand be SOBtsc escaped somehow??? Thanks :). SOBtsc Martin SOBtsc - SOBtsc To unsubscribe, e-mail: [EMAIL PROTECTED] SOBtsc For additional commands, e-mail: [EMAIL PROTECTED] SOBtsc - SOBtsc To unsubscribe, e-mail: [EMAIL PROTECTED] SOBtsc For additional commands, e-mail: [EMAIL PROTECTED] -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: bean:message and html tags in the propeties file.
I am also experiencing the same problem. Were you able to solve it? Sam -Ursprüngliche Nachricht- Von: Michael Remijan [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 26. Juni 2003 14:51 An: Struts Users Mailing List Betreff: bean:message and html tags in the propeties file. Hi list: If I put messages in a properties file that have html tags, when I use the bean:message/ tag to retrieve them Struts will convert somthing like b into lt;bgt; so I actually see b in the browser window instead of bold text. Is there any way to prevent this from happening? Mike - 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]
Page Iterator in Struts
Does anybody have an example of a page Iterator in Struts that displays the results of a list page by page. For example when a user clicks a next button more reults from the collection are displayed? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Page Iterator in Struts
Thanks Dirk. This looks interesting. -Ursprungliche Nachricht- Von: Dirk Markert [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Juni 2003 10:25 An: Struts Users Mailing List Betreff: Re: Page Iterator in Struts Hallo Samuel, have a look at struts-layout at http://struts.application-servers.com/ Regards, Dirk *** SOBtsc Does anybody have an example of a page Iterator in Struts SOBtsc that displays the results of a list page by page. For example SOBtsc when a user clicks a next button more reults from the collection are displayed? SOBtsc - SOBtsc To unsubscribe, e-mail: [EMAIL PROTECTED] SOBtsc 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]