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
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]
_
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
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
On Tue, 16 Mar 2004 as as wrote :
Hi,
Try my snippet below
I populated my jsp/form bean with values from database (dynamic)
td
%
java.util.List driversList = (java.util.List)request.getAttribute(drivers);
%
Can i know what fullName,supervisor,supervisors ,employeeID i fpossible pl.
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,
Try my snippet below
I populated my jsp/form bean with values from database (dynamic)
td
%
java.util.List driversList = (java.util.List)request.getAttribute(drivers);
%
select name=fullName style=width:225px
logic:iterate id=supervisor name=supervisors option value=bean:write
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
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
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
-
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
hi,
i'm trying to use hubert's (and shirish's) approach on request-scope, and as long as
the amount of rows
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 is likely
: 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 finish off my work)
With Regards
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 too busy to apply the 'proper' code, or something more
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 lazy 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 problem
automatically.
-Original Message
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 initializes the jsp
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
, 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 {
private List
: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 problem
automatically
}
-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 of how to use lazy list if you have one.
On 26 Feb
(),
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 of how
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
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 what actually
:[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
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 =
I am having an OrganzationVO inside my form-bean.
The OrganzationVO has a collection of AddressVOs.
I am using nested tags like this.
nested:nest property = orgVO
nested:text property=orgID size=10 maxlength=10
styleClass=inputmand tabindex= /
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
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)
===
from
, 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 is some relevant codes(some of them are simplified)
===
from
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 nested tags are already included with the Struts 1.1
distribution.
--- mariel hizon [EMAIL PROTECTED] wrote:
Hi!
okay got it. thanks hubert and arron! :)
-
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
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
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
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, i got
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 nested:text
part) is just to check if the nested-tags.tld is working. Apparently it's not, because
when i changed the nested: text to html:text, i
The latest nested 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
nested:text part) is just to
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 first time ever
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:
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
/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
: 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
: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
config?
(This goes after the controller/ element in the struts config, which comes
after the action-mappings/)
-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
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
I already used the struts template 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
.
-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 template tags successfully, but I'm having
trouble now inside a moduled application
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
.
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 specific
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
than I originally thought. The root of the
problem is
that I do not know how to use DynaValidatorForm.
If
you could help me
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 Users Mailing List
Subject: RE: Please Help
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 org.apache.struts.action.ActionForward;
import
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.apache.artimus.message.PostForm;
to my action class. I do not fully follow what I
should check in the struts
: Caroline Jen [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 04, 2004 2:46 AM
To: Struts Users Mailing List
Subject: RE: Please Help - ClassCastException
I am still confused...
I have a jsp that provides text fields for user to
fill out information. All the information is
passed
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
[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
exception occurred:
...
import
.
Pedro Salgado
On 04/01/2004 03:22, Caroline 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
) 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 you for trying to help. I have added
import
-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 you for trying to help. I have added
import org.apache.artimus.message.PostForm;
to my action class. I
: 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
than I originally thought. The root of the problem is
that I do not know how to use
)
org.apache.struts.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 with ninemsn
.
ajay brar [EMAIL PROTECTED]
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
: [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... I have a Tree class and a Node class to
represent
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;}
this form class also includes some String attributes
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
: 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 PROTECTED]
Sent: mercredi 17 décembre 2003 07:41
To: [EMAIL PROTECTED
, not multiple lines.
F.
- Original Message -
From: fredatwork [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
quote
Message-
From: Caroline Jen [mailto:[EMAIL 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
' [EMAIL PROTECTED]
cc: 'Caroline Jen' [EMAIL PROTECTED]
Subject:RE: Please Help With This Error Message
C,
You can't nest tags as you did in the value attribute.
bean:define ... value=bean:write name=author/ /
The rest of the list will croak when I recommend that you
Mailing List
To: Struts Users Mailing List [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
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:
bean:define id=author name=creator
scope=session type=java.lang.String/
and the above statement is intended to retrieve the
string creator from
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: Please Help With This Error Message
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
-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 Pass A Hidden
Field To
scaffold.ProcessAction
I did not mess up lowercase and uppercase of the
hidden field I want
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
,
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 two hidden fields: username and keyName
,
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 two hidden fields: username and keyName
: 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 two hidden fields: username and keyName
at
the
same time
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. Anyway, I
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
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
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.
, 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 problem
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 Pass A Hidden
Field To
scaffold.ProcessAction
I
) 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 to Pass A Hidden Field
]
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 two hidden fields: username and keyName at
the
same time. The keyName is passed and with the
correct
value
) 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 to Pass
? 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, December 08, 2003 1:32 PM To: Struts Users Mailing List
Subject: Re: Please Help! Unable
:
Monday, December 08, 2003 1:32 PM To: Struts
Users Mailing List
Subject: Re: Please Help! Unable to Pass A Hidden
Field To
scaffold.ProcessActionI 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
?
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, December 08, 2003
1:32 PM To: Struts Users Mailing List Subject: Re: Please Help
I want to pass two hidden fields; username and keyName
from a JSP via a SUBMIT button:
req:isUserInRole role=editor
html:form action=/find/Category
% String username = request.getRemoteUser();%
html:hidden property=keyName
value=journal_category/
html:hidden property=username
value=%=username%/
Are you using the input type=hidden 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:
My code was shown in my original message. I used two
html:hidden ... 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
, 09 Nov 2003 11:39:26 +0100, Adam Hardy wrote:
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
--- 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 example of the struts-example.war
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
From: Kam Lung Leung
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
logic:messagesPresent
There
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),
Say this in WEB.XML
error-page
exception-typejava.lang.Exception/exception-type
location/error.jsp/location
/error-page
Then this in error.jsp or what ever you consider friendly:
%@ page isErrorPage =true %
You are at a J2EE error page:
p
%= exception.getMessage() %
and then:
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
1 - 100 of 544 matches
Mail list logo