All,
What is your experience with the Web server you are currently using to run
Struts? Does it handle pages with a large number of tags well? Have you
had to discard a certain server because of a problem in favor of another?
Any comments appreciated...
Thanks,
Brian
--
To unsubscribe,
Pete was right.. I needed to specify. I'm looking for high-end, high-load.
1 million hits a day on a server that implements a lot of JSP tags.
Somehow I don't think Tomcat's going to do that (nor do I think my
management is going to like using a server that doesn't have technical
support :).
Let me try to venture a few responses...
But my beans already contain the validation! Besides, performing the
validation in the ActionForm is effectively tying business logic (data
validation) to the web framework dontya think?
Well, I put data type and required field validation only in the
Yuriy,
Yep, you have my interest.. Are you using multiple sets with different
Comparators (based on bean properties) to do that?
Thanks,
Brian
Yuriy
Martin,
I need to perform a submit in order for the server to see the new value
that the user entered on the form in order to add it to the bean.
html:link won't do that for me...
Brian
Try under Tomcat 3.2.3. Otherwise, if you really want to get it to run
under Tomcat 4, research some of the older messages in this archive (you
need to replace the xml parsing jar files which come with Tomcat 4.
All,
I have a page with a control which allows the user to add items to a vector
on a bean. Basically it is a company form with an Add Subsidiary button.
Each time the user presses Add, the vector on the company formbean
receives the new element. However, when the page reloads, I want the
Will,
Here's Craig McClanahan's message from a while back which I think addresses
your problem:
I build Struts on both Linux and Windows. Here is what I did:
* Download and install Ant 1.3 as an application (i.e. put
$ANT_HOME/bin on your PATH variable so you can say ant dist
and things
Kat,
Use:
bean:define id=NameOfPageScopeVariableToDefine name=BeanName property
=PropertyNameOnBean/
someLibrary:someControl selected=%
=(String)NameOfPageScopeVariableToDefine%/
In this example, the variable is defaulting to page scope. I would not
define the variable as session scope since
Will,
If the [style] tag is still failing, you probably still need
jakarta-ant-1.3-optional.jar in the lib directory of ANT.
Brian
Will Jaynes
Maybe these versions don't play well?
It is possible that the jar files that come from Tomcat might not be
compatible. You still need to get JAXP 1.1 from the Sun Web site at:
http://java.sun.com/xml/download.html (I did not have any trouble). Also,
it is not necessary to place the XML
Actually, struts-bean.tld has a define tag which does the same thing (no
custom eval tag necessary):
bean:define id=idValue name=somebean property=id/
html:link href=somepage.jsp?action=someactionid=%= idValue % link
text/html:link
Alex,
First, I definitely would not use a nightly build for a major demo since I
have found them to be somewhat buggy in certain areas. Our development
efforts are based solely on the 1.0 release which I augment with new
tested functionality on an on-going basis (only as an extension layer).
The server is doing that, not the messenger. I had that happen to one of
my previous messages also...
Troy Hart
Richard,
I can think of 2 things that may cause the data structure to not persist.
1. The framework might be calling an implemented reset() method on your
formbean. To get multi-page formbeans to work, I had to avoid
implementation of this method (since it is called between requests). 2.
You
William,
The action does not directly know the next view or previous view. The
action object returns a generic ActionForward object with a success,
failure, etc. or a more specific contacts, roles, etc if you have
sub-screens with that information. The controller uses struts-config.xml
to
All,
What is the best design practice that you have found for creating Wizard
entry forms in the Struts framework?
Thanks,
Brian
This is a follow-up to my Wizard question...
If I have three tabs that are included at the top of each of the three body
pages by a template, then what is the best way to make sure information is
stored between requests for the different pages? Even though all three
pages use the same
Nevermind... Framework was calling reset on my bean. I'm such a newbie...
Brian.Duchouquette@tran
My link is:
html:link page=/createStakeholder.do?action=createbean:message key
=index.createStakeholder//html:link
it works, but the URL shows:
http://localhost:8080/dne-struts/createStakeholder.do?action=create
no jsessionid :(
Any hints appreciated!
Thanks,
Brian
Here's my
To follow up my last message:
jsessionid is now being passed from index.jsp to my next form:
CreateStakeholder.jsp. CreateStakeholder.jsp does not seem to recognize
jsessionid when it is sent, and does not re-write the link tags.
RequestUtils is using introspection on your form bean class to match the
name you placed in your html:text tag with a bean method name. So, if you
had:
html:text property=requestDate
Your form bean should have: String getRequestDate()
andvoid setRequestDate(String)
You're Bean class does not extend ActionForm..
[EMAIL PROTECTED]
Marcel,
I walked through code example submitted by Warwick Boote to get past
issues/concepts with setters for indexed properties. The only change I
made was to add a second field to the form. So, if your list is named
properties, you would have second field on the form called property also.
Did you try html:base/?
Randall
Parker
All,
I have 2 questions:
1. When I use html:errors/, the following output is rendered:
Last Name is required. First Name is required.
Is it possible to use the iteration tag to go through the list and
provide a break between the items?
2. Validation already occurs when my
Nicky,
Try 2 things:
1. Remove any XML parsers from your classpath. A pre-existing xml parser
in your classpath may supercede the XML parser which comes with struts.
Struts will not work with just any XML parser...
2. Try struts with Tomcat 3.2.3 (people seem to be having better luck
with
All,
I have been doing a lot of research into Struts recently. My question is
about performance and scalability. First the definitions:
Performance = good response time to users
Scalability = good response time to a large number of simultaneous users.
Usually this is a logarithmic curve
Jon,
That did something. Before when I was starting my server, the console
read:
-
Starting service Tomcat-Standalone
Apache Tomcat/4.0-b6
Starting service Tomcat-Apache
Apache Tomcat/4.0-b6
Jon,
When you posted the version of the xerces compiler you were using ***xerces
1.3.1***, that solved my problem.
Here's the link guys:
http://xml.apache.org/dist/xerces-j/
Get xerces1.3.1.zip from the link above and do like Jon said in his
original message. Remove the other XML parsers
Jon,
I received that same error after I removed catalina.jar, but didn't have
xerces.jar in the classpath.
Brian
Jon Brisbin
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
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
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
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
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
Renzo, Felix,
If your front-end web server/load balancer (also known as Local Director or
Resonate, etc) is implemented to use IP stickiness, then this is a
non-issue since the Web user will be returned to the server which serviced
the original request.
Brian
37 matches
Mail list logo