The logic:empty and logic:notEmpty tags were introduced for Struts 1.1,
so they are not available if you are using Struts 1.0.
The Struts web site generally documents what is available in the latest
nightly build. The documentation for any given build is available in the
struts-documentation.war
Hi Domingo:
I am not very sure if it is the same problem but i had a similar problem.
firstof all you do need the xerces.jar in the lib dir of your application.
also jboss-tomcat (v3.2) comes with a xerces.jar(v1_0_3) in dir
$tomcat_home/jakarta-tomcat-3.2-b8/lib, you have to overwrite this
Hi
We have to build deploy some web applications with
JSP/Servlets on an LVS cluster. At the moment,
though, I don't think we can guarantee session
affinity (i.e. subsequent requests will end up on
different machines), and it seems that Struts uses
sessions quite heavily.
Am I right in
Hi
As long as you carry over all properties to the next request using form
elements (text, hidden, ...), you will only miss the LOCALE session
variable. But you set that by subclassing ActionServlet.
Actually when you stay away from wizard-like/multipage forms, you'll be
fine.
Renzo
I would like to use the following
request in a forward of an action in my web application's struts-config.xml
file:"/doorman.do?action=lfadm.listci=0"
But when I put in:
forward
name="lfadm"path="/doorman.do?action=lfadm.list%26ci=0"
redirect="true"/
I get XML parser errors when Tomcat
The pattern I use works as followed:
- create a Action which reads data from a database
- stuff all data in a bean and request.setAttribute(BeanName, bean);
- forward to your view jsp and reference your data as bean:write
name=BeanName property=field/
NOTE:
directly requesting the .jsp will
no need to put the form Bean using the request.setAttribute(beanname,
bean) . It is done by struts framework .
rest is fine . Use html:form tag in Jsp .
Suhas
- Original Message -
From: Renzo Toma [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 11:46 AM
Subject: RE:
This
falls in the category "I want to passparameters along a redirecting
forward, but I don't know how."
I have
the same problem when:
-a user adds a new contact to a group in an
hypothetical addressbook.
- on
successa list of all contacts in that group is shown.
- to
avoid
Not when you dont have a Form for your Action, which in my case ;)
Maybe I do not understand the question; you are referring to a normale
Form-Action-JSP model. Maybe Brett is too!?
-Original Message-
From: suhas [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 20 juli 2001 17:36
To: [EMAIL
We are using Cocoon for our presentation (using XML/XSP/XSL). What we have
done is to store menus in static XML files. In response to a request an
action (making use of a menu manager) can load a specific menu. If the
action originated from selecting a menu option then that option is modifed
I tried via list server email address last week but apparently it does
not work!
-Original Message-
From: Renzo Toma [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 6:13 AM
To: [EMAIL PROTECTED]; suhas
Subject: RE: How do you load information into a bean that your form uses
Hi All!
I am trying to capture of the entire URL of where the
user has come from - i.e., the URL of the previous
page. I am getting null value when I invoke the
getReferrer() method.
Thanks.
__
Do You Yahoo!?
Get personalized email addresses
What is that strange escape character %26 as a parameter separator ??!!
Did you try the correct one which is or perhaps better with the
equivalent HTML entity amp; ?
I didn't try myself but I won't understand if the following does not work :
forward name=lfadm
Hi,
I'm in some kind of a hurry, so I didn't check the bug list or the archive.
In case, that this is a known issue, just forget about it.
So here's the apparent bug:
I'm using a base form class with some static fields and the
getters and setters:
MyBaseForm extends ActionForm implements
You could use: request.getHeader(Referer)
Which class has the getReferrer() method?
HTH,
Pete
Web Programmer wrote:
Hi All!
I am trying to capture of the entire URL of where the
user has come from - i.e., the URL of the previous
page. I am getting null value when I invoke the
David,
Thanks for the great framework for validation. I have found it
extremely useful and am glad to hear it is becoming
part of struts in the future. I am working on some deployment and
maintenance issues and wondered if you had any
suggestions based on your input below.
There are two
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
Hi , i require to create another Action Class contoller as the
ApplicationMappings ActionForward.java won't compile so i would like
to create an Action.java and run ant to compile. Thus is there a n
example of this class and is it a abstract class with no
methods(uniplemented methods-empty
Does anybody know where to find documentation for Form Tags - which contain tags
used to create struts input forms?
The link in the jakarta.apache website does not work!
http://jakarta.apache.org/struts/struts-form.html
Thank you
__
Get
Do you have some code to show how you are doing this?
Steven
-Original Message-
From: O'Reilly John [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 6:54 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Tree
We are using Cocoon for our presentation (using XML/XSP/XSL). What we have
The form tags were deprecated after the 0.5 milestone, and superceded
by the html tags. For more about hte html tags, see
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summary.html#package_description
and
http://jakarta.apache.org/struts/struts-html.html
These
Thank you for the reply.
I got the original link from this website:
http://developer.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/Trail5.htm
It is a tutorial by HP bluestone. It must be pretty old!
The form tags were deprecated after the 0.5 milestone, and superceded
mainmenu.xml menu.xsl PortalAction.java
-Original Message-
From: Steven Leija [SMTP:[EMAIL PROTECTED]]
Sent: 20 July 2001 15:50
To: '[EMAIL PROTECTED]'
Subject: RE: Tree
Do you have some code to show how you are doing this?
Steven
-Original Message-
sorry, didn't mean to send the email below without comment
Well, mainmenu.xml is a static xml file representing a menu, menu.xsl is the
stylesheet that renders it (note the XSL currently only handles one level
of nesting mainly due to my lack of knowledge of XSL!). The
PortalAction.java
I am using Struts 1.0 on Tomcat
3.2.1.
When I try to use
bean:message name="%=
Constants.STATS_KEY %" property="ci" scope="request"/
I get the message
"According to TLD attribute key is
mandatory for tag message"
The message is incorrect, at least
if I am to believe the documentation of
Hi, is it feasiable to drop my .java file into classes dir instead of
the path
bbnpa/WEB-INF/classes/org/apache/struts/action
bbnpa/WEB-INF/classes/org/apache/struts/custom
bbnpa/WEB-INF/classes/org/apache/struts/logon
Use bbnpa/WEB-INF/classes/action and so on.
As i have tried to create a
If you don't figure out why ApplicationMappings.java and
ActionForward.java isn't compiling, it isn't going to help you to
compile an Action class. I imagine the problem that is causing the
compilation of those two classes is going cause the compilation failures
of many of your other classes.
Hi,
I want to know if Struts works well with Oracle 9i
Application Server and Jdeveloper!!!
Thanks you in advance
TGIF to all,
I have the following code that generates a select:
strutshtml:select property=workScheduleDetailDO.dayOfWeek
strutshtml:options name=weekView property=dayNames/
/strutshtml:select
HTML output:
select name=workScheduleDetailDO.dayOfWeek
option value=SundaySunday/option
When I try to use
bean:message name=%= Constants.STATS_KEY % property=ci
scope=request/
I get the message
According to TLD attribute key is mandatory for tag message
The message is incorrect, at least if I am to believe the documentation of
the BEAN TLD!
Does anyone has any experience
Hi, TGIF from me too :)
I guess you could try using an iterate tag because it seems that the values
you want are just a sequence, which you can expose using the indexId
attribute.
Otherwise you will need to specify both the property and labelProperty
attributes of the options tag, which lets
new to struts, bear with me...8^)
i'm having difficulty making a particular form bean's properties available to a JSP.
scenario:
...requesting genTklsDailyForm.do
...the TicketlessDailyReportFormAction puts a com.blah.TicketlessDailyReportForm
bean into request scope
...then forwards to
Wow, this mailing list is s active, I almost overlooked
your reply and sent it off into the digital wasteland. I'm
sorry!
Thank you for your help. I'll check it out and once I have
some numbers, I'll be glad to share. :)
-cme-
--- Ted Husted [EMAIL PROTECTED] wrote:
I don't have a
FYI, this is a known, non-struts, issue- Bascically, properties, getters and
setters can't be static per the bean spec... Therfore, struts cannot use
normal bean introspection to populate your form.
Definitely search the archive for more info if you need it, its there.
Regards,
Levi
-
I don't now if someone ask this. I'm new in the list, sorry.
Oracle 9i run whit Struts?
You seem to have action element a little messed up... try the following
(notice the change to path and the addition of name):
action-mappings
action
path=/tklsDaily
name=genTklsDailyForm
type=com.blah.TicketlessDailyReportFormAction
unknown=false
forward
actually, my reply was a little hasty...on a closer look I'm little confused
at what you want...but here's my best guess.
If you really want to invoke the action associated with
genTklsDailyForm.do then the action of your form must not be
action=tklsDaily.do, but rather
I have been trying to setup a multi-page form using Struts and Tomcat. I am
having some trouble though, and am in need of help.
I have set up a form bean that has all of the fields required across all
pages of the form. I have setup a single action that handles the input of
the form at each
I've got a multibox/iterate combination form. My webapp works when there
is something to submit. When I check at least one value checked in my
multiboxes, I get the expected result. When there is nothing checked in my
multiboxes, my form object is the same as it was before I changed the
Hello all,
I am not sure whether if this is a HTML question of a Struts question.
Anyways, I am trying my luck here.
I have a JSP with multiple forms. When the submit of form 1 is clicked, I
would like to read the value from the source of form 2 and set it in the
action property of form 1.
How
Hi everyone.
I have something strange happening. I have a 2 frame frameset, with buttons in
the top fram to let a user view a logfile in the lower frame, or download it.
If the chose to download the file, I get the ServletOutputStream from the
response in my action, and write to it. I then
Here is a simplified overview of what you need to do. If you still would
like code, I can still supply you with it, but I think this will be easier
to understand.
ActionForm:
2 fields with associated getter and setters:
String[] CheckboxNames
String[] CheckboxValues
You must populate this
thanks for your reply. actually, my actions were configured ok.
when i browse the URL:
http://localhost:8080/commissions/genTklsDailyForm.do
it should invoke the action /genTklsDailyForm, which will place
a form bean named tklsDailyForm into request scope, and forward to
Hi Becky,
Did you override the reset () method of ActionForm? If you didn't you
need to set the Attribute of your ActionForm object that represents the
multibox to null.
Like:
public void reset(ActionMapping mapping, HttpServletRequest request) {
this.action = Create;
Is an Action class responsbile for performing all
possible actions submitted by a form?
For example, if a Form includes two submit buttons: New and Edit
Do I create one Action class that handles both actions?
If so how do I check which submit button was pressed? Do I just check on the
Why would I want to extend the ActionMapping class?
Thanks
Alberto Corona
ObjectWave Corp.
312.269.0111
[EMAIL PROTECTED]
Thanks to all.
I got it working.
-Mike.
-Original Message-
From: Michael Skariah [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 1:21 PM
To: [EMAIL PROTECTED]
Subject: Handling multiple forms...in a JSP
Hello all,
I am not sure whether if this is a HTML question of a Struts
Thank you!
I forgot about that. Thanks for jogging my memory. I know I've read about
that in the mailing list somewhere before, but I couldn't find it. I
appreciate your quick response.
Becky
Original Message Follows
From: Abraham Kang [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Hi,
Need some help to get large result set from the database and show
pagewise ( say 10 per page ). I would like to cache previous/next pages too
(to some extent). I am using Struts 1.0 and Tomcat3.2.2.
I think the iterate tag will be the only one (beside traditional JSP) to
use for
This would be entirely up to you... Depending upon the nature of the two
actions one choice may be preferable to the other.
If you wanted to have one action class you would need to check the request
to see which button was pressed. There would be a number of ways to do this
but the most straight
hi,
in my select list i want an item to be selected
default. for this i did as:
bean:define id="server"
name="abc" property="server" /
bean:define id="myCollection" name="abc" property="records"
/
html:select name="abc" property="xyz" value="server"
html:options
hi,
I am interested in the workflow feature coming with Struts 1.1 (It is
already there in the todo list).
Any idea when Struts 1.1 gonna be released?
Regards
Kiran
There will be a 1.01 maintenance release at the end of the month.
My guess would be that a 1.1 release would not happen any time soon. A
lot depends on how much help the development team gets over on the DEV
list, including the workflow feature. The work on this particular
feature is still in
I presume you will be having these in your Form class ;
getxyz() and
setxyz() for the property xyz
call setxyz(defaultvalue) when you set the values in the Form class.
Hope this helps !
-Original Message-
From: Rama Krishna [SMTP:[EMAIL PROTECTED]]
Sent: Friday,
yes, i do have setxyz, getxyz.
- Original Message -
From: Prashanth_Thm [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 3:46 PM
Subject: RE: html:select
I presume you will be having these in your Form class ;
getxyz() and
setxyz() for the property xyz
call
Hi
We recently put the plug-in in for IIS and WebLogic and are encountering the
problem where IIS is giving page not found errors because of the sessionid
that the struts tags put on the URL for the first request to our
application. We know its the sessionid causing the problem because all
Hi Jason,
How do you have proxying set up on IIS is it my path or extension? What
does the URL look like the first time through?
By the way, I could never get failover to work with the IIS proxy
plug-in.
--Abraham
-Original Message-
From: Jason Te Whau [mailto:[EMAIL
Check out Pager Tag Library. It should work fine on Tomcat 3.2.2
http://jsptags.com/tags/navigation/pager/
--- [EMAIL PROTECTED] wrote:
Hi,
Need some help to get large result set from the database and show
pagewise ( say 10 per page ). I would like to cache previous/next pages too
Hi,
I would like to know if it is possible to have some code called at the web application
initialization (something like the init() method of the first servlet called by the
web app - which here is ActionServlet).
Should I just extend ActionServlet?
regards,
Fabien
I looked at the archives and saw several mentions of do not put
struts.jar in anything but the webapp\WEB-INF\lib area. I did not put
it in tomcats lib directory and dont believe its in my classpath.
Tomcat starts on up but I get errors when its setting up the struts
example program.
Doh! Thanks for the suggestion Abraham, I hadn't actually tried proxying by
path yet but that seems to have done the trick.
Thanks for your help and have a great weekend!
-Original Message-
From: Abraham Kang [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 4:34 PM
To: [EMAIL
Hi Fabien,
I typically do this in a StartupServlet in my web.xml.
Here is an example of how I initialize Log4j:
web-app
context-param
param-nameweblogic.jsp.keepgenerated/param-name
param-valuetrue/param-value
/context-param
servlet
servlet-namelog4j/servlet-name
Hi,
I would like to know if it is possible to have some code called at the web application
initialization (something like the init() method of the first servlet called by the
web app - which here is ActionServlet).
Should I just extend ActionServlet?
regards,
Fabien
Fabien Le Floc'h [EMAIL PROTECTED] wrote:
Hi,
I would like to know if it is possible to have some
code called at the web application initialization
(something like the init() method of the first servlet
called by the web app - which here is ActionServlet).
Should I just extend
I'm using Struts 1.0 with Tomcat 3.2.2 and JBoss 2.2.2. I'm using an
hrml:select containing an html:options tag in a JSP, with the property
attributes referring to form and bean fields. It works fine when the Java
class of the 2 bean properties is String, but when I try to use class I
created I
Decided to live on the bleeding edge, installed jdk1.4, installed
tomcat4.
Copied struts *.war files into tomcat4 webapp dir and off it goes.
So far things look pretty cool I'll have to look into this more this
weekend.
thank you jakarta team.
did I miss a step?
66 matches
Mail list logo