Re: [Newbie] html:link

2002-03-09 Thread tyler

Hi Silmane,

you may have already received a reply regarding this but none the less
this is how I've been doing it.

If you place a java.util.Map into the request the html:link tag will
then build
the parameter list for you where the keys are the parameter names and
their
values the parameter values (of course).

In your case your iterating over a Collection of beans and from that
collection
you would/could provide a method to return the Map.

In my example I have a Vector of 'foo.Bar' objects where Bar objects
have a getter
method for the map property.  My Vector of foo.Bar objects is an
attribute of the 
request stored under the key 'things'.



linkname 


The documentation for the link tag is of course located at:
http://jakarta.apache.org/struts/struts-html.html#link
There are a couple of restrictions I didn't mention documented there.

Someone just helped me out with this a few days ago so to whomever it
was thanks.

Rob

Slimane Zouggari wrote:
>
> Hi,
> 
> I have the following piece of code :
> 
> > >type="be.stluc.info.struts.ElementProjet">
> >
> >&codpha=
> >&codtac=">
> >
> >
> >
> >
> 
> I was wondering if there's a easier way to do that with the html:link tag ?
> 
> Thanx in advance,
> Slimane
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: Tomcat/Struts Profiling results

2002-03-05 Thread TKV Tyler VanGorder

Hi,

For the last week and a half, a colleague and myself have been doing load/
scalability testing for our struts/jsp-based application. I would like to
share our results in the hopes that it may help someone else faced with a
similar task. We had a tough time finding real-world examples that we could
learn from. 

This is a LONG post, so I will try to summarize first:
==
Yeah..the summary is pretty long as well. 8-)

For JSP, tag-heavy applications, we found tuning parameters that may help
others get better performance out of tomcat.

We simulated a load of 50 concurrent users using automation tools that
remove any human pauses. This is roughly equivalent to 250+ concurrent,
human users. Yes...that is an estimation.

Initially, using Tomcat 4.0.1, Stuts 1.0 Final:

The IBM JDK performed MUCH MUCH better than Sun's Server Hotspot
JVM (1.3.1)

After profiling, we discovered that a significant amount of our time
was being spent in the garbage collector with the hotspot JVM. Some
of our garbage collections took a 12+ seconds! Ouch.

We attempted tweaking the various hotspot JVM parameters to see if we
could get the hotspot VM in line with IBM's performance. We did get
better results but we still had some GCs that were taking 6 seconds.

We had a large number of throw-away objects that were confusing the
garbage collector in hotspot.

We deployed the SAME EXACT application under Weblogic 6.1's servlet
engine, using the hotspot JVM, and we saw much better performance and
this was without any hotspot tuning parameters!

So we switched back to tomcat and we ran the application, using OptimizeIt
to profile the application. A majority of our time was being spent in
the constructor of BodyContentImpl because of an initial 8K char buffer
being created for EACH tag, embedded in our page. This was more pronounced
in our application because we iterated over content that had tags nested
in the iteratorthat's 8K X Number of iterations X number of nested
tags! We found that in our application most of our tags were only outputting
a few characters.

We recompiled the BodyContentImpl and changed the initial buffer size to
512 bytes. The results were dramatic and hotspot began outperforming the IBM
JDK. Keep in mind that the hotspot server VM takes a while to tune its
runtime
so was necessary to run our scalability test on the hotspot VM several
times.
I submitted an enhancement to bugzilla, its ID is 6858.

The final results were impressive!

Our application has one workflow that is VERY database intensive. It takes
a human user approximately two minutes to complete the workflow once they
are familiar with it. The transaction does 20-40 database selects with
result
sets in the range of 10-40 rows each (on average). 20+ Inserts when the
transaction is finally saved. All database activity happens in real time,
while
the user walks through our workflow.

Tomcat 4.0.1 + (our hack), using Hotspot Server JVM 1.3.1:

   Hardware: EJB server - PII 300 (-Xms64m -Xmx64m)
 Servlet/web server - PIII Dual 550 (-Xms128m -Xmx128m)
  
   Simulated 50 automated users (No human pauses) - Average transaction
speed
   21 seconds, longest time 27 seconds!
   
Of course this is our application...and each application will have its own
load characteristics, but it is a good example of struts + tomcat.

So..if our 50 automated users average 21 seconds and a human user takes
roughly 2 minutes for the same workflow then the above platform *SHOULD*
be able to support 6X the number of human users (300 users)

Thanks and I hope this information might be useful to others trying to get
a feel for how well JSP/struts will scale.

Tyler Van Gorder [EMAIL PROTECTED]
Reed Roberts
Landacorp.

=
Detailsand the actual different tuning parameters we used:

The environments we used are as follows:


Hardware:

We used a low-end machine for the EJB server.

Database server:
  Compaq Proreliant ML370 Dual PIII 800 
  Windows 2000 Advanced Server Service Pack 2
  1Gig Ram

EJB Server:
 PII 300
 NT 4.0 Server
 128M Ram

Servlet Engine/Web Server
 PIII Dual 550.
 Windows 2000 Workstation
 256M Ram

5 client test machines...ranging in size
 Win 98 & Win NT machines.
 
All hardware was isolated on the same 100M Switch/hub



Software

Database Server  == Oracle 8
EJB Server   == Weblogic 6.1.0 Service Pack 2
Servlet Engine 1 == Tomcat 4.0.1 
Servlet Engine 2 == Weblogic 6.1.0 Service Pack 2

(We did not have a separate web server...tomcat and
weblogic acted as our web server!)



Load testing software:

We used our own, home grown, load testing software.
We first set up a proxy between a browser client and
t

Re: initializing html:select

2002-01-30 Thread Robert Tyler Retzlaff

Perhaps I misunderstand the flow of events that occur but aren't
the bean propertys populated prior to the Actions form method 
being called?

Is the flow of execution between the form, form-bean and action
explained somewhere in the struts documentation?  If so where?

Thanks for your patience and help

rob

> 
> 
> 
> check the perform() method signature of your action - it has the ActionForm
> associated with it.  You can then cast it into the appropriate form:
> 
>public ActionForward perform(ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
>throws IOException, ServletException
>{
>   ReportForm rform = (ReportForm) form;
>   //do whatever with your form bean...
>  .
>}
> 
> Check out the examples - they all do it this way...
> 
> Cheers,
> 
> Dave
> 
> 
> 
> 
> "Robert Tyler Retzlaff" <[EMAIL PROTECTED]> on
> 01/30/2002 03:46:55 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  Re: initializing html:select
> 
> 
> 
> That would be great, but how do you get a reference to the form bean?
> 
> Or perhaps I misunderstand.
> 
> Thanks
> 
> >
> >
> >
> > A much better way to do it is set the value in your form bean in your *action*
> > before you forward to the page, thus having it dynamic, but not resorting to
> > scriptlets.
> >
> > Cheers,
> >
> > Dave
> >
> >
> >
> >
> >
> > "Jakkampudi, ChandraseKhar" <[EMAIL PROTECTED]> on
> > 01/30/2002 03:31:44 PM
> >
> > Please respond to "Struts Users Mailing List"
> >   <[EMAIL PROTECTED]>
> >
> > To:   "'Struts Users Mailing List'"
> >   <[EMAIL PROTECTED]>
> > cc:(bcc: David Hay/Lex/Lexmark)
> > Subject:  RE: initializing html:select
> >
> >
> >
> > Like I said, it can take a real time expression. So you can do
> >
> >   > value="<%=(String)request.getAttribute("xyz")%>">
> >  
> >  
> >
> > You have to have scriptlets or expressions to set the value dynamically.
> >
> >
> > -Original Message-
> > From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 2:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: initializing html:select
> >
> >
> > Yes, but what I'm after is being able to dynamically set the
> > initial values.  I have an object in the request upon which
> > the initial value depends.  So specifying it in the value
> > parameter (unless I used code in the jsp page) isn't any good
> > and initializing it at declaration doesn't help me either
> > because I don't have access to the object in the request.
> >
> > Any other solutions?
> >
> > >
> > > You can set the value paramater like this
> > >
> > > 
> > >
> > > 
> > >
> > > Value can take a real time expression. Unfortunately, it currently works
> > > only if you dont have multiple set to true. It should work in your case.
> > >
> > > -Original Message-
> > > From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, January 30, 2002 2:01 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: initializing html:select
> > >
> > >
> > > How do you initialize the  to a particular option
> > > so that it appears to be the default when the form is loaded.
> > >
> > >
> > > .. my ActionForm class
> > >
> > >private String selectProperty;
> > >private String[] values = { ""+1, ""+2 };
> > >private String[] names  = { "One", "Two" };
> > >
> > > .. setter/getters
> > >
> > > public void reset( .., ..)
> > > {
> > >selectProperty = values[1];
> > > }
> > >
> > > .. my form.jsp
> > >
> > > 
> > >
> > > 
> > >
> > >
> > > When the form loads I still end up with the selection box
> > > displaying "One" as opposed to "Two" is there a way to do
> > > what I would like to accomplish?
> > 

Re: initializing html:select

2002-01-30 Thread Robert Tyler Retzlaff

That would be great, but how do you get a reference to the form bean?

Or perhaps I misunderstand.

Thanks

> 
> 
> 
> A much better way to do it is set the value in your form bean in your *action*
> before you forward to the page, thus having it dynamic, but not resorting to
> scriptlets.
> 
> Cheers,
> 
> Dave
> 
> 
> 
> 
> 
> "Jakkampudi, ChandraseKhar" <[EMAIL PROTECTED]> on
> 01/30/2002 03:31:44 PM
> 
> Please respond to "Struts Users Mailing List"
>   <[EMAIL PROTECTED]>
> 
> To:   "'Struts Users Mailing List'"
>   <[EMAIL PROTECTED]>
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  RE: initializing html:select
> 
> 
> 
> Like I said, it can take a real time expression. So you can do
> 
>   value="<%=(String)request.getAttribute("xyz")%>">
>  
>  
> 
> You have to have scriptlets or expressions to set the value dynamically.
> 
> 
> -Original Message-
> From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: initializing html:select
> 
> 
> Yes, but what I'm after is being able to dynamically set the
> initial values.  I have an object in the request upon which
> the initial value depends.  So specifying it in the value
> parameter (unless I used code in the jsp page) isn't any good
> and initializing it at declaration doesn't help me either
> because I don't have access to the object in the request.
> 
> Any other solutions?
> 
> >
> > You can set the value paramater like this
> >
> > 
> >
> > 
> >
> > Value can take a real time expression. Unfortunately, it currently works
> > only if you dont have multiple set to true. It should work in your case.
> >
> > -Original Message-
> > From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 2:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: initializing html:select
> >
> >
> > How do you initialize the  to a particular option
> > so that it appears to be the default when the form is loaded.
> >
> >
> > .. my ActionForm class
> >
> >private String selectProperty;
> >private String[] values = { ""+1, ""+2 };
> >private String[] names  = { "One", "Two" };
> >
> > .. setter/getters
> >
> > public void reset( .., ..)
> > {
> >selectProperty = values[1];
> > }
> >
> > .. my form.jsp
> >
> > 
> >
> > 
> >
> >
> > When the form loads I still end up with the selection box
> > displaying "One" as opposed to "Two" is there a way to do
> > what I would like to accomplish?
> >
> > Also, I've hard coded the arrays of values and names into the form
> > which I don't like I would like to extract them from an object I
> > have stored in the request how might that be achieved?
> >
> >
> > Thanks
> >
> > rob
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: initializing html:select

2002-01-30 Thread Robert Tyler Retzlaff

I know it can take a realtime expression, but that means unpacking
my nested bean from the request and then calling methods from it.

This kind of ``code'' I would like to avoid having been placed 
inside the .jsp.  

I could create a custom tag that outputted the property I was
interested in but writing a tag for that purpose sucks and I'm
not even sure if it would work to initialize a parameter in
a struts tag.

Also I could use the  and then 
tag to set the value on a non-struts form element but for reasons I
don't understand it doesn't work inside struts form element tags.

There must be another way or am I dreaming when striving for 
a script free page?

Thanks

> 
> Like I said, it can take a real time expression. So you can do 
> 
>   value="<%=(String)request.getAttribute("xyz")%>">
>   
>  
> 
> You have to have scriptlets or expressions to set the value dynamically. 
> 
> 
> -Original Message-
> From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 2:25 PM
> To: [EMAIL PROTECTED]
> Subject: Re: initializing html:select
> 
> 
> Yes, but what I'm after is being able to dynamically set the
> initial values.  I have an object in the request upon which
> the initial value depends.  So specifying it in the value
> parameter (unless I used code in the jsp page) isn't any good
> and initializing it at declaration doesn't help me either 
> because I don't have access to the object in the request.
> 
> Any other solutions?
> 
> > 
> > You can set the value paramater like this
> > 
> > 
> > 
> > 
> > 
> > Value can take a real time expression. Unfortunately, it currently works
> > only if you dont have multiple set to true. It should work in your case.
> > 
> > -Original Message-
> > From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 30, 2002 2:01 PM
> > To: [EMAIL PROTECTED]
> > Subject: initializing html:select
> > 
> > 
> > How do you initialize the  to a particular option
> > so that it appears to be the default when the form is loaded.
> > 
> > 
> > .. my ActionForm class
> > 
> > private String selectProperty;
> > private String[] values = { ""+1, ""+2 };
> > private String[] names  = { "One", "Two" };
> > 
> > .. setter/getters
> > 
> > public void reset( .., ..)
> > {
> > selectProperty = values[1];
> > }
> > 
> > .. my form.jsp
> > 
> > 
> > 
> > 
> > 
> > 
> > When the form loads I still end up with the selection box
> > displaying "One" as opposed to "Two" is there a way to do
> > what I would like to accomplish?
> > 
> > Also, I've hard coded the arrays of values and names into the form
> > which I don't like I would like to extract them from an object I
> > have stored in the request how might that be achieved?
> > 
> > 
> > Thanks
> > 
> > rob
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: initializing html:select

2002-01-30 Thread Robert Tyler Retzlaff

Yes, but what I'm after is being able to dynamically set the
initial values.  I have an object in the request upon which
the initial value depends.  So specifying it in the value
parameter (unless I used code in the jsp page) isn't any good
and initializing it at declaration doesn't help me either 
because I don't have access to the object in the request.

Any other solutions?

> 
> You can set the value paramater like this
> 
> 
>   
> 
> 
> Value can take a real time expression. Unfortunately, it currently works
> only if you dont have multiple set to true. It should work in your case.
> 
> -Original Message-
> From: Robert Tyler Retzlaff [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 30, 2002 2:01 PM
> To: [EMAIL PROTECTED]
> Subject: initializing html:select
> 
> 
> How do you initialize the  to a particular option
> so that it appears to be the default when the form is loaded.
> 
> 
> .. my ActionForm class
> 
>   private String selectProperty;
>   private String[] values = { ""+1, ""+2 };
>   private String[] names  = { "One", "Two" };
> 
> .. setter/getters
> 
> public void reset( .., ..)
> {
>   selectProperty = values[1];
> }
> 
> .. my form.jsp
> 
> 
>   
> 
> 
> 
> When the form loads I still end up with the selection box
> displaying "One" as opposed to "Two" is there a way to do
> what I would like to accomplish?
> 
> Also, I've hard coded the arrays of values and names into the form
> which I don't like I would like to extract them from an object I
> have stored in the request how might that be achieved?
> 
> 
> Thanks
> 
> rob
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




initializing html:select

2002-01-30 Thread Robert Tyler Retzlaff

How do you initialize the  to a particular option
so that it appears to be the default when the form is loaded.


.. my ActionForm class

private String selectProperty;
private String[] values = { ""+1, ""+2 };
private String[] names  = { "One", "Two" };

.. setter/getters

public void reset( .., ..)
{
selectProperty = values[1];
}

.. my form.jsp






When the form loads I still end up with the selection box
displaying "One" as opposed to "Two" is there a way to do
what I would like to accomplish?

Also, I've hard coded the arrays of values and names into the form
which I don't like I would like to extract them from an object I
have stored in the request how might that be achieved?


Thanks

rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




multipart -> non multipart forwards

2002-01-29 Thread Robert Tyler Retzlaff

I have the following sequence of forwards.

(multipart/form-data) (handles multipart request) (handles standard get/posts)
   form.jsp  >formaction ---> viewaction

initially the request is enctype multipart/form-data the formaction
handles the processing of the multi-part data and then forwards it
on to some default view page that accepts some parameters that are
specified via the query string.  The problem is when it reaches the
viewaction servlet I get a ServletException saying "no multipart request
data sent".  which by the time the request reaches the viewaction
I'm not even interested in the multipart data anymore just my query string.

fyi: formaction and viewaction both extend Action

Is there a way to solve this?

Thanks

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts Token usage.

2002-01-20 Thread Robert Tyler Retzlaff

Exactly what are transaction tokens used for?  How are they used?

rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




query string parameters?

2002-01-20 Thread Robert Tyler Retzlaff

Does struts have any nice way of handling parameters received via
the query string?  Perhaps something similar to the ActionForm object
that I can forward back to the source page if a validate() method
fails?

Thanks

rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Form mapping default when validate() fails.

2002-01-17 Thread Robert Tyler Retzlaff


When you have an action mapping with validate set to true in the struts
config and the validate() for the mappings form component fails, where
does request get forwarded too?  Or how do you set where it's forwarded
too?  Or is it up to me to call the validate() method on the form and
then mapping.findForward(...) to wherever I want to go?

Thanks

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




coordination of applications (communication)

2002-01-17 Thread Robert Tyler Retzlaff

Incidentally I have two struts based applications app1.war and app2.war
I would like to write a third application that is a controller of the
other two but this kind of thing is a little new to me.

Mostly I'd like to be able to access and pass references between 
applications.  For example I'd like to be able to pass a reference
in control.war (my controller app) to app1.war's application.

I could just make the shared resources public static and access 
them that way but I'd like a solution thats a little cleaner than
that.

Can I do this?  How do I do this if yes?


Thanks

Rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




persistent authentication

2002-01-16 Thread Robert Tyler Retzlaff

One of the advantages of the MVC approach is that the controller is 
able to provide authentication verification for each request to a 
resource in the application.

Does struts support this?  If so how?  Currently I'm 'checking' 
authentication in each of my Action classes that extend Action
and doing the same for jsp pages via a custom tag.  It's a bit 
redundant.

Examples are good.

Thanks

rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




multipart post files & struts

2002-01-16 Thread Robert Tyler Retzlaff

Exactly what does struts do with form files?  Does struts use
some kind of intermediate temporary file for storing the file
prior to the user writing the file out to some specified location?

If a temp file is used how does struts determine the appropriate
path for the tempfile?

Thanks

Rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jsp custom tag attribute order how?

2002-01-10 Thread Robert Tyler Retzlaff

How does a jsp custom tag know what order or what methods to call to set
attributes in the TagSupport object?

In other words, what has to match the tag attribute names?  Do my variable
names in the tag handler have to be the same as the attribute names?  Or do
my methods have to follow some kind of a naming convention that matches the
tag attribute names?  How is this mapping between attribute names in the tag
and the variable names in my tag handler achieved?

Thanks

rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: changing default text.

2002-01-09 Thread Robert Tyler Retzlaff

Ah yes your right it's in ApplicationResource.properties however if I change
it there it will change it for all occurences, sometimes I'd like to have 
it say one thing and another time something else is this possible?

Thanks again

rob

> 
> I don't remeber wich option but try to find(grep?) the string "Validation Error" in a
> properties(*.properties) file.
> 
> []'s
> JP
> 
> Robert Tyler Retzlaff wrote:
> 
> > How do you change the default text "Validation Error\n you must correct the 
>following
> > error(s) before proceeding:" that is displayed whenever you use the /> tag?
> >
> > Also, I've been happily using ActionErrors for returning errors from forms but I
> > would also like to use it for displaying other errors (not from forms) is 
>ActionErrors
> > the appropriate facility to be doing this with or is there something else I should
> > be using for this purpose?
> >
> > Lastly, struts seems to be a very complete framework and as a new web programmer I 
>am
> > unfamiliar with all of the capabilities that struts could be providing for me.  In
> > order to avoid re-writing code that struts may already provide is there a listing
> > of all of the 'things you can do' with struts persay listed online?
> >
> > Thanks
> >
> > rob
> >
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> --
> João Paulo G. Batistella
> Ci&T - Software enabling the e-world
> Phone: +55 (19) 3737-4515
> http://www.cit.com.br
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




changing default text.

2002-01-09 Thread Robert Tyler Retzlaff

How do you change the default text "Validation Error\n you must correct the following
error(s) before proceeding:" that is displayed whenever you use the  
tag?

Also, I've been happily using ActionErrors for returning errors from forms but I
would also like to use it for displaying other errors (not from forms) is ActionErrors
the appropriate facility to be doing this with or is there something else I should
be using for this purpose?

Lastly, struts seems to be a very complete framework and as a new web programmer I am
unfamiliar with all of the capabilities that struts could be providing for me.  In
order to avoid re-writing code that struts may already provide is there a listing
of all of the 'things you can do' with struts persay listed online?

Thanks

rob

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Javascript implementation of ?

2001-06-11 Thread TKV Tyler VanGorder

I ran into an interesting problem:

I need the ability to rewrite the url, with the encoded session information,
dynamically, after the page has already been loaded by the browser client.

I am opening a new browser window for doing searches, some of the fields on
my first page need to be passed along to this secondary page.

If I didn't need to pass parameters from my form onto the new window I could
just use the rewrite tag.

Like this:

window.open ('',
  'provider', 'scrollbars=yes,width=640,height=480,status=yes');



However, my url needs to look something like this:

//Grab a parameter off my form...
var lUrl = "/findRequestedFacility.do?FacilityId='" +
form.facilityId.value + "'";

//Rewrite the URL...Need Javascript function to do this.
lUrl = rewriteUrl(lUrl);


//Open the thing.
window.open (lUrl, 'provider',
  'scrollbars=yes,width=640,height=480,status=yes');

Has anybody written a javascript function to do this?

Thanks

Tyler Van Gorder
[EMAIL PROTECTED]
Landacorp