RE: [OT] Re: [S2] Obtaining Session/Request Object
First off, I think the notion of sighting wikipedia as the end all be all of a definition is highly suspect. After all, anyone can change the Wikipedia at any time. For instance http://en.wikipedia.org/wiki/The_Colbert_Report#_note-34 "On January 29, 2007, Colbert cited the case where Microsoft was alleged to have hired someone [52] to tamper with Wikipedia..." I like all the responses that Google has for define:servlet. You may want to quote one of them for your answer. http://www.google.com/search?q=define:Servlet This does sound a lot like a homework question or an interview question. Hope I helped, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of yitzle Sent: Tuesday, May 29, 2007 4:29 PM To: Struts Users Mailing List Subject: Re: [OT] Re: [S2] Obtaining Session/Request Object On 5/29/07, Dave Newton <[EMAIL PROTECTED]> wrote: > I'm starting to feel like we're doing your > homework for you. I'm sorry you feel that way. If you prefer not to reply, its your prerogative. I am just trying to understand the technology. > A "Struts project" is not a servlet. A Struts project > might *have* a servlet (and in S1 is pretty much > guaranteed to have at least one), but in S2 they might > be considered an anomaly. "JSPs are compiled into Java Servlets by a JSP compiler. [1]" The way I see it, so long as the result is a JSP page, the project contains a servlet. Granted, one can easily write the viewer component without JSP, but I think its fair to guess that a large percentage of Struts projects make use of JSP pages. > A web application is any application that runs on the > web, like a blog, or web email, or social site, or > whatever. A blog, web mail or social site that was written in Java and runs on or inside a standard server such as Tomcat would be a servlet, though. As far as I can tell, it meets all the requirements. It sounds like, for any program (end point; excluding containers, such as Tomcat, Struts, etc) accessed via a browser, if it is written in Java, it is a servlet, otherwise its a web application. How about a solid clear definition of a servlet? [1] http://en.wikipedia.org/wiki/JavaServer_Pages - 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: Nested struts forms, dynamic allocation using javascript or ??
Something you might consider, the Date object not only contains the time, but also the date. Joda - http://joda-time.sourceforge.net/ - is a good API for time structures. Far superior to the Date class in Java, because it has: - LocalTime class that represents time only. - Period class for representing periods of time - others I find that if the Business Objects are architected correctly the presentation layer, the form, becomes self describing. Hope I helped, Big Mike -Original Message- From: Peter L. Berghold [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 2:46 PM To: Struts Users Mailing List Subject: Nested struts forms, dynamic allocation using javascript or ?? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi folks, I've taken more than a couple stabs at trying to do this and failed. Miserably enough that I'm not going to even attempt to post my efforts here.. they're really ugly. What I'm trying to create is a form that folks that are not all that computer literate can feel comfortable using to enter in events to be added to a club's calendar of events. The first part of this task is really straight forward in that I collect the name of the event, its description and yadaydaydada... Here's where it gets hairy and the idea of using nested forms came to mind: The events can have at least one day but can be over more than one day with each day possibly having a different start time and finish time. To that end I have a bean: public class EventDayBean { private Date start_time; private Date end_time; private Date event_day; | | /* getters/setters follow **/ }; that will be included in the action form as a collection (ArrayList). Given that each event will have at least one day I want to either a) have a field where they user inputing the data specifies how many days the event is and have some mechanism to (re)populate the nested portion of the form (growing/shrinking the collection as needed) or b) have a button that says "add day" or ?? What I'm interested in here is input from those that might have implemented such a thing as to what strategies are viable to solve this. Thanks in advance for your thoughts - --- Peter L. Berghold Unix Professional [EMAIL PROTECTED] AIM: redcowdawg YIM: blue_cowdawg "Those who fail to learn from history are condemned to repeat it." -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGVz0LUM9/01RIhaARAp3OAKCm8T2HbIyulfXE5iP0g4fhJ6ug4gCePgip Lg+Jd2YeiopAdDPlj/oGwDE= =MbDu -END PGP SIGNATURE- - 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: Where is the Source?
You know that package naming is arranged like it is for a reason. I went to http://opensymphony.com/ on a hunch. Then found an XWork button on the left hand side column. It lead me to http://opensymphony.com/xwork/. There you can download zips that contain the source of multiple versions of their software. Hope I helped, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 23, 2007 10:49 AM To: Struts Users Mailing List Subject: Where is the Source? Can someone please point me to the com.opensymphony.xworks2.* source code? -- Scott [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?
A form of approximately 1800 form elements is causing "java.lang.OutOfMemoryError: Java heap space". When 1000 form elements are used, no such error. The environment: - JBoss 4.0.5 - Struts 1.1 - A jsp page using struts tags to start and end the form block. Then insidethe form, xslt is used to parse a 300 element xml document into 6 input tags per element. What seems to be happening, the reset method for the form bean is called. Then before any set methods are called, the OOME is thrown. Should I throw out (REALLY DON'T WANT TO) the xslt and use nested form beans properties? Any help would be appreciated. Mike Forsberg Software Engineer II APM - APC T 512.602.0220 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?
Posting to the group, since I believe a solution has been found. It appears that my issue was something like a buffer overrun in the jsp. A solution that we are testing is the following code snippet: <%@ page buffer="1024kb" autoFlush="false" %> The current size might be a little overkill but, my issue seems to have vanished. Thanks goes to my co-worker you pointed me in this direction. Thanks, also to the great support from this mailing list. Mike -Original Message- From: Forsberg, Mike Sent: Friday, May 18, 2007 2:06 PM To: user@struts.apache.org Subject: OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong? A form of approximately 1800 form elements is causing "java.lang.OutOfMemoryError: Java heap space". When 1000 form elements are used, no such error. The environment: - JBoss 4.0.5 - Struts 1.1 - A jsp page using struts tags to start and end the form block. Then inside the form, xslt is used to parse a 300 element xml document into 6 input tags per element. What seems to be happening, the reset method for the form bean is called. Then before any set methods are called, the OOME is thrown. Any help would be appreciated. Mike Forsberg Software Engineer II APM - APC T 512.602.0220 - 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: submitting a form using java script on IE
>From my understanding the onSubmit="return true;" code just allows the form to be submitted. See http://www.htmlcodetutorial.com/forms/_FORM_onSubmit.html I noticed in your pasted output, the "this" is removed from the anchor tags. Could this be the issue? Mike -Original Message- From: Mansour [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 12:53 PM To: Struts Users Mailing List Subject: Re: submitting a form using java script on IE Mike: I tried this one too and I tried using getElementByID and I tried document.all[frmName], they all worked fine. I was able to get the object successfully under FF and IE. I view the contents of this object using simple alerts and JS console in FF. The problem is when submitting the form the event doens't go through. S2 adds the attribute for the form (onSubmit="return true;") which is making things harder. It works fine when using buttons to submit but with anchors it's not . :/ Forsberg, Mike wrote: > I've never used the this.parentNode.submit() in a form. That might only > work in Firefox. (I make no claim if this is true, as I didn't look it > up) > > What I generally use is document.formName.submit(). > > Hope I helped, > > Mike > > -Original Message- > From: Mansour [mailto:[EMAIL PROTECTED] > Sent: Monday, May 21, 2007 12:22 PM > To: Struts Users Mailing List > Subject: submitting a form using java script on IE > > I need a table that contains anchors. Clicking on this anchors executes > the Action I need. The table is working great in FF but not in IE. IE is > > getting the form object correctly put can not submit it. When I click on > > the anchor in IE, the page stays there and no action is taken. When I > looked at the html source generated I found that s2 automatically sets > the onSubmit attribute of the form. I am not sure if this has anything > to do with IE not submitting the form. > > > > > name="frm${row.id}" id="frm${row.id}" > > href="javascript://"> > > > > > > > > the generated html looks like: > > > > > > ID > email > Address > Phone > Fax > > > > > action="/fe/getAccountById.action" method="post"> > > > John Smith > > > > > > > > > Any Idea what's going on or what to do to fix this ? > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: submitting a form using java script on IE
I've never used the this.parentNode.submit() in a form. That might only work in Firefox. (I make no claim if this is true, as I didn't look it up) What I generally use is document.formName.submit(). Hope I helped, Mike -Original Message- From: Mansour [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 12:22 PM To: Struts Users Mailing List Subject: submitting a form using java script on IE I need a table that contains anchors. Clicking on this anchors executes the Action I need. The table is working great in FF but not in IE. IE is getting the form object correctly put can not submit it. When I click on the anchor in IE, the page stays there and no action is taken. When I looked at the html source generated I found that s2 automatically sets the onSubmit attribute of the form. I am not sure if this has anything to do with IE not submitting the form. the generated html looks like: ID email Address Phone Fax JohnSmith
OOM Error (Java heap space) from 1800+ form elements, am I doing something wrong?
A form of approximately 1800 form elements is causing "java.lang.OutOfMemoryError: Java heap space". When 1000 form elements are used, no such error. The environment: - JBoss 4.0.5 - Struts 1.1 - A jsp page using struts tags to start and end the form block. Then inside the form, xslt is used to parse a 300 element xml document into 6 input tags per element. What seems to be happening, the reset method for the form bean is called. Then before any set methods are called, the OOME is thrown. Any help would be appreciated. Mike Forsberg Software Engineer II APM - APC T 512.602.0220 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]