Cannot retrieve definition for form bean null

2003-10-07 Thread victor gusz
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

Re: Cannot retrieve definition for form bean null

2003-10-07 Thread victor gusz
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

selected form values cannot be sent in nested form

2003-10-02 Thread victor gusz
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

Re: selected form values cannot be sent in nested form

2003-10-02 Thread victor gusz
: 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

handle multiple input formats in a loop

2003-09-26 Thread victor gusz
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

is it possible to get object stored in session from another action in this action?

2003-09-15 Thread victor gusz
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

newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread victor gusz
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: html:submitbean:message key=button.save//html:submit html:hidden property=method

RE: newbie question: how to handle two dispatchAction methods in a jsp page?

2003-09-12 Thread victor gusz
value=save/ html:submit bean:messagekey=button.save/ /html:submit html:submit onclick=document.formName.method.value='delete' bean:message key=button.delete/ /html:submit -Original Message- From: victor gusz [mailto:[EMAIL PROTECTED] Sent: Friday, September 12, 2003 13

Has anyone used Hibernate with Struts?

2003-08-09 Thread victor gusz
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

question about data formating using display taglib

2003-08-01 Thread victor gusz
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

RE: question about data formating using display taglib

2003-08-01 Thread victor gusz
--- Yansheng Lin [EMAIL PROTECTED] wrote: Yes it does. style type=text/css .tableRowHeader { align:center; } .tableRowOdd { align:center; } .tableRowEven { align:center; } ... /style -Original Message- From: victor

another question display taglib: its requestURI

2003-08-01 Thread victor gusz
Hi, Has anyone used display taglib from the following address: http://edhill.its.uiowa.edu/ How do you specify the requestURI parameter of display:table 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,

RE: question about data formating using display taglib

2003-08-01 Thread victor gusz
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,

reset() in my action form is not working

2003-07-30 Thread victor gusz
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

Re: reset() in my action form is not working

2003-07-30 Thread victor gusz
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

RE: reset() in my action form is not working

2003-07-30 Thread victor gusz
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

RE: How to interate through a collection?

2003-07-23 Thread victor gusz
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

RE: How to interate through a collection?

2003-07-23 Thread victor gusz
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

RE: How to interate through a collection?

2003-07-23 Thread victor gusz
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,