Struts 1 JDO
Hello Yes I know I should upgrade, but just want to get this out of development and the models proven. Struts 1 has one instance of the server-side action. I am using, the old and very reliable/sufficient, Solarmetric/BEA JDO implementation. How does the server TC6 handle multiple simultaneous connections on executing the action class? I know it is not stateful. But it must be threaded to a limit and spawn another instance. However once the thread completes can I pm.EvictAll()? I am also doing the same thing with a form bean,but that is a bit more clear in that it is created for each session and even though each instance is acquiring a PersistenceManager, the PersistenceManager pool should give each request a separate instance. This is working as expected in development and testing, I am just fearful of production without a clearer understanding. I know Apache has the testing tool that I will test with, I just want to know what to expect. That means I can with wild abandon pm.EvictAll() on the form bean. Correct? Both?
Struts 1.3.10 problem
Hello I have a page that has two active portions, feed by session objects and iterated. It works fine monolithically. I now want to break it up into a frameset using the struts frame tag for the individual segmented portions. Before I launch to my frameset composed page, I land on a page that confirms that the two segments work, with an strut html:link. It also works, properly formatted with a sessionsID, and when click the page (either) correctly loads. When I jump to my frameset composed page it does not load, does not have the sessionID(reason it doesnt load), but no errors on compiler error. In the example below I show it with a forward, but it is the same/failure with either a properly defined forward or a simple page attribute. Any ideas? If I use Tiles will it not force a reload in one tile when another is submitted and posted back? the crucial segment on the composed page is: html:link page=/inner.jsp title=innerFrameInnerFrame/html:link html:link page=/static.jsp title=staticFramestaticFrame/html:link frameset rows=85%,15% id=enclosingFrame title=totalFrame html:frame forward=innerFrame frameName=inner styleId=innerFrame marginwidth=0/ html:frame forward=staticFrame frameName=static styleId=staticFrame marginwidth=0/ /frameset
RE: Struts w/Ajax with Struts again
To: Struts Users Mailing List user@struts.apache.org Date: Monday, July 20, 2009, 2:18 AM Hi cpanon, I am looking for the simplest technique that would reprocess the session objects from the new values, regenerate the full jsp, then just refresh the whole page, by javascript after completion of ajax. Or do not use ajax at all, this will be most simple solution for You. Best greetings, Paweł Wielgus. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009cat=sports _ NEW mobile Hotmail. Optimized for YOUR phone. Click here. http://windowslive.com/Mobile?ocid=TXT_TAGLM_WL_CS_MB_new_hotmail_072009
RE: Struts w/Ajax with Struts again
Hi Martin Yes, I did in the line defining both the initial action to bring up the form and the action tasked with processing the Ajax call. Also I put in the Ajax processing action specific setSeeMe(fromAjaxAction) and set that in both the request and the session objects. Still nothing but what the first default process set. The changes set in the Ajax action did not show no matter what life-cycle object they were put in nor what scope the action was defined. This should not be the case, correct? If I set the scope to request, and if I set a change in a actionForm and set it in the request, I should see it on the forwarded form. tia. --- On Mon, 7/20/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Monday, July 20, 2009, 10:18 AM did you check scope=request in struts-config.xml as earlier suggested Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Mon, 20 Jul 2009 03:36:36 -0700 From: cpa...@yahoo.com Subject: Re: Struts w/Ajax with Struts again To: user@struts.apache.org Hi PW But I cant access the session objects with JS, nor can I iterate the collections I have in the session to display the updated values that were written in the Ajax processing action. Correct? --- On Mon, 7/20/09, Paweł Wielgus poulw...@gmail.com wrote: From: Paweł Wielgus poulw...@gmail.com Subject: Re: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Monday, July 20, 2009, 2:18 AM Hi cpanon, I am looking for the simplest technique that would reprocess the session objects from the new values, regenerate the full jsp, then just refresh the whole page, by javascript after completion of ajax. Or do not use ajax at all, this will be most simple solution for You. Best greetings, Paweł Wielgus. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org _ Windows Live™ Hotmail®: Celebrate the moment with your favorite sports pics. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_photos_072009cat=sports
Re: Struts w/Ajax with Struts again
Hi PW But I cant access the session objects with JS, nor can I iterate the collections I have in the session to display the updated values that were written in the Ajax processing action. Correct? --- On Mon, 7/20/09, Paweł Wielgus poulw...@gmail.com wrote: From: Paweł Wielgus poulw...@gmail.com Subject: Re: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Monday, July 20, 2009, 2:18 AM Hi cpanon, I am looking for the simplest technique that would reprocess the session objects from the new values, regenerate the full jsp, then just refresh the whole page, by javascript after completion of ajax. Or do not use ajax at all, this will be most simple solution for You. Best greetings, Paweł Wielgus. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts w/Ajax with Struts again
Hi Martin Thanks, however I havnt migrate to Struts2 yet. What I was hoping for was a technique to get all the session objects reprocessed upon return from the Ajax call. I am unclear that if I do the mapping.getInputForward(), does that force tomcat to reprocess and the jsp reprocess all the session objects? I have also tried returning from the Ajax call with a forward to the page and that doesnt force a redisplay of updated values. That should, correct, it is no different than any other usage and with the json result being stored in the header it will not matter for that processing. --- On Sat, 7/18/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Saturday, July 18, 2009, 11:37 PM better off setting it in the action then access it thru ognl e.g. #session.setSeeMe http://struts.apache.org/2.0.14/docs/ognl-basics.html if you want to see a bean described as package package; public class bean { private String BeanParamName; public void setBeanParamName(String BeanParamName){ this.BeanParamName =BeanParamName ; } public String getBeanParamName(){ return BeanParamName; } } in your jsp use s:bean as here %@ taglib prefix=s uri=/struts-tags % html body s:bean name=package.bean id=id s:param name=BeanParamNameBeanParam/s:param s:property value=%{BeanParamName} /br /s:bean /body /html http://struts.apache.org/2.0.6/struts2-core/apidocs/org/apache/struts2/components/Bean.html Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Sat, 18 Jul 2009 19:07:26 -0700 From: cpa...@yahoo.com Subject: RE: Struts w/Ajax with Struts again To: user@struts.apache.org Hi Martin Thank you. So I may be misunderstanding something. If I return to the Ajax call with mapping.getInputForward() for the defined input attribute of that action processing the Ajax call, should I see changes in the session objects displayed? Because before I return I set an element in the actionForm.setSeeMe(hi), set the session.setAttribute(actionForm, modified) and I do not see it in the display. I am accessing that element with the ${seeMe} syntax. I am seeing the json results, but not what I put in the actionForm. That is what I would organically expect to see. Can you clarify this? tia. --- On Sat, 7/18/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Saturday, July 18, 2009, 9:32 PM ajax's responsibility is to return either json or html formatted text to innerHtml attribute of div tag identified in ajax call other activity such as refreshing session attributes would need to take place in the action class..upon return from action all tags of the jsp would re-display the content based on the refreshed state for those session attributes another strategy is to create and/or modify a jsp in the action and on return forwards to a result *which will forward to the just created or modified jsp* you're welcome Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur.
Re: Struts w/Ajax with Struts again
Hi Nils Martin Thanks and I am sorry about being obtuse and I hope you will continue to make this an edifying moment for me. When I initially put up the form I code a value in the actionForm, myFormBean as myFormBean.setSeeMe(firstTime) and put into the session with session.setAttribute(fb00, myFormBean) I display this value on the form page within a html:text with ...value=${sessionScope.fb00.seeMe}, and it shows firstTime on the form. Good. I process the Ajax call in another Action, fed with the same class of actionForm. No matter whether I remove the action form session.removeAttirbute(fb00) or if I set it a different value, myFormBean2.setSeeMe(fromAjax);session.setAttribute(fb00,myFormBean2). I still see firstTime. I am looking for the simplest technique that would reprocess the session objects from the new values, regenerate the full jsp, ancilliary to the json object I am setting, in the action processing the Ajax. Specifically I am using the iterate tags to display a series of records and that is what I want to be reprocessed and redrawn to the user with the new values that will be in the session object set in the Ajax processing action. I understand that actions should/must be thread-safe, I just want to reprocess objects that are unique to state maintained by the session object. I am suspecting this is not possible. --- On Sun, 7/19/09, Nils-Helge Garli Hegvik nil...@gmail.com wrote: From: Nils-Helge Garli Hegvik nil...@gmail.com Subject: Re: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Sunday, July 19, 2009, 9:56 AM The form will not be updated unless you refresh the values or the part of the page that displays the values you want to be updated. So you would have to manually do this processing some returned updated values in a json result, or by returning the result of a partial jsp which re-renders the part of the page that you want to be updated, and then replace the existing html (using innerHTML). Nils-H On Sat, Jul 18, 2009 at 3:45 AM, cpanoncpa...@yahoo.com wrote: Hello I am able to use an Ajax call to a struts action and with getInputForward() get the get the data back. (With prototpye and json, very, very elegant). I am now realizing that I have cases where I want to reprocess all components, i.e. I want the actionForm to be updated and the jsp recalculated, I want the session objects to be reprocessed so my iterate tags will show the updates, etc. I understand how with getInputForward it doesnt happen. If I setAttribute(), the original value that was processed when the form first generated is all that ever shows. A simple findForward() does not force the reprocessing,ie still the original values of the actionsForm members. Is there a way to force a complete reprocessing the jsp from within an action? tia. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts w/Ajax with Struts again
Hi Martin Thank you. So I may be misunderstanding something. If I return to the Ajax call with mapping.getInputForward() for the defined input attribute of that action processing the Ajax call, should I see changes in the session objects displayed? Because before I return I set an element in the actionForm.setSeeMe(hi), set the session.setAttribute(actionForm, modified) and I do not see it in the display. I am accessing that element with the ${seeMe} syntax. I am seeing the json results, but not what I put in the actionForm. That is what I would organically expect to see. Can you clarify this? tia. --- On Sat, 7/18/09, Martin Gainty mgai...@hotmail.com wrote: From: Martin Gainty mgai...@hotmail.com Subject: RE: Struts w/Ajax with Struts again To: Struts Users Mailing List user@struts.apache.org Date: Saturday, July 18, 2009, 9:32 PM ajax's responsibility is to return either json or html formatted text to innerHtml attribute of div tag identified in ajax call other activity such as refreshing session attributes would need to take place in the action class..upon return from action all tags of the jsp would re-display the content based on the refreshed state for those session attributes another strategy is to create and/or modify a jsp in the action and on return forwards to a result *which will forward to the just created or modified jsp* you're welcome Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Fri, 17 Jul 2009 18:45:18 -0700 From: cpa...@yahoo.com Subject: Struts w/Ajax with Struts again To: user@struts.apache.org Hello I am able to use an Ajax call to a struts action and with getInputForward() get the get the data back. (With prototpye and json, very, very elegant). I am now realizing that I have cases where I want to reprocess all components, i.e. I want the actionForm to be updated and the jsp recalculated, I want the session objects to be reprocessed so my iterate tags will show the updates, etc. I understand how with getInputForward it doesnt happen. If I setAttribute(), the original value that was processed when the form first generated is all that ever shows. A simple findForward() does not force the reprocessing,ie still the original values of the actionsForm members. Is there a way to force a complete reprocessing the jsp from within an action? tia. _ Windows Live™ Hotmail®: Search, add, and share the web’s latest sports videos. Check it out. http://www.windowslive.com/Online/Hotmail/Campaign/QuickAdd?ocid=TXT_TAGLM_WL_QA_HM_sports_videos_072009cat=sports
Struts w/Ajax with Struts again
Hello I am able to use an Ajax call to a struts action and with getInputForward() get the get the data back. (With prototpye and json, very, very elegant). I am now realizing that I have cases where I want to reprocess all components, i.e. I want the actionForm to be updated and the jsp recalculated, I want the session objects to be reprocessed so my iterate tags will show the updates, etc. I understand how with getInputForward it doesnt happen. If I setAttribute(), the original value that was processed when the form first generated is all that ever shows. A simple findForward() does not force the reprocessing,ie still the original values of the actionsForm members. Is there a way to force a complete reprocessing the jsp from within an action? tia.
Re: howto get useable protocol string
Hi Dave Thanks, however where can I get a list of the methods of the available implicit object that I can get access to with struts beans and their proper syntax calls? I tried the object and they just provide generic calls. Also is it possible to just get http/https or do I have to parse out which one it is? Also why does a naive use as property=isSecure fail? --- On Mon, 12/15/08, Dave Newton newton.d...@yahoo.com wrote: From: Dave Newton newton.d...@yahoo.com Subject: Re: howto get useable protocol string To: Struts Users Mailing List user@struts.apache.org Date: Monday, December 15, 2008, 10:08 PM getProtocol and/or isSecure? --- On Mon, 12/15/08, cpanon cpa...@yahoo.com wrote: From: cpanon cpa...@yahoo.com Subject: Re: howto get useable protocol string To: Struts Users Mailing List user@struts.apache.org Date: Monday, December 15, 2008, 10:04 PM Hi Sorry to repeat, however I still can figure this out. I am using bean:page id=context property=request to get at the serverName, serverPort and contextPath. I want to get at whether it is http/https. Is there a way to do that? tia. --- On Mon, 12/15/08, cpanon cpa...@yahoo.com wrote: From: cpanon cpa...@yahoo.com Subject: howto get useable protocol string To: Struts Users Mailing List user@struts.apache.org Date: Monday, December 15, 2008, 2:33 PM Hello Using the struts bean tags, how/syntax to get at the protocol that I can use rather than parse, either http or https. What I am getting is HTTP/1.1. Is there any way to get it cleaner? tia. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
howto get useable protocol string
Hello Using the struts bean tags, how/syntax to get at the protocol that I can use rather than parse, either http or https. What I am getting is HTTP/1.1. Is there any way to get it cleaner? tia. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: howto get useable protocol string
Hi Sorry to repeat, however I still can figure this out. I am using bean:page id=context property=request to get at the serverName, serverPort and contextPath. I want to get at whether it is http/https. Is there a way to do that? tia. --- On Mon, 12/15/08, cpanon cpa...@yahoo.com wrote: From: cpanon cpa...@yahoo.com Subject: howto get useable protocol string To: Struts Users Mailing List user@struts.apache.org Date: Monday, December 15, 2008, 2:33 PM Hello Using the struts bean tags, how/syntax to get at the protocol that I can use rather than parse, either http or https. What I am getting is HTTP/1.1. Is there any way to get it cleaner? tia. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
struts hidden
Hello Is it possible to wrap a struts hidden tag around either a struts text or text area? tia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts hidden
Hi Antonio I want Struts to render it, the browser to hide it and the post operation to deliver the name/value to the action. Is that possible with text and text area tags --- On Sat, 9/27/08, Antonio Petrelli [EMAIL PROTECTED] wrote: From: Antonio Petrelli [EMAIL PROTECTED] Subject: Re: struts hidden To: Struts Users Mailing List user@struts.apache.org, [EMAIL PROTECTED] Date: Saturday, September 27, 2008, 9:35 AM 2008/9/27 cpanon [EMAIL PROTECTED]: Is it possible to wrap a struts hidden tag around either a struts text or text area? tia What exactly do you want to accomplish in terms of HTML? Antonio - 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 forms, two submits
Hello I was able to configure it to keep both separate. However now the error is when I submit on a very simple form with the code below it states: No getter method available for property value for bean under name dropDown dropDown is just a collection of LabelValueBean. I just expected on submit for the option value to be the value of the filter and be delivered filter/value to the action. Do I need to create dropDown as a two member object with a value member and an array of LabelValueBean? Thanks to all who responded/viewed. struts table tr td html:select property=filter onchange= option value=All PendingAll Pending/option html:options collection=dropDown property=value labelProperty=label / option value=AllAll/option /html:select tdhtml:submit property=FilterSubmit value=Filter Submit onclick=this.form.submit() //td td/td /tr /table with this html table tr td select name=filter onchange=option value=All PendingAll Pending/option option value=0Option One/option option value=1Option Two/option option value=AllAll/option/select --- On Mon, 9/22/08, Piero Sartini [EMAIL PROTECTED] wrote: From: Piero Sartini [EMAIL PROTECTED] Subject: Re: two forms, two submits To: Struts Users Mailing List user@struts.apache.org Date: Monday, September 22, 2008, 4:26 PM He mentioned html:submit - I guess we are talking about Struts 1, so there are no themes involved. Piero On Monday 22 September 2008 22:14:50 Kawczynski, David wrote: FYI, a theme can be specified in a s:form tag or any of its s: form elements via theme=simple|xhtml|ajax attribute. If you didn't specify one it's using the xhtml theme. Do your forms submit to the same event handler? It would be helpful if we could see the struts.xml and the web pages that house the forms. -Original Message- From: cpanon [mailto:[EMAIL PROTECTED] Sent: Monday, September 22, 2008 3:57 PM To: Struts Users Mailing List Subject: Re: two forms, two submits Hi Pascal I dont understand the use of the word theme. This is a very simplistic jsp that has two forms, each with a different action and a html:submit button that does not work for one of the two forms. I hope I am clearer. It is almost too simple to further describe. tia. Notice: This e-mail message, together with any attachments, contains information of Merck Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. - 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]
two forms, two submits
Hello I have two non-nested forms, each with their own submit button and separate action destinations. The problem is when I click the second form the first form always fires. Should this, primitive, design work as intuitive with each only submitting to the action on the specific form that the submit button is clicked? tia.
return ajax text or xml
Hello What is the best way to return simple text/html or an xml document from an action? Do I have to forward to a servlet and open an output stream and write the stream? Is there a simpler/better way? tia.
teardown
Hello I have a demo that is not fully ready,(yes then I should not show it,grin) and I would like to either make each launch of the jsp create a new exclusive running instance of the action or be able to lifecycle out of instantiation an all instances of a particular action and jsp. I know this is bizarre, but it could have applications in production if from management one particular feature of a program failed in unexpected ways and taking down the application was not preferred. Is this architecturally possible? tia.
value from varstatus
Hello Whenever I try to get the numerical value of varStatus all I get is this [EMAIL PROTECTED] Furthermore I cant seem to use the name attribute to properly evaluate down to value, it keeps saying that the value(which I want and proves it can do the dereferencing) is not a bean, no matter what syntax. Can someone help on these? c:forEach var=lv items=${current.dynaOptions} varStatus=status c:forEach var=option items=${lv.dynamicOptions} varStatus=statusOption bean:define id=rc${currentIncr}ctrlTypec:out value=${statusOption}/c:out/bean:define html:radio property=simpleRadioOptions01[${currentVarStatus}].choosenValuevalue=${option.value} styleId=${rc}/ bean:write name=option property=label/br / /c:forEach
help with radio button array
Hello I am trying to construct a model that has multiple radio buttons per object but keep them distinct, therefore they need a different name. I almost have it by creating a array of objects and using nested iterate, with the code below. However, of course it does not increment the index on the second and successive iterations. Is this possible? I have tried all permutations of attributes and all I want is it to automatically increment, radioOptions[n] for each record. Any help appreciated. this struts nested:iterate property=radioOptions name=current nested:define id=first property=firstOptionVal type=java.lang.String/ nested:radio value='%=first%' property=value/ nested:define id=second property=secondOptionVal type=java.lang.String/ nested:radio value='%=second%' property=value/ /nested:iterate generates this for all records input type=radio name=radioOptions[0].value value=radio input type=radio name=radioOptions[0].value value=checkbox
struts record output and entry
Hello I am having a difficult time designing and implementing an interaction of displaying and accepting user input of multiple records at once. I can create a collection of records, but records are complex, composed of other objects that are themselves composed of text strings that I want rendered as either simple html input boxes, checkboxes or radio. I have a sense that I need to use the iterate to get iterate over the total collection, but how do I record by record render the html input elements. Furthermore what do these look like to the action that will receive the post? A simpler version of this is being done on shopping carts a checkbox on each line, but that may be hard coded. Is the way I need it even possible with struts 1.1?
bean:page bean:write
Hello I am trying understand how to use the bean:page with the different properties, application, config, response, request, session, and I understand the simple syntax. What I dont know is what properties I can get at with what syntax for the bean:write tag for each of the properties of the bean:page property to be output For example what is the application property that will give me the URL for the full context of the present webapp? I have an applet and all its signed jars directly off the webapp context. How can I get these two bean tags to put in the applet codebase attribute : codebase=http://localhost:8089/webapp/; dynamically so I can launch my applet. The applet runs fine as a simple html file with no codebase, obviously it is defaulting where the html is located on the webserver. I now want to switch this over to a tomcat webapp. Ideas? tia! -- View this message in context: http://www.nabble.com/bean%3Apage-bean%3Awrite-tf3178182.html#a8819111 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]