The documentation for the tag states the following:
"Retrieves an internationalized message for the specified locale, using the
specified message key, and write it to the output stream. Up to five
parametric replacements (such as "{0}") may be specified.
The message key may be specified directl
Hi everybody,
i am new Struts-user.
i would like to know, if Struts supports SSL?
Regards
Ebi
Dear all,
I am new with struts and want to use the "validation" features.
I have just downloaded and compiled the validation codes from latest cvs. Can any
body tell me any hints of the new validation.xml? I tried to "hack" it and understand
some of the syntax but still a bit
Hi , cheers 4 the return within the IDE when i go to ApplicationMappings
a mouseover prompt states invalid package declaration. Thus path is as u
noted plus the name of my package is package action;
Thus i intend to create another Action Class From the package
com.ora.jsp.servlets.
Thus can i jus
Cheers i believe that is the best line of action.
Excuse the pun.
Calvin Yu wrote:
>
> If you don't figure out why ApplicationMappings.java and
> ActionForward.java isn't compiling, it isn't going to help you to
> compile an Action class. I imagine the problem that is causing the
> compilatio
SSL is provided by your container, and then passes through to Struts.
See
< http://husted.com/about/struts/FAQ/controller-ssl.htm >
for more.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/
"T
Hi The PageContext instance gives us
access to implicit objects in the page.This is used mainly in JSP . Why
Can't we have something in the Servlet?
Why to directly use HttpServletRequest ,
HttpSession in the Servlet ?Better can't we get this from the container
specific implementaionsomethi
If you're referring to the PageContext that is available when you are
rendering the view, the answer would be because it doesn't exist yet ;-)
The Struts ActionController (a servlet) calls an Action (not a servlet),
and may eventually forwards to a JSP (another servlet). The PageContext
for the JS
Would you recommend using one subclassed Action servlet for both an EditAction
and SaveAction? I based my design off the example application - and have two
separate classes.
Thanks,
Matt
--- Ted Husted <[EMAIL PROTECTED]> wrote:
> Any of the patterns described in the recent "Core J2EE Pattern
I was not referring to Struts . We have something like PageContext in the
JSP . which we use to set some information using setAttribute method in
either Request scope or Session scope . Instead same could have done with
the
request.setAttribute( "key" val) or session.setAttribute("key" , val ) .
Hi,
my code looks like the following
True, but then you actually have a single-point again. Lose the server and
your stickiness is useless.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 16:41
To: [EMAIL PROTECTED]
Subject: RE: NewB: Is Struts completely reliant on sessions
To access the request in a Struts Action, you would reference the
"request" passed to the perform() method.
public ActionForward perform(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,// <--- request
HttpServletRespo
On 23 Jul 2001 16:29:52 +0530, suhas wrote:
> Better can't we get this from the container specific implementaion
> something like PageContext in the Servlet too? .
>
Why would we need to?
Calvin
What exactly is the package declaration? What is the file structure?
When you compile this class, what is the error?
Calvin
On 23 Jul 2001 11:07:49 +0100, Chuck Amadi wrote:
> Hi , cheers 4 the return within the IDE when i go to
ApplicationMappings
> a mouseover prompt states invalid package
I would, yes.
I use one Action class for all four CRUD operations on a table (or
logical view), along with any special retrievals.
I may use separate helper classes for specialized operations, but I try
to reduce the number of individual Action classes, since these are
instantiated for the lif
Wondered if anyone would bite ...
+ Extension matching for servlets is not available in some hosting
environments.
+ Some proxy servers choke on query strings. An enhancement to Struts
could use "extra path information" instead, but extension matching would
complicate matters. For more, see
<
Is there an example in any of your resources?
--- Ted Husted <[EMAIL PROTECTED]> wrote:
> I would, yes.
>
> I use one Action class for all four CRUD operations on a table (or
> logical view), along with any special retrievals.
>
> I may use separate helper classes for specialized operations,
This must be an error in the Tag Library Reference (in the source-code
of the bean:message tag there are no name and property attributes)!
Read the Tag Library Guides for the usage of the bean:message tag. In
this documentation name and property are not mentioned.
Matthias
Guus Holshuijsen wro
Clusterings Application Servers are designed to provide for just this case.
Weblogic and Silverstream are two that come to mind that support sessions
and clustering.
If a clustering application server isn't an option, I believe you have only
the two choices that were presented:
1. Make sure you
Here are somethings I can think of:
1) The PageContext class not only encapsulates these objects, but
container specific behavior as well (handlePageException, pushBody,
etc.). I would imagine the availability of request and response objects
here are mainly used to support these features, and n
Struts doesn't work with Orion for me, any
people have a solution!
Thank's in advance
01-07-22 22:24 strutsBlank: 1.0.2.2
Started01-07-22 22:24 strutsBlank: Servlet
errorjavax.servlet.jsp.JspException: Missing message for key
index.title at
org.apache.struts.taglib.bean.MessageTag.doSta
Hi , the path was the same as described (calvin yu ) , nevertheless i
have started again thus redeploy as you mentioned. Only other query
.properties files what is the correct notation as i am creating the
property files in Ms WordPad and the result is a txt notations ie
Form.properties.txt Thus
Hi Pls ignore that request from above it hit me to go to
W/EXPLORER > VIEW > FOLDER OPTIONS > VIEW > & UNCHECK HIDE FILE EXT FOR
KNOWN FILE TYPES.
Chuck Amadi wrote:
Sorry folks.
>
> Hi , the path was the same as described (calvin yu ) , nevertheless i
> have started again thus redeploy as yo
In my action classes, I am getting a populated JavaBean from my SessionBean,
and I want to know how to get an exception into the errors using errors.add().
The difference between this and traditional errors is that there is no key in
ApplicationResource.properties, but rather, I am grabbing a str
I have implemented the Value Object pattern in Together Control Center. My
implementation creates a vo based on an entity EJB (it would also work for
any other class with public attributes) and also adds a setter/getter for
the newly created vo to the bean class. The pattern can also be reapplied
Hello,
I have struts 1.0 based application that has 2 mappings:
excelServlet
/servlet/excelServlet/*
action
*.do
The application works fine until Excel servlet is invoked. Logged in users
can still use the application, however new users are forwarded to excel
I want to edit a
record in my database with a editForm.jsp?key=100 how do I get a reference to
the Formbean so that I can populated the form.
Erik Jan de WitSun Certified Java
Programmer
Finalist IT GroupBuilding Your E-business
Infrastructure!
---
Matt,
I'm not sure if this answers your question, but You can create a general
exception in the ApplicationResources.properties file, that takes in an
argument. Set the argument when you catch an Exception, such as the
EntityException.
---
Application
Hello,
I have got a problem
in running the example struts application. When I run my application ,
I get the first jsp page , i.e. index.jsp containing MailReader Demonstration
Application Options, but when I click on any of the other links, I get
this exception ,
org.xml.sax.SAXParseExc
Hi , can anyone work out this one i have followed the correct procedures
albeit i am missing somthing. (bbnpa the name of my application)
My path C:\jakarta-tomcat\webapps\bbnpa\helloworld\hello.jsp
1) declared directives.
2) created property file.
3) created web.xml file.
4)Copied all necessary
In your web.xml, what do you have defined for the application init-param?
where is your properties file located?
You have a couple of options:
You could place the properties file in your classes jar (in the appropriate
directory structure)
or you can place it in the WEB-INF/classes directory (wit
Hi all...
Can someone tell me how to write an entry in my struts-config.xml file
that will link me to another webapp/context. Do I have to put the entire
URL? I really don't want to do that so I don't have to worry about changing
server names all over the place.
So for example, I have 2
Am try to use Oracle for J2EE(OC4J) with struts and
this error appear:
javax.servlet.jsp.JspException: Missing message for key
index.title at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) at
/index.jsp._jspService(/index.jsp.java:106) (JSP page line 8) at
com.or
Hi , in my wem.xml i have the following defined for the apllication
init-param.
application
helloworld.HelloWorldResources
1
Tried the second option previously and again no joy.
The first option can i drag & drop
have to pointed classpath to "directory where ur example application is
deployed?" for example web-inf/classes ?
try this one.
However if u deploy the .war file I dont think it is needed
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 5:1
are you using tomcat 4? i get this message in tomcat 4 with struts
applications as well...
it's an issue with catalina working with struts, though i can't get anyone
to help me figure out what it is...
Jon Brisbin
- Original Message -
From: Chuck Amadi <[EMAIL PROTECTED]>
To: <[EMAIL P
Is your property file then located here ?
WEB-INF/classes/helloword/HelloWorldResources.properties
Pete
Chuck Amadi wrote:
> Hi , in my wem.xml i have the following defined for the apllication
> init-param.
>
>
> application
> helloworld.HelloWorldResources
>
Is struts supports JDO? Please let me know if any body implemented.
thanks
Shashi
ERAC
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 11:03 AM
To: [EMAIL PROTECTED]
Subject: Re: Baisc q 2 Cannot find message resources u/key -
Is your prop
I have an appliaction called "tmate" that is being deployed in the
"webapps/tmate" directory of tomcat so when I call localhost/tmate I go to
the index of my application.
I also have in my struts confix.xml file some action mappings that begin
with "/tmate" for example:
This has worked
P.S.
The pages that call the /tmate/projectSelect" action load fine (no "missing
action mapping" are thrown). Its only when the action is actually hit
(submit button) that the action can't be found.
D
> -Original Message-
> From: DHarty [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 2
Is there a way of accessing form data directly within a JSP page?
I want to insert a text into my html code by asking the form for
this value.
Let's assume, I have a JSP myPage.jsp that uses MyForm with a field
myValue.
How can I say something like:
Thanks in advance,
Holger
Hi Renzo,
When you implement a cluster you will typically implement (through the app
server) a centralized or backup session store. This allows the clients on
the failed server to be redirected to another server in the cluster that can
pick up the Session and continue handling that client's requ
We have recently switched to Struts 1.0 from a previous beta version.
After migrating we are having problems in uploading certain files. The
files do get uploaded to the server but the contents get corrupted some
times. We further investigate this problem and found out that files get
damaged when
"Matthias Brahm" <[EMAIL PROTECTED]> wrote:
> This must be an error in the Tag Library Reference (in the source-code
> of the bean:message tag there are no name and property attributes)!
> Read the Tag Library Guides for the usage of the bean:message tag. In
> this documentation name and property
If "MyForm" is the name giuven in the Struts config file.
Struts will instantiate the ActionForm for a mapping either when the
Action is called or when the html:form tag is rendered.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
I am having two different problems with my struts configuration:
1) Actions don't seem to be handled correctly. Anytime a submit button is
clicked (this happens on my application as well as any example applications
I have deployed) it comes back with a 404. I assume this is the setup with
Apach
All,
Can someone please post their iPlanet 6x configuration files for the
struts_example.war web application? I'm sure the answer to my problem is
entering the descriptor xml to point to the location of the resources file,
but since iPlanet does not support Webapps and WAR files, this is not a
s
iPlanet Web Server or App Server? The fix on the appserver is a classpath
thing - probably the same on Web Server.
--- [EMAIL PROTECTED] wrote:
> All,
>
> Can someone please post their iPlanet 6x configuration files for the
> struts_example.war web application? I'm sure the answer to my proble
This might be more appropriate for the Tomcat user
list, but I'll try anyway. I'm using Tomcat 3.2.2
and trying to map multiple ActionServlets in
web.xml. I have a for "*.do"
which I execute for the form action "search.do",
and everything works fine when this is the only
in web.xml. But as so
Matt,
Oops, I suppose I should have specified Webserver or Appserver. I'm using
iPlanet Webserver 6.0. My classpath points to the directory containing
ApplicationResources.properties which is: c:
\iPlanet\Servers\docs\webapps\struts\WEB-INF\classes\ApplicationResources.properties
This does no
I had the same question last week (and for some reason did not get any
response from
the mailing list?) ... anyway, it seems to me that Struts really does not
handle multiple
servlet mappings for the ActionServlet. When using extension mappings,
Struts finds the action mapping to use by strippin
Dave,
I had the similar problem (see my posting today). I had 2 mappings in
web.xml and 2 servlets which extended ActionServlet. Somehow, after I
access second servlet my "*.do" mapping was changed with url-path of second
servlet.
Don't extend ActionServlet more than once - it will screw up yo
Make sure your web.xml has the following entry for the action class:
action
org.apache.struts.action.ActionServlet
application
ApplicationResources
--- [EMAIL PROTECTED] wrote:
>
> Matt,
>
> Oops, I suppose I should have specified Webserver or Appserver. I'm u
I have a range I want to validate, and I want to display a maskmsg when the
value is not in that range. The reason is because I want to add HTML
formatting around the error message. Is there a place in validation.xml or in
my ApplicationResources.properties that I can do this?
I tried that foll
Nevermind, I found it as errors.range in ApplicationResources.properties.
Matt
--- Matt Raible <[EMAIL PROTECTED]> wrote:
> I have a range I want to validate, and I want to display a maskmsg when the
> value is not in that range. The reason is because I want to add HTML
> formatting around the
Does iPlanet Webserver 6.0 know how to use web.xml? Or is it like iPlanet
Webserver 4.2 which uses rules.properties to handle essentially the same
thing? (I have a call into iPlanet technical support for this question
since I think I am getting too much into the container implementation of a
par
When working with multipage forms it is desirable to have one bean in the
users session that is populated as the user goes through the various pages
of the form.
I mistakenly thought that this was one of the services that struts provides.
I have now discovered that this is not the case. When a f
Hi everyone. Apologies for reposting, but I am really stuck on this one, and
wondering if anyone has any ideas?!
After calling the action below to download a data directory, everything goes
fine, but somehow I lose the response output stream permanently! Thereafter,
whatever I try and view on
All,
Has anyone with iPlanet Webserver 4.x, 6.x been able to get Struts to work?
If so, have you run into the:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE error?
If so, how were you able to fix it?
Thanks,
Brian
Does anyone know of a "time" validation that I can add to my validation.xml
file. It would be similar to the entry below (I figure), but would validate
the time is between 0:00 and 12:00, or 0:00 and 24:00
__
Do Y
Try using "session" scope instead of "request".
--
gR
Dave,
It sounds like you may be having a problem with holding onto the session
between your two frames. If this is a possibility, then set a session
variable in the lower frame and try printing out your session information
in the top frame to see what is going on.
Brian
Struts calls the reset() method on any bean before populating it from a
request. This is to allow general reuse of beans, and to be sure some
controls like checkboxes are handled properly.
You may need to be sure that the reset() method for your session-bound
ActionForm bean does not blindly clea
I downloaded the source of the nightly build and you are right, there are the
two attributes.
But in the 1.0 final release of struts (which i use) there are no property and
name attributes for the bean:message tag.
Matthias
> "Matthias Brahm" <[EMAIL PROTECTED]> wrote:
>
> > This must be an e
I understand the purpose of reset, but do not understand how and why struts
chooses to reuse a particular bean by resetting it. Does it take then bean
from the users session, or does it pull it from a pool of beans of that
type. If it takes it from the session and then calls reset I would be
comfo
I am requiring "name" and "description" on a form.
When I don't enter either of these, the errors are displayed that description,
then name is required.
I'd like the errors to show the order that they're required in my
validation.xml file, or in the form itself.
Any ideas?
Matt
__
Hi Brian,
Thanks for the suggestion, but don't think that is the case, as in another
download situation, I'm not using 2 frames, and still getting same problem. I
have stuck a println statement in, too, which shows I have access to the same
session.
Any other ideas? This is really strange!
Struts doesn't maintain a pool of beans (or any other object).
It just looks for an existing bean in the target scope before creating a
new one of the same class. The ActionForm beans all have the same name
(given in Struts-config), and so if it didn't, the new one would just
overwrite the old o
You can force the order by associating the error with a particular property
when you add it to you ActionErrors. Like this:
ActionErrors errors = new ActionErrors();
errors.add("name",new ActionError("name.required"));
errors.add("description", new ActionError("description.required"));
Then in y
You are correct. I looked at the code a little and see that in fact it does
pull the bean from the users scope just as I desire. I had implemented the
reset methods in my form classes when I first started the application
thinking that they were required for the pooling to work properly. When I
rem
Ted Husted wrote:
> Struts doesn't maintain a pool of beans (or any other object).
Oops, except for connections in the GenericConnection pool. ;-)
Other than that, the most we do now is cache objects, like Actions, one
per application, that are multithreaded anyway.
I think I've followed the instructions but
I'm getting a:
Missing message for key index.title
for the struts-example app.
The properties file is there, but it doesn't seem
to be able to find it??
Done some more testing on this, and I only lose all output if I SAVE the file -
if I chose to OPEN the file at the download prompt, the zip file opens and when
I close it, everything is still fine. However, if I save it, when it is done
none of the other pages appear, even though the action is
In the more recent nightly builds (around a week) of
Struts the ActionErrors class now maintains the order
error messages are added in. So if you can switch to
a newer build it should maintain the order.
David
--- Matt Raible <[EMAIL PROTECTED]> wrote:
> I am requiring "name" and "description"
Documentation and the javadocs are posted at
http://home.earthlink.net/~dwinterfeldt/ and are
included with the source. The overview goes over the
validation.xml to some extent. I would read over the
documentation and look at the example web app if you
haven't done so already.
David
--- [EMAIL
I need to create a hidden field in a form that is initialized to a value
that I am iterating over. (I am creating a form that allows a parent user to
manage their child usernames.) I tried something like this:
The username displays correctly, so I know the bean:w
The Action handles flow-control, and selects page displays, including
error pages. Actions should be prepared to cope with whatever exceptions
are thrown, either directly or with an ancestor method.
See also <
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg09256.html
>
and
<
ht
I think you may have misunderstood the problem. ".do" IS triggered, but the
Struts mapping object registered under the "path" may not be found. In
other words consider:
"/charts/display.do"
"/news/display.do
"/events/outdoors/display.do"
I want ANY occurence of "display.do" in the path to tri
To answer the original question:
> Can someone tell me if there is a way to configure an action to match
> a path regardless of how deep it is in a directory?
No. There is not a way to do this, without changing the way Struts is
programmed to behave.
You could request a feature change in Bugz
Hello!
I have a problem. A strange problem.
I'm new to struts tougth i have a strong
programming background.
I wish to use flash with struts. What I want is to
use the "loadVariables"
function of flash. What this function do is to open
a http connection to the
server and read and process the
Hello all. I just got back and was reading
the e-mails about workflows. By the tone and lack of dialog I think that
we are not sure how we really want to design workflows still. So lets
have more discussion on the subject. When its clearer we will better know
what we want to do.
Here a
Hi vietk!
I haven't seen anyone reply to this message yet, so on the chance that you
haven't gotten the answer, here's some help.
The template you set up should have an additional call to the actual page
that you've written. This can be done by defiinig a call to a "content"
section of the temp
Is your properties file in the WEB_INF classes dir? This is where it needs
to be in order for runtime objects to access it. However, I have seen other
Tomcat users with the same issue, even when it's in the right place - I
believe those ppl were running Tomcat 4. If this is the case, I apologize
A nice way of looking at workflows is
EVTX diagrams/methods
Where
E - Entry Criteria to start process activity
V - Validation Methods (inspection methods)
T - Tasks in the process activity
X - Exit Criteria to say task is complete
You can define your process by Listing the process activites
(Ea
Just remove the struts.jar from the root lib folder... ie, keep the
struts.jar file only inside individual webapp folders, not outside.
-Original Message-
From: Casazza, Robert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 3:04 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat - exampl
In Java Pet Store Application there is some mention
about workflow .Why can't we just follow it ?
Here is what they do ? from requestMapping.xml (
similar to our struts-config.xml input mapping)
com.sun.j2ee.blueprints.petstore.control.web.handlers.SigninHandl
I am having two different problems with my struts configuration:
1) Actions don't seem to be handled correctly. Anytime a submit button is
clicked (this happens on my application as well as any example applications
I have deployed) it comes back with a 404. I assume this is the setup with
Apac
Hi all,
There were some discussion about this matter but I can't find a workable
answer.
I still can't manage to make Strut work on Tomcat with Apache: the server
can't understand .do extension (using Tomcat alone work fine). I've followed
the doc carefully, and also followed the advise on the m
i get this same error on the plain binary download of tomcat 4 and try to
fire the struts example...
jb
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 3:26 PM
Subject: Re: iPlanet - Cannot find message resources u/key
>
> All,
>
> Has
the problem i found with tomcat 4 can probably be fixed this way in iPlanet:
delete crimson and parser jars from the catalina/jasper directory and put
xerces.jar into the catalina/lib directory...this fixed it for me...
Jon Brisbin
91 matches
Mail list logo