Hi Matt,
In my validation.xml I have:
...
allowallschemes
true
Hi, here is the situation:
Tomcat 5.25
MySQL 4.1
Struts 1.1
when I use Struts form to get some form data submited by a webpage, it
is encode in latin but not utf-8. I have already set the page encoding
to UTF-8 in my JSP.
I need to new a String specific the encoding to UTF-8 in order to save
unic
Jim,
You said it was LogonAction, so there is a request object in the execute method.
Jack
On Sun, 09 Jan 2005 15:43:25 +, Jim Douglas <[EMAIL PROTECTED]> wrote:
>
> This line gives me a "cannot find symbol variable request"
> String userID = request.getParameter("userID");
>
> This line
Your going to have to be more specific than that :) Only because I know
what your "prior post" was, I have at least some idea what your talking
about, but you'll want to fill us in a bit more here...
What you suggest is fine, except that your JSP scriplet as written
wouldn't output anything...
Hi,
How to correctly display the error page when some content has been
written to the OutputStream? When an exception occurs in some nested
jsp component (e.g. a tile inserted by
A previous worked around (back in the days of struts 1.1) was:
1) declare an error jsp
2) within that jsp, store th
Hi All
i'd like to say sorry if someone already asked this question before...
what is best practice implement security in struts apps ?
i'm looking something that similar with acegi security but more suitable with
struts
(thanks for the great responses to my prior post)
Now that my query's all done I want a flexible JSP that can handle the
results. What would be the best approach?
I started sown this path
1 - setAttributes based on the recordset results, like this
String formMessage = rs.getString
On Sun, 09 Jan 2005 17:05:04 -0500, Frank W. Zammetti wrote:
> The only thing that's like a global in Java is a static variable (static
> final usually, but in this case just static).
Another good trick in a web app is to use the ThreadLocal class to
simulate globals that are thread specific. AFAI
The only thing that's like a global in Java is a static variable (static
final usually, but in this case just static).
If you had a class like so:
public class userInfo {
private static String userID;
public static void setUserID(String userID) {
this.userID = userID;
}
public static
Thanks a bunch, that was it ... on to the next bug. :-)
Curtis Taylor wrote:
Hi Mark,
Try changing the 'forward' to 'action' in your html:link tag:
Sign in
HTH,
Curtis
Mark McWiggins wrote:
... as I seem to get stuck on the simplest things.
For example:
Sign in
Thanks,
Mark McWi
From: "Jim Douglas" <[EMAIL PROTECTED]>
I simply want to access an UserID from anywhere in an web-app.
JSP, method of any class file, servlet or otherwise...etc.
( Passing a string is what I ended up with.)
It sounds like you want a global variable like you might have in a
procedural language. Th
This is not a DOA issue at all, I guess I didn't do a very good job of
explaining.
I simply want to access an UserID from anywhere in an web-app.
JSP, method of any class file, servlet or otherwise...etc.
( Passing a string is what I ended up with.)
Thanks all!
Jim
From: "Wendy Smoak" <[EMAIL PR
From: "Jim Douglas" <[EMAIL PROTECTED]>
And then, from your Action, you would use the code Jack suggested, plus
change your method call:
Must it be from an Actioon? Does this mean that you can't use that code
above from a within a tiles contrloller, specifically the
session.getAttribute()?
No!
Wendy,
You said
And then, from your Action, you would use the code Jack suggested, plus
change your method call:
//retrieve the userId from the session [or wherever it is]:
String userId = session.getAttribute("userId");
//call the DAO class to get the list from the database
List myList = myDao.
At 12:11 PM -0600 1/9/05, Shihgian Lee wrote:
> [D] And finally, we have a PagePrep action which operates between the
return from the Action and the tiles processing. This is the thing
I'm always talking about which provides us with a straightforward way
to prepopulate forms, set up menus and
> [D] And finally, we have a PagePrep action which operates between the
> return from the Action and the tiles processing. This is the thing
> I'm always talking about which provides us with a straightforward way
> to prepopulate forms, set up menus and select lists, and otherwise
> shepherd data
From: "Jim Douglas" <[EMAIL PROTECTED]>
This line gives me a "cannot find symbol variable request"
String userID = request.getParameter("userID");
Re-read Frank's response-- your DAO class does not (and should not) know
anything about requests or sessions. You might also want to review the J2EE
This line gives me a "cannot find symbol variable request"
String userID = request.getParameter("userID");
This line gives me a "cannot find symbol variable request"
String userID = request.getSession().getAttribute("userID");
This line gives me a "cannot find symbol variable request"
HttpSession s
You don't need that at all. You can just in your jsp point to the tld in
the jsp. (I normaly put them in WEB-INF/lib).
(or just have a header tile or include that declares all your jsps once)
hth,
.V
William Ferguson wrote:
OK,
I guess I've missed something fundamental, so someone please point ou
OK,
I guess I've missed something fundamental, so someone please point out what
it is.
How do I declare the Struts (1.2.4) tag libs in web.xml so that :
1) Tomcat 5.0.28 can access them from Struts.jar at runtime
2) I can use the Ant Jasper task to compile my JSPs to validate them during
the buil
20 matches
Mail list logo