In the case at hand, nothing stops your user from logging on (so your
security checks won't catch anything) and then hand typing a URL with
query string parameters that maliciously or accidentally try to change
things in the system. If the user is successful at doing this, it's shame
on
Title: R:use JSP variable as a value of property in html:select ... tag
i think tha you should change .tld file adding the follow
rtexprvaluetrue/rtexprvalue
bye MaxL
--
Da: someil[SMTP:[EMAIL PROTECTED]]
Risposta a: [EMAIL PROTECTED]
Inviato: mercoledì 30 maggio 2001 14.42
A:
On Mon, 7 May 2001, Konstantin Priblouda wrote:
I solved my problem with form tag.
I discovered that action mappings in form
!-- Standard Action Servlet Mapping --
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
are
Hi all, im refering to an entity bean in action class and my application is
an ear file that is deployed successfully (musiccd.ear). im accessing the
application like this.http://127.0.0.1:7001/musiccd . but the page im getting is
empty and server shows following error. any body pls help me
On Thu, 10 May 2001, Mark Simms wrote:
1) Is SunMicro going to be supporting STRUTS from a financial and/or
marketing standpoint ?
I only saw one tiny, tiny mention of STRUTS in the JAVAONE outline of
presentations I just got in the mail.
That bothers me.
That's probably my fault for
A good way of removing the bucketloads :-} from your Action classes is to
subclass ActionServlet and implement processActionPerform to do the logon
check.
--
Martin Cooper
- Original Message -
From: Jim Richards [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 30, 2001
Thanks for your help but I have found the solution.
Variable var came from a bean and there was a problem in this bean
constructor. So my variable didn't have value.
- Cyril -
-Message d'origine-
De : Martin Cooper [mailto:[EMAIL PROTECTED]]
Envoyé : jeudi 31 mai 2001 06:21
À : [EMAIL
BY LOOKING AT THIS PAGE http://jakarta.apache.org/site/mail2.html
- Original Message -
From: Perez, Bill [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 16, 2001 10:40 AM
Subject: RE: struts-template and MVC
HOW THE HELL DO I UNSUBSCRIBE FROM THIS LIST
I'm trying to set the offset to a bean value which acts like a counter ...
Basically what i want to do is:
logic:iterate id=firstElement name=firstList
logic:iterate id=secondElement name=secondList offset=
length=1
...
/logic:iterate
/logic:iterate
where the offset is the current
When I have a validation send back errors, and I have previously set Request
attributes in my subclassed Action, when the control gets sent back to my
input page, my Form is still in the request, but it looks like my other
attributes that are set (namely lookup type lists) are not in this list.
We currently have a business requirement to provide a grid type of
interface as part of many web pages in our design. I searched the list for
Grid examples or support and did not find anything. Has anyone implemented
a psudo grid function using Struts... that would support the following:
I'm not exactly sure of your sequence of events, but keep in mind:
- If your form bean has a validate() method, then by default the
ActionServlet will call that validate method. If it returns any error
messages then the ActionServlet forwards to the specified input. This
all happens BEFORE the
We've successfully deployed an application using Struts 1.0b1 and it's
working fine. Yesterday however, we introduced an SSL certificate onto
the web server, and now, when my application is accessed via HTTPS
instead of HTTP, certain exceptions occur on a regular basis. One of
them is in
I guess you didn't look very hard. There are examples as early as yesterday
in the archives.
- Original Message -
From: du Clos, John [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 31, 2001 9:19 AM
Subject: Grid Support in Struts
We currently have a business requirement
We are currently using two different resource bundles. One for our messages and
another for our constants (that define
web look and feel). To do this, we overrode the init() method in the
ActionServlet and added another method to initialize a second bundle into a
different session attribute.
Jeff,
yes i did look at the example from yesterday, but it did not seem to be
multi-dimensional. Seems to iterate over a set object based on static
attributes on the object in a single dimension array; this is does not
fulfill our requirement of a grid. I need to dynamically add rows and
One additional thought. If you find it easier to have a bundle for each page, then
you could combine both ideas.
Use a more defined naming convention, and combine them into one bundle during your
build.
Peter Alfors wrote:
We are currently using two different resource bundles. One for our
Hi Peter. Read the whole thread and you will see some good examples as to
why I want to do this.
I think I will end up doing some surgery on the struts classes. I will
associate the page I am forwarding to with a properties file, maybe inside
the struts-config. That will mean I will have to
I've had small Struts web apps hosted on www.aoindustries.com for several
months now, and am happy with the service. They provide the entire Jakarta
project software suite. They are a small shop, but have very friendly,
competent tech support.
Jeff Trent wrote:
Anyone
know of a hosting
As the local neighborhood taglibs pusher in my company, I came
under some scrutiny about the lack of an Else in tags and realised
the difficulty about nesting XML tags legally, just as described by
Craig in his message below.
What I pretty quickly came up with is a switch syntax:
struts:switch
using the iterate tag, your columns wiuld just be an attribute on your
iteree (element, whatever)...
I cant really see your problem...
Mikkel
-Oprindelig meddelelse-
Fra: du Clos, John [mailto:[EMAIL PROTECTED]]
Sendt: 31 May 2001 16:14
Til: '[EMAIL PROTECTED]'
Emne: RE: Grid Support
Title: struts under tomcat 3.3-m3
Hi-
Just an informational note:
I have been failing to move a struts application from tomcat 3.2.2 to 3.3-m3. This seemed desirable because the new 3.3 milestone has tag pooling, and we have a good number of struts and local tags. Not only could we not
Not sure I totally followed your requirement, but I think I do something
similar in one of my systems. Basically, its valid to nest iterate tags like
this:
table
logic:iterate name=someBean property=collectionOfRows id=row
tr
logic:iterate name=row property=collectionOfColumns id=col
Anyone know how to precompile the JSP pages?
never mind - i figured it out. the problem was that my other property
was a Boolean and had isProperty instead of getProperty and that's why
it was not working
-Original Message-
From: Cukovic, Mirela
Sent: Wednesday, May 30, 2001 9:28 AM
To: [EMAIL PROTECTED]
Subject: problems with
If you are using Weblogic there is an Ant task that does it in the optional
package. I can't vouch for how well the current version works but I am using
a modified version that works fine. Tomcat has a batch file that will run
Jasper on a whole directory tree full of jsps. I used it once but I
This is discussed in Bugzilla #932
I think the finally resolution will be IBM upgrading to a current version of
jasper.
Bottom line is the change bellow creates other errors.
I made the same changes, I'll let the group know if I am able to update
jasper in WTE
R,
Nick
-Original
Ditto for WebSphere.
Chris
-Original Message-
From: Deadman, Hal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 12:59 PM
To: [EMAIL PROTECTED]
Subject: RE: Precompiling JSP Pages?
If you are using Weblogic there is an Ant task that does it in the optional
package. I can't
Thank you...
True, it is configurable, I see that.
So the ActionMapping object's getAttribute() method returns the name of the
'key' used to store the form bean, in this case an if block is used to
return the scope first, which determine where the form bean, references by
this mapping, passed
I am pre-compiling all my jsps using Ant and jspc.
Let me know if more info along these lines would help you.
Dave
Deadman, Hal [EMAIL PROTECTED] on 05/31/2001
12:59:16 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: RE:
Niall Pemberton [EMAIL PROTECTED] wrote:
1. This was answered before. See following message:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg05207.html
Thanks.
2. IMHO avoid scriptlets.
As well IMHO :-)
--
gR
Definately need more info--Thanks!. Once you have all the jsp files
compiled into classes, do you
1 delete all the jsp files (and tomcat will automatically use these)
OR
2 is there a setting in tomcat to not auto-recompile the jsp files?
Also, what is the command line for Ant to do
This is the rule that I have used in the build.xml file for pre-compiling
JSPs using WebLogic 6.0 jspc via an Ant build. Obviously the properties
(e.g. CLASSPATH) and paths need to be set up properly for this to work.
target name=jsp
java
for WebLogic 6.0 you can do:
When we start our application for the first time it takes some time for the
web pages to come up. It is because the WebLogic will compile dynamic JSP
pages at the first access. We can configure WebLogic to pre-compile all JSP
pages. In order to do that we have to add
Problem is I'm looking for a hosting facility that
offers Java + ASP hosting. Usually, I find these services lean one way or
another.
A bit off subject, but I'm wondering how these
providers have their environment setup so that each user can have a separate App
Server / VM, classpath, etc.
Please find attached my ant file, which should be self-explanatory. Set-up is
to use Tomcat 3.3's jspc.
You have to change your server configuration to use the pre-compiled JSPs. I
added the following mappings in web.xml in my WEB-INF directory:
...
!-- to use compiled jsps --
It looks like ExpertHost offers ASP support and it will
offer JSP support "shortly".
http://www.experthost.com/developers/
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Thursday, May 31, 2001 3:21
PMTo: [EMAIL PROTECTED]Subject: Re: Any
hosting
Hi
Guys,
I need
to populate an option tags value attribute with a string from the
ApplicationRessources.properties...
Is
there any easy way to do this
thanks
Mikkel
Not directly Struts related, but anyway, I'm trying to use LIKE '%?%'
as part of a prepared statement, but it's coming back invalid array
index. Apparently, the symbols are hiding the question mark. Anyone know
a way around this, besides doing the substitution and escape-coding the
old-fashioned
Ted,
I am assuming your query uses bind variable and you already know that
offsets start with 1, and not 0. So besides that, the way I would get
around this is by doing something like this:
searchStr += % + searchStr + %;
String strSql = select x from y where y.z like ?;
I need to send a string which represents a xml file to browser, I need to
call response.setContentType(text/xml). But it is at ActionServlet level
and is default to text/html.
1. Any idea?
2. I can do the output at MyAction.perform() level, but how to handle the
return type of this method?
I need to send a string which represents a xml file to browser, I need to
call response.setContentType(text/xml). But it is at ActionServlet level
and is default to text/html.
1. Any idea?
2. I can do the output at MyAction.perform(, request, response, ) level, but
how to handle the return type
If the perform method handles the response output, just return null.
-Original Message-
From: Wu, Ying (LNG-CIS) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 4:15 PM
To: '[EMAIL PROTECTED]'
Subject: output xml file
I need to send a string which represents a xml file
Please UNSubscribe me
Thanks,
Ravi
Hi Guys,
From my personal experience it would not be a bad idea for struts to
support multiple resource bundles. I will explain my reasons below.
At present struts has one resource bundle in which you can include error
messages , confirmation messages , labels on html fileds etc For
I have the strus classes already in the classpath
with out the struts.jar I shouldnt need the struts-documentation.war
file
I ask this because I cant figure out what struts is
doing when the ActionServlet is loaded. Below is my own printout using
weblogic. Notice how it calls init() twice
Hi.
I'm trying to employ Struts to help me build multi-page forms.
Those forms consist of all kinds of inputs, including multipart.
The questions are as follows:
1. How can I validate forms which I know will never set all of the
required elements at a time since the required elements can span
Hi,
I`ve just finished the installation of Struts
1.0b2. I'm using Tomcat 3.2.1 and Apache.
When I call /struts-example/logon.jsp I receive
the following error back:
Anyone has had such problem ? How to solve ?
Thanks,
Marcelo R. Romaniuc
Location: /struts-example/logon.jsp
point ur path/classpath to struts.jar if its not under root/lib
usually u wd have it under ur webapps/WEB-INF/classes/lib
hope that works
vin
-Original Message-
From: Marcelo Romaniuc [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 3:05 PM
To: [EMAIL PROTECTED]
Subject: New
I've done some work on a validation framework for
Struts that is based on defining rules in an xml file.
Right now it depends on associating a field with a
page and setting a variable in the JSP page to set
what page you are on. I had a long discussion with
someone on how to make it not depend
I
believe It's calling init() twice because you have two Struts Applications in
your webapps directory - the Struts Example and Admin - both initializing their
own ActionServlet. I went to have a look at Admin because, I only glanced at it
a while back - but couldn't find it so I must have
The problem we found was that a master list is impossible to manage. For
instance, on the soon to arrive 10th page of the property file, you will
have to search all of the previous pages to check to see if you already used
the property name already. Chances are that you did use the name already
To those who have done it
Can you advice on how you manage to redirect the http request from http to
https?
I have following scenario (typical of a shopping site).
1) User search and place item into shopping cart (eg calls
http://www.acmeshop.com/addtoshoppingcart.do)
2) addtoshoppingcart.do
At 11:53 PM 30/05/01 -0700, you wrote:
A good way of removing the bucketloads :-} from your Action classes is to
subclass ActionServlet and implement processActionPerform to do the logon
check.
It's not just for login though, that was the example I used, every action that
generates a form needs
For Oracle anyways, inside a prepared statement you could use ... like '%'
|| ? || '%' ...
Ryan Rich
Bitek, Inc.
2569 West Woodland Dr.
Anaheim, CA 92801
(714) 828-8388
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: [EMAIL
Hello All,
Currently I'm working on a form, but before submit,
I have an onSubmit() in my form tag that verifies they want to submit. The
problem is that with my confirmation javascript popup, whether the user selects
"OK" or "Cancel", the form is still submitted. Is there a way to prevent
That is because you do not have a "return"
specified on the javascript line.
- Original Message -
From:
Steven Leija
To: Struts
Sent: Thursday, May 31, 2001 8:46
PM
Subject: Using Javascript to cancel
submit?
Hello All,
Currently I'm working on a form,
Hi Spencer,
I'm checking through my code and unless my return
statement is in the wrong place, it didn't fix my problem. Below is my
code:
% String value =
"if (!confirm('Are you sure you want to remove " + TITLE + "?')){return;};
";%
html:form action="/removeTitle.do"
im facing problem in excuting an example
source provided by the link:
http://gallery.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/Trail4.1.htm
im running this example in weblogic 6.0
and i get following errors. i have kept struts.jar in server classpath.. still i
I did so and the error is still there...
What struts.jar has to do with the error
messages... all of the messages refers to tomcat and
jasper classes, not struts?
Please, help me!!!
Thanks,
--- Vinod Shintre [EMAIL PROTECTED] wrote:
point ur path/classpath to struts.jar if its
60 matches
Mail list logo