Hi everyone,
I just wrote up a struts article / tutorial / lesson.
the link is
http://www.jspinsider.com/tutorials/jsp/struts/strutsintro.html
This is introductory level materials, and we will add more advance lessons
later. The article won't go up offically till the weekend
(We are in the
What's the difference between form:form and html:form ?
The documentation does not even mention of a "form" taglib!
How do I include an apostrophe (') in a resource file (eg
ApplicationResources.properties). I have:
index.title=Sammy's
But when I access it in the JSP page, it comes out "Sammys".
What am I missing? Your help is greatly appreciated.
Stanley Tan
form taglib is depricated everthing is in the html package now.
- Original Message -
From: "Stanley Tan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 9:33 AM
Subject: form:form vs. html:form
What's the difference between form:form and html:form ?
The
Same here! :) Does anyone have a copy of a shopping cart they are willing
to share? Or perhaps Ryan, Ravi and the others could team up and build
their own. :)
Stanley Tan
At 02:35 PM 4/12/01 -0500, you wrote:
I would also be intrested in any examples
Cheers,
Ravi Bulusu
-Original
Try with two apostrophes:
index.title=Sammy''s
Jean-Nol
- Original Message -
From: Stanley Tan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 10:23 AM
Subject: Apostrophe is Resource File
How do I include an apostrophe (') in a resource file (eg
hi there,
i just wonder if it is possible to use the struts-fastarraylists
with the html:options/logic:iterate tags. i looked into the
code i can't see a chance for those tags to work with this
List.
so far
-fw
--
\|/ \|/
I think that:
init-param
param-nameapplication/param-name
param-valuecais/param-value
/init-param
Should be something like:
init-param
param-nameapplication/param-name
param-valueApplicationResources/param-value
/init-param
In your
I'm still developing/debugging it at the moment so its fairly rudimentary at
the moment. I'm still considering how I could devlop it at the moment -
possibly your XML idea.
I have extended Action and done some stuff in the perform method to cast the
form and manage a connection and then call a
I have a general question being new to struts...I am starting on a project that is
currently using the struts framework. I have noticed that every JSP page will actually
do a form submit everytime I resize my browser window?? Is this something that is
related/known to the struts framework, or
We are using our home grown tag libraries.
What features are you talking about?
Pete
Rajan Gupta wrote:
Hello!
Has anybody tried to use Taglibs with Struts instead of Struts tag
libraries for features which are available in Taglibs ?
Thanks
Rajan
That is infact a great idea
Ravi
-Original Message-
From: Stanley Tan [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 3:52 AM
To: [EMAIL PROTECTED]
Subject: RE: Shopping Cart ?
Same here! :) Does anyone have a copy of a shopping cart they are willing
to share? Or perhaps
Hi All,
The Logging Mechanism provided in the Struts framework is accessible to the
Java Components that have access to ActionServlet instance. Struts does not
define the Logging mechanism for the Components that are Isolated from the
Struts framework but are part of the application being
hi
I have logon form. When I try to logon first time, its doing fine. If I try
to logon second time it's giving me the following error message. I am using
tomcat 3.2. can anyone help on this.
Thanks
sundaram
Location: /employee/logon.jsp
Internal Servlet Error:
javax.servlet.ServletException:
is this anything to do with the netscape resize bug workaround? Earlier
versions of netscape could have problems when resizing the windows, so
people coded pages to to a reload after a resize. Apps like dreamweaver can
add this javascript to your page automatically.
Regards
Ned
- Original
We wrote our own logging object that logs messages either to the console or a
log file as specified in a properties file or web.xml. I beleive there are
logging tools out there that help with this, but we just wrote our own for now.
Our tool specifies a message priority (i.e. NORMAL, DEBUG,
I'll say. I spent quite a while trying to get the reloading to work in Tomcat4.
Everyone kept
insisting that it "just worked". I finally switched to Resin and am very happy because
it really
does "just work". Plus it detects almost any change, from it's own config file, to a
new war file,
to
Hi all,
How do i implement the SELECT option using struts. I want to be able to
show a drop-down list from which the user can select what he/she wants. The
struts-test war file comes with a html:select example. this example shows
the whole list instead of in a drop down list. I need a drop
remove the "multiple=" - will only be able to select one option, and will see
drop down instead of list.
Dave
"Nanduri, Amarnath" [EMAIL PROTECTED] on
04/13/2001 01:22:06 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'"
[EMAIL PROTECTED]
cc:(bcc: David
i have figured it out. Thankyou. Another quick question.
I am updating my profile.
I have bean A which contains the state i am in. I have an other bean which
has the list of all states . Call it Bean B
When the user initially comes to this page i have to show the state as
"Virginia" in a
Can someone clue me in if I'm on the right track in guessing that the
my.properties file is not being found because of this error. I have this
message key inside ~/WEB-INF/classes/my.properties. The html lines follow
below.
500 Internal Server Error
javax.servlet.jsp.JspException: Missing
It keeps users from double posting information,
for more info see:
See the struts-dev mailing list on www.mail-archive.org:
Subject: Re: [Q] TRANSACTION_TOKEN_KEY
Date: Fri, 09 Feb 2001 09:52:04 -0500
From: Rob Leland [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
"Trieu, Danny"
We want to use Struts w/ Weblogic 5.1, and this week BEA released the
latest patch SP9, and we need to go to SP9 (SP8 will not work for us
for other reasons.)
Who and when does a new patch of WebLogic with Struts get
validated, and provide that information on the Struts web site?
Is that
I am getting the following exception :
Apr 13, 2001 2:18:06 PM EDT Error HTTP
[WebAppServletContext(1629209,onboard.presentation.master
ServletException
javax.servlet.jsp.JspException: Cannot create iterator for
com.agilquest.onboard.struts.master.actionForm
c5f
at
Hi Amar, I am not sure if I am right or wrong but here is my guess..
U need to create a bean of Type B with name bBean in the page scope before
using this
html:options name="bBean" labelName="states"/
That should work.
Good Luck.
-Original Message-
From: Nanduri, Amarnath
Thank you everybody for your suggestions. I got the thing working. I have a
question again.
How can i make the value in the A bean correlate with the list of values in
the B bean.
In other words when the user is shown the page (using the code below) i need
to see the
option selected =
The property and value for the button is passed as a parameter
(property=value), that you can retrieve from the request context.
A typical approach would be to give each button the same property but
different values, like
html:image page="/images/login.gif" alt="Login" property="login"
We use the Jakarta project's Log4J for all our our logging needs. :)
Scott
P.S. Shouldn't the other Jakarta projects (Struts, Tomcat, etc.) do the
same?
-Original Message-
From: Greg Reddin [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 11:01 AM
To: [EMAIL PROTECTED]
hello everybody,
i would like to know if it is possible to submit a
form not using the html:submit tag. i mean, i
would like to use an ordinary link and not a button
to submit a form.
thanx
charlemagne
use javascript
-Original Message-
From: Charlemagne L. Rey [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 3:19 PM
To: Jakarta Struts Users
Subject: submitting an HTML form
hello everybody,
i would like to know if it is possible to submit a
form not using the html:submit
I know this is going to sound vague, but I'm going to ask anyway. I seem to
be having some anonolomous problems with session data using WebLogic SP8.
For example, using request.getSession().setAttribute(...) sometimes seems
result in data not being saved properly. Also, sometimes on occasion I
hello,
i would like to display the content of my bean,
but i do not know what tag to use in order to
declare the bean inside the jsp page.
my idea to display is:
bean:write name="mybean" property="firstName"/
and my problem is how i would define the bean
that will have an id of "mybean"? sorry
Scott Ganyo wrote:
P.S. Shouldn't the other Jakarta projects (Struts, Tomcat, etc.) do the
same?
That would be up to the individual Committers to each Jakarta project.
Them that does the work makes the decisions.
In general, I would say a framework like Struts should provide for
different
how about bean:define...?
Dave
"Charlemagne L. Rey" [EMAIL PROTECTED] on
04/13/2001 04:15:22 PM
Please respond to [EMAIL PROTECTED]
To: Jakarta Struts Users
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: how to display the content of a bean
hello,
i would
thank you...
[EMAIL PROTECTED] wrote:
how about bean:define...?
Dave
"Charlemagne L. Rey" [EMAIL PROTECTED] on
04/13/2001 04:15:22 PM
Please respond to [EMAIL PROTECTED]
To: Jakarta Struts Users
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: how to
Hi Will,
I am using WebLogic sp8/9. I have never seen a "form submitted out of
order".
Can you give me a better description of who you app functions (frames or
not,
javascript submitting the page, etc.) and when the error occurs and the
screen
and console output.
--Abraham
-Original
I got it working in WebLogic. Your milage my vary but here is what I did:
1. Added the following to web.xml:
!-- For some reason you need a *.html file here --
welcome-file-list
welcome-fileSnoopServlet.jsp, index.html/welcome-file
/welcome-file-list
!-- Struts Tag Library
Well, I think I know why I'm getting the out of order error (token) error.
However, I still can't figure out what's going on with my session data.
M. Amin, I just had the exact same problem. I found that I did not use the
fully qualified name to my ApplicationResource.properties file in the
web.xml init parameter to the ActionServlet
// the way that was causing me problems
init-param
param-nameapplication/param-name
Hey
G.L.
Which
app server are you using?
Can we
take a look at cais.properties file?
--Abraham
-Original Message-From: G.L. Grobe
[mailto:[EMAIL PROTECTED]]Sent: Friday, April 13, 2001 2:18
PMTo: [EMAIL PROTECTED]Subject: struts
can't find properties file
I've got
I'm using Orion 1.4.7
--- cais.properties file
# C.A.I.S. Resource
Bundlemain.title=CAIS
main.master=Master Viewmain.detail=Detailed
View
Thnxs
- Original Message -
From:
Abraham
Kang
To: [EMAIL PROTECTED]
Sent: Friday, April 13,
try adding the location of that resource file on your classpath...
Hi,
Can someone post a concrete example of a bean:message ... tag
using parametric replacements and also post the corresponding lines
from the properties file. I am having some difficulty understanding it.
thanks,
dan
bean:message key="login.title"/
in ApplicationResources.properties:
login.title=Log In To Your Account
'Log In To Your Account' will replace the tag.
- Original Message -
From: "Daniel Toms" [EMAIL PROTECTED]
To: "Struts-User" [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 2:59 PM
didn't work w/ either the directory or the directory and filename.
- Original Message -
From: "Charlemagne L. Rey" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 4:57 PM
Subject: Re: struts can't find properties file
try adding the location of that resource
ok, that was wrong. You said 'using parametric replacement'. It's Friday.
- Original Message -
From: "Eric Rasmussen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 13, 2001 3:03 PM
Subject: Re: can someone post an example of bean:message using parametric
replacement
Anyone know ifthis error means it's finding
the file but not the key, or just not finding the file.
500 Internal Server
Errorjavax.servlet.jsp.JspException: Missing message for key main.title
at
- Original Message -
From:
G.L. Grobe
To: [EMAIL PROTECTED]
Sent:
Ted,
I tried this with no success. I put two html:image tags into my
login.jsp
trtd/tdtdhtml:image page="/images/lanikai.jpg" property =
"login" value="lanikai" /td/tr
trtd/tdtdhtml:image page="/images/larry.jpg" property = "login"
value="larry" /td/tr
In the perform method of
ok, let me try again.
in ApplicationResources.properties:
error.field.required=Field {0} is required.
in Action class; perform() method:
ActionErrors errors = new ActionErrors();
...
try {
[parse field]
[if field is required, but is not found] throw new ParseException("[field
name]");
}
thanks. I'm trying to figure out how to setup correctly for
localizition, especially where you have cases like
Product Name
versus (excuse my spanish)
Nombre de Producto
thanks again,
dan
-Original Message-
From: Eric Rasmussen [mailto:[EMAIL PROTECTED]]
Sent: Friday, April
it's finding the
file but not the key
-Original Message-From: G.L. Grobe
[mailto:[EMAIL PROTECTED]]Sent: Friday, April 13, 2001 6:10
PMTo: [EMAIL PROTECTED]Subject: Re: struts
can't find properties file
Anyone know ifthis error means it's finding
the file but not the
I don't know about that. I get the same error if it
can't find the file.
I moved my properties file, restarted the server, and this is
the message:
javax.servlet.ServletException: Missing message for key
internalLogin.title
- Original Message -
From:
Nanduri, Amarnath
I had the same problem too. I was getting the same error even though i had the
key in the properties file. I then copied the key from the jsp file and pasted
it in the properties file. It then worked fine. I think it must be an invisible
character somehow being placed in your properties
You're right. This doesn't seem to be working. I'd report it as a bug.
http://nagoya.apache.org/bugzilla/
[EMAIL PROTECTED] wrote:
Ted,
I tried this with no success. I put two html:image tags into my
login.jsp
trtd/tdtdhtml:image page="/images/lanikai.jpg" property =
it is not a bug of Struts, but the browser's.
Jesse
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 13, 2001 7:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [Fwd: FW: REPOST: How to code and use the html:image tag?]
You're right. This doesn't seem to be
You were right, the class was not public.
What exception does it throw? This should be in the log file for your
servlet container. I would bet, however, that your class is not "public",
or does not have a public no-args constructor.
Thanks
Alex
I'm getting the same result with Netscape 4.7 and IE 5.5 -- so if the
browser react to the input image, like the submit button, but do not
pass the value the same way, then the only alternative seems to be to
examine the x:y parameters, and use those to determine which button was
pressed.
If
Niall,
I guess your formula does reduce coding for ActionsForms which require
simple validation do not need to access the model for any type of
validation, but I think you will still have to write a class for every
form where you will create your validation rules. This does not eliminate
the
I am looking for all type of tags such as equal, iterate etc related to
logic presentation.
Just out of curiosity why did u not decide to use TagLibs instead of
building your own, were TagLibs were not sufficient or were not available
when u started on your project.
Rajan
--- Peter Alfors
Hi fellow Struts users,
I wanted to start a small discussion on something very general: what Struts
gets you over embedding scriptlets in your JSPs (i.e., Struts vs. no
Struts). I know, it's Friday, so we should all be going home... anyway, here
goes it:
Given my (limited) experience in
Could anybody provide me with the link where the archive of
Struts-user+dev list are stored. I tried www.mail-archive.org, but that
does not work.
Rajan
--- Rob Leland [EMAIL PROTECTED] wrote:
It keeps users from double posting information,
for more info see:
See the struts-dev mailing list
Both projects started about the same time.
Check the archive on the Developer's list for a recent thread
(mail-archive.com).
Rajan Gupta wrote:
I am looking for all type of tags such as equal, iterate etc related to
logic presentation.
Just out of curiosity why did u not decide to use
On Mon, 9 Apr 2001, Erik Eriksson wrote:
Hi!
To bad, Digester seems to be a good idea
but this bug is making it impossible for me to
use it. All I need is someone to take the final-
declaration away, then I could inherit Digester
and override the methods I want.
Is there any plan on
On Mon, 9 Apr 2001, Yuriy Zubarev wrote:
Hello friends,
I'm trying to give default value to some form elements by assigning this
value in 'reset' method of 'ActionForm' child class, but it's not working:
text boxes have no text, select elements always show the first item.
Any advices
Sorry I ment to say www.mail-archive.com even better
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
-Rob
Rajan Gupta wrote:
Could anybody provide me with the link where the archive of
Struts-user+dev list are stored. I tried www.mail-archive.org, but that
does not work.
On Mon, 9 Apr 2001, Jim Crossley wrote:
Two questions, please.
1) Why do I have to include the 'name' attribute of logic:iterate when
inside an html:form element? It seems gross to have the same string
in both the JSP page and the form-bean element in struts-config.xml.
The
On Tue, 10 Apr 2001, Will Spies/Towers Perrin wrote:
I actually found a good solution to this. Looking at the taglib code I
found this code all over the place when they throw exceptions:
pageContext.setAttribute(Action.EXCEPTION_KEY, e,
PageContext.REQUEST_SCOPE);
I've just
On Tue, 10 Apr 2001, Menno M Jansz wrote:
09/04/2001 13:39:53, "Craig R. McClanahan" [EMAIL PROTECTED] wrote:
There's no current support for something like this, but it would be
interesting to consider. Are you thinking that there would be an applet
for each field, or one for the
On Tue, 10 Apr 2001, Mueller, Franz wrote:
Hello all,
my impression is, when an Action returns null like:
ActionForward forward = mapping.findForward("some_forward"); // this
forward is not declared in the configuration file !!!
return forward; // return null;
the
On Wed, 11 Apr 2001, Ted Husted wrote:
I'm finding a similar problem with Resin - under SSL it connects fine
but the html:link tags resolve to a /a.
Can you quote me an exact snippet of your JSP page that does this? The
only way you could possibly get nothing at all is if you specified
On Tue, 10 Apr 2001, Girish Baxi wrote:
I am a new strut user as far as i know , isnt it a bad idea to store
data in the session scope simply becoz its not scalable for a multiple web
server scenario ...
is there any work around to using session scope in case of form beans that
span
On Tue, 10 Apr 2001, Moore, Amy L wrote:
greetings everyone...
My question is this:
What would the benefits be for using the validation() vs. client-side
validation with Javascript? Granted it would probably be faster for the user
if javascript validation was used, but in a few articles
On Tue, 10 Apr 2001, Cecil Pang wrote:
I have some trouble in initializing a variable of type ListArray in an
action form and I am getting null pointer exceptions. Can someone tell me
when exactly are the reset(ActionMapping mapping, HttpServletRequest
request) and
On Tue, 10 Apr 2001 [EMAIL PROTECTED] wrote:
Hi everyone.
After a very frustrating time trying to get Tomcat reloading to work, and trying
to do so with v4, I finally discovered that it is only version 4.0 b1 (and not
b2 or b3) in which this DOES work (see
On Tue, 10 Apr 2001, Suriyanarayanan, Senthil Kumar wrote:
Hello,
Is there a struts equivalent for setProperty. I'm using logic:equals
inside a html:form tag, to check for a specific property's value of the form
and display some extra information. I need to reset the value at the end
On Wed, 11 Apr 2001, Stanley Tan wrote:
Dear Sir,
I believe that if you downloaded the Struts framework, then you have
already downloaded the documenation. Let's say you unzipped Struts at
c:\jakarta-struts-1.0-b1. If you go to c:\jakarta-struts-1.0-b1\webapps,
you'll see a file
Title: Take Control Of Your Conference Calls
Why Pay More For Your Conference Calls?Only .18 Cents per minute (Including long distance!)No setup feesNo contracts or monthly feesCall anytime, from anywhere, to anywhereInternational Dial In 18 cents per minuteConnects up to 100
On Wed, 11 Apr 2001, Dmitri Plotnikov wrote:
I was interested in the same issue and did not find a good solution, so
I submitted a bug report:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1289
It does make sense for an ActionForm to have access to the context: not
just the session,
On Wed, 11 Apr 2001, Ned Seagoon wrote:
Hi guys,
I have a problem with relative urls. If I have an entry like
actionpath="/showDetails" type=""
forward name="success" path="/details/show.jsp" /
/action
and then /details/show.jsp starts to use relative paths, then things
On Wed, 11 Apr 2001, SPietsch wrote:
Hi,
may be a stupid question but I can't get the example (struts-upload)
working on a win2000 box with resin2.2+ .
As sun as I I hit the submit button I get an Servlet exception.
500 Servlet Exception
java.io.IOException: Das System kann den
ON 2nd thoughts, could one not achieve the results you are expecting using
client side JavaScript?
--- Rajan Gupta [EMAIL PROTECTED] wrote:
Niall,
I guess your formula does reduce coding for ActionsForms which require
simple validation do not need to access the model for any type of
On Wed, 11 Apr 2001, Adrian Perju wrote:
Hello,
I am using jakarta tomcat 3.1 and stuts.
Although element ordering fixed this particular problem, you will find
that Tomcat 3.1 has lots of other problems running Struts-based apps. You
are strongly encouraged to update to Tomcat 3.2.
On Thu, 12 Apr 2001, Alex Colic wrote:
Hi,
should you be overriding ActionServlet?
Since ActionServlet is the main servlet I need ActionServlet to during its
init method to read the servlet config settings and place the values into my
general purpose config object. Should I be
83 matches
Mail list logo