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
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
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)
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,
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
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:
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,
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
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
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
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
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
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]
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
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:
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
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
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
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
[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
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
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
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
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
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
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
.
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
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
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
,
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
49 matches
Mail list logo