Re: about s:iterator
Sove Error By this is for first element Sébastien Domergue wrote: > > When you are inside an iterator, the context becomes the objet as it is > in a "for" except that there is no explicit name for the property > handled. In struts, it's a generic name : [0]. If you just want to > display the toString() result, you just have to write : > without more parameter. If you want to print a special field of your > bean, you can access it the same way as in the jsp with value="..."/> where [0] will be the current object in the iterator. > > If you want more examples, you should go [1] and see the third example. > > Regards > > [1] : http://struts.apache.org/2.x/docs/iterator.html > > > > Hardik Shah a écrit : >> Thnaks >> >> but when i print like >> >> >> >> it shows value in all same like [1,1] >> i could not understand properly >> >> what it do >> please help more and be more descriptive >> >> >> Sébastien Domergue wrote: >> >>> Hi, >>> >>> in an iterator, the object can be accessed by [0]. After that, it is as >>> in Java. So, with something like that it should work : >>> >>> >>> >>> >>> >>> >>> Regards >>> >>> Sébastien >>> >>> Hardik Shah a écrit : >>> >>>> hi >>>> i am using struts 2.0.11.2 >>>> >>>> i m filling vector somthing like >>>> >>>> while (rs.next()) { >>>>Object [] record = { >>>>new Integer(rs.getInt("NodeId")), // Node >>>> Id >>>>rs.getString("NodeDisplayName"), >>>> // Display Name >>>>new Integer(rs.getInt("ParentNodeId")), >>>> // Parent Id >>>>rs.getString("FolderName"), >>>> // Folder Name >>>>rs.getString("CanReadFlag"), >>>> // Can Read Flag >>>>rs.getString("CanAddFlag"), >>>> // Can Add Flag >>>>rs.getString("CanEditFlag"), >>>> // Can Edit Flag >>>>rs.getString("canDeleteFlag"), >>>> // Can Delete Flag >>>>new Integer(rs.getInt("iformNo")), >>>> // No of comments >>>>rs.getString("Filename"), >>>> //filename >>>>rs.getDate("ModifyOn"), >>>> //file last modified on >>>>rs.getString("UserDefineVersionId") >>>>}; >>>>nodeInfo.addElement(record); >>>> >>>> >>>> >>>> how can i get particular field at jsp side in s:iterator >>>> >>>> somthing like >>>> that >>>> >>>> >>>> >>>> >>>> >>>> but i can not please help me >>>> >>>> >>>> >>>> >>> - >>> 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 > -- View this message in context: http://www.nabble.com/about-s%3Aiterator-tp22119987p22134055.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: about s:iterator
yap you right newton.dave wrote: > > > > Maybe try [0][n]? > > But yuck... That's a horribly brittle way to write code. At *least* use > a map so you don't have to rely on positioning :/ Consider using an > actual object, as well, thus eliminating the bulk of this question. > > Dave > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: http://www.nabble.com/about-s%3Aiterator-tp22119987p22132774.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: about s:iterator
Thnaks but when i print like it shows value in all same like [1,1] i could not understand properly what it do please help more and be more descriptive Sébastien Domergue wrote: > > Hi, > > in an iterator, the object can be accessed by [0]. After that, it is as > in Java. So, with something like that it should work : > > > > > > > Regards > > Sébastien > > Hardik Shah a écrit : >> hi >> i am using struts 2.0.11.2 >> >> i m filling vector somthing like >> >> while (rs.next()) { >> Object [] record = { >> new Integer(rs.getInt("NodeId")), // Node >> Id >> rs.getString("NodeDisplayName"), >> // Display Name >> new Integer(rs.getInt("ParentNodeId")), >> // Parent Id >> rs.getString("FolderName"), >> // Folder Name >> rs.getString("CanReadFlag"), >> // Can Read Flag >> rs.getString("CanAddFlag"), >> // Can Add Flag >> rs.getString("CanEditFlag"), >> // Can Edit Flag >> rs.getString("canDeleteFlag"), >> // Can Delete Flag >> new Integer(rs.getInt("iformNo")), >> // No of comments >> rs.getString("Filename"), >> //filename >> rs.getDate("ModifyOn"), >> //file last modified on >> rs.getString("UserDefineVersionId") >> }; >> nodeInfo.addElement(record); >> >> >> >> how can i get particular field at jsp side in s:iterator >> >> somthing like >> that >> >> >> >> >> >> but i can not please help me >> >> >> > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > -- View this message in context: http://www.nabble.com/about-s%3Aiterator-tp22119987p22120181.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
about s:iterator
hi i am using struts 2.0.11.2 i m filling vector somthing like while (rs.next()) { Object [] record = { new Integer(rs.getInt("NodeId")), // Node Id rs.getString("NodeDisplayName"), // Display Name new Integer(rs.getInt("ParentNodeId")), // Parent Id rs.getString("FolderName"), // Folder Name rs.getString("CanReadFlag"), // Can Read Flag rs.getString("CanAddFlag"), // Can Add Flag rs.getString("CanEditFlag"), // Can Edit Flag rs.getString("canDeleteFlag"), // Can Delete Flag new Integer(rs.getInt("iformNo")), // No of comments rs.getString("Filename"), //filename rs.getDate("ModifyOn"), //file last modified on rs.getString("UserDefineVersionId") }; nodeInfo.addElement(record); how can i get particular field at jsp side in s:iterator somthing like that but i can not please help me -- View this message in context: http://www.nabble.com/about-s%3Aiterator-tp22119987p22119987.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Performance issue
Thanks For Showing interest ,but i dont know how to turn on profiliing ,please help me i think its takes data from database in real speed but when trying to display in new browser window takes time,i dont think time spent in action processing Thnaks Hardik Hi Hardik, what takes this time, page rendering in browser or result processing or maybe You are talking about action processing time? Also You can turn on profiling in struts2 to see how much time is spent where. Best greetings, Paweł Wielgus. -- View this message in context: http://www.nabble.com/Performance-issue-tp20949820p20991993.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Performance issue
hi i have use struts 2.0.11.2 and sitemesh for my project it all works fine but it kills performance i can not fiind where the problem,so i am write here ,it might somebody help me i am opening new window using javascript str="ViewWorkspaceUserRights.do?workSpaceId="+workSpaceId+"&userCode="+userId; win3 =window.open(str,"ThisWindow","toolbar=no,directories=no,menubar=no,scrollbars=yes,height=700,width=1000,resizable=no,titlebar=no top=100") in jsp of new window i have used s:iterator tag there are approximately more than 500 records for display in table but it takes more than 1 minute ,there is no problem at database side plese help me if anybody can do -- View this message in context: http://www.nabble.com/Performance-issue-tp20949820p20949820.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About incresing file upload size in Struts 2
can anybody give me detailed configuration to increase size of file upload in struts 2.0.11.2 please help me -- View this message in context: http://www.nabble.com/About-incresing-file-upload-size-in-Struts-2-tp20633816p20633816.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sitemesh and frame
can anybody give me sitemesh and frame example frame is not showing while i am using with sitemesh is there any specific settings? please help me -- View this message in context: http://www.nabble.com/sitemesh-and-frame-tp20299797p20299797.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to use struts.serve.static
hi i have change this property to false and copy static folder in /struts/ but it doesnt work ,i dont know why any body gives me idea? trying to use performance tuning concept in struts docs help me -- View this message in context: http://www.nabble.com/how-to-use-struts.serve.static-tp20027812p20027812.html 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: change border of field when error comes(Custom CSS)
let me explain your idea works on error message ,it creates border on error messages i am trying something that it chages border of element(textbox,combobox) on which error comes so i am iterating fieldErrors List from valuestack and get its key as elementname and using #, create dynamically css class corresponding to element id so it automatically detect and apply it thanks Jishnu Viswanath wrote: > > That's the way you should not do it, I still don't understand what are you > doing there, though > > There is an attribute called cssClass and cssStyle > > > > . className { > border:1px solid #cc; > } > > > > > Try it, it should work, I never tried with fieldError cos I never used it. > > Regards, > > Jishnu Viswanath > > Software Engineer > > *(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: Hardik Shah [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2008 4:03 PM > To: user@struts.apache.org > Subject: Re: change border of field when error comes(Custom CSS) > > > thanks > > i dont know how to create custom theme for that but > > i have done manually > > > <s:iterator value="fieldErrors"> > #<s:property value="key"/>, > </s:iterator> > { > border-color: #FFE6F7; > > } > > > > > Torsten Krah wrote: >> >> Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah: >>> can anybody gives idea >> >> Make a custom theme for your tag you want to get a custom border and add >> your >> css definition there. >> Another solution would be, to use s:if and look in the fielderror List >> for >> a >> failure for your field and if one exists, use a custom css definition. >> >> -- >> Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. >> Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html >> >> Really, I'm not out to destroy Microsoft. That will just be a >> completely unintentional side effect." >> -- Linus Torvalds >> >> >> > > -- > View this message in context: > http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20010973.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Any comments or statements made in this email are not necessarily those of > Tavant Technologies. > The information transmitted is intended only for the person or entity to > which it is addressed and may > contain confidential and/or privileged material. If you have received this > in error, please contact the > sender and delete the material from any computer. All e-mails sent from or > to Tavant Technologies > may be subject to our monitoring procedures. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20027603.html 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: Struts2+YUI
hi you can use for getting array list of valuestack but you should setter and getter for this arraylist for accessing it from jsp side shekher awasthi wrote: > > Hi All, > > I am trying to integrate struts2 with YUI ,but facing some problems with > this. I want that when my action get called by YUI it must return a > arrayList of string which i must be able to handle using the YUI. > > For this i took the help of example from YUI site and able to hit the > action > but my problem is that how can i get the access to the arraylist which my > action is populating when its execute methos is called .below i m pasting > the code from my action calss as well as the YUI code. > Plaese let me know how can i get this arraylist in my YUI code > * > YUI CODE* > > > > > var div = document.getElementById('container'); > > var handleSuccess = function(o){ > alert("pass"); > > > if(o.responseText !== undefined){ > alert("test11"); > > div.innerHTML = "Transaction id: " + o.tId + " "; > div.innerHTML += "HTTP status: " + o.status + " "; > div.innerHTML += "Status code message: " + o.statusText + > " "; > div.innerHTML += "HTTP headers: "; > div.innerHTML += "" + > o.getAllResponseHeaders > + "
Server response: " + o.getList().toString + > " "; > div.innerHTML += "Argument object: Object ( [foo] => " + > o.argument.foo + > " [bar] => " + o.argument.bar +" ) "; > } > > > } > > var handleFailure = function(o){ > alert("fail"); > YAHOO.log("The failure handler was called. tId: " + o.tId + ".", > "info", "example"); > > if(o.responseText !== undefined){ > div.innerHTML = ""; > } > } > > var callback = > { > success:handleSuccess, > failure:handleFailure, > argument: { foo:"foo", bar:"bar" } > }; > > var sUrl = "YUITestAction.action"; > > > > function makeRequest(){ > alert("test"); > > var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback); > > > > } > > > *MY ACTION CLASS* > > public class YUITestAction extends ActionSupport{ > > /** > * > */ > private static final long serialVersionUID = 1926031204500756104L; > ArrayList list=new ArrayList(); > public String execute() throws Exception{ > System.out.println("inside the execute method"); > > return SUCCESS; > } > > public ArrayList getList(){ > > list.add("test1"); > list.add("test2"); > list.add("aum"); > list.add("arun"); > list.add("mannu"); > list.add("umesh"); > > return list; > } > } > > any help in this regard is much appricaited > > --shekher > > -- View this message in context: http://www.nabble.com/Struts2%2BYUI-tp20010680p20011032.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
- Transaction id: " + o.tId + "
"; > div.innerHTML += "- HTTP status: " + o.status + "
"; > div.innerHTML += "- Status code message: " + o.statusText + > "
Re: change border of field when error comes(Custom CSS)
thanks i dont know how to create custom theme for that but i have done manually <s:iterator value="fieldErrors"> #<s:property value="key"/>, </s:iterator> { border-color: #FFE6F7; } Torsten Krah wrote: > > Am Donnerstag, 16. Oktober 2008 09:14:19 schrieb Hardik Shah: >> can anybody gives idea > > Make a custom theme for your tag you want to get a custom border and add > your > css definition there. > Another solution would be, to use s:if and look in the fielderror List for > a > failure for your field and if one exists, use a custom css definition. > > -- > Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge. > Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html > > Really, I'm not out to destroy Microsoft. That will just be a > completely unintentional side effect." > -- Linus Torvalds > > > -- View this message in context: http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20010973.html 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: Hibernate and Struts
hope this help to you http://hardik4u.wordpress.com Anoop-9 wrote: > > Hi, > We are looking forward to integrating struts with hibernate in our web > application project. Could you guide us on how to to integrate them. I > tried the hibernate plugin as recommended on the hibernate website, > however that throws a null pointer exception(when i try to instantiate > a session) when i test it in tomcat. > > Relevant piece of code > in struts-config.xml > > className="de.laliluna.hibernate.plugin.HibernatePlugIn"> > property="configFilePath" > value="/hibernate.cfg.xml" /> > property="storeInServletContext" > value="true" /> > > In struts action > try{ServletContext context = request.getSession().getServletContext(); > SessionFactory _factory = (SessionFactory) > > context.getAttribute(HibernatePlugIn.SESSION_FACTORY_KEY); > Session ses = _factory.openSession(); <---this line > throws exception > -- > Anoop Dhanvijay > DA-IICT > > "Most of man's failures were when they didn't realize how close they > were to success, when they finally gave up!" > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Hibernate-and-Struts-tp19985981p20009546.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
change border of field when error comes(Custom CSS)
hi i am using simple theme for struts 2.0.11.2 i have define also works fine , but i want to change border color of particular field when error comes can anybody gives idea thanks in advance -- View this message in context: http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008381p20008381.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
change border of field when error comes(Custom CSS)
hi i am using simple theme for struts 2.0.11.2 i have define also works fine , but i want to change border color of particular field when error comes can anybody gives idea thanks in advance -- View this message in context: http://www.nabble.com/change-border-of-field-when-error-comes%28Custom-CSS%29-tp20008380p20008380.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
can not detect s:url tag when prints dynamically
hi i have used struts 2.0.11.2 and creating menu using yui(not metter what) when i put something like (this thing print in url) i could not understand what is problem help me -- View this message in context: http://www.nabble.com/can-not-detect-s%3Aurl-tag-when-prints-dynamically-tp19987641p19987641.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wait interceptor
it is possible to show wait.jsp in s2.0.11 between from one action to another execution process (means show my wait.jsp when action is on process) -- View this message in context: http://www.nabble.com/wait-interceptor-tp19872439p19872439.html 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: hw to use if tag
when i write my all values are note printed it means each record has attrMatrixValue vector but in it not each has value so i have to apply condition for the property of attrMatrixValue help me, and gives as it has no such thing like var(using struts 2.0.11.2) Sébastien Domergue wrote: > > Hi, > > in your test condition, struts doesn't understand that attrMatrixValue > is a property, you should write something like : > > Using '%{' means that the expression have to be evaluated. > > Regards > > Sébastien > > Hardik Shah a écrit : >> hi >> >> i have vector of vector and i can easily iterate using in >> between >> >> but the problem is that some of the element in vector of vector is null >> >> like >> >> >> >> >> >> >> >> >> >> >> >> <%int srno=1; %> >> >> >> >> >> <%=srno++ %> >> >> >> >> >> >> >> >> >> <%srno=1; %> >> >> - >> how i can put condition for that i am not good in ognl >> >> please help me >> >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- View this message in context: http://www.nabble.com/hw-to-use-if-tag-tp19856372p19857035.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hw to use if tag
hi i have vector of vector and i can easily iterate using in between but the problem is that some of the element in vector of vector is null like <%int srno=1; %> <%=srno++ %> <%srno=1; %> - how i can put condition for that i am not good in ognl please help me -- View this message in context: http://www.nabble.com/hw-to-use-if-tag-tp19856372p19856372.html 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 pass parameter in next action
Thanks for reply and how i can get this parameter in my addattribute action java file using actioncontext or what? Mead Lai wrote: > > class="com.docmgmt.struts.actions.attribute.SaveAttribute"> >attriblist > type="redirect-action">AddComboValue?parm1=${value} > > > append the actionName "AddComboValue?parm1=${value}", but no ".action". > It's OK! > > > On Tue, Oct 7, 2008 at 1:22 PM, Hardik Shah <[EMAIL PROTECTED]> wrote: > >> >> can anybody say how to pass or push parameter in valuestack and get it >> from >> another action in struts 2 >> >> really confused with all valuestack stuff >> >> suppose >> >> i have >> >> >> > class="com.docmgmt.struts.actions.attribute.SaveAttribute" >> method="AddComboValue"> >>/attribute/AttribComboValue.jsp >> >> >> >>> class="com.docmgmt.struts.actions.attribute.SaveAttribute"> >>attriblist >>> type="redirect-action">AddComboValue >> >> >> --- >> >> i want to put my one parameter attrid in request scope when executing >> AddAttribute action if result type ComboForm and want to get from >> AddComboValue action java file in struts 2.0.11.2 >> >> can anybody gives me a way? >> thanks in advance >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/how-to-pass-parameter-in-next-action-tp19851255p19851255.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > BestRegards, > Mead > http://yayisoft.com > > Dick Cavett - "If your parents never had children, chances are you won't > either." > > -- View this message in context: http://www.nabble.com/how-to-pass-parameter-in-next-action-tp19851255p19851925.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to pass parameter in next action
can anybody say how to pass or push parameter in valuestack and get it from another action in struts 2 really confused with all valuestack stuff suppose i have /attribute/AttribComboValue.jsp attriblist AddComboValue --- i want to put my one parameter attrid in request scope when executing AddAttribute action if result type ComboForm and want to get from AddComboValue action java file in struts 2.0.11.2 can anybody gives me a way? thanks in advance -- View this message in context: http://www.nabble.com/how-to-pass-parameter-in-next-action-tp19851255p19851255.html 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: use property of iterator
can i use vector of vector for iterating - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/use-property-of-iterator-tp19810685p19831975.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
use property of iterator
how to use iterator property as variable suppose <%int prevAttrId=-1; %> after each iteration i want to store attrMatrixValue in prevAttrId variable can i use ognl expression or another else for this i m not well experienced in s2 help - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/use-property-of-iterator-tp19810685p19810685.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s2 and tomcat configuration
yap u right i have also use tomcat 5.5 with s2 and works fine in many projects but the thing is that my one live apps run on tomcat 5.0.30 with s1 and java 5 so i have to use same configuration with struts 2 migration thanks newton.dave wrote: > > --- On Wed, 10/1/08, Hardik Shah wrote: >> StandardContext[/struts2-mailreader-2.0.11.2] >> Exception starting filter Struts2 >> javax.xml.transform.TransformerFactoryConfigurationError: >> Provider org.apache.xalan.processor.TransformerFactoryImpl not found > > Looks like you don't have all the classes you need. It may just be because > you're using a relatively old version of Tomcat. I run under TC5.5 with no > issues. > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/s2-and-tomcat-configuration-tp19758411p19759348.html 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: s2 and tomcat configuration
i am using tomcat manager to upload war fle newton.dave wrote: > > How did you "import" the WARs? > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/s2-and-tomcat-configuration-tp19758411p19759033.html 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: s2 and tomcat configuration
Thanks for showing interst 2008-10-01 16:54:48 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]] 2008-10-01 16:55:31 StandardContext[/struts2-mailreader-2.0.11.2]Exception starting filter Struts2 javax.xml.transform.TransformerFactoryConfigurationError: Provider org.apache.xalan.processor.TransformerFactoryImpl not found at javax.xml.transform.TransformerFactory.newInstance(Unknown Source) at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167) at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131) at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452) at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:225) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:308) at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:79) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3702) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4329) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277) at org.apache.catalina.core.StandardHost.install(StandardHost.java:832) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/s2-and-tomcat-configuration-tp19758411p19758959.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
s2 and tomcat configuration
hi i am using tomcat 5.0.30 and java 5 ,but when i import s2.0.11.2 apps.war either mail reader or blank it can not be run gives http status 404 i dont know why? please help me - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/s2-and-tomcat-configuration-tp19758411p19758411.html 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: help required to install struts 1.2 plugin for eclipse 3.2
hi i am not well experienced ,but still i want to say my idea, why you require struts plugin for eclipse i never used that,there is a strtus-blank.war,like starter of any project you can just import it as war and start project infact i have created my own struts-sitemesh-yui-hibernate integration.war and use it when start for new project safewraju wrote: > > hi to all, > > I am new to eclipse, can any one help me. i need instructions for > installing struts 1.2 plugin for eclipse 3.2. waiting for you peoples > reply > > -- > Regards, > Narasimha Raju.Naidu > > Hyderabad. > > > uni... > > - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/help-required-to-install-struts-1.2-plugin-for-eclipse-3.2-tp19239631p19267448.html 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: Struts 2 & Hibernate Examples?
you can get war of s2-h3 from http://www.learntechnology.net/content/struts2/struts2_hibernate.jsp another my blog from now http://hardik4u.wordpress.com/category/j2ee/ hope this will help - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/Struts-2---Hibernate-Examples--tp19232693p19267363.html 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 set remoteuser
yes :-) you are right ! i just confused bcoz showing various aspects :confused::confused: Jeromy Evans - Blue Sky Minds wrote: > > > he he, that's also a major decision if you want to go down that path. > I don't recommend jumping after whichever approach seems least effort > (btw, your original approach to use a realm or not using the principal > at all is least initial effort if you don't want to learn another > framework). > > http://code.google.com/p/google-guice/ > > Guice includes a plugin for s2 in their downloads page. It is as simple > to get started with as the spring plugin. Warp includes persistence > module and a better servlet filter. > > http://www.wideplay.com/home > > You can't just switch from spring to guice to no DI. framework. You have > to pick one and take the time to learn it I'm afraid :-). Learning > J2EE's security, spring's security or guice+warp are time well spent. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19177755.html 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 set remoteuser
Jeromy Evans - Blue Sky Minds wrote: > > Yes, others definitely use it with S2 and Spring. It takes substantial > amount of effort to learn. You may have to ask for specific help about > that after going through the tutorials. > > yes you are right ,i have just seen that ,it might be took so much longer time Jeromy Evans - Blue Sky Minds wrote: > > I don't use spring security myself as I mainly use Guice/Warp which > requires a different solution. Spring Security/Acegi is much more common. > could you provide basic stuff or link for implementing Guice/Warp with s2 - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19177247.html 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 set remoteuser
Jeromy Evans - Blue Sky Minds wrote: > > > > Do you mean single sign-on as in across multiple domains or webapps? If > so, this will probably be container specific. > > If you mean a stateless authentication approach (ie. they sign in once, > then each subsequent request includes the credentials so you don't have > to maintain a session for them), then: > > i want use >>If you mean a stateless authentication approach (ie. they sign in once, >>then each subsequent request includes the credentials so you don't have >>to maintain a session for them), this approach in single webapp thanks i should go with spring security ,but it works fine with s2? - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175681.html 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 set remoteuser
Jeromy Evans - Blue Sky Minds wrote: > > Correct. It's not as bad as it first seems if you manage the entries in > the two tables (for tomcat) yourself. > Otherwise the next step is a third party library like Spring Security. > > > try to use jdbcrealm but when submit gives error like HTTP Status 400 - Invalid direct reference to form login page finding solution from 2 days ,even no good tutorial found for that ,i surprised why this topic not included in struts 2 tutorial - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175390.html 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 set remoteuser
my first and last goal about that i want to maintain single sign on without storing user information in session i have also integrated hibernate with it ,can i use for achieve somthing like or not? - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175306.html 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 set remoteuser
Jeromy Evans - Blue Sky Minds wrote: > > > A better approach is to use the container's authentication as intended > so the remoteUser is managed by it.. > > i think u are saying about jdbc realm for container's authentication! - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19175267.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to set remoteuser
hi we can get remoteuser using request.getremoteuser() but how we can set it? - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/how-to-set-remoteuser-tp19174978p19174978.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
realm use in s2
hi i am trying to use jdbc realm with s2 for that i have configured like that i am using eclipse ,so i have changed in server project 's server.xml file like this (first disable the userdatabase realm) and then applying after that i have change in my project's web.xml file like that -- struts2 *.jtp CFASystem *.jtp GET POST PUT DELETE FORM MyFirst Protected Area /Login.jsp /error.jsp admin user allowed admin cfa user allowed cfa --- in login.jsp i have write like -- -- when i try to login this gives error like HTTP Status 400 - Invalid direct reference to form login page where i make mistake? please help me ! it might be not que abt s2 but still expect help! - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/realm-use-in-s2-tp19157022p19157022.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-hibernate-mysql date problem
hi i am using hibernate 3 with s2 my problem is that im mysql table i have field of date type so i have set type date in hb mapping.xml and in pojo(if i am set as string in pojo and mapping file it gives error ) now i have to set date in input as format mm/dd/yy so mysql accepts it automatically and convert in its foramt type(YY-dd-mm) otherwise it return to input result but i want to show it as dd/mm/yy ,what i have to do for this any convertor of s2 apply or what? please help to solve this problem - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/struts-hibernate-mysql-date-problem-tp19104863p19104863.html 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: [OT] Re: sitemesh +yui problem
hi first of all *sir* i really say to thanks about showing interst infact in past i have developed one app using struts 2+sitemesh +BIRT and i got lots of help from you and currently it is works fine Jeromy Evans - Blue Sky Minds wrote: > > It's really a sitemesh question. > > In sitemesh.xml, ensure your is setup only for > "text/html". You don't want it to attempt to decorate other content > types. > In decorators.xml, you can probably decorate /*. You shouldn't need any > exclusions unless you serve undecorated html as well. > > You need to isolate whether your css file is being served accidentally > decorated, or not served at all. Use FireBug to find out. > If it's not being served at you, your problem is not with sitemesh but > with your configuration/deployment of the container. > > > > i can not get perfectly you ,can you be more descriptive about you say(what i have to do for this problem) - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/sitemesh-%2Byui-problem-tp19046813p19053844.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
sitemesh +yui problem
i am trying to use several yui elements in strtus 2.0.11.2 problem is that it can not get its styles (for exp tab shows only in link format ,it can not use tabview.css) when i try to exclude action like cflist.do in decorators.xml then yui works fine (bt my constant view also exclude) i can not understand how to solve this problem y sitemesh filter all this css files please help me according to that thanks in advance - Java/J2EE developer India blogs http://hardik4u.wordpress.com wordpress blog -- View this message in context: http://www.nabble.com/sitemesh-%2Byui-problem-tp19046813p19046813.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]