Re: How to include CSS file in struts
If you look at the struts2-showcase and see where they are there. They are in the root directory (WebContent) under styles. In the JSPs I had to use the full path to the style sheet as relative paths did not seem to work after calling an action. There is a description if you search the archives. - Original Message - From: Unnikrishnan [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, November 23, 2007 6:05 AM Subject: How to include CSS file in struts Hello I am new to struts and started building a sample application . I would like to know how a css file should be included in struts2 . and where should I include the file exactly (in which folder). Could any one please help thanks Unnikrishnan -- View this message in context: http://www.nabble.com/How-to-include-CSS-file-in-struts-tf4859909.html#a1390 7378 Sent from the Struts - User mailing list archive at Nabble.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]
Re: param tag won't work!
well actually I've also tried with href=#url but it doesn't work yet.. newton.dave wrote: Is it rendering properly? (I'm actually a little surprised you don't have to use the # character, eg. href=#url--I thought you did.) --- slideharmony [EMAIL PROTECTED] wrote: hi, I'm using the following code in my jsp: s:url id=url action=Test s:param name=test value=test/ /s:url s:a href=%{url}Link/s:a the following code for my action: package prova.actions; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Test extends ActionSupport { public String execute() throws Exception { return SUCCESS; } private String test; private String getTest() { return test; } private void setTest(String test) { this.test = test; } } Here is my struts.xml: package name=test extends=struts-default action name=Test class=actions.Test result/Test.jsp/result /action /package and finally my Test.jsp: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title /head body h2s:property value=test//h2 /body /html It should print test right? But it doesn't print nothing! And I have logged the request parameter map, the test parameter doesn't appear! Any ideas -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13899935 Sent from the Struts - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13909084 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to include CSS file in struts
Hellopathing scenarios with css are *usually* relative to the tag which invokes the stylesheet I would recommend creating a base css property which you could then use in your build-script e.g. http://mail-archives.apache.org/mod_mbox/struts-dev/200012.mbox/[EMAIL PROTECTED] dojo javascript paths are accomplished via relative path or by invokingRegisterModulePath(Module,Prefix) http://dojotoolkit.org/pipermail/dojo-checkins/2006-August/009561.htmlHTHMartin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. If you look at the struts2-showcase and see where they are there. They are in the root directory (WebContent) under styles. In the JSPs I had to use the full path to the style sheet as relative paths did not seem to work after calling an action. There is a description if you search the archives. - Original Message - From: Unnikrishnan [EMAIL PROTECTED] To: user@struts.apache.org Sent: Friday, November 23, 2007 6:05 AM Subject: How to include CSS file in struts Hello I am new to struts and started building a sample application . I would like to know how a css file should be included in struts2 . and where should I include the file exactly (in which folder). Could any one please help thanks Unnikrishnan -- View this message in context: http://www.nabble.com/How-to-include-CSS-file-in-struts-tf4859909.html#a1390 7378 Sent from the Struts - User mailing list archive at Nabble.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] _ Share life as it happens with the new Windows Live.Download today it's FREE! http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007
remote div diff behavior in 2.1.x
hi, Sorry I tested example1.jsp and it is not the same use-case as mine. If you try example4.jsp in the showcase under Ajax remote DIV you will see the same problem I have happening there i.e. you have to wait 5 seconds while it displays loading now which I think is wrong. Now I strongly SUSPECT this is what's going on: - There was a new delay parameter which I suppose means to not render the DIV until delay time has elapsed. example4.jsp sets delay to 1000 millisecs but the delay is of 5000 sharp smells like a BUG. - The updateFreq means after first render how long to wait for the next render which is 5 secs and works fine. By observation I think there is a BUG that delay is being ignored and updateFreq is being used as delay instead, which explains why you have to wait initially 5 seconds in example4.jsp and not 1 second. Fixing example4.jsp will also fix my problem TIA, Regards, Giovanni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wizard like Screens
My suggestion would be to checkout the scope plug-in or WebFlow and the WebFlow plug-in. - Gary Radha Krishna wrote: Hi, I have a wizard like screen where i need to pass the selected values (2 text box) at first page to last page,last page to again first page. Can anyone tell me the best solution how could i achive this without storing values in to Session? Thanks. - Never miss a thing. Make Yahoo your homepage. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Dojo] Pass topic parameters to action
s:url var=ajaxTest action=AjaxInfo s:param name=uid value=userid / /s:url a onmouseover=dojo.event.topic.publish('/request')Show Info/a sx:bind listenTopics=/request href=%{#ajaxTest} targets=userInfoBar/ Should work just fine. The url already has userid added to it. You can also wire the dojo request directly to the onmouseover event with some javascript s:url var=ajaxTest action=AjaxInfo s:param name=uid value=userid / /s:url a id=infoLinkShow Info/a script dojo.event.connect(dojo.byId(infoLink),onmouseover, function(){ dojo.io.bind({ url: s:property value=%{#ajaxTest} /, load: function(type, data, evt){ var target = dojo.byId(userInfoBar); target.innerHTML = data; }, mimetype: text/html }); }); /script In general, to get parameters through a topic, you can just add parameters to your handler function. script dojo.event.topic.subscribe(/request, function(arg1,arg2,arg3){ dojo.io.bind({ url: s:property value=%{#ajaxTest} /?uid=+arg1, load: function(type, data, evt){ var target = dojo.byId(userInfoBar); target.innerHTML = data; }, mimetype: text/html }); }); /script -nick -Original Message- From: Matthew (IRQ) [mailto:[EMAIL PROTECTED] Sent: November 22, 2007 5:12 PM To: user@struts.apache.org Subject: [Dojo] Pass topic parameters to action Hi there, I'm using Struts 2.1.1 with the new dojo plugin library and I stumpled over the following problem for which I couldn't find any solution yet even after hours of searching the net. The application I'm building is a small calendar application that shows your absences in a monthly view. What I'd like to add is some kind of info bar that dynamically loads additional information as soon as the user hovers over an absence. At the moment, I'm using a parameterized url for each single absence (within an iterator): div id=userInfoBar/div s:url id=ajaxTest value=/AjaxInfo.action s:param name=uid value =userid/s:param /s:url sx:a href=%{ajaxTest} targets=userInfoBarShow Info/sx:a This now generates lots of ajax source code and it only works when I click on the link (but I want that it also works when I just move over the link with the mouse). From what I've seen this is possible with the bind tag and so I'd like to have is the following: s:a onmouseover=dojo.event.topic.publish('/request', userid)Show Info/sx:a sx:bind listenTopics=/request href=%{ajaxTest} targets=userInfoBar/ But how do I pass the userid object to my action? Every help is welcomed. Greetings, Matthias -- View this message in context: http://www.nabble.com/-Dojo--Pass-topic-parameters-to-action-tf4858767.html#a13904168 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE OF CONFIDENTIALITY This communication including any information transmitted with it is intended only for the use of the addressees and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you receive this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium. If the above disclaimer is not properly readable, it can be found at www.td.com/legal AVERTISSEMENT DE CONFIDENTIALITE Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement aux destinataires susmentionnés, est confidentiel. Si vous nêtes pas le destinataire prévu ou un agent responsable de la livraison de ce courriel, tout examen, divulgation, copie, impression, reproduction, distribution, ou autre utilisation dune partie de ce courriel est strictement interdit de même que toute intervention ou abstraction à cet égard. Si vous avez reçu ce message par erreur ou sans autorisation, veuillez en aviser immédiatement lexpéditeur par retour de courriel ou par un autre moyen et supprimer immédiatement cette communication entière de tout système électronique. Si l'avis de non-responsabilité ci-dessus n'est
RE: remote div diff behavior in 2.1.x
It would be helpful to know a bit more detail such as whether or not you're using XhrPost and progid for XMLHttpRequest connection objectWhich Version of Dojo are you implementing with?Which version Browser?Bedankt Martin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. hi! In version 2.0.x the remote DIV UI tag was initially rendering the content of the DIV by immediately invoking the target action. In version 2.1.x on the other hand, remote DIV does not initially render the content of the target action, I did some research and tried using the new parameter autoStart=true but does not work either. In version 2.1.x you have to wait the updateFreq before you see anything rendered ... Please have a look at the example with title *Ajax UI tags were moved to the new dojo plugin ...* placed under: http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x The example illustrates using the remote DIV in a JSP before and after migrating to 2.1.x I experience the problem described in exactly that example. TIA, regards, Giovanni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Your smile counts. The more smiles you share, the more we donate. Join in. www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline
Re: is there any book on struts 2 in the market.................
http://www.manning.com/dbrown/ On Nov 22, 2007 5:07 AM, wicketshafi [EMAIL PROTECTED] wrote: Hello,, is there any book on struts2 in the market... if it is there please send a message. regards -Shafi -- View this message in context: http://www.nabble.com/is-there-any-book-on-struts-2--in-the-market.-tf4855723.html#a13894838 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Scott [EMAIL PROTECTED]
Re: [Dojo] Pass topic parameters to action
if you use the formId attribute, that form will be submitted in the request. musachy On Nov 23, 2007 11:03 AM, Engelking, Nicholas [EMAIL PROTECTED] wrote: s:url var=ajaxTest action=AjaxInfo s:param name=uid value=userid / /s:url a onmouseover=dojo.event.topic.publish('/request')Show Info/a sx:bind listenTopics=/request href=%{#ajaxTest} targets=userInfoBar/ Should work just fine. The url already has userid added to it. You can also wire the dojo request directly to the onmouseover event with some javascript s:url var=ajaxTest action=AjaxInfo s:param name=uid value=userid / /s:url a id=infoLinkShow Info/a script dojo.event.connect(dojo.byId(infoLink),onmouseover, function(){ dojo.io.bind({ url: s:property value=%{#ajaxTest} /, load: function(type, data, evt){ var target = dojo.byId(userInfoBar); target.innerHTML = data; }, mimetype: text/html }); }); /script In general, to get parameters through a topic, you can just add parameters to your handler function. script dojo.event.topic.subscribe(/request, function(arg1,arg2,arg3){ dojo.io.bind({ url: s:property value=%{#ajaxTest} /?uid=+arg1, load: function(type, data, evt){ var target = dojo.byId(userInfoBar); target.innerHTML = data; }, mimetype: text/html }); }); /script -nick -Original Message- From: Matthew (IRQ) [mailto:[EMAIL PROTECTED] Sent: November 22, 2007 5:12 PM To: user@struts.apache.org Subject: [Dojo] Pass topic parameters to action Hi there, I'm using Struts 2.1.1 with the new dojo plugin library and I stumpled over the following problem for which I couldn't find any solution yet even after hours of searching the net. The application I'm building is a small calendar application that shows your absences in a monthly view. What I'd like to add is some kind of info bar that dynamically loads additional information as soon as the user hovers over an absence. At the moment, I'm using a parameterized url for each single absence (within an iterator): div id=userInfoBar/div s:url id=ajaxTest value=/AjaxInfo.action s:param name=uid value =userid/s:param /s:url sx:a href=%{ajaxTest} targets=userInfoBarShow Info/sx:a This now generates lots of ajax source code and it only works when I click on the link (but I want that it also works when I just move over the link with the mouse). From what I've seen this is possible with the bind tag and so I'd like to have is the following: s:a onmouseover=dojo.event.topic.publish('/request', userid)Show Info/sx:a sx:bind listenTopics=/request href=%{ajaxTest} targets=userInfoBar/ But how do I pass the userid object to my action? Every help is welcomed. Greetings, Matthias -- View this message in context: http://www.nabble.com/-Dojo--Pass-topic-parameters-to-action-tf4858767.html#a13904168 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] NOTICE OF CONFIDENTIALITY This communication including any information transmitted with it is intended only for the use of the addressees and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you receive this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium. If the above disclaimer is not properly readable, it can be found at www.td.com/legal AVERTISSEMENT DE CONFIDENTIALITE Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement aux destinataires susmentionnés, est confidentiel. Si vous n'êtes pas le destinataire prévu ou un agent responsable de la livraison de ce courriel, tout examen, divulgation, copie, impression, reproduction, distribution, ou autre utilisation d'une partie de ce courriel est strictement interdit de même que toute intervention ou abstraction à cet égard. Si vous avez reçu ce message par erreur ou sans autorisation, veuillez en aviser immédiatement l'expéditeur par retour de
Issue with Type Conversion and Select Boxes
Hi, I am using Struts 2.0.11. I am running into an issue when using type converters and pre-populating corresponding select boxes. I defined a type converter in xwork-conversion.properties and everything works for normal text fields (converter is called perfectly). The problem I have occurs when pre-populating select boxes. Let's assume that I have a class Foo that has a field 'id'. In my converter method 'convertToString' will return a String representation of the id field (integer) and method 'convertFromString' will set the 'id' field of Foo. This works fine for text fields (I know the setup may not make perfect business sense but I hope it illustrates the problem) Let's further assume that I have a select box with a list of Foos. s:select list=foos name=foo To illustrate my propblem I left off the attributes 'listValue' and 'listKey'. In this particuliar case shouldn't the type converter (implicitly) be called for both value and key? Unfortunately the converter is only called for the 'labels'. The 'values' are retrieved by calling toString() on the Foo class which I did not anticipate to happen. As another work-around I tried this: s:select list=foos name=foo listKey=id Now my list of foos is populated correctly BUT no value in the select box is pre-selected, although the field 'foo' has a matching entry in 'foos'. I am assuming that the problem might be that name=foo is using the converter and the key is populated by calling foo.getId() and therefore returning an integer? Is this possibly an issue and worth opening a Jira ticket or do I miss something here in my setup? Thanks a lot in advance! Regards, Gunnar Hillert -- View this message in context: http://www.nabble.com/Issue-with-Type-Conversion-and-Select-Boxes-tf4864875.html#a13921943 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wizard like Screens
Hi, I have a wizard like screen where i need to pass the selected values (2 text box) at first page to last page,last page to again first page. Can anyone tell me the best solution how could i achive this without storing values in to Session? Thanks. - Never miss a thing. Make Yahoo your homepage.
struts2 blank application request parameters
I'm really going crazy with struts2 and request parameters, for example look at the following struts2blankapplication code: h3Languages/h3 ul li s:url id=url action=HelloWorld s:param name=request_localeen/s:param /s:url s:a href=%{url}English/s:a /li li s:url id=url action=HelloWorld s:param name=request_localees/s:param /s:url s:a href=%{url}Espanol/s:a /li /ul Ok, here it add a request parameter called request_locale to the url to set the language.. Here is the action: public class HelloWorld extends ExampleSupport { public String execute() throws Exception { setMessage(getText(MESSAGE)); return SUCCESS; } public static final String MESSAGE = HelloWorld.message; private String message; public String getMessage() { return message; } public void setMessage(String message) { this.message = message; } } Ok, how can it set the language if it don't retrieve the request_locale parameter?? Anybody could explain me how request parameters works? :-( -- View this message in context: http://www.nabble.com/struts2-blank-application-request-parameters-tf4861986.html#a13913083 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: param tag won't work!
no, it's not! it doesn't render nothing.. newton.dave wrote: Is it rendering properly? --- slideharmony [EMAIL PROTECTED] wrote: well actually I've also tried with href=#url but it doesn't work yet.. newton.dave wrote: Is it rendering properly? (I'm actually a little surprised you don't have to use the # character, eg. href=#url--I thought you did.) --- slideharmony [EMAIL PROTECTED] wrote: hi, I'm using the following code in my jsp: s:url id=url action=Test s:param name=test value=test/ /s:url s:a href=%{url}Link/s:a the following code for my action: package prova.actions; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Test extends ActionSupport { public String execute() throws Exception { return SUCCESS; } private String test; private String getTest() { return test; } private void setTest(String test) { this.test = test; } } Here is my struts.xml: package name=test extends=struts-default action name=Test class=actions.Test result/Test.jsp/result /action /package and finally my Test.jsp: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title /head body h2s:property value=test//h2 /body /html It should print test right? But it doesn't print nothing! And I have logged the request parameter map, the test parameter doesn't appear! Any ideas -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13899935 Sent from the Struts - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13909084 Sent from the Struts - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13912926 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: param tag won't work!
Is it rendering properly? --- slideharmony [EMAIL PROTECTED] wrote: well actually I've also tried with href=#url but it doesn't work yet.. newton.dave wrote: Is it rendering properly? (I'm actually a little surprised you don't have to use the # character, eg. href=#url--I thought you did.) --- slideharmony [EMAIL PROTECTED] wrote: hi, I'm using the following code in my jsp: s:url id=url action=Test s:param name=test value=test/ /s:url s:a href=%{url}Link/s:a the following code for my action: package prova.actions; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Test extends ActionSupport { public String execute() throws Exception { return SUCCESS; } private String test; private String getTest() { return test; } private void setTest(String test) { this.test = test; } } Here is my struts.xml: package name=test extends=struts-default action name=Test class=actions.Test result/Test.jsp/result /action /package and finally my Test.jsp: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title /head body h2s:property value=test//h2 /body /html It should print test right? But it doesn't print nothing! And I have logged the request parameter map, the test parameter doesn't appear! Any ideas -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13899935 Sent from the Struts - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13909084 Sent from the Struts - User mailing list archive at Nabble.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]
Re: remote div diff behavior in 2.1.x
The showcase 2.1.1 remote DIV example1.jsp works just fine. It immediately calls the action that renders the DIV upon start i.e. you never see the Initial Content message because the DIV is rendered immediately. The only difference between my code and the showcase example AFAICT is that I use Tiles but I will need to investigate more ... regards, Giovanni Giovanni Azua wrote: btw Sorry I missed including that I experience this issue with Struts 2.1.1 build yesterday from svn ... I know, I love living on the edge :) no seriously for my app I have only found this little small issue everything else works like a dream :) Best regards, Giovanni Giovanni Azua wrote: hi! In version 2.0.x the remote DIV UI tag was initially rendering the content of the DIV by immediately invoking the target action. In version 2.1.x on the other hand, remote DIV does not initially render the content of the target action, I did some research and tried using the new parameter autoStart=true but does not work either. In version 2.1.x you have to wait the updateFreq before you see anything rendered ... Please have a look at the example with title *Ajax UI tags were moved to the new dojo plugin ...* placed under: http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x The example illustrates using the remote DIV in a JSP before and after migrating to 2.1.x I experience the problem described in exactly that example. TIA, regards, Giovanni - 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]
S:iterator
Hi .. Here is my Requirement: I am getting a list of colleges from Database and displaying it in a page like the following: I have the college POJO List and I will displayL CollegeId CollegeName 123456789 Abcdefghijkl I know how to do the above : Now I have to make a decision about the college; which type of college it is say Grade: A grade or B grade and the region of that college and I have to make a decision whether that college is good or not. Screen looks like the following: CollegeId CollegeName Grade(DropDown) Region(Dropdown) Accept/Rejct (Radio Button). How can I proceed with the above requirement == Here dynamically I have to attach the values to the college POJO the others ( Grade, Region and Accept/Reject). Any Suggestions ?? Regards, Rajagopal Y (Raj) HCU-Consulting Enterprise Solutions. Phone: (C) +91-9986584084 / (W)+91-80-6658 3685. DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
Re: remote div diff behavior in 2.1.x
btw Sorry I missed including that I experience this issue with Struts 2.1.1 build yesterday from svn ... I know, I love living on the edge :) no seriously for my app I have only found this little small issue everything else works like a dream :) Best regards, Giovanni Giovanni Azua wrote: hi! In version 2.0.x the remote DIV UI tag was initially rendering the content of the DIV by immediately invoking the target action. In version 2.1.x on the other hand, remote DIV does not initially render the content of the target action, I did some research and tried using the new parameter autoStart=true but does not work either. In version 2.1.x you have to wait the updateFreq before you see anything rendered ... Please have a look at the example with title *Ajax UI tags were moved to the new dojo plugin ...* placed under: http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x The example illustrates using the remote DIV in a JSP before and after migrating to 2.1.x I experience the problem described in exactly that example. TIA, regards, Giovanni - 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]
remote div diff behavior in 2.1.x
hi! In version 2.0.x the remote DIV UI tag was initially rendering the content of the DIV by immediately invoking the target action. In version 2.1.x on the other hand, remote DIV does not initially render the content of the target action, I did some research and tried using the new parameter autoStart=true but does not work either. In version 2.1.x you have to wait the updateFreq before you see anything rendered ... Please have a look at the example with title *Ajax UI tags were moved to the new dojo plugin ...* placed under: http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x The example illustrates using the remote DIV in a JSP before and after migrating to 2.1.x I experience the problem described in exactly that example. TIA, regards, Giovanni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing Database fields using struts
Hello I would like to know how to get field values into a combo box. I am using EJB/struts and IDE netbeans. could any one help me out or give me a URL so that I can check it Thanks Unnikrishnan -- View this message in context: http://www.nabble.com/Accessing-Database-fields-using-struts-tf4860628.html#a13909546 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: param tag won't work!
ok, hope to find the solution slideharmony wrote: hi, I'm using the following code in my jsp: s:url id=url action=Test s:param name=test value=test/ /s:url s:a href=%{url}Link/s:a the following code for my action: package prova.actions; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Test extends ActionSupport { public String execute() throws Exception { return SUCCESS; } private String test; private String getTest() { return test; } private void setTest(String test) { this.test = test; } } Here is my struts.xml: package name=test extends=struts-default action name=Test class=actions.Test result/Test.jsp/result /action /package and finally my Test.jsp: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title /head body h2s:property value=test//h2 /body /html It should print test right? But it doesn't print nothing! And I have logged the request parameter map, the test parameter doesn't appear! Any ideas -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13909544 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: param tag won't work!
It seems everything is correct, let me try the same on my machine.. -Original Message- From: slideharmony [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 2:53 PM To: user@struts.apache.org Subject: Re: param tag won't work! well actually I've also tried with href=#url but it doesn't work yet.. newton.dave wrote: Is it rendering properly? (I'm actually a little surprised you don't have to use the # character, eg. href=#url--I thought you did.) --- slideharmony [EMAIL PROTECTED] wrote: hi, I'm using the following code in my jsp: s:url id=url action=Test s:param name=test value=test/ /s:url s:a href=%{url}Link/s:a the following code for my action: package prova.actions; import java.util.Iterator; import java.util.Map; import java.util.Set; public class Test extends ActionSupport { public String execute() throws Exception { return SUCCESS; } private String test; private String getTest() { return test; } private void setTest(String test) { this.test = test; } } Here is my struts.xml: package name=test extends=struts-default action name=Test class=actions.Test result/Test.jsp/result /action /package and finally my Test.jsp: %@ taglib prefix=s uri=/struts-tags % html head titleHello World!/title /head body h2s:property value=test//h2 /body /html It should print test right? But it doesn't print nothing! And I have logged the request parameter map, the test parameter doesn't appear! Any ideas -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13899935 Sent from the Struts - User mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/param-tag-won%27t-work%21-tf4857419.html#a13909084 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem There is no Action mapped for namespace / and action name hellome. -
Struts.xml should be in WEB-INF\classes folder. Try it out... If not Change the s:url as follows: s:a href=s:url action=HelloWorldAction / Say Hello !!! /s:a Regards, Rajagopal Y (Raj) HCU-Consulting Enterprise Solutions. Phone: (C) +91-9986584084 / (W)+91-80-6658 3685. -Original Message- From: kushi [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 2:51 PM To: user@struts.apache.org Subject: RE: problem There is no Action mapped for namespace / and action name hellome. - structs.xml is placed at C:\Documents and Settings\Admin\structExample\src\java\structs.xml action is called in index.jsp like s:url action= /s:urlHello Rajagopal_Yendluri wrote: Where is your struts.xml placed How you are invoking the action from your jsp ??? Regards, Rajagopal Y (Raj) HCU-Consulting Enterprise Solutions. Phone: (C) +91-9986584084 / (W)+91-80-6658 3685. -Original Message- From: kushi [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 1:23 PM To: user@struts.apache.org Subject: problem There is no Action mapped for namespace / and action name hellome. - Hello i am beginner,i have just make a small hello program .when i run my program i fine this error. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception There is no Action mapped for namespace / and action name hellome. - [unknown location] com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.ja va:186) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(Strut sActionProxyFactory.java:41) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:4 94) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher .java:419) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi lter.java:368) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. Apache Tomcat/5.5.17 please let me suggest why this error is encounter. Thanks kushi -- View this message in context: http://www.nabble.com/problem-There-is-no-Action-mapped-for-namespace--- and-action-name-hellome.---tf4860176.html#a13908169 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-There-is-no-Action-mapped-for-namespace--- and-action-name-hellome.---tf4860176.html#a13909082 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
RE: problem There is no Action mapped for namespace / and action name hellome. -
structs.xml is placed at C:\Documents and Settings\Admin\structExample\src\java\structs.xml action is called in index.jsp like s:url action= /s:urlHello Rajagopal_Yendluri wrote: Where is your struts.xml placed How you are invoking the action from your jsp ??? Regards, Rajagopal Y (Raj) HCU-Consulting Enterprise Solutions. Phone: (C) +91-9986584084 / (W)+91-80-6658 3685. -Original Message- From: kushi [mailto:[EMAIL PROTECTED] Sent: Friday, November 23, 2007 1:23 PM To: user@struts.apache.org Subject: problem There is no Action mapped for namespace / and action name hellome. - Hello i am beginner,i have just make a small hello program .when i run my program i fine this error. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception There is no Action mapped for namespace / and action name hellome. - [unknown location] com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.ja va:186) org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(Strut sActionProxyFactory.java:41) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:4 94) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher .java:419) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFi lter.java:368) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs. Apache Tomcat/5.5.17 please let me suggest why this error is encounter. Thanks kushi -- View this message in context: http://www.nabble.com/problem-There-is-no-Action-mapped-for-namespace--- and-action-name-hellome.---tf4860176.html#a13908169 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/problem-There-is-no-Action-mapped-for-namespace---and-action-name-hellome.---tf4860176.html#a13909082 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]