Ted,
Again this is great information. I think it confirms something I have been
struggling with -:
I am trying to handle the CANCEL case of an edit a record screen which was
arrived at from the previous list of records screen. They use the same
formbean which has an action field. When
Ted,
a great idea, but you need to know the name of the actionForm in the
jsp-Page. If you change the name in the struts-config.xml, you have to
change it here, too. Doesn't this hurt struts design principles? Isn't it
better (at least until struts 1.1 is released) to have two methods on the
Hello All,
I have a html:form this form can be used to create, read, update and
delete a record from a ejb service.
Since one form can have only one html:submit / button, I have created all
four of these operations as hyperlinks.
Now when I click on these links My Action does get executed, but
Hi Abhishek!
I think there are some suggestions in the mailing list concering multiple submit
buttons (try 'multiple submit'). But why don't you design a selection list in the form
for the CRUD-Operations? There you only have to request the concerning selection
property value and you can
Hi,
Are you getting any errors/stack traces from your web container?
Jon.
-Original Message-
From: BinhMinh Nguyen [mailto:[EMAIL PROTECTED]]
Sent: 30 November 2001 00:36
To: Struts Users Mailing List
Subject: Problem with html:errors tag
For some reasons, this html:errors is no
Hi Cameron!
I had exactly the same problem. Do you use Netscape or Mozilla? Tomcat JDBC Realm?
Well it worked with Konqueror and IE, but not with Netscape and Mozilla. What I found
out was that you have to change the default preferences settings of the cache
attributes within the browsers.
You will see the same session ID for two browser windows if you 'clone' the
browser window with CTRL+N (in IE). To get a separate session ID you need
to start two instances of the browser, not clone the existing window.
Rob Breeds
I have solved this in a former project by writing or own session (bound to
httpSession) and by assigning a unique value to each browser window (in a
hidden field)
if no value is found in the request, it means we have opened a new window,
so a new unique id should be created
regards,
DC
Hi
I want to know what struts beans are loaded in Tomcat. Is there any
admin utility I can do this with?
Cheers
Tony
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi all ,
I am repeating my question as to is there I can create a web app using
struts if I have to dynamically generate HTML forms as separate HTML
pages from the application of WAR type.
thanx
-Original Message-
From: Rajeev Singh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November
Hi Rajeev
No answers as I don't understand the question.
I am really curious a to what you mean by a dynamically generated
application as most of struts is aimed at dynamic content.
Do you mean using introspection/reflection to build an app on the fly?
-Original Message-
From: Rajeev
Hi
I have a logoff action which I am having problems calling. I have it
defined in my struts-config.xml file as
---struts-config.xml start--
[snip]
actionpath=/logoff
type=com.testdomainnamefoo.LogoffAction
forward name=success path=/index.jsp/
Hi Tom,
By Dynamic generation I mean generation of WEB pages on Fly. If we
generate web pages on fly I don't know how it can be included in the
WAR. In my webapp I am having a fixed set of JSP's plus while
application is running the users will create additional pages which are
reports or new
I configured MySql datasource but it doesnt work if I run WEBApp with
Tomcat that's embedded
in Forte CE 3.0.
Have you ever seen the exception I've got ?
Maris
Don't forget to configure your database int the struts-config.xml
Ciao
struts-config
data-sources
data-source
I have done my homework. I just cannot get the Struts example to run in
VAJ4.0 using WTE (not WAS). Please can someone help me. the following are
the symptoms.
I type in the url http:/localhost:8080/strutsexample/index.jsp I then get
to the main page. When I click on the logon url, the
Hi,
This code iterates ResultSet inserted into session and adds it's
elements to JavaScript table:
sql:resultSet id="rs" name="rset" scope="session"
comTresc[licznik++] = "sql:getColumn colName="comment"/";
/sql:resultSet
And it works. As You can see ResultSet is inserted into
I believe Ted actually means 'reset()' instead of 'init()'.
- Original Message -
From: Ted Husted [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 11:15 AM
Subject: Re: Hidden Field in a form. Do I use struts taglib or vanilla html?
I'm configuring the Struts Action servlet on WebSphere 3.5.2
with fix pack 3, but I get an exception on startup (because this
server uses loadonstartup). The servlet cant find the
/WEB-INF/struts-config.xml file,
I have the following file:
Hi,
Change the two lines of code in FormTag.doEndTag that remove attributes from
the request to read:
pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
Jon Ridgway
www.upco.co.uk
-Original Message-
Hi,
Have you added the ActionServlet mapping into your webapp name.webapp
file? This mapping tells the action servlet where to find struts-config.xml.
If you have the mapping what entry do you have for the config parameter?
Jon Ridgway
www.upco.co.uk
-Original Message-
From: jpablo
Hi Marli,
No, you should be able to use the struts utils in your servlet. You will
have to manually create a FormFile however. Look at the source for the
html:file tag.
Jon.
-Original Message-
From: Marli Satyadi [mailto:[EMAIL PROTECTED]]
Sent: 30 November 2001 00:13
To: Struts
Hi,
It was correctly pointed out to me that I had posted this to the wrong list
(sorry about that folks!). So, I am posting this here in the hopes that
some of you can help me:
I have a couple of basic questions (I have only started using STRUTS, so if
this is obvious please slap some links
Check the earlier discussion Design question - Action Form vs Business
Delegates/Value Objects, started by this post
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18315.html. If
you try now, you should see all posts down this page:
Hi Allen,
Have a look at:
http://www.mail-archive.com/struts-user@jakarta.apache.org/
Ted Husted posted a response to similar question(s) yesterday.
Jon.
-Original Message-
From: Allen M. Servedio [mailto:[EMAIL PROTECTED]]
Sent: 30 November 2001 13:01
To: [EMAIL PROTECTED]
i'm using the html taglib privided with struts and have tried the resulting
pages on windows (IE 5.5) and linux (opera, mozilla and konqueror) - whilst
this is hardly exhaustive testing (i need to try netscape and older versions
of IE) i've yet to find any problems. Hope that helps
On
Hi Cameron!
I had exactly the same problem. Do you use Netscape or Mozilla? Tomcat JDBC Realm?
Well it worked with Konqueror and IE, but not with Netscape and Mozilla. What I found
out was that you have to change the default preferences settings of the cache
attributes within the browsers.
this is not directly Struts but seemed the best qualified forum (it is for a
struts based app however).
I'm using a custom tag to decide which jsp to include (based on some request
variables) - the tag then uses a JSP writer to create the jsp:include -
trouble is the 'jsp:include tag is just
I imagine http://jakarta.apache.org/regexp/ might be interesting for
you...
hth,
tomK
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 30 november 2001 2:08
To: Struts Users Mailing List
Subject: Does struts provide a function to escape special
Hi,
I have created a dynamic html form using struts.
Bascially I have a user preference page and want to
dynamically show text input fields based on preference
names (i.e. favorite color, age, etc.) stored inside a
database table.
Since my page would have both dynamic and non dynamic
input
Actually I am using IE tomcat-3.2 and apache 1.3 , I havent tried it
with the others browsers. I am really quite confused as to why this is
happening.
[EMAIL PROTECTED] 11/30/01 04:28AM
Hi Cameron!
I had exactly the same problem. Do you use Netscape or Mozilla? Tomcat
JDBC Realm? Well it
Hi Ladies and Gentlemen
I want to insert data into a database. I have the database connection
set up and in the case of data without special characters the insert
works fine.
However, the data is coming from a form on a html page and the user can
insert special characters, in particualar
The response is passed to the Action, and so you can use any technique
you would use with a conventional servlet. Just return null to the
ActionServlet when you are done.
http://www.jguru.com/forums/view.jsp?EID=565863
I don't believe JSP pages can be generated dynamically. These are
We've carefully followed the HTML 4.01 specification, to the annoyance
of some developers who want to use undocumented features ;-)
If there are any compatiblity issues, it would be because the browser is
not compliant. But I've never seen an incompatibility reported. Only
requests to support
I'd like to implement the DAO pattern in a struts application I'm building -
is anyone using this - if so, would you recommend?
Also, what's the advantages/disadvantages for declaring your database
parameters in struts-config.xml vs. web.xml?
Thanks,
Matt
winmail.dat
Description:
Not about DAO, but about the difference between web.xml and
struts-config.xml: the first one is loaded by the container, reloading is a
feature of the container, while the second one is loaded by Struts
(ActionServlet), reloading it does not involve redeploying anything, you can
just send a
I have the myapp.webapp file in document root, but it must be in
WEB-INF, I moved it to WEB-INF and it recognized the path for
struts-config.
Friday, November 30, 2001, 9:43:59 AM, you wrote:
JR Hi,
JR Have you added the ActionServlet mapping into your webapp name.webapp
JR file? This mapping
Sun's recommendation is to put them in WEB-INF or WEB-INF/tlds.
--- Shri [EMAIL PROTECTED] wrote:
really depends on the complexity of your application. If you have just a few
action classes, it may be OK. If there are far too many action classes, then
perhaps it is good to separate actions
Consider a situation where you want to display a straght listing of items from a
database. Something like where you would display a listing of 1-20 products on page
1, 21-40 on page 2, etc. There seem to be two ways this gets implemented.
1. Pull the entire table contents, store them into a
I've thought about doing this, and let me know if I'm on the same track as you.
What I'd like to do is to stream XML from my Action class that builds all the
elements of my form - label, value, and control type (text, textarea, select) -
from my form bean.
Then an XSL stylesheet is applied
I have search the archive and seen this bounced around, but can't seem to
find a complete working example. I have:
FormBean where one property is an Array of SomeBean;
SomeBean has three properties, two int, one string;
FormBean inits properly with an Array of SomeBean (via another Action);
Hi,
I the stuts-example that comes with struts 1.0 has an example that has a
databsase servlet that reads from a XML file, did any one work using the
digester util to write to a XML file if so could you post an example please.
Regards.
RK
- Original Message -
From: Matt Raible [EMAIL
Reply to Rajeev:
In your dynamic web site u probably will still have fixed type of pages
with a predefined format e.g. Form, Report, Report with Graph etc. for say
a Gold Customer etc, in which case these pages could be treated as
templates. I believe that you would be choosing the appropriate
WEB-INF/classes/com/iamtestdomain/testproject -(1)
and my taglibs in a the directory
WEB-INF/classes/taglib -(2)
Is this a good way to organize things?
The project I'm working on is organized thusly under a com.foo. package:
actions
entities
forms
servlets
taglibs
utils
with actions
Hi,
My question is actually simple.
I would like to write my own custom tag that, for example, builds a form
using the struts custom tags.
For example, I would like to write a tag like this one:
myTabLib:mytag /
Which, for example, does this:
html:form action = myAction.do
Rob,
I did start two instances of the browser. later I even try logon from IE and
Netscape separately, but I can also get same session ID. I also found
sometimes I get the same session id, sametimes session id is different which
is what I want.
Thanks a lot.
Gang
-Original Message-
This sounds like more of what I'd like to do:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg18542.html
I'm just waiting for Jeff to publish his example ;-)
Matt
-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 8:23 AM
To:
I posted working example a while back. see
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg12084.html
HTH,
Dave
John Kowalik [EMAIL PROTECTED] on 11/30/2001 09:45:39 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List
You could probably use findAncestorWithClass(Tag, Class)
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/jsp/tagext/TagSupport.html
--- Hani Hamandi [EMAIL PROTECTED] wrote:
Hi,
My question is actually simple.
I would like to write my own custom tag that, for example,
Oh, well, maybe I wasn't clear in my question.
I want myTagLib:myTag / to somehow replace itself by a set of struts
tags.
I don't think findAncestor would do it.
Am I missing something in your thoughts?
Thanks for your answer anyway.
-Original Message-
From: Matt Raible [mailto:[EMAIL
http://www.atlasbooks.com/marktplc/00670.htm
You can order it today, and it will ship next week.
It will be on Amazon, etc. in a few more weeks, it takes time. This is
the fastest way I know to publish it.
Vic
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands,
I see the price is listed as $69.95! Do you know what the likely price
on Amazon will be?
-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 11:26 AM
To: [EMAIL PROTECTED]
Subject: Struts 1.1 book available for order
The example updates the XML file so there must be code for you to browse.
Lou Farho
Certes Solutions, Inc.
2485 W MAIN ST
SUITE 205
Littleton, CO 80120
303.798.8079
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Marli,
Your multipart data seems to be right. Make sure you prefix it with
the normal HTTP headers that go with a multipart request, I think something
like:
Content-Type: multipart/form-data; boundary=...\r\n
--boundary
-same stuff as you had for the multipart data goes here
If you're
Hanikh,
You can instantiate a tag from within a tag. You would need to set the
appropriate tag setters like setParent and setPageContext. It may or
may not work depending on how the tag was written. I also don't think
it is an ideal way to nesting tags but it does work when the output of
one
After seeing your table of contents I wonder about what is in this book.
Which of the extensions that are not part of the official struts
distribution does the book cover [i.e. Validator by David Winterfeldt, Tiles
by Cedric Dumoulin, Role Based Actions by Nic Hobs, etc.]?
Also, will there be a
Thanks for your answer David.
Again, maybe I was not clear in my original message, even though I thought I
were.
But I am really not trying to do nesting here. I am simply trying to write a
custom tag:
Normally, when you write a custom tag, the only tags you can use in
out.print( ... ) are the
There is a chapter each on Validator and Tiles. In addition, there is an
appendix on Validator and Tiles (the appendix is just a reprint of the
web site's by Cedric and David).
The full TOC is on baseBeans.net / book.
Nothing on Role Based Actions.
I do cover JDBC DB security realms (JAAS),
In other words, if, for example, you do out.print(html:text ... /), this
will simply write the actual string html:text ... / back to the browser,
and, of course, not evaluate the tag. I was just wondering if there's a way
to do it.
-Original Message-
From: Hani Hamandi [mailto:[EMAIL
Hi
Looks just the book I've been waiting for but at $80/$90 - twice the price
of most IT books - I'd need to see some sample content first.
-Original Message-
From: Vic Cekvenich
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Sent: 30/11/01 18:53
Subject: Re: Struts 1.1 book
When I try to run the struts-example in Tomcat 4.0
(jre 1.3.1, NT 4, SP6) I get the infamous
Missing message for key index.title
I notice tho, that the logs have an earlier exception
trying to load /WEB-INF/struts-config.xml:
2001-11-30 12:45:39 action: Initializing configuration from resource
Hani,
I still must not understand, but I think that your someStrutsTag is
indeed nested in your tag. At least the output is. You may be
able to get away with something like:
if (getSomeStrutsTag() == null) {
setSomeStrutsTag()(new SomeStrutsTag());
getSomeStrutsTag().setParent(this);
If you want to pass data to a jsp, where the information will not be in
an HTML form, do I need to pass it through the ActionForm that is in the
mapping, or should I just put a bean in the request and use it on the
jsp?
Dave
All,
I've just subscribed to the Struts Users mailing list, so Hello, all!
I also took the time to try to get the FAQ for the list and to find a
searchable archive but the mailing list faq is non-existant (according to
ezmlm). I've looked at the Jakarta site and I'm still needing a push in the
Hi,
Any ideas on what tag, or how to compare to attributes from my form bean?
Typically I would do
logic:greaterThan property=number value=7
A little lower...
/logic:greaterThan
But, I need to see to compare two properties.
Thanks,
Beth.
This message contains information
Use a cursor. MySQL does it with:
SELECT name FROM customers LIMIT 5, 10
Yes, it's optimized.
http://www.mysql.com/doc/L/I/LIMIT_optimisation.html
All databases can do that, maybe differently.
--Renaud
- Original Message -
From: John M. Corro [EMAIL PROTECTED]
To: [EMAIL
If you want to pass data to a jsp, where the
information will not be in
an HTML form, do I need to pass it through the
ActionForm that is in the
mapping, or should I just put a bean in the request
and use it on the
jsp?
If you need to pass info that won't be in the form, then I would
I think the shourt answer is, No. However, what David is saying should get
the job done. For instance I wanted a tag that would allow you to say
mytags:validatedText property=name /
and would output
html:text property=name /html:errors property=name /
so I wrote a tag that extends the Struts
Jeff,
Welcome to the list.
You can find the searchable archive at;
http://www.mail-archive.com/struts-user@jakarta.apache.org/
Thanks.
-- Original Message --
All,
I've just subscribed to the Struts Users mailing list, so Hello, all!
I also took the time to try to get the FAQ for the
This is very cool!
And if the tag you're calling (ErrorTag in your case) were more complicated,
I would assume you would have to do the processing yourself, right?
In other words, in your case, you happened to match ErrorsTag by simply
calling its doStartTag(). But if, let's say, it implemented
I guess I'd better order a copy right away, so that I can find out what
we're going to be implementing in Struts 1.1 ... ;-)
--
Martin Cooper
At 09:25 AM 11/30/01, Vic Cekvenich wrote:
http://www.atlasbooks.com/marktplc/00670.htm
You can order it today, and it will ship next week.
It will
What is the email address for posting a question to the user group?
I subscribed but am not clear how to post or reply to a question?
Thanks,
George White
email: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001
Something like that. You would probably call the doAfterBody in your own
doAfterBody, etc rather than one after the other, but yeah, that's the idea.
There might be another way to do this, but this is what I did.
-Jonathan
- Original Message -
From: Hani Hamandi [EMAIL PROTECTED]
To:
Hi,
I'm having a problem using the html:radio tag using another bean.
For my text fields, I define an object bean called User and set the value
using:
html:text name=User property=name/
This sets the value of the text field to whatever the getName() method of my
form returns.
When I try to do
Hi Chris,
Make sure you have getFlag() and setFlag() methods in your User bean. The
error says that it can't find the getFlag() method. In the example you gave
for property=name, I'm sure you have getName() and setName methods in your
User bean.
Hope this helps,
Lucas
-Original
session.invalidate()
@see
http://java.sun.com/j2ee/j2sdkee/techdocs/api/javax/servlet/http/HttpSession
.html#invalidate()
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 10:38 PM
Subject: Removing all beans
I found the problem, at least in my installation,
and maybe for others.
I have security turned on. This causes all the
application accesses to local files (e.g.,
properties, struts-config.xml, etc.) to fail.
This isn't apparent since many of the methods
seem to silently swallow the security
One way to workarounf the Tomcat security
bug in loading libs is to explode struts.jar
into your /WEB-INF/classes directory.
Frank Lawlor
Athens Group, Inc.
(512) 345-0600 x151
Athens Group, an employee-owned consulting firm integrating technology
strategy and software solutions.
--
To
[PUBLIC/PRIVATE TRAINING]
BaseBeans Engineering offers both public and private training classes in
developing MVC applications using the Struts framework and other open
standards software. Please visit the BaseBeans web site for more
information (http://www.basebeans.com).
[BOOK]
BaseBeans
Here's my setup:
MacOS X
Tomcat 4 (but also happens with orion)
MySQL 3.23.43
data-sources
data-source
set-property property=driverClass value=org.gjt.mm.mysql.Driver /
set-property property=password value=root /
set-property property=user value=root /
X2J is a code generation tool for building Struts applications.
It includes wizard for easily creating JSPs, and the required Action and
ActionForm classes as well as graphical tools for updating the config file.
You can check it out at http://www.objectwave.com
Once there just got to tools/java
I need a form that has checkboxes (multiboxes) for all the states.
First I would like to know if the parameters of the multibox allow one to save the
names (state name) of the checkboxes along with an indication of whether they are
checked or unchecked
Too, I need to save to a database and
Hi, in my application, after a specific post, I'm setting the NOCONTENT
(204) status so that the browser doesn't refresh anything, and everythings
working, but I find that Internet Explorer keeps its status bar
incrementing, as thou its wanting data. I don't have the exact code on me
at the
I need a form that has checkboxes (multiboxes) for all the states.
First I would like to know if the parameters of the multibox allow one to save the
names (state name) of the checkboxes along with an indication of whether they are
checked or unchecked
Too, I need to save to a database and
Hi!
I have a simple question. Will I be able to produce a mathematically
calculated value based on the input given without another variable?
here's the scenario.
JSP page 1, I have an input textfield (num) and a submit button
on my form bean, I have a variable called num.
on my action form, it
Try to use template. Struts template can do exactly
what you want to.
--- Martin Samm [EMAIL PROTECTED] wrote:
this is not directly Struts but seemed the best
qualified forum (it is for a
struts based app however).
I'm using a custom tag to decide which jsp to
include (based on some
I fully agree with Nathan , since those $70 will be further converted to Indian
Rupees,
i would like to read a sample chapter on-line before deciding about the book
rgds
amit
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Hi!
how can I use the iterate tag on an arraylist in my form bean to display the
elements in the arraylist
the bean name = BEAN
the ArrayList of strings is Arr
logic:iterate id=element name=BEAN property=arr
bean:write name=element property=arr /
/logic:iterate
is this correct?
Hi, what are tokens? Do any of you have a link of a
page that discusses what are tokens and what is there
use? Thanks! :)
__
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
--
To unsubscribe, e-mail:
see the example app - they're used to track if the form has already been
submitted and such (back button and reload button issues).
--- Stanley Struts [EMAIL PROTECTED] wrote:
Hi, what are tokens? Do any of you have a link of a
page that discusses what are tokens and what is there
use?
89 matches
Mail list logo