Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: when I stepped into the code, I found obj is of type string So I assumed there's something wrong I am doing in passing the argument, or setting some variable ... or Here's where my problem IS. You still haven't said if

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Sorry: Forgot about the tag lib : I am using datagrid lib from jakarta-taglibs-sandbox. Dave Newton wrote: --- [EMAIL PROTECTED] wrote: I don't know exactly why I am using this, but from what I understand to make the variable available for the page. Being a newbie, I decided to t

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: type="billing.AccountBean" scope="request"/> I don't know exactly why I am using this, but from what I understand to make the variable available for the page. Being a newbie, I decided to try every single bit

Re: Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
Laurie Harper wrote: [EMAIL PROTECTED] wrote: All I am trying to do is to retrieve an account from A DB and using taglib (data grid) to display the associated invoice with this account. Should this be a two-days task. Maybe something wrong with me. here's my controller: package billing; i

Accessing a Bean from a bean using EL with STRUTS 2 - I really need help

2007-04-07 Thread mansour77
All I am trying to do is to retrieve an account from A DB and using taglib (data grid) to display the associated invoice with this account. Should this be a two-days task. Maybe something wrong with me. here's my controller: package billing; import com.opensymphony.xwork2.ActionSupport; pub

Re: Accesssing a bean from a jsp without struts tags

2007-04-07 Thread mansour77
Dave Newton wrote: --- joey <[EMAIL PROTECTED]> wrote: struts set action object in valuestack,so you can't refere to it in your tag. Values exposed to OGNL from an Action are also available through JSP EL due to the StrutsRequestWrapper. getAttribute calls are elegated to the OGNL stac

Re: Accesssing a bean from a jsp without struts tags

2007-04-06 Thread mansour77
[EMAIL PROTECTED] wrote: joey wrote: add request.setAttribute("invoices",accountBean.getInvoices()) in your action execute method. How do I do this is struts 2. I couldn't find any way to get my hand on the Request object. On 4/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I though

Re: Accesssing a bean from a jsp without struts tags

2007-04-06 Thread mansour77
joey wrote: add request.setAttribute("invoices",accountBean.getInvoices()) in your action execute method. On 4/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I thought that was set automatically by struts through the getters ! OK, let me include more details, may be someone will underst

Re: Memory leak when using DB connection ??

2007-04-06 Thread mansour77
This is one of the problem using connection pooling. This page explains it and offers a solution: http://tomcat.apache.org/tomcat-5.0-doc/jndi-datasource-examples-howto.html I hope it helps. Balazs Michnay wrote: Dear Struts users, Finally I managed to get DB-handling working, but I'm expe

Re: Accesssing a bean from a jsp without struts tags

2007-04-06 Thread mansour77
OK, let me include more details, may be someone will understand what I am talking about. I have a list that belongs to a Bean that's wet in an action class. public AccountBean getAccountBean() { return accountBean; } AccountBean has an ArrayList calles invoices. now im my jsp, I need to d

Accesssing a bean from a jsp without struts tags

2007-04-06 Thread mansour77
I have a bean that is set in an action class. I can access it using struts tag, but what do I do if I need to access it from somewhere else ? for example, if I need to access it from a list iterator. Thanks. - To unsubscribe

Re: populating a bean

2007-04-06 Thread mansour77
I found it. Never mind. And thank you a lot for your help. [EMAIL PROTECTED] wrote: Hartrich, James CTR USTRANSCOM J6 wrote: So you are going from the jsp to the action, correct? That being the case, you are doing this correctly so far. Make certain to have an encapsulated property for account

Re: populating a bean

2007-04-06 Thread mansour77
Hartrich, James CTR USTRANSCOM J6 wrote: So you are going from the jsp to the action, correct? That being the case, you are doing this correctly so far. Make certain to have an encapsulated property for accountBean in your accountManager action. On submit the accountBean object will be constructe

populating a bean

2007-04-06 Thread mansour77
how do I populate a bean values from a jsp page ? here's what I need to do: this page http://struts.apache.org/2.0.6/docs/how-do-i-populate-a-form-bean-and-get-the-value-using-the-taglib.html how to read the values from the bean but not how to populate them. Or may be I am not gettin

Re: [s2] [Friday] [OT] [BBQ] ant build file eclipse webtools

2007-04-06 Thread mansour77
If you are using tomcat plug-in www.sysdeo.com/*eclipse*/*tomcat**plugin , *you will have the option to deply the application to a war file. just right click on the project in the Navigation View, ---> tomcat ---> Export to war file sets in project properties. Wesley Wannemacher wrote: Hel

Re: MVC 2 design, how to

2007-04-06 Thread mansour77
Ted Husted wrote: It sounds like that you might want to use the ModelDriven approach, How many approach there is ? Where can I read about them ? where the AccountManager is the model object. If I move the business logic to the action class then this becomes MVC1. From my understanding the

MVC 2 design, how to

2007-04-05 Thread mansour77
Hello every one: I am trying to write a little application to familiarize myself with struts 2. I am trying to design the application using mvc2. the application is nothing but a small utility for invoices. It store, retrieves and update invoices. Each invoice belongs to an Account in the DB.

Re: confused about validation

2007-04-02 Thread mansour77
Ted Husted wrote: On 4/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: The first thing I would do is fixing the broken links. For example if you go to the page: http://struts.apache.org/2.0.6/docs/basic-validation.html The problem with links like these is that the path is pointing to the "j

Re: confused about validation

2007-04-02 Thread mansour77
Ted Husted wrote: I'd say that someone who is learning the framework is in the best position to know what other newbies need to know. What specific changes could we (meaning you) make to the documentation so that someone else wouldn't have the same problem. On 4/1/07, [EMAIL PROTECTED] <[EMAIL

Re: confused about validation

2007-04-01 Thread mansour77
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: Thank you Dave: It's working fine now. Cool... Always feel free to post with documentation observations or make a comment directly on the Wiki page in question; there's a growing body of documentation editors churning away :) d. __

Re: confused about validation

2007-04-01 Thread mansour77
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: Now I getting totally different error: HTTP Status 500 - *type* Exception report *message* *description* _The server encountered an internal error () that pre

Re: confused about validation

2007-04-01 Thread mansour77
[EMAIL PROTECTED] wrote: Ted Husted wrote: On 4/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: For example what is the name space here in struts applications ? * http://struts.apache.org/2.x/docs/namespace-configuration.html The namespace should not affect validation. but nothing is ha

Re: confused about validation

2007-04-01 Thread mansour77
Ted Husted wrote: On 4/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: For example what is the name space here in struts applications ? * http://struts.apache.org/2.x/docs/namespace-configuration.html The namespace should not affect validation. but nothing is happening and no validation

confused about validation

2007-04-01 Thread mansour77
Hello everyone: I am totally new to struts. I decided to go with struts 2. But the documentation is not complete, and I believe alot of you may agree with me. The example on this page http://struts.apache.org/2.0.6/docs/validating-input.html says that the validation file follows the name con

Re: can anyone recommended books which will help me learn Struts 2

2007-04-01 Thread mansour77
That's exactly what I was talking about. I can not follow the tutorial or the example if there's a page missing or a piece of code that is missing. Dave Newton wrote: --- Laurie Harper <[EMAIL PROTECTED]> wrote: [...] all worked fine. An error occurred: http://svn.apache.org/repos/

Re: can anyone recommended books which will help me learn Struts 2

2007-04-01 Thread mansour77
Do you have any idea about who maintains the documentation. I am new to struts, and started with Struts 2. The examples pages on the validation section are all broken. Whom should I contact for this? Ted Husted wrote: On 3/29/07, Cecilia Castillo <[EMAIL PROTECTED]> wrote: I do have some is

DataGrid, Struts layout and Struts 2

2007-03-22 Thread mansour77
Hello every one: I am looking for a way to pass a resultSet or cachedRowSet to a jsp page, and display the results in a dataGrid. The behavior I am looking for is similar to the one offered by Struts Layout http://struts.application-servers.com/intro/layout.html. Unforetunatly Struts-Layout doe

struts 2.0 migration

2007-03-15 Thread mansour77
hello every one: I am new to struts but I have a collection of examples and tutorials (I believe for struts 1). I have been reading through these tutorial and now that I am about to start some thing, I found that struts 2.0 is totally different. For example, there's no struts-html.tld in struts