Hi there,
I have the following problem: in order to prevent the web-browser
from using cached versions of a jsp, we plan to add some unique
timestamp (which will actually be ignored by the jsp) to the url
that calls the jsp, e.g.:
a href="/jsp/view.jsp?ts=%=
Hi,
Does anybody have an experience of properties that are not in the
name=value format (xml format for example). It seems that I need to
create a new subclass of ResourceBundle (like PropertyResourceBundle)
but is it an easy task ? Do you know any example of such a thing ?
Thanks
Sebastien
-Ursprungliche Nachricht-
Von:Lind Jurgen [SMTP:[EMAIL PROTECTED]]
Gesendet am:Mittwoch, 14. Februar 2001 11:18
An: [EMAIL PROTECTED]
Betreff:Avoid JSP caching by the browser
Hi there,
I have the following problem: in order to prevent the web-browser
from using
Title: If property !=null tag?
If you are
using Struts 1.0, have you tried?
logic:present
name=yourForm property=yourProp
Shown
only when yourProp is not null
/logic:present
-Original
Message-
From: Gössel, Stefan
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14,
Hi,
We are creating a web-application using Struts and JSPs. Everytime it is
necessary, we use Struts. When we will make a new frameset, we work without
Struts. Everything works fine accept the following situation:
In one frame there is a form. The target of the form, if it is submitted, is
the
Hello Maya,
Wednesday, February 14, 2001, 3:12:04 PM, you wrote:
MM Oleg,
MM Thank you very much for very detail, helpful answer.
MM The best wishes and good luck.
MM Maya
Always welcome. 8)
You can store image file names in properties in use it in img tags
- img src='bean:message
Title: If property !=null tag?
Hi,
I used the ifPropertyNotEquals tag like
this:
struts:ifPropertyNotEquals
name="ViewOrderForm"
property="orderLI"
value=""
It seems to work fine. The property orderLI
is an array which if there is no value in it returns null to the JSP. I
don't think
Get (download) and install each component-project (Ant, Apache, Tomcat,
Struts) separately. Read INSTALLATION and README files in each project.
A lot on-line documentation.
T Gore wrote:
What
all do I need to download to have Web Server (Apache) a servlet / JSP reference
implementation
Thank you, David.
I have tested struts-example with disabled JavaScript on Netscape. It is still
working!!!
Maya
"Verratti, David" wrote:
Hi Maya:
In Netscape 4.7: Choose Edit--Preferences--Advanced, unselect enable
Javascript
Don't think you can in IE, means you can rely on Javascript if
Check. Updated i8n to i18n.
Thanks,
Craig.
Maya Muchnik wrote:
Craig,
You have an error on page 28: not i8n, but i18n. I have got the explanations on
it.
Maya
Craig Tataryn wrote:
droolAr, Dark Angel/drool
Ted, I'll cut the "only" word out of there tonight after I
Maya Muchnik wrote:
Victor,
Could you, please, email where the Components tutorial is.
Components tutorial try to explain basic about Components.
It can be found on Component web site :
(main) http://www.lifl.fr/~dumoulin/components
(mirror)
Title: If property !=null tag?
Hi,
I use
the logic:present and the logic:notPresent tag in Struts 0.5 and it works fine
now.
-Ursprüngliche
Nachricht-Von: Chris Evans
[mailto:[EMAIL PROTECTED]]Gesendet am: Mittwoch, 14. Februar
2001 14:17An: [EMAIL PROTECTED]Betreff: Re:
Hello everubody!
I have in my test file string like this:
#22: struts:form action="logon.do" name="logonForm"
type="rss.simple.LogonForm"
and I get this exception (I have empty string number 23):
org.apache.jasper.compiler.CompileException:
E:\java\tomcat\webapps\simple\indexNew.jsp(23,1)
My question is best asked with an example... Why is it that I am unable to
create a property named "nTerminal" for my ActionForm/JSP? This problem
occurs when there is an uppercase letter in the 2nd position of the property
name. If I change the name to "nterminal" or "ntErminal" then things
Craig T.,
Thank you very much for your response. And I have got the answer for
my 2nd Q. from Oleg.
Maya
Craig Tataryn wrote:
Maya,
1) The language should change from the default after the user changes
his/her browser language if:
the user does a refresh in his browser (or perhaps just clicks
Hello Craig!
Thanx for answer. Here my file indexNew.jsp
Michael.
-Original Message-
From: Craig Tataryn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 6:22 PM
To: [EMAIL PROTECTED]
Subject: Re: Please, help with strange exception
Looks to me like you are using an
Yes,
you described the scenario perfectly, and much better than I did :)This is
how I understand the process as well. Using your same example,Struts will
not allowthat tag html:text property="nTerminal"/and
subsequently will not processthe expectedmethod named
getNTerminal(). Instead a
As suspected, replace: struts:text name="username" size="10"/>
with struts:text property="username" size="10"/>
The name attribute is to be used to specify the name of the bean the
property attribute applies to. In this case, you don't have to specify
a bean name because it is within a
Hi,
I am trying to install struts and am receiving the following error when
attempting to start tomcat. Can anyone shed light on my situation? I've
got jaxp1.0.1, and the test example for it worked properly.
Thanks,
Jessica Anderson
Starting tomcat. Check logs/tomcat.log for error messages
I think it's a problem with having the first letter of your property as
a small letter, I don't think it matters that the second letter is capitalized.
Try it out and see.
FYI:
Found this somewhere a while back:
===
A PropertyDescriptor indicates not only the property,
Jessica,
There were a lot of errors posted to this email list with similar error
messages. Check where struts.jar is located in your computer and if you added
its any location to CLASSPATH.
Maya
"Anderson, Jessica" wrote:
Hi,
I am trying to install struts and am receiving the following
Hi,
You can try:
meta HTTP-EQUIV="expires" CONTENT="0"
Regards,
Benjamin.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
g]On Behalf Of Lind Jrgen
Sent: Wednesday, February 14, 2001 6:56 AM
To: [EMAIL PROTECTED]
Subject: AW: Avoid JSP caching by the browser
Hi,
I am quite new to Struts and was wondering if someone could help me with the
following issue:
I am on a web page and I have entered some data and I click on Submit. Now, the
Action class correspoding to its JSP page gets executed. I would like the
perform() method of the Action class to
David,
I tried having the struts.jar in both places that you mentioned and made
sure the classpath reflected the location. But no change...I am still
getting the same error. Should I completely remove the jar from one
location if I am pointing to the other location in my classpath? Would that
Hello,
I'm struggling with a problem about iterate and bean write as used in the
example application.
I have an object OrderList which is registered as the attribute "orders". This
object contains
objects from the type Order (OrderList actually is an ArrayList). There is a
property getter
Craig M. answered this question yesterday in a mail titled: "Proper way to
'forward' dynamically"
Craig M. said
When I need this, I just create a new ActionForward dynamically:
String path = ... create context-relative path to new page ...
return (new ActionForward(path));
The path you
The way I implemented this is I define multiple forwards in the config file
such as
forward name="cond1" path="/cond1.jsp"/
forward name="cond2" path="/cond2.jsp"/
...
...
and in my action class, I have
if (cond1) return mapping.findForward("cond1");
else if (cond2) return
The following was posted by Craig yesterday and it should answer all of your
classpath questions related to struts.jar. The short version is just put
struts.jar in WEB-INF/lib and do not put WEB-INF/lib in your tomcat
classpath. Do not put it any other location that tomcat can see.
---from
Padma,
Can you be more specific? Do you need to display an error corresponding
a label to the field, or you need to display a field number ? I think,
struts-example shows how to display a field label together with its error.
And all errors are displayed on the top of the page. Do you need
I need
to put the indicatorright next to the field(s) that result in error.
As Hal explains in his response that the error
description can be displayed using the property name corresponding to the field.
Instead of displaying the error description I need to conditionally display an
image
We are building a large scale WebLogic 6.0 application using Struts and I
have an implementation question.
We have a need to address multiple browser windows on the same client
separately. Our application data is based on the user being part of a
'location' and we want to support an
I argued not to echo the password when this first came up. I still feel that
way and also feel there should not be a boolean allowing the password to be
echoed back. Not everyone who sets the boolean to echo will understand the
ramifications.
I also don't believe we would be doing the user a
Guys, you are very good! Please help Mark.
Original Message
Subject:
Re: Taglib URI error in Weblogic60
Date:
Wed, 14 Feb 2001 14:22:41 -0500
From:
Maya Muchnik [EMAIL PROTECTED]>
Reply-To:
[EMAIL PROTECTED]
Organization:
Puma Technology
To:
[EMAIL
Is there a way to forward a request to more than on
JSP from the same action class, and have the JSPs
updated different frames?
Scenerio:
When a user logs into the system and the login request
gets forwarded to the "LoginAction" class, I would
like to forward this request to two JSPs: 1.) To
again my qustion:
after a change in any of a formbean class or an action class i will have
to restart tomcat (3.2) otherwise my app. runs into cast-exceptions.
is there any way to avoid this restart. maybe something is wrong with my
setup.
thanks in advance
g.
I think, you need to config your server.xml file to tell to "reload" your
classes after they are changed / rebuilt.
Do you config server.xml for your new application?
gustav spellauge wrote:
again my qustion:
after a change in any of a formbean class or an action class i will have
to
We have the same problem. We forward our "success" to a frameset (jsp) with
two frames included that point to different jsps. The problem we have with
this approach is the fact that we produce three requests and 'loose' our
errors because those are bound to different requests.
Oliver
--
I'm working to build a web based application using Struts. Currently we
have a mocked-up prototype which uses frames (iframes in particular) to
control what gets displayed on the screen. In general the format of our or
pages consists of three frames:
Top (header/navigation stuff)
Main (the
Tomcat 3.2 only supports hot-swapping of servlet classes, but not their
dependencies like bean classes, so you either have to restart Tomcat, or
use its admin interface to remove your application context and add it again.
Note that the latter is not necessarily faster (usually takes me four
I don't know if this qualifies as a bug or a feature proposal.
I am using Structs as a framework to a sample application that generates
a report. The application has two kinds of users (regular and superuser),
who must set certain parameters before doing POST to /report.do
The problem is that
Hi,
today I want to thank everybody who was involved making STRUTS such a simple
but effective framework and to everybody in this mailing list showing the
world :-) that OpenSource is an working alternative.
We, that is a large insurance company (80.000 employees), today decided
to stuff our
No, I guess not. We make heavy use of framesets and frames and we did not
config anything special.
You should use the target-property of your form in the logon.jsp to point
the result to the frame you came from.
Oliver
-- Original Nachricht --
I'm working to build a web based application
that's not the problem i duoblechecked it.
see the answer of Maya Muchnik. i think that's the probalem.
tanks anyway.
g.
Maya Muchnik wrote:
I think, you need to config your server.xml file to tell to "reload" your
classes after they are changed / rebuilt.
Do you config server.xml for
thanks,
that's what i thught but now i can be quit shure.
do you think/know if tmcat 4.x will support hotswapping of all dependencies ?
g.
"Shkuro, Yuri" wrote:
Tomcat 3.2 only supports hot-swapping of servlet classes, but not their
dependencies like bean classes, so you either have to
I am not aware of any mechanisms in Java to inspect a class and determine
its dependencies (although javac obviously has to do it, but its
proprietory).
I think this issue is too difficult for any container to handle
automatically.
-Original Message-
From: gustav spellauge
Joerg Beekmann wrote:
I argued not to echo the password when this first came up. I still feel that
way and also feel there should not be a boolean allowing the password to be
echoed back. Not everyone who sets the boolean to echo will understand the
ramifications.
I also don't believe we
I've been through the examples included in the struts0.5 release.
Specifically I'm looking for examples of using the select element with
dynamically generated options. I have seen the options element and read
its definition but still am unclear on how to use it.
For example, I want to retrieve
Maya Muchnik wrote:
Thank you, David.
I have tested struts-example with disabled JavaScript on Netscape. It is still
working!!!
Maya
The only JavaScript code in the Struts example is the attempt to set input focus
on the first field on each form. In this case, the lack of JavaScript is
"Shkuro, Yuri" wrote:
I am not aware of any mechanisms in Java to inspect a class and determine
its dependencies (although javac obviously has to do it, but its
proprietory).
In Tomcat, it only works in the restricted case where the class is loaded from
an individual disk file under
I have a couple more questions regarding Struts and frames as well as a
question concerning web site organization.
I was able to get my frames-based Struts application to sort of work after
adding the "target" property to my logon form. This leads to my next
question. My current page has
Hi Craig,
Yes I expected this to work as well, since the first letter is not
capitalized. Craig (T) provided some info from the spec, but this should
only apply if both the first and second letter are caps. Not a big deal
really (just changed my property names), but something to be aware of...
I agree. There are at least a couple of reasons for doing it this way:
1) If the user has not logged out, a hacker could decide to change the
user's password without knowing the old password. Thus, the user is now
locked out and unable to regain access to the system.
2) Perhaps even worse, a
Just FYI - it's not that hard.
toolkits to get this info
http://www.inf.fu-berlin.de/~dahm/JavaClass/ (lgpl'd byte code tools)
or
CFParse from IBM alphaworks
(both can be used the get all the classes used by a class)
some tools that do this sort of thing...
Why are we not using html meta tag expires
META http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT"
am i missing something.?
Vinay Shukla
HPBluestone
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 3:44 PM
To:
Use the Action.saveToken(), Action.resetToken(),
Action.isTokenValid() for
form transactions. This does exactly what you want.
see
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02888.html
for the thread that discusses this.
Lind Jrgen wrote:
Hi there,
I have the
I am new to Struts and Turbine and am trying to get a feel for their
compatibility from the Struts perspective. The Turbine site says that it
can be integrated with JSP, which I infer to include Struts. However, it
*seems* that Turbine developers prefer the templating systems over Struts
(maybe
I am new to Struts and Turbine and am trying to get a feel for their
compatibility from the Struts perspective. The Turbine site says that it
can be used with JSP, which I take to include Struts. However, it *seems*
that Turbine developers prefer the templating systems over Struts (maybe I'm
Jonathan Carlson wrote:
Are there a lot of Struts users using major Turbine components like the user
access control module? If so, is it 2% 50% or 90%? In other words, how
compatible are they really? I checked the archives but didn't see much that
answered this question.
What I'm really
I personally don't use anything from Turbine, because it's design seems to
predicate certain skills and page concepts that don't necessarily occur in
my projects.
As for reusing code within Turbine, the major factor stopping me from doing
that is lack of knowledge and accessibility. Having
One Resource for this is the mail archives.
http://www.mail-archive.com/struts-user%40jakarta.apache.org/maillist.html
Use the keywords 'jbuilder context'
This will bring up an answer to your question, last answer.
[EMAIL PROTECTED] wrote:
Hello,
it's only slightly related to STruts,
Use the Action.saveToken(), Action.resetToken(),
Action.isTokenValid() for
form transactions. This does exactly what you want.
see
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02888.html
for the thread that discusses this.
Lind Jrgen wrote:
Hi there,
I have the
You can probably get javascript to update the parent
frame. I did this in a previous project but now avoid
frames, even if the speed up page reloads.
Shad wrote:
Is there a way to forward a request to more than on
JSP from the same action class, and have the JSPs
updated different frames?
Kishore Subramanian wrote:
Hi,
What are the reasons to have only one instance of the ActionServlet (controller
servlet) ?
To clarify slightly, there is one instance of the controller servlet per web
application.
The reasoning is that some resources are truly application wide, and there
What happens to me now is that after "return (new ActionForward(path))",
where path is the caller/previous url with new content( ig, delete a record
in an array ), I need to refresh the content!
Any suggestions? Thanks in advance..
Regards,
Silvia Yeh
-Original Message-
From: Craig
Hi there,
I have downloaded and installed the struts wars into tomcat/webapps.
When I restart tomcat I get the following error msg:
New org.apache.struts.example.User
Begin event threw exception
java.lang.ClassNotFoundException: org.apache.struts.example.User
When I load the struts-example I
I have another problem example that I had reported earlier. I had to change the
property name from eMail to email to get it through.
"Craig R. McClanahan" wrote:
[EMAIL PROTECTED] wrote:
My question is best asked with an example... Why is it that I am unable to
create a property named
Drew,
I have the struts.jar on the CLASSPATH.
It may be this that is screwing you up. You have to relearn some things
about classpaths when you start working with j2ee style servlet
containers. Make sure the struts jar(s) are not in tomcat's lib
directory or your classpath. It should be
Hi All,
Does anybody know how to set the focus for a text
field on a form?
Thanks
David J SnowsillPrincipal ConsultantCalibre
Financial Technology[EMAIL PROTECTED]Office:
(61-2) 9212 0527Mobile: 0403 091 468
***This
E-mail is intended only for the
Hi Craig,
Our web-app looks like:
ActionServletMain
ActionServletModule1ActionServletModule2 ...
All of the controllers are living in the same web-app.
The main controller is the
69 matches
Mail list logo