This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line!
See this thread for details.
Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!

Jesse Beaumont

Ranch Hand
+ Follow
since May 30, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jesse Beaumont

We're having problems getting Tomcat to work under SSL in WinXP and Win2K3. I have it configured and it serves up pages just fine. When we run load tests, however, it starts to fall apart.

When the load increases the client starts showing up ConnectException: connection refused messages.

Under http it works fine and handles an adequate load. I've set the maxThreads to 500 and am only running 400 concurrent client threads averaging out at around 20-30 rps at peak so I can't see that this is what is causing the problem.

I have tried various versions of tomcat (4.1.18, 4.1.30, 5.0.16, 5.0.24) and all of them have the same problem. I also tried it through IIS and Apache using connectors and the same thing happens.

I've tried playing with maxThreads, minThreads, maxKeepAlive, acceptCount and anything else I could find

We've used both JMeter, a custom built java load client and a custom built .NET load client (just in case it was something to do with the JSSE)

Any help or suggestions would be greatly appreciated.

Jesse
16 years ago
Sorry guys,
Ignore my ramblings above. I guess it's good practice to read the post one is replying to, huh
Jesse
18 years ago
I don't think two actions using the same form is the question here. If I understand correctly you have two submit buttons on the same page and you want to post to a different action depending on which one was clicked?
There are three ways to do this:
1. use javascript to rewrite the form target prior to submission
2. hold a hidden field specifying which action is to be taken and just post to one Action class which does both things
3. Use DispatchAction class to forward the action on appropriately. (This is probably the best option)
Hope this helps
Jesse
18 years ago
Doh. Correction to the above. The < in the img and > after it should be &lt; and $amp;gt;
Sorry about that... (curse the interpreter...)
Jesse
18 years ago
Here is a sample:

It's a little more complicated than <%= filename%>
Hope that helps.
Jesse
18 years ago
I don't know of any display tags that render a tree. What struts does provide is a way of walking down an object tree (<nested:*> tags) so that you can expose your object model in the view.
Jesse
18 years ago
The way we do it is we dynamically rewrite the form's action attribute depending on which button was pressed and then post to a different action-mapping.
Using DispatchAction is a cleaner way of doing the same thing.
Jesse
18 years ago
JSF is a specification for a set of common user interface components. There is some work underway to write an extension to struts to make it JSF compliant.
See http://jakarta.apache.org/struts/proposals/struts-faces.html
Jesse
18 years ago
Use <jsp:expression>expression</jsp:expression> (=<%= expression %>
or <jsp:text>text</jsp:text>
Another alternative would be to use JSTL (<c ut>
Hope this helps
Jesse
18 years ago
I guess that depends to a certain extent on what you do in your actions. I guess they could be considered either. If you use them to simply invoke a session facade in your distributed application, I would consider them part of the controller.
Whereas if you start maniuplating your object model and accessing the RDBMS you could say that the action is part of the model.
It is probably cleaner to consider them part of the controller and implement the business logic elsewhere where reuse is more likely.
Jesse
18 years ago
Struts does a whole lot of stuff, but the main focus of the struts is to give you an MVC framework to build on. Struts does a lot of the legwork associated with this for you (e.g. wrapping up the request object, storing the values in your object, transfering the object representation to the controller (ActionServlet and Action Class) and then reinserting the values from your transfer object back into the relevant places as you reconstruct the response page)
Struts also has support for XML driven validation (via a jakarta-commons package), display generation with JSP custom tags, database access, support for file upload, and lots of other goodies.
The framework is just another (rather large) step towards not having to worry about developing infrastructure and being able to concentrate on the business logic and the stuff that matters to the client. Reduced time to market and all those other points that are commonly touted at this point.
Hope that gives you a starter.
Jesse
18 years ago
We have bought the subscription (and have received updates even for minor versions). The book is about 700-800 pages long and is broken down by functional area (e.g. there is a section on JMX, JMS, EJB CMP, etc). I think it lends itself best as a reference book (i.e. not to be read cover to cover but rather to answer specific queries)
I think it is fairly easy to get going using JBoss, even without the purchase of the documentation. To get stuck into the detail, however, you will probably need to shell out for the documentation.
I don't think it is contrary to open source to sell the documentation. In fact, the very name open "source" indicates that it is the source code that is open not anything else.
Jesse
18 years ago
Hi,
Thanks for that. I couldn't get the html:select working, but the nested tags did the trick.
Jesse
18 years ago
Hi,
I have an <html:select> tag in a struts app (version 1.1-b2) which looks something like this.
<html:select name="useSchedule" property="jobId" indexed="true">
<html ptionCollection name="useSchedule" property="jobList" />
</html:select>
this is embedded in a logic:iterate tag. So my form bean has an ArrayList, each iteration is exposed as useSchedule. Each of these has an arraylist (jobList) and an int (jobId).
The select box works fine, but when I post the form back the jobId field does not get instantiated with the users selection and I can't figure out why.
Any help would be appreciated.
Jesse
<font color="blue">Disabled smilies so code would post properly</font>
[ November 22, 2002: Message edited by: Matthew Phillips ]
18 years ago
Three solution spring to mind off the top of my head:
1. Use JNI to write a windows native wrapper around the COM object and call that from java
2. Use a Java-COM bridge (e.g. J-Integra http://www.linar.com/)
3. Expose the COM object as a web service or equivalent (e.g. wrap it in an asp and call the asp from java and parse the response, or something like that)
Jesse
18 years ago
JSP