I'm a recent convert to java (from micro$oft... sh) and i'm still trying
to understand which versions of which products work together. I just got
Tomcat 5.x, which implements Servlet 2.4 and JSP 2.0. Does it matter if I
use Struts 1.0, 1.1 or 1.2 with this? Why?
How does the version of the
Use iBATIS SqlMaps and Dao framework. www.ibatis.com
-Original Message-
From: Axel Seinsche [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 11:43 AM
To: Struts Users Mailing List
Subject: Re: Best way to connect to Database in struts
Zaid wrote:
>Dear Friends,
>
>I am new to str
Found this on the Struts site:
"The Struts team encourages the use of the standard tags over the Struts
specific tags when possible"
Does this mean I should use jstl from Sun or are the standard tags (c, fmt,
sql, etc) that come with struts 1.1 just fine?
If from Sun, is there some way to
Thanks Rick.
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 1:00 PM
To: Struts Users Mailing List
Subject: Re: standard tags vs. struts specific tags
Barnett, Brian W. wrote:
> Does this mean I should use jstl from Sun or are the stand
Struts 1.1 ships with some 1.x version of commons-lang.jar. Is it okay to
use a 2.x version of commons-lang.jar with Struts 1.1?
How can I check if the html:errors tag will display anything down inside my
jsp page? I have the html:errors tag inside a table tag and I don't want the
table generated at all if there aren't any errors to display.
Thanks,
Brian Barnett
Here is an example that we have used and it works:
-Original Message-
From: Henrique VIECILI [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 12:00 PM
To: Struts Users Mailing List
Subject: using java.util.Map
Does anyone know howto use the tag with the values and lab
uot;,"Rio Grande do Sul");
states.put("SC","Santa Catarina");
states.put("PR","ParanĂ¡");
and i want to render something like this on my html
Rio Grande do Sul
Santa Catarina
ParanĂ¡
I guess that is it,
Henrique Viecili
- Original Me
I must have done something to mess up my dev environment. My jsp pages will
not render now. This is what displays in the browser now:
[ServletException in:/WEB-INF/jsp/AgentList.jsp]
org.apache.jasper.runtime.BodyContentImpl.clearBody()V'
I upgraded Tomcat (5.0.16 to 5.0.25), Eclipse (M4 to
JPetStore 4 at www.ibatis.com
-Original Message-
From: josh [mailto:[EMAIL PROTECTED]
Sent: Monday, June 21, 2004 11:01 AM
To: [EMAIL PROTECTED]
Subject: a fine example of an example
Hi,
I have recently completed my first struts application and I am beginning
to feel comfortable with th
There are numerous ways it could be done. It's really up to you on the
workflow you would like. One simple way is to just use the edit page as your
delete page as well. We use one jsp page for add/edit/delete and have a
flag on our form bean indicating whether we are adding/editing/deleting. We
se
A nice combination of tools/libraries we use is the display tag library to
display tabular data in a jsp page and iBATIS SQL Maps for data access.
Both are widely used as far as I know.
The iBATIS site also has a JPetStore demo based on Struts which provides a
great example (source code included)
Try document.MonitorForm.submit()
-Original Message-
From: Isaac Mosquera [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 14, 2004 1:47 PM
To: [EMAIL PROTECTED]
Subject: onsubmit form ERROR
i have the following piece of HTML/JavaScript and this problem happens
quite frequently but i don
Hmm. I've never seen that syntax, but that doesn't mean much. Here are the
syntaxes I've seen:
document.MonitorForm.submit()
document.forms[0].submit()
document.forms["MonitorForm"].submit()
I've seen something as simple as a semi-colon at the end of javascript work
wonders too :)
-Origina
Any suggestions for converting html to RTF and PDF inside an action class
and then sending the RTF or PDF back to the client?
Open source tools, code snippets, tips & tricks, etc. ??
Thanks a bunch.
Brian Barnett
Forgive my naivety, Wendy, but what are the benefits of redirecting to a
Servlet?
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Monday, July 19, 2004 4:46 PM
To: Struts Users Mailing List
Subject: Re: [OT] RTF & PDF export options
From: "Barnett, Brian W.
TF & PDF export options
Did you have a look at JasperReports (
http://jasperreports.sourceforge.net/index.html) ?
Jimmy
> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: 19 July 2004 23:22
> To: '[EMAIL PROTECTED]'
> Subj
Does anyone know how to create a hidden submit button? We're using images
for the buttons, but still want the "enter" key to submit the form. Is there
a better way to handle this? We tried a few things with css but it didn't
seem to work. (visibility:hidden and display:none will hide the button, bu
That was a b-d one.
-Original Message-
From: Jim Barrows [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 18, 2004 3:56 PM
To: Struts Users Mailing List
Subject: RE: [OT]1,2,3,4 I declare a pun war!
> -Original Message-
> From: David Durham [mailto:[EMAIL PROTECTED]
> Sent
Hello,
Can someone point me to, or show me some sample java code, that opens,
reads, writes files using the relative path of the web application?
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Out of curiosity, why is an enter key listener necessary in order to submit
a form?
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 9:18 AM
To: Struts Users Mailing List
Subject: Re: [OT] "Enter" key listener for form submittal
David Du
or form submittal
It is necessary in my case because it is a requirement specified by the
client. On very simple forms, it often won't require any programming.
But if you have multiple submit buttons, it becomes a problem.
Erik
Barnett, Brian W. wrote:
>Out of curiosity, why is an en
I have a popup with a save button that works like this:
onclick="document.forms[0].Dispatch.value='Save';document.forms[0].submit();
window.opener.location.reload(true);window.close();"
The problem is that the parent window gets refreshed before the submit
finishes what it needs to finish,
You'd want to define the forward for
this action to be the refresh action you want your parent to perform.
Paul
> -Original Message-----
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 10, 2004 5:19 PM
> To: '[EMAIL PROTECTED]'
> S
Both the client-side and the server-side validation are executing instead of
just the client-side. I know it has something to do with the way I've coded
the save button. The underlying problem is that I want to use images and
roll-over images for the save button but I also want the "enter" key to
s
s)". You
*do* have that, right? I don't know how to do what you're trying to
do with image buttons, though. For that, you'll probably want Mike
McGrady's opinion since he works with image buttons a lot.
Do you have to call submit() explicitly?
Hubert
On Mon, 20 Sep 2004
Has anyone here integrated Quartz with Struts? I'm having a hard time
finding examples on this combination.
I'm using the latest version of Quartz, 1.4.2, and I'm initializing it in
web.xml like this:
QuartzInitializer
Can you show us your jsp code?
-Original Message-
From: Shahin Hadjikuliev [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 6:32 AM
To: [EMAIL PROTECTED]
Subject: html error handling
Hi,
I have jsp with tag, if an error accures its displaying
only error message , I want to
Thanks Wiebe. I saw your name on a post or two in the Quartz forum and was
hoping you'd respond to this here. I really appreciate it!
Brian Barnett
-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 12:28 PM
To: 'Struts Users Mailing List'
Turn off validation in struts-config by setting validate="false". Then you
call validate manually in your save method, which is typically where you
would want validation code.
-struts-config snippet-
-save method in acti
Try Quartz. I posted yesterday regarding Quartz and Struts. Weibe de Jong
replied with some excellent ideas on how to use the Quartz scheduler with
Struts and included some nice code to get you started.
-Original Message-
From: Ciaran Hanley [mailto:[EMAIL PROTECTED]
Sent: Friday, October
I have a Struts app that needs to communicate with a .Net web service via
SOAP. What is "best practice" for this? Can someone point me to some
relevant info?
Thanks,
Brian Barnett
One way to accomplish this is with client side validation. This is dependent
on scripting being enabled on the browser however.
...
-Original Message-
From: yacout dadoun [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 07, 2004 9:49 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sub
tags ?
>From: "Barnett, Brian W." <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: [validator] How to submit only when ther are no eror
&g
Wondering if anybody has a slick way of dealing with nullable database
columns. We have a data transfer object that has member variables, one for
each database column, and of course all the getters and setters.
For View layer purposes, we have a class which extends Struts'
ValidatorForm. This F
One option is to use "service" objects that sit between the DAOs and the
Actions. Following your example, one service class might look something like
this:
public class WidgetService {
public void delete(int id) {
WidgetDAO w = new WidgetDAO();
try {
Can someone enlighten me as to why when I instantiate a new ActionForm, the
old data seems to hang around? Here is the information:
I have a session scoped action form defined in struts config:
etc, etc,
My dispatch method looks something like this:
public ActionForw
What do you have to do to make a message resource file available to jsp
pages.
I've seen examples of
but I think I have to do something else in order for that to work.
Thanks,
Brian Barnett
One way is to put this in your jsp file:
The reference it like this:
-Original Message-
From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
Sent: Monday, April 19, 2004 2:44 PM
To: '[EMAIL PROTECTED]'
Subject: jsp and message resource file
What do you have to do to make
We've spent the last couple of weeks enhancing our web app and now every
get/post to Tomcat from our web app is coming in twice. I can't figure out
what was changed. I have a breakpoint in the execute() method of our
LookupDispatchAction derived base class and all incoming requests come in
twice no
Not using any Filters.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 11:24 AM
To: Struts Users Mailing List
Subject: Re: Double posting problem
From: "Barnett, Brian W." <[EMAIL PROTECTED]>
> We've spent the last c
und this
simply by returning false for the event like this:
this way, only your javascript function will be the one submitting.
just something to watch out for.
woodchuck
--- Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Barnett, Brian W." <[EMAIL PROTECTED]>
>
rvlet.
Whew! Glad to have found that one...
-Original Message-
From: Barnett, Brian W.
Sent: Friday, June 03, 2005 11:49 AM
To: 'Struts Users Mailing List'
Subject: RE: Double posting problem
Thanks woodchuck, but the behavior is happening with any request, not just a
form submit
http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin
-Original Message-
From: Tony Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 10:59 AM
To: Struts Users Mailing List
Subject: Eclipse plug-in for Struts
Is there an Eclipse plug-in for Struts or Tomcat so
that I can develo
Pass it into the job using the JobDetail object.
JobDetail jobDetail = sched.getJobDetail("FooJob", "FooGroup");
String fooPath = servlet.getServletContext().getRealPath("foo");
jobDetail.getJobDataMap().put("fooPath", fooPath);
-Original Message-
From: Brian McGovern [mailto:[EMAIL PRO
Page 34 in Core J2EE Patterns 2nd Ed. talks about the problems related to
exposing presentation-tier data structures to the business tier. The main
problem this poses is that it increases the coupling between the tiers and
reduces the reusability of the underlying services. Pages 80-83 discuss some
Have you looked at struts-menu. (http://struts-menu.sourceforge.net)
-Original Message-
From: Vijaya S [mailto:[EMAIL PROTECTED]
Sent: Friday, February 11, 2005 7:48 AM
To: Struts User mailing List
Subject: Need guidance in the presentation layer
Hi,
I am having the problem of designin
Struts itself is an example of the Service to Worker Pattern, which is a
macro pattern using a combination of a controller and dispatcher with views
and helpers.
-Original Message-
From: Sandip Khetle [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 15, 2005 12:25 AM
To: user@struts.apac
Are you trying to configure Quartz in web.xml as a servlet or in
struts-config.xml as a struts plug-in?
We're using Tomcat, not WebSphere, but it seems like we ran into a few
issues trying to run it as a servlet. I don't remember what the issues were,
sorry.
We ended up running it as a struts pl
Here's a UML class diagram using iBATIS for db access. It might give you a
general idea on how to implement your model layer.
http://www.whitesandsolutions.com/wssBase-Framework%20Architecture.htm (You
have to view it with Internet Explorer if you want to be able to zoom in and
out on the image.)
Sorry, I'm a javascript beginner. Can you provide a sample javascript
onclick event?
Thanks...
-Original Message-
From: Wiebe de Jong [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 05, 2005 11:54 AM
To: 'Struts Users Mailing List'
Subject: RE: Popup Windows with Struts Actions
Like th
If you know of a good, configurable tree control tag library for use in jsp
pages, please advise.
Thanks,
Brian Barnett
This email may contain confidential material.
If you were not an intended recipient,
Please notif
I addressed the "stuffing up of any useful CVS functionality" by using
Jalopy source code formatter. http://jalopy.sourceforge.net. The key is for
someone to specify the source code formatting rules, usually the defaults
are close enough for most. Jalopy provides "export" functionality, so all
you
To the action mapping
-Original Message-
From: David Johnson [mailto:[EMAIL PROTECTED]
Sent: Friday, May 06, 2005 1:52 PM
To: Michael Jouravlev; Struts Users Mailing List
Subject: Re: Losing request attributes after validate()
a I see. Soam I adding scrope="session" to the Form Bean
Here are some links to tree controls:
http://pragmaticobjects.com/demo.html
http://www.common-controls.com/en/resources/taglib/tags/ctrl_tree.html
http://struts.application-servers.com/ (Struts Layout)
http://www.softcomplex.com/products/tigra_tree_menu/
And then of course, you have Java Server F
Is it possible to open a new browser window to display the results, i.e.,
the response, of a form being submitted? If you've done this, would you
please provide an example?
TIA,
Brian Barnett
This email may contain conf
Architect
Omnytex Technologies
http://www.omnytex.com
On Tue, May 24, 2005 11:27 am, Barnett, Brian W. said:
> Is it possible to open a new browser window to display the results,
> i.e., the response, of a form being submitted? If you've done this,
> would you please
http://www.whitesandsolutions.com/wssBase-Framework%20Architecture.htm
http://www.whitesandsolutions.com/wssBase-Patterns.htm (Two images here. Use
navigation in left frame.)
View the above links with Microsoft Internet Explorer so you can use the pan
and zoom features.
-Original Message
Session.getAttribute(sessionAlive") will throw an IllegalStateException if
it is called against a session that is invalidated.
Try something like this:
try {
Session.getAttribute(sessionAlive");
} catch (IllegalStateException e) {
request.setAttribute("message", "Your session timed out. Plea
You are not guaranteed to have a valid session at this point of your code.
It depends on how you retrieved the session variable. If you called
request.getSession() or request.getSession(true), then a session will be
created for you if the request does not have a valid session. If you call
request.g
invalidation problem
Yep, I am aware of that. I in fact call it with just
request.getSession(). I should have been clearer... at this point in my
code, **based on what I do in the code prior to it**, I am guaranteed to
have a session.
Barnett, Brian W. wrote:
> You are not guaranteed to have a va
e an
IllegalStateException (I could see getting one BEFORE that point, but if
it gets that far, as near as I can tell, it shouldn't be possible).
Spot anything Brian? Thanks for your effort!
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.
What do you want the Enter key to do? Do you want it to move to the next
control, i.e., act like the Tab key?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, November 08, 2004 4:54 PM
To: Struts Users Mailing List
Subject: How to disable Enter=Submit on
Probably when my CEO tried for week to get me to stay at the company instead
of taking another opportunity. I spent about 2 hours a day for week in his
office as he explained why I should stay, comparing the opportunities, my
future, my pay, benefits, etc.
After additional research and a lot of th
On TI-99: Out of memory
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, December 20, 2004 3:26 PM
To: Commons User; Struts User; Tomcat User
Subject: [OT] Request an app test (free beer!)
I was informed last OT post I made that the subject should alway
Hello,
I'm sure it's something simple, but I can't get my ActionMessage to display
in my JSP page.
Action class code:
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("errors.includedAmountGreaterThanAmountSpecified"));
saveMessages(requ
Yes, I have the necessary tag libraries imported.
-Original Message-
From: Kishore Senji
To: Struts Users Mailing List
Sent: 12/27/2004 6:40 PM
Subject: Re: ActionMessages problem
Make sure that you have imported the "html" tag library
On Mon, 27 Dec 2004 12:53:27 -0600, Barn
I'm using LookupDispatchAction and role-based security. I want to allow
certain roles to access certain dispatches of an action. I'm not sure what
the best way to handle this is.
Should I create separate Action classes? Is there a slick way to specify
"dispatch level" security in web.xml?
Can som
: Struts Users Mailing List
Subject: RE: Security question
> -Original Message-
> From: Barnett, Brian W. [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 04, 2005 11:04 AM
> To: 'Struts Users Mailing List'
> Subject: Security question
>
>
> I'm using
Use a column decorator.
And create your decorator class something like this:
public class MoneyDecorator implements ColumnDecorator {
public MoneyDecorator() {
super();
}
public String decorate(Object value) {
String decoratedVal
Can someone tell me how to determine the machine name of the server from
inside the init() method of a plug-in? It looks like I have an ActionServlet
object and a ModuleConfig object at my disposal.
Thank you,
Brian Barnett
-
To
JDOM is a nice open-source XML manipulation library.
http://www.jdom.org/
-Original Message-
From: Nelson [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 10:24 AM
To: user@struts.apache.org
Subject: Parse XML Files
Hi Guys,
I'm new to struts and JSP and need to parse and com
What rdbms are you using?
-Original Message-
From: Brandon Mercer [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 27, 2005 10:56 AM
To: Struts Users Mailing List
Subject: Another ODBC OT Question
Hello,
Ok, I've got another off topic question :-P. That's two in a day!
Three strikes
torj.h
tml
It was too easy, so it's probably the wrong thing.
Brandon Mercer <[EMAIL PROTECTED]>
01/27/2005 01:17 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Re: Another ODBC OT Question
Barnett, Brian W. wrote:
>Wh
Struts itself is an example of the Service to Worker Pattern, which is a
macro pattern using a combination of a controller and dispatcher with views
and helpers.
-Original Message-
From: Akshay Pandit [mailto:[EMAIL PROTECTED]
Sent: Friday, February 04, 2005 12:45 AM
To: user@struts.apach
I've written a couple of Struts web apps where the only online help was a
help icon next to some strategically chosen fields which when hovered over,
produced some rollover help text. One problem I found with this approach was
that if I wanted to provide help on a bunch of controls, the page got
cl
Is there a way to get to the request object in an
HttpSessionListener.sessionCreated() method? Specifically, I want to call
request.getRemoteUser() so I know who just created the session.
TIA,
Brian Barnett
This email m
You could try using a Filter. I'm sure there are many tutorials and examples
out there. Here is an example:
Web.xml
MyFilter
com.wss.util.MyFilter
Some description.
MyFilter
Struts has built in token functionality to prevent the "submit button
pressed twice" problem.
In action class add(), edit(), and delete() methods, or any method that is
preparing to send user to a form for subsequent submittal, add this:
saveToken(request). It's a member of Action.
In jsp
Actually, you don't need to do anything in the jsp pages, my bad. See here:
http://forum.java.sun.com/thread.jspa?threadID=656481&messageID=3858400#3858
400
Or just google for "savetoken struts" for more info.
-Original Message-----
From: Barnett, Brian W.
Sent: Friday,
Adam,
Does Visio work with MySQL?
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Monday, October 03, 2005 1:31 PM
To: Struts Users Mailing List
Subject: Re: database design
Rafael Taboada on 03/10/05 18:22, wrote:
> Hi folks. When u design a database... What soft do
Can someone point me to some articles or provide some examples on how to
minimize security related code (authorization) in my Action classes? I am
currently using container-managed, form-based security (Tomcat) for
authentication and and elements in
web.xml.
The problem is that I'm not sure how
82 matches
Mail list logo