RE: Fundamental Struts Concept

2004-03-15 Thread Robert Nocera
Ed, I'm not sure I understand your question exactly, but I'll answer the best I can. The only information that is sent to the client is the HTML that you see in the browser. The JSP gets converted to a servlet and the servlet just writes to the HTTPResponse, not the HTTPRequest. The request

RE: dynamic javascript forms

2004-03-15 Thread Robert Nocera
I'm pretty sure you can do it if the text inputs are set up in the form as an Array of Strings and if you create your input tags to match what struts would expect from an array. If you do that, you can have your javascript create the fields dynamically as you said. It sounds like you tried this

RE: Checking if user has a valida session

2004-03-13 Thread Robert Nocera
How about this: public boolean isUserAdmin(HttpServletRequest request) { //Check if the Admin is logged on if (isLogged(request)) { HttpSession session = request.getSession(); LogonForm user = (LogonForm)

RE: [OT] - Request against Session

2004-02-13 Thread Robert Nocera
Mark, My interpretation of that comment was that if a user has two windows open and are going back and forth between the windows, the system may use information from one window to update the information in the session that actually relates to the old window. This would be a pretty poor design,

RE: Calling JSPs directly

2004-02-13 Thread Robert Nocera
Andy, Depending on the complexity of the application, you may want to consider having the user call an action first, not a jsp. The action can do any setup for the jsp page, such as retrieving any collections you may need to populate dropdown lists in the page. Even if the action does nothing

RE: [OT] - Request against Session

2004-02-13 Thread Robert Nocera
Actually, it's not two different sessions if the second window was opened from the first with a popup or a crtl-n or open in new window. -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:30 PM To: Struts Users Mailing List Subject: RE:

RE: [OT] - Request against Session

2004-02-12 Thread Robert Nocera
This is probably even more off topic, but I've seen this mentioned before. From what I can tell of their description of this workflow scope, it looks like it may be helpful as far as ease of use goes, but it doesn't offer any real technical benefit over the use of hidden form fields or sessions,

RE: [OT] - Request against Session

2004-02-12 Thread Robert Nocera
Brian said: Don't use getParameter() to try to get hidden form variables. getParameter() looks for parameters appended to the request URL -- http://www.myhost.com/do/myAction?param1=1param2=2. getParameter() will give you access to param1 and param2. The only reason not to use getParamter to get

RE: [OT] - Request against Session

2004-02-12 Thread Robert Nocera
Shirish, I'm not knocking the workflow concept, my only point earlier was that someone shouldn't think it provides any real difference from session storage except that it will attempt to automatically clear the session when they leave that workflow and they won't have to put that logic in. It's

RE: Reading Context Data

2004-02-12 Thread Robert Nocera
If that code with the user2 variable works, it looks like the user code should work unless there is another MDF_userBean class it is referencing. Can you send the log file of the error you get running the action class you included here? The log file I see is for the previous version of this

RE: [OT] Sending email from struts

2004-02-11 Thread Robert Nocera
You might want to try something like velocity so you can store the text of the e-mail as a template and use velocity to insert the dynamic content. If there are really only a few simple fields, I would store the text in the database or an xml file and then use a simple string replace routine to

RE: [OT] - Request against Session

2004-02-11 Thread Robert Nocera
Using the session is certainly a possibility, I for the most part, take the opposite approach. Generally the only objects I store in the session are objects that are going to be accessed throughout the entirety of the user's access to the site, stuff like authentication information and role

RE: Data truncation in request scope

2004-02-06 Thread Robert Nocera
It may sound strange, and may not be what is happening to you, but I have seen similar things occur if your jsp page has a tag referencing a bean or list that isn't there somewhere further down on the page. -Rob _ From: Namasivayam, Sudhakar (Cognizant) [mailto:[EMAIL PROTECTED]

RE: [OT]CVS client

2004-02-04 Thread Robert Nocera
I'm not sure what you are asking, but I use Eclipse, versions 2.01 and 3.0M and if you synchronize with cvs you can see each file that is different and go through each change in the compare panes. I find it works like a charm. -Rob -Original Message- From: Ramadoss Chinnakuzhandai

RE: Struts text field 'value' attribute set from another ActionForm?

2004-01-29 Thread Robert Nocera
You could call an action before going to the form that takes the value from the session and sets someForm.someProperty to that value and then forwards to your jsp. -Rob -Original Message- From: Adam Bickford [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 9:55 AM To:

RE: Session Problem

2004-01-26 Thread Robert Nocera
If there is no server activity, is it possible the page you are looking at is cached? -Rob -Original Message- From: VERMA, SANJEEV (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:24 PM To: [EMAIL PROTECTED] Subject: Re: Session Problem I put the topic as Re: Session

RE: AW: Form is not submited - nothing happens?!?

2004-01-23 Thread Robert Nocera
Are you sure you are not getting any javascript errors? The best place to debug something like this is to use Mozilla. If your xv:message tag is resulting in an input field with the name submit you are going to get an error that tells you something like submit is not a function. Just a

RE: retreiving the labelProperty of an option tag

2004-01-23 Thread Robert Nocera
That's correct, the form is only going to submit the value not the label for the option. You might use javascript to populate a hidden field with the label so it gets submitted, if you really wanted to, but it would be much easier to just look up the label in your action using the value you

RE: Filling data in the select tags

2004-01-19 Thread Robert Nocera
The ActionForm is also used to display data on the JSP, so the method that Andrew describes is a good way to go about it. When the user requests to go to a page, make sure that request is to an action and not directly to a jsp. As Andrew mentioned he has done, I have also moved from using

RE: Filling data in the select tags

2004-01-19 Thread Robert Nocera
[EMAIL PROTECTED] Edgil Associates www.edgil.com Don't take life too seriously, you'll never get out of it alive! Robert Nocera To: 'Struts Users Mailing List' [EMAIL PROTECTED] [EMAIL

RE: accessing an image outside my webapp

2004-01-15 Thread Robert Nocera
I don't think Tomcat does, but your local browser will. You are sending your browser a link that tells it to load a file on your file system. It will work fine if you are only running locally, but it won't work if you try to access that link from a browser on another machine unless that machine

RE: accessing an image outside my webapp

2004-01-15 Thread Robert Nocera
addressing I invite you to read http://www.drizzle.com/~slmndr/tutorial/relabs.html -Martin - Original Message - From: Robert Nocera [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, January 15, 2004 10:25 AM Subject: RE: accessing an image outside my webapp

RE: Validator JavaScript displaying? Mozilla bug?

2004-01-14 Thread Robert Nocera
Brad, I am using Mozilla 0.7 and I saw what you described the first time I went to your page. I can't get it to repeat however. Then I tried for kicks on another machine and didn't see it at all. On that other machine I am just getting validator set up on a project and I tried it, and it

RE: Getting parameters from html:link

2004-01-14 Thread Robert Nocera
I think what you want is: String type = request.getParameter(type); -Original Message- From: Lucas Gonzalez [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 12:01 PM To: Struts Users Mailing List Subject: Getting parameters from html:link Hi! I´ve been trying to get

RE: ActionForm is not automatically popluated.

2004-01-14 Thread Robert Nocera
Without seeing any of your code, one possibility is that the case of your property names isn't properly matching your Form. For instance, the property lastname isn't going to match setLastName() in your form, but lastName will. -Rob www.neosllc.com -Original Message- From: Andre

RE: sharing actions with superuser

2004-01-12 Thread Robert Nocera
Dan, I would base the decision on how similar the actions are. Some possible choices are: 1. Use the same action with the same method as you describe. 2. Use the same action but define two different methods within the action based on what the user's role is. This way you can include private

RE: AW: struts get and set methods in formbeans

2002-03-26 Thread Robert Nocera
. One implementation that I've seen is something like a private variable called _test and getTest, setTest as getter/setter names, and it works fine. Robert Nocera New England Open Solutions www.neosllc.com You supply the Vision. We will do the rest.   -Original Message- From: Jose

RE: Pass parameters between Action classes

2002-03-24 Thread Robert Nocera
A JSP is a servlet so the request in your JSP is the same as the request passed to your Action from the ActionServlet. Maybe your forward has redirect set to true? If it does, the browser is making a new request and so anything you added with request.setAttribute will be lost. Robert Nocera

RE: An url problem

2002-03-20 Thread Robert Nocera
You can set redirect=true to use a redirect instead of a forward. Then your users will see your home.jsp in their address bar and a refresh will refresh home.jsp. Robert Nocera New England Open Solutions www.neosllc.com You supply the Vision. We will do the rest.   -Original Message

RE: Questions about session timeouts/struts

2002-03-20 Thread Robert Nocera
, Robert Nocera New England Open Solutions www.neosllc.com You supply the Vision. We will do the rest.   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 12:27 PM To: Struts Users Mailing List Subject: Questions about session

RE: Questions about session timeouts/struts

2002-03-20 Thread Robert Nocera
They do, but when is dependent on the specific application server and Java run-time that you are running it on. Robert Nocera New England Open Solutions www.neosllc.com You supply the Vision. We will do the rest.   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: Help with Oracle dates from Secs passed since 1970

2002-03-13 Thread Robert Nocera
You can just convert seconds into milliseconds (*1000) and then use java.util.Date(milliseconds) to get your date which is Sep 21, 12:57:34 EDT 2001. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: SUPRIYA

RE: simple frames problem, no help in archives

2002-03-12 Thread Robert Nocera
Try it without the body tags. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Joseph Barefoot [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 2:14 PM To: Struts Users Mailing List Subject: RE: simple

RE: Found Solution to setting server side parm in Javascript BUT....

2002-03-11 Thread Robert Nocera
knows nothing of these objects. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 10, 2002 7:21 PM To: Struts Users Mailing List Cc: [EMAIL PROTECTED

RE: null value for a nested property

2002-03-07 Thread Robert Nocera
David, I find it's best to use a form bean that is different from your data object, so that your get methods on your form object can return an empty string if null instead of actually returning a null value. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll

RE: redirection from an action/ refreshing page

2002-03-07 Thread Robert Nocera
You can use redirect=false to make it a forward, which is what you want most of the time. I believe that false is the default value. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Yu, Yanhui [mailto:[EMAIL

RE: ActionForward question

2002-03-01 Thread Robert Nocera
. You can't use http to push stuff out to a browser, only respond to requests, and once you respond, you're stuck waiting for the user to make another request. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From

RE: iterate tag to repeat for a collection of individula objects

2002-02-26 Thread Robert Nocera
clientList that contains a collection called clients. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Jay Milam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 9:53 AM To: [EMAIL PROTECTED] Subject

RE: How can I get rid of the port on redirects.

2002-02-26 Thread Robert Nocera
Bill, If you don't absolutely need to redirect then set the flag to false. If you do, getting rid of the base tag might help as per: http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05647.html Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll

RE: ActionForm scoping problems?

2002-02-25 Thread Robert Nocera
to billingIDForm and the form-bean name=billingIDForm ... I know I had a similar problem a while back and it seemed that making that change fixed it. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: [EMAIL PROTECTED

RE: Development Environment

2002-02-21 Thread Robert Nocera
JBuilder 6 on Windows NT And NetBeans on Windows 2000 Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Dave Wellman [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 12:41 PM To: [EMAIL PROTECTED

RE: Design question about ActionForm's validate method

2002-02-05 Thread Robert Nocera
on... Alternately provide a hidden form variable in your page, in your validation method, check for it, if it's not there, don't continue validating as the user did not just submit the page. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original

RE: redirect vs forward

2002-01-24 Thread Robert Nocera
of the original request. Another consideration is that when a redirect is done, the client now knows where they were redirected to, whereas multiple forwards can be performed and the client only knows about the original request that was made. Robert Nocera New England Open Solutions www.neosllc.com You

RE: controller servlet session lost

2002-01-04 Thread Robert Nocera
I believe you should be able to configure load balancing so that it is sticky and sends the same client to the same webserver each time. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Narendranatha R Sajjala

RE: Creating reports in PDF format

2001-12-27 Thread Robert Nocera
Try iText, it's a Java-PDF library. http://www.lowagie.com/iText Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Ajay Chitre [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 12:25 PM To: [EMAIL

RE: Using Struts and Flash Together, how is it done?

2001-11-20 Thread Robert Nocera
to that extreme, you can just include your flash movies in the JSP pages that Struts returns. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November

RE: Formatting a float for display

2001-11-14 Thread Robert Nocera
Did you try only changing the get method to return the formatted string? Or just creating a get method called getFloatFormatted and using that only to display the value? Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message

RE: request scope and forms

2001-11-14 Thread Robert Nocera
If I understood your question correction, you probably want to use a session scope bean. In your case when the JSP is submitted each time a new form bean is created because at that point it is a new request, not a forward. Robert Nocera New England Open Solutions www.neosllc.com You supply

RE: Formatting a float for display

2001-11-14 Thread Robert Nocera
to keep separation that way. Robert Nocera New England Open Solutions www.neosllc.com You supply the vision, we'll do the rest. -Original Message- From: Krueger, Jeff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 11:23 AM To: '[EMAIL PROTECTED]' Subject: RE: Formatting