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 stack

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;

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;

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: jsp:useBean id=accountBean 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

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: jsp:useBean id=accountBean type=billing.AccountBean scope=request/ I don't know exactly why I am using this, but from

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: 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

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:

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: s:form action=accountManager method=post s:textfield name=accountBean.firstName label=First Name / s:submit /s:submit /s:form this page

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

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

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

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 ArrayListInvoices calles invoices. now im my jsp, I

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

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 understand

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 thought

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-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.

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

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