Hi all,
I have followed the example in struts documentation (validwhen validaton
section). I have an email address field that needs to be validated when one
other field's value is set to "true". But I can't get it to work at all.
This is the example I cut and paste from struts web site. I am
You asked exactly the same question only 24 hours ago. Patience is a virtue.
;-)
Do you mean 1.0.2 beta? Wow, that's old! There is no reason that it
shouldn't, but I haven't run anything that old for some time now. I would
recommend upgrading to 1.1 anyway. :-)
--
Martin Cooper
"Kramer, Brad" <
Can anyone either confirm or deny if Struts 1.0.2b is compatible with
JDK 1.4.2?
Thanks a lot!
_
Brad Kramer
Pager - [EMAIL PROTECTED]
_
Hi all,
I ran into a problem of posting a hidden form field with a special UTF-8
characters and when it gets to the action and I looked at the action form
had a different value, it's no longer containing UTF-8 characteres instead a
'?" was replaced. In my jsp, I have to put <%@ page
contentType=
On Tue, 16 Mar 2004 as as wrote :
>Hi,
>Try my snippet below
>I populated my jsp/form bean with values from database (dynamic)
>
>
>
><%
>
>java.util.List driversList = (java.util.List)request.getAttribute("drivers");
>
>
>
>
>
>%>
>
>
>
>
>
>
Can i know what fullName,supervisor,supervisors ,empl
Hi,
Try my snippet below
I populated my jsp/form bean with values from database (dynamic)
<%
java.util.List driversList = (java.util.List)request.getAttribute("drivers");
%>
">
ddd ddd <[EMAIL PROTECTED]> wrote:
Hi All
I am new bie and learning to populate the dr
Mike,
What error are you getting
-Sam.
Mu Mike <[EMAIL PROTECTED]> wrote:
Hi, all, last week, I spent a whole day trying to figure the below problem
out, and you warmhearted guys just came and helped me,but to greatly
disappiont you, I m still at a loss to know where the problem is ,so I
Hi, all, last week, I spent a whole day trying to figure the below problem
out, and you warmhearted guys just came and helped me,but to greatly
disappiont you, I m still at a loss to know where the problem is ,so I
decided to explain detailedly and completely of what I did and hope you
nice bud
Hi All
I am new bie and learning to populate the drop box by all different ways .
1. By Collections of strings
2. By collections beans
3. Hard coding
I am unable to achieve even first way tried a lot but failed can any body suggest me
where I am wrong. Also pl. suggest me h
Hello All,
I am Kurakula .I am new to this group .My Problem is
I've three jsp pages create,view and edit.
I've one form bean UIForm with attributes
I am invoking create.jsp and saving data UIForm and then forwarding it uiview.jsp
>From uiview.jsp I am trying to populate data to uiedit.jsp.Pl
et the list to empty properly.
>
>HTH.
>regards,
>Shirish
>
>-Original Message-
>From: Martin Sturzenegger [mailto:[EMAIL PROTECTED]
>Sent: Friday, February 27, 2004 3:28 PM
>To: Struts Users Mailing List
>Subject: RE: Problem in nested tags- Very Urgent - Please Help
Urgent - Please Help
hi,
i'm trying to use hubert's (and shirish's) approach on request-scope, and as long as
the amount of rows are fixed it works well.
BUT now i have an additional feature on my page and that gives me headaches.
actionOne gets the rows from the dto-bean and init
>> }
>> };
>> this.actionList = ListUtils.lazyList(new ArrayList(),
>> factory);
>> }
>>
>> // Getter/setters for list omitted
>> }
>>
>> -Original Message-
>> From
Thx chris for pointing to this...
With Regards
Partha
-Original Message-
From: McCormack, Chris [mailto:[EMAIL PROTECTED]
Sent: Friday, February 27, 2004 5:51 PM
To: Struts Users Mailing List
Subject: RE: Problem in nested tags- Very Urgent - Please Help
>i'll try to use l
TED]
Sent: Friday, February 27, 2004 1:21 PM
To: Struts Users Mailing List
Subject: RE: Problem in nested tags- Very Urgent - Please Help
>i'll try to use lazy list once i finish off my work
Eugh... We have all done it, but that is how botches get in to production code. People
usually get
IL PROTECTED]
Sent: 27 February 2004 09:45
To: 'Struts Users Mailing List'
Subject: RE: Problem in nested tags- Very Urgent - Please Help
Thanks mark , hubert and paul. i removed scope = request and it is working
fine now.
(Temporary fix :-)) i'll try to use lazy list once i f
PM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
Nice one..
For some reason i thought the Factory would involve more than it does,
so i shied away from it.
Cheers Mark
On 26 Feb 2004, at 15:57, Paul, R. Chip wrote:
> Note: I think this i
I am having an OrganzationVO inside my form-bean.
The OrganzationVO has a collection of AddressVOs.
I am using nested tags like this.
while submitting the form I am getting an exception like this.
2004-02-26 18:17:08,133 [E
shirish posted this a few times.
if you're scoping to request you'll need a while loop in your
getFoo(int index) method
public class OrgManagementForm extends ActionForm {
private List addressList = new ArrayList();
public Address getAddress(int index) {
while(index >= addre
Or use the Commons Collections LazyList which handles this problem
automatically.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:09 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
shirish
ry 26, 2004 8:09 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
shirish posted this a few times.
if you're scoping to request you'll need a while loop in your
getFoo(int index) method
public class OrgManagementForm extends ActionForm
:49 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
wouldn't mind an example of how to use lazy list if you have one.
On 26 Feb 2004, at 15:33, Paul, R. Chip wrote:
> Or use the Commons Collections LazyList which handles this
stUtils.lazyList(new ArrayList(),
> factory);
> }
>
> // Getter/setters for list omitted
> }
>
> -Original Message-
> From: Mark Lowe [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 8:49 AM
> To: Struts Users Mailing List
> Subje
(),
factory);
}
// Getter/setters for list omitted
}
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:49 AM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
wouldn't mind an example o
Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:35 PM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
Nice one..
For some reason i thought the Factory would involve more than it does,
so i shied away from it
1:24 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem in nested tags- Very Urgent - Please Help
Hi
Thanks for ur replies. But i could not understand what actually is the
problem
and how lazy list will solve it. This is the first time i am coming across
lazy list.
can u explain
:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 8:35 PM
To: Struts Users Mailing List
Subject: Re: Problem in nested tags- Very Urgent - Please Help
Nice one..
For some reason i thought the Factory would involve more than it does,
so i shied away from it.
Cheers Mark
On 26 Feb 2004, at 15
>Sent: Thursday, February 12, 2004 8:26 AM
>To: [EMAIL PROTECTED]
>Subject: 2 PROBLEMs-Please Help
>
>
>Hi gurus,
>I have 2 problems(or may be 2 bug reports) :
>
>1. The point is IT CAN'T SAVE ERRORS !
>Here
;Struts Users Mailing List"
To: [EMAIL PROTECTED]
cc:
Subject:2 PROBLEMs-Please Help
Hi gurus,
I have 2 problems(or may be 2 bug reports) :
1. The point is IT CAN'T SAVE ERRORS !
Here is some relevant codes(some of them are simplified)
=
Hi gurus,
I have 2 problems(or may be 2 bug reports) :
1. The point is IT CAN'T SAVE ERRORS !
Here is some relevant codes(some of them are simplified)
===
from TrySubmitOrderAction.java(on execute method) :
// if object under the name
okay got it. thanks hubert and arron! :)
-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
He's right. And to elaborate... use the tld and classes from the struts
distro, and not the tld and nested tag classes from the tutorial.
All the best.
Arron.
> The latest tags are already included with the Struts 1.1
> distribution.
>
> --- mariel hizon <[EMAIL PROTECTED]> wrote:
> >
> >
The latest tags are already included with the Struts 1.1
distribution.
--- mariel hizon <[EMAIL PROTECTED]> wrote:
>
> Hi! Actually, i just downloaded the nest extension tutorial war file from
> www.keyboardmonkey.com and tried to make it work. This jsp code (the
> Apparently it's not, because
Hi! Actually, i just downloaded the nest extension tutorial war file from
www.keyboardmonkey.com and tried to make it work. This jsp code (the
Monkey Name:
Monkey Age:
Submit Form
-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing onli
monkey's nesting tutorial... please
help :)
hi! i'm a struts newbie and i need to do some nesting real quick. i
followed the tutorial in www.keyboardmonkey.com and i was just able to do
the first part which was actually just the setup part. when i tried to
do the succeeding exercises
hi! i'm a struts newbie and i need to do some nesting real quick. i
followed the tutorial in www.keyboardmonkey.com and i was just able to do
the first part which was actually just the setup part. when i tried to
do the succeeding exercises, i got an internal server error.
it's the
hi! i'm a struts newbie and i need to do some nesting real quick. i
followed the tutorial in www.keyboardmonkey.com and i was just able to do
the first part which was actually just the setup part. when i tried to
do the succeeding exercises, i got an internal server error.
i think it has somet
with the list of files in them.
Shishir
-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 10:23 PM
To: Struts Users Mailing List
Subject: RE: PLEASE HELP
First let me apologize if I seemed like I was shouting earlier. This
obviously was my
your properties file should be called ApplicationResources.properties
according to your config file.
Heya Gosper
CSC Australia
212 Northbourne Ave, Braddon ACT 2612
Ph: +61 (0) 2 6246 8155 Fax: +61 (0) 2 62468100
MOB: 0401 611779
-
ch comes
after the )
-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 20 January 2004 11:23
To: Struts Users Mailing List
Subject: RE: PLEASE HELP
First let me apologize if I seemed like I was shouting
earlier. This obviously was my first time ev
:23 PM
To: Struts Users Mailing List
Subject: RE: PLEASE HELP
First let me apologize if I seemed like I was shouting earlier. This
obviously was my first time ever trying to use a messageboard. I did
receive a few links to help me in posting future questions.
Thanks for responding. However
ed in the properties file
>
> Put this after the tag in
> struts-config.xml and see
> if it works.
>
>
>
> Shishir
>
> -Original Message-
> From: Anita Raeppel [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 19, 2004 7:10 PM
> To: [EMAIL PROTECTED]
&g
/smart-questions.html
or to be specific about being specific...
http://www.catb.org/~esr/faqs/smart-questions.html#bespecific
-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 20 January 2004 08:10
To: [EMAIL PROTECTED]
Subject: PLEASE HELP
I am
errors that may
not have been defined in the properties file
Put this after the tag in struts-config.xml and see
if it works.
Shishir
-Original Message-
From: Anita Raeppel [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 7:10 PM
To: [EMAIL PROTECTED]
Subject: PLEASE HELP
I am developing a new Struts Application. I have
successfully been able to run the StrutsBlank example
following the instructions from a tutorial on the web.
However when I try to execute my own project I am
getting the following error message in the browser:
javax.servlet.ServletException:
)
Rgds,
Patrick.
-Original Message-
From: Renato Romano [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 6:37 PM
To: 'Struts Users Mailing List'
Subject: Templates And Modules - Please HELP !!
I already used the struts tags successfully, but I'm having
trouble now insid
I already used the struts tags successfully, but I'm having
trouble now inside a "moduled" application. The problem is that the
template tags seems to insert the module prefix before the path of the
jsp template file, which I would not, also because I thought the jsp
pages could/should not necessa
I'm trying to use struts templates (not tiles) tags inside a module, but
I get a completely blank page and no errors. The paths of the resources
are correct, but it seems to me struts tries to find them by prefixing
the module name!!
Any help is very appreciated.
Renato
_
below.
Comments below look for *
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 04, 2004 10:18 PM
To: Struts Users Mailing List
Subject: RE: Please Help - ClassCastException
Allow me to ask three more questions:
1. If I want to reset some spe
String cast for me to save the
> tediom.
>
> Making sense now?
>
> > -Original Message-
> > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, January 04, 2004 2:46 AM
> > To: Struts Users Mailing List
> > Subject: RE: Please Hel
List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 31, 1969 7:05 PM
Subject: Re: Please Help - ClassCastException
> On 04/01/2004 05:04, "Caroline Jen" <[EMAIL PROTECTED]> wrote:
>
> > Thank you for trying to help. I have added
> > import org.
TECTED]> wrote:
>>
>> On your struts config file check if the form bean
>> for StoreMessage action
>> is of type pkg.pkg.PostForm and if the action name
>> is pointing to the
>> correct form bean... It also seems to be missing the
>> import of the Post
really is). I made a base form class with a
getString method that calls get() and does the String cast for me to save the
tediom.
Making sense now?
> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 04, 2004 2:46 AM
> To: Struts Use
ll work properly.
>
> Hope this helps,
>
> -Joe
>
>
>
> > -Original Message-----
> > From: Caroline Jen [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, January 04, 2004 1:42 AM
> > To: Struts Users Mailing List
> > Subject: RE: Please Help - C
helps,
-Joe
> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 04, 2004 1:42 AM
> To: Struts Users Mailing List
> Subject: RE: Please Help - ClassCastException
>
>
> I think that there are a lot more mistakes in my code
> tha
it as-initially defined (not casting like
> above) and use BeanUtils
> such as:
> String receiver = (String)
> PropertyUtils.getSimpleProperty(form,
> "receiver");
>
> Regards,
> David
>
> -Original Message-----
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
&
such as:
String receiver = (String) PropertyUtils.getSimpleProperty(form,
"receiver");
Regards,
David
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 03, 2004 11:04 PM
To: Struts Users Mailing List
Subject: Re: Please Help - ClassCastException
Thank
PROTECTED]> wrote:
>
> > The statement shown below encountered a
> > ClassCastException:
> >
> > PostForm postForm = ( PostForm )form;
> >
> > I cannot figure out the reason. Please help.
> >
> > Allow me to show more code of the class whe
e Jen" <[EMAIL PROTECTED]> wrote:
> The statement shown below encountered a
> ClassCastException:
>
> PostForm postForm = ( PostForm )form;
>
> I cannot figure out the reason. Please help.
>
> Allow me to show more code of the class where the
&g
The statement shown below encountered a
ClassCastException:
PostForm postForm = ( PostForm )form;
I cannot figure out the reason. Please help.
Allow me to show more code of the class where the
exception occurred:
...
import org.apache.struts.action.Action;
import
;Struts Users Mailing List"
To: [EMAIL PROTECTED]
cc:
Subject: Re: error:null property value please HELP
hi!
'functions' is the name of the tree structure in the form class, as
class SomeForm extends ActionForm
{ private TreeStructure functions;}
Ajay
From: [EMAIL PROTECTED]
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: error:null property value please HELP
Date: Mon, 22 Dec 2003 13:28:17 +1100
Hi Ajay
I am doing something similar.
]>
22/12/2003 12:55 PM
Please respond to "Struts Users Mailing List"
To: [EMAIL PROTECTED]
cc:
Subject:error:null property value please HELP
hi!
i am getting an error when i submit a form.
briefly i have a tree stucture that gets displayed, alon
ts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
please help
thanks
Ajay
_
Get less junk mail wi
t" <[EMAIL PROTECTED]>
cc:
Subject:RE: Please Help With This Error Message
> Maybe they can tell you a fancy -el/JSTL way to do it. :)
yes, if you use html-el:text instead then you should be able to use an el
expression a'la:
" size="82"
s Users Mailing List"
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
cc: "'Caroline Jen'" <[EMAIL PROTECTED]>
Subject:RE: Please Help With This Error Message
C,
You can't nest tags as you did
IL PROTECTED]
Sent: Wednesday, December 17, 2003 4:46 PM
To: Struts Users Mailing List
Subject: Re: Please Help With This Error Message
Hi, I tried and tried. I cannot figure out the error.
I need your sharp eyes and experience. I keep
getting this error message in the browser:
ServletException
atwork" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, December 17, 2003 8:53 AM
> Subject: RE: Please Help With This Error Message
>
>
> Your statement is OK. It comes from the surrounding
PROTECTED]>
Sent: Wednesday, December 17, 2003 8:53 AM
Subject: RE: Please Help With This Error Message
Your statement is OK. It comes from the surrounding quote.
The only idea I have is to check double-quotes correctly.
Fred
-Original Message-
From: Caroline Jen [mailto:[EMAIL PR
Your statement is OK. It comes from the surrounding quote.
The only idea I have is to check double-quotes correctly.
Fred
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: mercredi 17 décembre 2003 07:41
To: [EMAIL PROTECTED]
Subject: Please Help With This Error
hi Caroline
According to me this is perfectly fine. Please see there may be something
worng in your JSP
Regards
Gary
- Original Message -
From: "Caroline Jen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 17, 2003 12:11 PM
Subject: Pleas
Please help me to figure out this error message that I
got in the browser: equal symbol expected.
The error complains about this statement in my JSP:
and the above statement is intended to retrieve the
string "creator" from a session object.
__
Do
I did another test. I took out those data access
activities in the FindEditorData.java and ran the
application. The conclusion is that those few lines
of data access activities have nothing to do with the
value of the 'username' becoming null in the
FindEditorData.java.
-Caroline
--- Richard Yee
I followed your advice. In the Bean.java, I did the
following:
private String username = "natalie";
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
and I compiled all the relevant cla
Caroline,
As a sanity check, in your bean, initialize the
username variable to something ie. "XX". and
re-run your app. This will show if your setUsername is
ever called.
-Richard
--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> I do not fully understand what you say about null or
> "null". Any
Returns the login of the user making this
> request,
> > > if the user has been
> > > authenticated, or null if the user has not been
> > > authenticated. Whether the
> > > user name is sent with each subsequent request
> > > depends on the browser and
> &
> > Returns: a String specifying the login of the user
> > making this request, or
> > null
> >
> > As the JavaDoc says: "Whether the user name is
> sent
> > with each subsequent
> > request depends on the browser and type of
> > authentication." Ar
; doesn't know about the user being authenticated and
> will return null.
>
> Regards,
>
> Richard
> -Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2003 2:56 PM
> To: Struts Users Mailing List
> Subject: RE: P
On 09/12/2003 01:29 Caroline Jen wrote:
I use container-managed authentication.
In which case, why don't you get the user name using
request.getUserPrincipal().getName() ?
--
Paul Thomas
+--+-+
| Thomas Micro Systems Limited
it is the username, then I'd suspect that
request.getRemoteUser() in your
JSP is returning null.
Regards,
Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 1:32 PM
To: Struts Users Mailing List
Subject: Re: Please Help! Unable to Pas
Hi Caroline,
have you checked the source of the HTML page in the browser to see what
the value of username is, client-side? I expect the value is being sent
to the browser as null.
If that is the case, it is because request.getRemoteUser() is returning
null and that would be because you don't h
urnal_category"/> > >value="<%=username%>"/> View Articles > >---
"Yee, Richard K,,DMDCWEST" wrote: > Caroline, > > Are you
having > >problems with the username or the > keyName hidden > variable?
If > it
t;Yee, Richard K,,DMDCWEST" wrote: > Caroline, >
> Are you having
> >problems with the username or the > keyName hidden
> variable? If > it is
> >the username, then I'd suspect that >
> request.getRemoteUser() in your >
> >JSP is returning null. &g
he > keyName hidden variable? If > it is
the username, then I'd suspect that > request.getRemoteUser() in your >
JSP is returning null. > > Regards, > > Richard > > -Original
Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent:
Monday, D
,
>
> Richard
> -----Original Message-
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2003 2:56 PM
> To: Struts Users Mailing List
> Subject: RE: Please Help! Unable to Pass A Hidden
> Field To scaffold.Proces
> sAction
>
>
> I pass
r
> doesn't know about the user being authenticated and
> will return null.
>
> Regards,
>
> Richard
> -Original Message-----
> From: Caroline Jen [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 08, 2003 2:56 PM
> To: Struts Users Mailing List
> Subject: RE:
db lookup) then the server
doesn't know about the user being authenticated and will return null.
Regards,
Richard
-Original Message-
From: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 2:56 PM
To: Struts Users Mailing List
Subject: RE: Please Help! Unable
nt: Monday, December 08, 2003 1:32 PM
> To: Struts Users Mailing List
> Subject: Re: Please Help! Unable to Pass A Hidden
> Field To
> scaffold.ProcessAction
>
>
> I did not mess up lowercase and uppercase of the
> hidden field I want to pass from my JSP to the
> scaffold.P
onday, December 08, 2003 1:32 PM
To: Struts Users Mailing List
Subject: Re: Please Help! Unable to Pass A Hidden Field To
scaffold.ProcessAction
I did not mess up lowercase and uppercase of the
hidden field I want to pass from my JSP to the scaffold.ProcessAction. If
it had been the lowercase/uppercase pr
I did not mess up lowercase and uppercase of the
hidden field I want to pass from my JSP to the
scaffold.ProcessAction. If it had been the
lowercase/uppercase problem, I would have gotten a
message saying that the variable could not be
recognized.
I pass two hidden fields at the same time. One
My code was shown in my original message. I used two
tags to pass two hidden fields, one
is successfully passed while the other shows null. By
the way, I do not use 'request' to retrieve the value
of the hidden field because my Java class is a
scaffold.ProcessAction type. I simply use getXxx.
Are you using the or html:hidden attributes? I
didn't see it in your email.
If you do, the values will be available in the request.
Regards,
Richard
At 08:20 PM 12/7/2003, you wrote:
I want to pass two hidden fields; username and keyName
from a JSP via a SUBMIT button:
<% String username = re
I want to pass two hidden fields; username and keyName
from a JSP via a SUBMIT button:
<% String username = request.getRemoteUser();%>
View Articles
and an action mapping:
How come the username is not passed to the
FindEditorData.java while the keyName is successfully
pa
"There were errors" text?
>
>
> Adam
>
> On 11/09/2003 08:55 AM Kam Lung Leung wrote:
> > --- Start of forwarded message ---
> >
> > Subject: Please Help !! Can't Display ActionMessages
> > From: "Kam Lung Leung" <[EMAIL PROTECTED]
Hi Kam,
it's not obvious what is going wrong. What error message are you
expecting? Do you see the "There were errors" text?
Adam
On 11/09/2003 08:55 AM Kam Lung Leung wrote:
--- Start of forwarded message ---
Subject: Please Help !! Can't Display ActionMessages
F
--- Start of forwarded message ---
Subject: Please Help !! Can't Display ActionMessages
From: "Kam Lung Leung" <[EMAIL PROTECTED]>
Date: Sat, 08 Nov 2003 18:22:07 -0700 (MST)
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Hi,
I am trying to follow the logon
Hi,
I am trying to follow the logon example of the struts-example.war. However, I can
not see the error messages print on the logon.jsp. Any suggestion is greatly
appreciated.
here is the part that display the errors on my logon.jsp >>
There were errors
Say this in WEB.XML
java.lang.Exception
/error.jsp
Then this in error.jsp or what ever you consider friendly:
<%@ page isErrorPage ="true" %>
You are at a J2EE error page:
<%= exception.getMessage() %>
and then:
throw new Exception("Oops, I did it again");
Or if you want to
Can anyone provide me with a complete example of using execption handling in
struts that supports a "nice" message to the user and the actual error
message (displayed on the jsp page)? (I'm using struts 1.1)
I think I've tried everything now (well, obviously not everything since it
is not working)
Hi Ted,
Thank you for your time in helping me out. After your email message I
take a hard look at the jsp file and can not find what was wrong with it.
The secondPage.jsp is almost the same as the firstPage.jsp. When
I move all the code from the secondPage.jsp to the firstPage.jsp the
validation
1 - 100 of 593 matches
Mail list logo