Hi,
I ran into the following problem: I want to specify a local forward that
represents an action URL. The action requires parameters that I want to
pass
in common HTTP fashion, namely
/product.do?action=listsortBy=dateorder=desc
Therefore, I have an entry in struts-confix.xml that
replace '' with 'quot;'
- Original Message -
From: Thomas Quas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 4:44 PM
Subject: Local Forward with Parameters Causes Exception
Hi,
I ran into the following problem: I want to specify a local forward that
Hi,
I am using the latest cut of Struts from the nightly build. I need the iterate
function.
Something has happened to my error messages. In my action class if a method fails I
set the
following error:
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(error.invalidBidAmount));
Hi,
I am trying to do something simple. I have a bean that has a method that returns a
boolean.
Depending on the value I want to display one image or another.
In other words, if the bean value is true then I want to display a check mark image,
if it false I
want to display another image.
Any
Hi,
Also a bit off subject, but I need some mapping for JSP pages.
I get the thing working for servlets fine, using servlet servlet-mapping.
I dont seems to get it working for a JSP page.
Could someone be so kind to define the web.xml stuff for following small setup :
jsp page to be
In Ted Husted's Catalog at http://husted.com/about/struts/catalog.htm, he
states the following:
Place all Java ServerPages below WEB-INF
The container provides security for all files below WEB-INF. This applies to
client requests, but not forwards from the ActionServlet. Placing all JSPs
below
I've created a simple struts app but get the following exception when I try
to load the .jsp page: home
javax.servlet.jsp.JspException: Missing message for key home.title
in my ApplicationResources.properties file I've got a key/value pair:
home.title=my home
In my web.xml file I've got the
If you can access ANYTHING in WEB-INF, you have a defective application
server. See if you can access your .class files that way, or your web.xml
file.
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 12:22 PM
Subject: Place
I've got a an action add, which requires a an argument code.
One (at least) of the possible forwards needs to specify this code on the
forward URL.
How can I do that?
Thanks
David Corbin
Hi,
I know I have seen this on this list but my searches come up empty handed.
I have a vector, 'list' returned to a page. I only want to show some text if the
vector size is
not 0 and the vector is present.
I have tried this:
logic:notEqual name=list parameter=size value=0
Hi,
I notice that the message tags written by David Winterfeldt have been rolled into the
Struts
project. I downloaded the latest version of Struts and I am retrofitting the message
tags. I think
I figured out that I need that following code in my action class to save a message:
Yep - I can access my web.xml via
http://localhost/NASApp/warName/WEB-INF/web.xml.
I guess iPlanet is defective in this area.
Thanks,
Matt
--- David Corbin [EMAIL PROTECTED] wrote:
If you can access ANYTHING in WEB-INF, you have a defective application
server. See if you can access your
To me, that's a security risk of enormous proportions
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 1:50 PM
Subject: Re: Place all Java ServerPages below WEB-INF
Yep - I can access my web.xml via
Hello all,
I have a set of Java classes that process an XML configuration file to
generate HTML form parameter information dynamically. I use this
information in a JSP file to serve my Form onto the browsers.
I have a servlet to handle the form submission and to validate the user
data. These
For a forward, you just put in an encoded query string for the path:
forward name=itemAdd
path=/do/item/Add?code=whatever/
For an action mapping, you can use the parameter property
action
path=/do/item/Add
...
The form beans are optional. If you have some other method for getting
input, you can just leave out name property from the ActionMappings.
Obviously, I can't speak to how easy it would be to cast the rest of
your Servlet as an Action, though since the ActionServlet is available
through the
Try using amp; for the ampersands. It thinks sortby is an entity
reference, as in sortby;
Thomas Quas wrote:
Hi,
I ran into the following problem: I want to specify a local forward that
represents an action URL. The action requires parameters that I want to
pass
in common HTTP fashion,
That directory structure doesn't look quite right to me. Usually, the
URL would be
http://localhost/myApp/WEB-INF/pages/pageName.jsp
[can't get there from here ;-)]
where there may have been a myApp.war that deployed the application.
-T.
Matt Raible wrote:
In Ted Husted's Catalog at
NASApp is iPlanet's way of passing stuff from the web server to the web
container - it's used as a tag. Anything with NASApp in the URL is auto
forwared to the web container. Rules for denying access to stuff below
WEB-INF is normally configured in the web container. Maybe the iPlanet web
Is there a proper Struts way of implementing localized html options
labels?
I need to display a form that has a select list of provinces/states.
Dependent on the user's locale, I need it to display, for
instance, British Columbia vs. Colombie-Britannique.
A quick perusal of OptionsTag.java
I should have mentioned that the actual configuration goes in the web server
conf (apache in the example I gave).
Scott
- Original Message -
From: Scott Wilson-Billing [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 10:29 PM
Subject: Re: Place all Java ServerPages
I'm definately talking about forward, but my whatever value is dynamic.
It's based on input (a parameter) into the action. I don't yet understand
the best solution for that.
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 26, 2001 2:56
Typically, there would be a finite number of inputs, and you could have
a logical forward for each one.
The ActionMappings form an API for the legal entry points to the
application.
Usually, the only thing that is truly dynamic is a reference into a data
source, to look something up. In that
Is it possible to have the focus of an HTML form dependent
on a variable?
Something like :
html:form
action="/login" focus=myFocus
TIA
Andy
BEGIN:VCARD
VERSION:2.1
N:Noble;Andy;;Mr.
FN:Andy Noble
ORG:Data Workshop Ltd
TEL;WORK;VOICE:+44(0)161 705 1518
TEL;CELL;VOICE:+44(0)7947 854916
I'm not sure where I'm miscommunication, so I'll go back to the beginning.
I have an action list. It expects an parameter tableID, so a link to it
looks like http://host/app/list.do?tableID=foo;, and if things are
successful, returns a page with a list of items that depend on the tableID.
For
You can construct ActionForwards from scratch, and I have seen people
include query strings with that.
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg14224.html
Personally, I would think about adding these parameters as hidden fields
to the ActionForm, use the form instead, and
You can use the forward in struts-config.xml as a base value and append your
parameters dynamically. Something like this:
ActionForward fwd = mapping.findForward(blue);
StringBuffer path = new StringBuffer(fwd.getPath());
path.append(?tableID=)
.append(tableID); // where
Anyone know how to configure this in iPlanet Web Server 4.1+? Also, if anyone
knows how to do it in IIS, that would be good knowledge too!
Thanks,
Matt
--- Scott Wilson-Billing [EMAIL PROTECTED] wrote:
I should have mentioned that the actual configuration goes in the web server
conf (apache
Thanks for your reply
I've checked and the rest of the application resources settings are there.
One thing that is odd is that after i get the error if i try and load the
struts-example application I get the same kind of error. However, if I open
up a new browser window the struts-example
Hello,
I need some help forcreate a new window with
no status bar and aspecific size, and with the current
session.
Thank you in advance
Jeff
Hi,
I am new to this struts concept and also this mailing list,i am very eager
to learn struts and want to work on it in my project at work place
cud any one please tell me, how to proceed
I have downloaded all the pre-requisite software components needed for
working with struts and also
Yes, you can do that. In your form bean, use a String[] (i.e. string array)
for the property type, and Struts will take care of setting all the values
when the form is submitted.
--
Martin Cooper
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August
Help me understand something. commons-beanutils.jar,
commons-collections.jar, commons-digester.jar, struts.jar are placed in my
.war files WEB-INF/lib directory. Everything is fine. I additionally copy
them into my JVM's classpath (in JBoss by copying them into the
jboss/lib/ext directory)
33 matches
Mail list logo