Re: Cannot retrieve definition for form bean null
Is it absolutely necessary to use a form bean for every action? I will only let user to click on a link and forward it to another page while sending a value. Should I define a form bean for this? And how can I do it? regards, --- victor gusz <[EMAIL PROTECTED]> wrote: > Hi, > > I got the above error when I ran my struts app. I am > not > using a form for this action since I only need to > diaply it. And I am using Tiles framework for this. > > Appreciate any help. > > > > __ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot retrieve definition for form bean null
Hi, I got the above error when I ran my struts app. I am not using a form for this action since I only need to diaply it. And I am using Tiles framework for this. Appreciate any help. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: selected form values cannot be sent in nested form
hehe, nice joke. I was asking if anyone has encountered this kind of problem before. I cannot post around 20 files. I am just asking about this based on you guys experiences. This did not happen when I was using html form. Weird behavior. regards, --- Jeff Kyser <[EMAIL PROTECTED]> wrote: > After extensive analysis, I have determined that > your > code is behaving exactly as written. > > -jeff 'kreskin lives!' kyser > > On Thursday, October 2, 2003, at 08:01 AM, victor > gusz wrote: > > > Hi, > > > > I am using nested forms to populate my pages and > set > > up > > input forms. but selected items cannot be sent or > > previously stored values are sent. Once I set all > > previous values to null in my parent form or > nested > > forms, null is sent, selected items are ignored. > If > > anyone knows what's wrong with my code, please > > enlighten me. > > > > regards, > > > > __ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product > search > > http://shopping.yahoo.com > > > > > - > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
selected form values cannot be sent in nested form
Hi, I am using nested forms to populate my pages and set up input forms. but selected items cannot be sent or previously stored values are sent. Once I set all previous values to null in my parent form or nested forms, null is sent, selected items are ignored. If anyone knows what's wrong with my code, please enlighten me. regards, __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
handle multiple input formats in a loop
Hi, I have a tricky problem: I will have a loop that iterates through a list of inputs. The input formats will be either textfield or drop downbox. I will only know the number of or input formats during runtime. For example, my page will display a text filed, a drop down box; or two drop down boxes, one textfield; etc. Since input formats and number of them are input by users, I will only be able to get this info at runtime. The question is, once a user selects an item from drop down, inputs an item into textfield, how can I set/get these variable strings into/from my form bean? Has anyone had this kind of tricky problem? I appreciate your input. rgds __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
is it possible to get object stored in session from another action in this action?
Hi, I have the following flow: Action1-->page1-->Action2 in Action1, I put a object in session: session.setAttribute("myObj", myObj); page1 then can retrieve this object from session and display it on the page. After I click on a button on page1, user will be forwarded to Action2. I try to get the object stored in session from Action1: session.getAttribute("myObj"); but I could only get error message saying: myObj is not in any scope. What should I do to send this object from Action1 to Action2? regards, __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: newbie question: how to handle two dispatchAction methods in a jsp page?
Hi, Jerome: Thanks for helping. I tried out your code. Strangely, if I click on either save button, or delete button, now they both forward to save page. It seems action still forwards to save method even I clicks on delete button. Any idea? regards, --- Jerome Devost <[EMAIL PROTECTED]> wrote: > Hi Victor, > > If you have both > and buttons in the same > form, both method are submitted when you pressed > either button. You could > change the value with javascript code before > submitting the form. Something > like this might work : > > > > > > > onclick="document.formName.method.value='delete'"> > > > > > > -Original Message- > From: victor gusz [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2003 13:33 > To: [EMAIL PROTECTED] > Subject: newbie question: how to handle two > dispatchAction methods in a jsp > page? > > > Hi, guys: > > I have two methods in a DispatchAction class: save, > delete > > and I have two buttons in a jsp page: save, delete. > > In order to successfully save and then forward to > another > page, I can do the following: > > key="button.save"/> > > > This works fine. But if I add code related with > delete > method just following the above code: > key="button.delete"/> > > > Everything fails. > > I am wondering how I can handle multiple > DispatchAction methods in a jsp page? > > regards, > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
newbie question: how to handle two dispatchAction methods in a jsp page?
Hi, guys: I have two methods in a DispatchAction class: save, delete and I have two buttons in a jsp page: save, delete. In order to successfully save and then forward to another page, I can do the following: This works fine. But if I add code related with delete method just following the above code: Everything fails. I am wondering how I can handle multiple DispatchAction methods in a jsp page? regards, __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Has anyone used Hibernate with Struts?
Hi, Guys: I want to learn Hibernate, Hibernate site does not seem to provide good examples. Has anyone have this kind simple running example for starters to follow? regards, __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question about data formating using display taglib
Thanks, You are right. But it seems it only renders internal stylesheets. regards, --- Yansheng Lin <[EMAIL PROTECTED]> wrote: > It's the default classname for the rows and columns, > etc. if you take a look at > the source code. > Presentation in html should be separated from the > content, that's what css is > all about:). Try CSS, you will discover the power > of it. > > Use the style anywhere you want, external, internal, > as long as your jsp page > refers to it, it's going to render it. > > Hope this helps! > e.org > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another question display taglib: its requestURI
Hi, Has anyone used display taglib from the following address: http://edhill.its.uiowa.edu/ How do you specify the requestURI parameter of if I want to display multiple pages if number of results is huge? The taglib's examples seem to link results pages to different pages, is it a bug or so? regards, __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: question about data formating using display taglib
Thanks, Does it? How do you use this stylesheet in its tags? The following stylesheet is used in its examples' html pages, its not in its jsp source, just because its tags cannot format data? Maybe I am just not clear about this, please clarify. regards, Victor --- Yansheng Lin <[EMAIL PROTECTED]> wrote: > > Yes it does. > > > .tableRowHeader { >align:center; > } > .tableRowOdd { > align:center; > } > .tableRowEven { > align:center; > } > > ... > > > -Original Message- > From: victor gusz [mailto:[EMAIL PROTECTED] > Sent: August 1, 2003 11:05 AM > To: [EMAIL PROTECTED] > Subject: question about data formating using display > taglib > > > Hi, > > Has anyone used display taglib from the following > address: > http://edhill.its.uiowa.edu/ > > It seems this tag does not have data-formating > ability > to > align titles or data. Does anyone konw a workaround > about this? > > regards, > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
question about data formating using display taglib
Hi, Has anyone used display taglib from the following address: http://edhill.its.uiowa.edu/ It seems this tag does not have data-formating ability to align titles or data. Does anyone konw a workaround about this? regards, __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: reset() in my action form is not working
Thanks, Amit, its working now. --- Amit Kirdatt <[EMAIL PROTECTED]> wrote: > Have you tried > request.setAttribute(mapping.getAttribute(), new > SampleForm()); ? > Although I do agree with Michael. > > -Original Message- > From: victor gusz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 30, 2003 3:32 PM > To: [EMAIL PROTECTED] > Subject: reset() in my action form is not working > > > Hi, > > I define a reset function and seset every form > variables to null, since I want to reset all inputs > to > null after I hit submit button. I also put the > following > line before I return ActionForward in my action > class: > > request.setAttribute(mapping.getAttribute(), > sampleForm); > > But its not working, after I hit submit button, old > values > are still there. Am I missing something? > > thanks, > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > This e-mail, including attachments, may include > confidential and/or > proprietary information, and may be used only by the > person or entity to > which it is addressed. If the reader of this e-mail > is not the intended > recipient or his or her authorized agent, the reader > is hereby notified that > any dissemination, distribution or copying of this > e-mail is prohibited. If > you have received this e-mail in error, please > notify the sender by replying > to this message and delete this e-mail immediately. > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: reset() in my action form is not working
Thanks, its working now. --- Michael Ruppin <[EMAIL PROTECTED]> wrote: > That's not what the ActionForm.reset() method is > for. > It's called prior to population of your ActionForm > from the request, to set values for things which may > not be in the request [but should be], like > unchecked > checkboxes. > > What you need is some ActionForm.setEmpty() method > to > call before forwarding to whatever code renders your > HTML. > > m > > --- victor gusz <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I define a reset function and seset every form > > variables to null, since I want to reset all > inputs > > to > > null after I hit submit button. I also put the > > following > > line before I return ActionForward in my action > > class: > > > > request.setAttribute(mapping.getAttribute(), > > sampleForm); > > > > But its not working, after I hit submit button, > old > > values > > are still there. Am I missing something? > > > > thanks, > > > > > > > > __ > > Do you Yahoo!? > > Yahoo! SiteBuilder - Free, easy-to-use web site > > design software > > http://sitebuilder.yahoo.com > > > > > - > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site > design software > http://sitebuilder.yahoo.com > > - > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
reset() in my action form is not working
Hi, I define a reset function and seset every form variables to null, since I want to reset all inputs to null after I hit submit button. I also put the following line before I return ActionForward in my action class: request.setAttribute(mapping.getAttribute(), sampleForm); But its not working, after I hit submit button, old values are still there. Am I missing something? thanks, __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to interate through a collection?
Thanks, Yes, there are 8 implicit varibales available in scriptlets. I also have a dilemma about this: I have to create a empty box when user is directed to this page. So, I use request.setAttribute("employees", employees) in action class to init a empty box. If I do this again in my scriptlet, when tag look in page/request/session/application scope for the named collection, will that cause conflicts? Is there any easier way to init an empty box? regards, --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > > I am not sure how I can get the > > selectedItem from the first box, send it through > > actionServlet->action class, get results from > > database, then use html:options to fill the second > > box. I am forced to try any option I have. > > Can you do request.setAttribute() in the scriptlet? > The tag > will look in page/request/session/application scope > for the named > collection. > > -- > Wendy Smoak > Applications Systems Analyst, Sr. > Arizona State University, PA, IRM > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to interate through a collection?
Thanks, Cecile: You are absolutely right, I should use html:options. I actually used that for the other box. But this one is a dependent box, I am trying to use a JavaScript function to dynamically fill the second box. I am stuck here. I am not sure how I can get the selectedItem from the first box, send it through actionServlet->action class, get results from database, then use html:options to fill the second box. I am forced to try any option I have. I believe this is one tricky part many people face, like what many people asked about this. It took me a long time trying to figure it out. If anyone has a clean solution to do dependent box population using Struts stuff, I will really appreciate it. regards, P. S.: sorry, I picked up my friend's topic, we both working on that. --- Cecile Mercado <[EMAIL PROTECTED]> wrote: > You really shouldn't be querying the database from > the presentation layer > (JSP) but in answer to your question, the only way I > can see to use > is using scriptlets again: > > > <%= > employee.getName()%> > > > In the future, try to use or > with a > collection of options. > > - Cecile > > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to interate through a collection?
Thanks, Wendy: Sorry, I did not make it clear. I actually got the collection directly from database using JSP scriptlet. I just do not know how to correctly display options this way. --- Wendy Smoak <[EMAIL PROTECTED]> wrote: > Rick wrote: > > If I have a collection of employees, an employee > has a > > name and id (int). How can I iterate through this > > collection and put every employee between > > ? > > Use (note the plural, not 'option') > and feed it the > collection. You don't need to do the iteration > manually. This has the > added bonus of Struts pre-selecting the correct > values based on the form > bean. > > -- > Wendy Smoak > Applications Systems Analyst, Sr. > Arizona State University, PA, IRM > __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]