Re: About Action Form

2004-10-17 Thread Koon Yue Lam
ok, I get your point now, ^^ thank for help ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How can I get the real path of application in struts

2004-10-17 Thread Michael McGrady
Action is part of a "common Java application", so, you can do the same, if you want. yu wang wrote: In JSP I can use the application.getRealPath("") to get the real path. and In common Java Application I use System.getProperty("user.dir"). But How can I get Real path in ACTION. thanks in advance

Re: How can I get the action forward path to be dynamic

2004-10-17 Thread Michael McGrady
You can do better than this, if, for example, you use Tiles. You can create whatever forward you want, irrespective of the mapping.e.g., return new ActionForward(path). Chacko, Raj wrote: Hi I'm new to Struts. In one of our new project development, we are planning to use Struts. One of our requ

Re: About Action Form

2004-10-17 Thread Michael McGrady
Hi, Lam, I assume you are asking me what I was talking about. (When addressing something said, it is a good idea to leave that somewhere in your reply.) Anyhow, if you are asking about what I said, here is a bit. Usually there are a given number of options discussed for maintaining state with

RE: How can I get the real path of application in struts

2004-10-17 Thread David G. Friedman
Yu (you!)! I think you just solved your own problem: getServlet().getServletContext().getRealPath(); Regards, David -Original Message- From: yu wang [mailto:[EMAIL PROTECTED] Sent: Sunday, October 17, 2004 9:41 PM To: [EMAIL PROTECTED] Subject: How can I get the real path of application

RE: html:hidden values are null

2004-10-17 Thread David G. Friedman
Are you positive you have the html:hidden tag within the appropriate html:form tag? What is your html:form tag for either JSP? Regards, David -Original Message- From: Rosemary Philip [mailto:[EMAIL PROTECTED] Sent: Sunday, October 17, 2004 10:48 PM To: [EMAIL PROTECTED] Subject: html:hid

html:hidden values are null

2004-10-17 Thread Rosemary Philip
I am having a problem getting values to another page when I try to use html:hidden. I have a list of employee objects in a page. on clicking on an employee from the list, the next page should show me more details on the employee. for getting the values across, i am trying to use html:hidden. but f

Re: Where is the html:label tag (another workaround)???

2004-10-17 Thread Leandro Melo
I realized there is another work around. I will use the bean:write tag and also create one hidden field for each bean:write with the specific property. This way, this fields are reset in case of validation failure. And i don't update these other fields in ejb layer, there's no worry about exposing

How can I get the action forward path to be dynamic

2004-10-17 Thread Chacko, Raj
Hi I'm new to Struts. In one of our new project development, we are planning to use Struts. One of our requirement is to have dynamic pages loaded depending on some business logic. My question is this: I would like to know if there is a way to pass a variable to the path properties of the tag f

Re: About Action Form

2004-10-17 Thread Koon Yue Lam
thanks to Frank ! and Michael: what u mean an application level multi-threaded program? is it a background deamon / process to store data that likely to be store by session ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

How can I get the real path of application in struts

2004-10-17 Thread yu wang
In JSP I can use the application.getRealPath("") to get the real path. and In common Java Application I use System.getProperty("user.dir"). But How can I get Real path in ACTION. thanks in advance kingfish - To unsubscribe, e-ma

RE: Help ! Question regarding Action and Form Bean(trouble remains )!

2004-10-17 Thread Joe Hertz
You don't associate 2 form beans to one action. Ever. You can't. Why do you think you need to associate 2 forms to an action? What is it about the action that makes want it to use two forms? What is it exactly youre trying to accomplish here? The reason your example complained about a missing get

Re: struts and caching

2004-10-17 Thread Sebastian Hennebrueder
It is just an idea but may be it helps When you implement your form bean as class, you could create two more fields with two boolean fieldTempAIsSet String fieldTempB boolean fieldTempBIsSet in the setter of fieldTempB you check if fieldTempAIsSet is true, if so you write to origFieldA and origFi

Re: Access context from Action?

2004-10-17 Thread e-denton Java Programmer
Nevermind... servlet.getServletContext() getServlet().getServletContext() request.getSession().getServletContext() - Original Message - From: "e-denton Java Programmer" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Sunday, October 17, 2004 1:00 PM Subj

Access context from Action?

2004-10-17 Thread e-denton Java Programmer
Hi, I want to set an application attribute from an Action. How do I get the ServletContext from an Action? Thx. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: logic:iterate and table display

2004-10-17 Thread Rick Reumann
Erik Weber wrote the following on 10/16/2004 10:28 PM: but I think there's not much the Struts tags do that the JSTL tags can't do. Agreed, except the html form and netsted tags are nice and handy. Other than those I try and use JSTL (although I'm also using logic:present tag since it provides

RE: Help ! Question regarding Action and Form Bean(trouble remains )!

2004-10-17 Thread t t
Hi, Joe, Thank you for your quick answer. I did let A1 forward to J2 first. But I didn't figure out how to associate both F1 and F2 to A1. That's why I broke A1 to A1 and A2, and associate F1 to A1, F2 to A2. But It still didn't work. And that's why I came up the original question: How to associat

Displaying multiple messages from a resource bundle

2004-10-17 Thread Langdon Stevenson
Hi I need to display multiple paragraphs of text taken from a resource bundle in a page and am trying to understand how it can be done. I am sure I have seen it explained somewhere on the web, but haven't been able to find it again. For instance, following is the resource file entry: message.t