What you are doing should be fine (as long as your collection is not too terribly big).
You use an ActionForm when you want to collect input from the user.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 9:45 AM
To: [EMAIL PROTECTED]
Pady -- generally, there is very little overlap between JSTL and the Struts HTML tags.
There are no JSTL tags that do the work that the Struts html tags do ... that being
said, I
encourage you to use the html-el library (basically the Struts html tags which support
EL)
so you have the full
Basically, any of the struts tags that are struts-aware were not eliminated from
Struts-EL -- specifically, the bean:message tag was not eliminated because it
specifically looks in the application resources as specified in struts-config. The
fmt:message can be made to look into that bundle but
It has nothing directly to do with Struts, but I have used Analog
(http://www.analog.cx) with good success.
-Original Message-
From: Carl-Jakob [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: Help me get my boss of my back
Hi,
We
to including page
I'm a little confused, but when you submit the form the target should be an
action and couldnt you just do the processing within that action and if its
successful forward back to the page that includes the form?
- Original Message -
From: Siggelkow, Bill [EMAIL PROTECTED
from the dyna form
StringBuffer redirectUrl = new StringBuffer(url);
if (query != null !.equals(query)) redirectUrl.append('?').append(query);
response.sendRedirect(redirectUrl);
return null;
}
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]
Sent: Thursday
I have an included page (included using c:import) that contains a form. If the form
processes successfully I want to return
back to the original including page. Is there a clean way of doing this? The problem
I have is that my action for the included page
does not know anything about the page
Michael,
You certainly can write a connection factory class that provides getConnection type
methods -- I do this all the time to abstract the different ways of doing connection
pooling -- sometimes I am using DataSources -- other times not. However, you should
just use a regular class for
I have an app where I have created my own RequestProcessor to override the
processRoles functionality. Specifically, my roles take into account certain session
information. This works as expected and properly handles the 'roles' attribute in my
action mappings. However, I naievly (sp?) made
Andre ... this is not connection pooling -- but rather keeping a connection open.
Yes it can be done ... however, HTTP is not a reliable connection and there is a good
chance that your connection will get left open.
However, it is time consuming to always have to open/close connections -- hence,
Isn't this similar to what the Dispatch action does?
-Original Message-
From: Chan, Charles [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 10:18 AM
To: 'Struts Users Mailing List'
Subject: One way of writing BaseAction
Hi, I just want to share with you my base action class
Some containers support a container-specific flag for precompiling. As I recall you
can do with this weblogic without having to declare all your JSPs in the web.xml. Of
course, I would not do this in development mode as it will take a long time for server
restarts!
-Original Message-
Doesn't the 'required' validation rule do this?
-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 12:37 AM
To: [EMAIL PROTECTED]
Subject: Validator Question
Hi,
I need to validate that the user does not enter only spaces in a
Use square brackets '[' instead of parenthesis when you build the 'name' like:
% for (int i=0; i10; i++) {
String name = value( + i + );
%
html:text property=%=name%/br/
%
}
%
-Original Message-
From: ashokd [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 5:37 PM
To: Struts
Can you give more details on what you are trying to do and why? Java classes can
certainly read in property files during runtime. Read the JavaDocs on the
java.util.Properties class for details on how to load properties.
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Heather,
In my opinion, the approach you are taking is not separating out your logic
appropriately. In fact, it sounds like your are binding your persistence layer
(database columns) all the way up to the presentation layer (your action forms). A
better approach is to separate the
If you are Struts 1.1 you can use the logic:messagesPresent tag.
-Original Message-
From: Justin Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 9:37 AM
To: Struts Users Mailing List
Subject: Checking for the existence of errors
Hi all,
Is there an elegant way using
It looks like JBoss has already loaded an old Digester or you have an old copy of
Commons in your WEB-INF.
-Original Message-
From: Danilo Luiz Rheinheimer [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 10:26 AM
To: Struts Users Mailing List
Subject: Struts application on
Simon,
You should load this resource using the Class object. Take a look at the following:
http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String)
-Original Message-
From: Simon Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003
: Siggelkow, Bill [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, January 10, 2003 4:29 PM
Subject: RE: Getting the full path of the context from within an Action
class
Simon,
You should load this resource using the Class object. Take a look at
the following
Try using the indexed attribute of the html:text tag.
html:text name=myForm indexed=true property=costcenter
size=12/
-Original Message-
From: Gus Delgado [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 09, 2003 10:13 AM
To: Struts Users Mailing List
Subject: String Array
I'm
You cannot use a tag as a value of an attribute in a tag -- you need to use a Runtime
Expression (or expression language if you are using JSTL) as in the following:
html:hidden property=sectionName value=%=ac.getSection().getName()%/
-Original Message-
From: Vijay Balakrishnan
What type of object is formObject? That is, how are you calling this function (e.g.
from onclick? or some other event handler).
If 'formObject' is actually the 'document' then you would do something like ...
formObject.forms[0].action=%=request.getContextPath()%/getAccounts.do;
()%/getAccounts.do;
formObject.submit();
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 11:20 AM
To: 'Struts Users Mailing List'
Subject: RE: Call Struts Action from JS
What type of object is formObject? That is, how are you calling
V,
When you replied Yes below you seemed to indicate HTML provided some sort of
built-in ability for multi-row selection in a table (not in a select control) -- I
do not believe that HTML provides such -- however, you can indicate of rows in a table
using a variety of input controls
This is not a Struts question ... however, if you want a modal dialog -- that is, one
where the user has to respond before continuing -- you need to use JavaScript.
I am not trying to be critical but it sounds like you need to spend a little time
learning the capabilities of HTML and browsers
Should be no problem. Just make sure it is configured in your web.xml with a
different name and mapping (if any).
-Original Message-
From: Vincent Stoessel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 1:06 PM
To: struts Users
Subject: Adding another servlet into the mix
=String/
... value=%= myId% ..
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 08, 2003 5:36 AM
To: 'Struts Users Mailing List'
Subject: RE: value=bean:write../ question
You cannot use a tag as a value of an attribute in a tag -- you need
PROTECTED]]
Sent: Wednesday, January 08, 2003 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: value=bean:write../ question
No, it will still be set.
Regards,
PQ
This Guy Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Siggelkow, Bill [mailto
The servlet spec disallows forwarding between web applications. The second app does
not have access to the session. If you need a shared session, you might want to
consider using Struts modules to subdivide your web application.
If you are looking to implement a single-sign-on -- they are ways
If I were you, I would use Ant to compile and deploy to my app server -- You get the
best of both worlds if your IDE supports Ant :)
-Original Message-
From: PILGRIM, Peter, FM [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:15 AM
To: '[EMAIL PROTECTED]'
Subject: Oracle
I think I had the same problem ... what I did was download and reinstall WLS 6.1 sp4
-- it was a major pain but I was able to get things working ... honestly, WLS can be a
frustrating product -- personally, I find JBoss easier to work -- (unfortunately my
employer has a fear of things that are
I believe that the logic tags will work with a local variable -- anyway, if you don't
want to use scriptlet, how did you create the local variable in the first place?
-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 8:59 AM
To: [EMAIL
Struts does not convert Strings to dates -- you neecx to do this in your ActionForm --
for example, you can have Display methods such as
getDateDisplay:String
setDateDisplay(String d)
that perform the conversion to the internal Date type.
-Original Message-
From: usha [mailto:[EMAIL
with local variables, it worked. Thanks for
that. And still, logic:equal offers only if..then; is there any way to
simulate if..then..else?
Thanks,
Suresh
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 7:41 PM
To: 'Struts Users Mailing List
Did you try taking the version off the URI? In other words, use:
http://jakarta.apache.org/struts/tags-tiles;
-Original Message-
From: Daniel Grey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 02, 2003 5:21 PM
To: [EMAIL PROTECTED]
Subject:
Rick,
I have had this working with Log4j 1.2.6 on both solaris and windows. I saw your
post on the struts-atlanta group about this and noting some possible windows file
locking issue. Have you tried a different path to see if that makes any difference?
Maybe use a relative file path?
Are you saying that when it reaches 2K it is creating a new backoffice.log but not
creating the archive (backup) copy?
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 11:58 AM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject:
It is my understanding that any page that you include cannot be outside of the current
servlet context root. In fact, I am surprised that this worked for you on iPlanet --
it seems to me to be inviolation of the servlet spec.
-Original Message-
From: ajTreece [mailto:[EMAIL PROTECTED]]
Do you have a Windows Explorer window open on that folder? I have found that Windows
explorer can hold locks this way.
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 1:30 PM
To: Struts Users Mailing List
Subject: Re[4]: [OT] some log4j
Try something like ...
logic:iterate indexId=index ...
bean:define id=indexMod2 value='%= index % 2 %'/
logic:equal name=indexMod2 value=0
markup for even row here
/logic:equal
logic:notEqual name=indexMod2 value=0
markup for odd row here
/logic:equal
/logic:iterate
once in
a single page (which is what we would be doing in an iterate tag.) Unless
I'm misinterpreting.
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation
Try
markup here
/logic:notEqual
/logic:iterate
Give it a try! The expression is still a little wicked but not as evil as the
scriptlet.
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 3:43 PM
To: 'Struts Users Mailing List'
Subject: RE
Thinks He Knows Everything
This Guy Thinks He Knows What He Is Doing
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: January 3, 2003 3:53 PM
To: 'Struts Users Mailing List'
Subject: RE: Iterate Index Evaluation
Strike that ... reverse it! I was able to use
Add the following stanza to your struts-config.xml ...
controller
nocache=true/
-Original Message-
From: Caoilte O'Connor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 01, 2003 10:36 PM
To: [EMAIL PROTECTED]
Subject: defeating caching
Hi,
Can anyone tell me exactly what
Try using the 'collection' attribute instead of 'name' ... otherwise, the tag
interprets the name/property combination as identifying the collection.
html:options collection=users property=email labelProperty=email/
\-Original Message-
From: Michael P [mailto:[EMAIL PROTECTED]]
The error sounds like the servlet cannot even find struts-config.xml. Check the war
to make sure struts-config is really there and in the WEB-INF folder. You can open
the war with WinZip. Also, make sure that the folder WEB-INF is in all caps.
-Original Message-
From: Howard Miller
I built an application on WLS 6.1 using Struts 1.0 that supported display of
user-uploaded content. Several keys to this were:
1) I had to deploy the web app in exploded format
2) If WLS was run in Production Mode I had to call a little runtime script that
deployed (refreshed) the new content
Try using --
html:text property=adminRight[2]/
-Original Message-
From: Jitendra Singh [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002 9:32 AM
To: Struts Users Mailing List
Subject: Re: no getter method for property phoneList
I am trying as given on the apache server ... but
You could use a hidden field with the value equal to the value of the scripting
variable ..
html:hidden name=personalplanungEditForm property=someProperty
value='%=theScriptingVariable%'/
-Original Message-
From: Tobias Flohre [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 23, 2002
Can you provide more details? When you are dealing with forms, the basic types are
either String or booleans. Perhaps what you want to do is best handled in your Action
that processes the form. It sounds like you need to make an object available in let's
say the request scope and then have
Following is taken verbatim from the struts-config.dtd
input Module-relative path of the action or other resource to
which control should be returned if a validation error is
encountered. Valid only when name is specified. Required
You could do it in your action like;
if (isCancelled(request)) return mapping.findForward(mainMenu);
-Original Message-
From: Bradley G Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 2:13 PM
To: [EMAIL PROTECTED]
Subject: Cancel Submit Buttons
Can someone please
The html:reset really has nothing to do with the reset method of your form ...
instead this renders an input type=reset button that will reset the form fields to
their default state as known by the browser. Therefore, in the case when you have
returned to the form after a validation failure
understanding, whenever user clicks reset button, it will call the reset method,
therefore, all the fields should be cleared.
Please correct me if I am wrong.
Thanks
Siggelkow, Bill [EMAIL PROTECTED] wrote:The really has nothing to do with
the reset method of your form ... instead this renders
Yes -- you will see the fields filled if you specify the jsp page as the input
attribute of the action mapping. Struts will forward the form and the errors back to
the input page for rendering.
-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
Are you missing the trailing quote of the el ${action}
-Original Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 9:11 PM
To: Struts Users Mailing List
Subject: struts-el:submit question
Hi,
I have this code
snippet
html-el:submit
Yes ... that's it I have my login forward to an index.jsp which is the frameset
-- the src of the frames in that frameset is dynamically generated based on some user
profile info.
-Original Message-
From: Savantraj, Chennamakal Subramanian [mailto:[EMAIL PROTECTED]]
Sent:
One option is to have your form implement an a domain (business) object interface.
For example, you would have Customer interface that would have the get/setFoo methods
and the form would implement get/setFoo (for the business interface) and
get/setFooString (for presentation) -- in this way
Doug, the servlet container is responsible for invalidating the session based on the
configured timeout. If you want to take some action when that occurs you should
register an HttpSessionListener to receive notification of session lifecycle events.
For complete details you can read the
DId you try ...
logic:iterate id=item name=myForm property=x
bean:message key=somevalue arg0=%=item%/
/logic:iterate
-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 9:19 AM
To: Struts Users Mailing List
Subject: RE: Replacement values
Can you be more specific? Do you mean using Validator? or just invoking event
handlers (onclick, etc.)? or dynamically generating JavaScript?
-Original Message-
From: Louis Proyect [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:52 AM
To: Struts Users Mailing List
If you are using Weblogic, you would put the jar file containing foo.tld in
the application server's classpath as opposed to the WEB-INF for each of the
web apps.
-Original Message-
From: William Shulman [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 8:11 AM
To: [EMAIL
Add a property on your bean that returns the value of maxRecords +
rowPosition then refer to that property in the tag.
-Original Message-
From: T. Wheeler [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 21, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: How to use an expression in a logic
Mailing List
Subject: RE: Problem with bean:define?
are you saying your jsp is getting null pointer excp
in setAttribute() in the bean:define tag?
does this work?
bean:write name=editRegForm property=postDate /
Keith. (not much use I suspect - try my best!).
--- Siggelkow, Bill [EMAIL
-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 19, 2001 9:56 AM
To: 'Struts Users Mailing List'
Subject: RE: Problem with bean:define?
Yes that is what I am saying ... I am not sure if the bean:write works ...
(Since I found the problem I was able to find a work
Okay,
I do not think I understand the contract of the ActionForm validate
method. The problem I am having is that I appear to
lose some a data value when I return to an input page after I return
validation errors. Specifically, I have a Date property called 'postDate'
... the value of
this work?
bean:write name=editRegForm property=postDate /
Keith. (not much use I suspect - try my best!).
--- Siggelkow, Bill [EMAIL PROTECTED]
wrote:
Specifically, I am trying to use the define tag to
define a variable based
on a property of the FormBean as follows: (the
getLocalDate is my own
I am using the bean:define tag to make a variable available ... he's the
wierd part ... it works the first time I enter the form ... but if I
return to the form because of a validation error ... it fails with a
NullPointerException in the pageContext.setAttribute method ... it seems to
me the
/
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 18, 2001 11:33 AM
To: '[EMAIL PROTECTED]'
Subject: Problem with bean:define?
I am using the bean:define tag to make a variable available ... he's the
wierd part ... it works the first time I enter
type=com.mirant.extranet.forms.PendingRegistrationForm/
mir:getLocalDate date=%=tmpRegForm.getPostDate()% style=long/
I do not know why this works but the other way (using the define tag to get
the property) failed.
-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent
I know in WLS 6, all web apps use the same cookie name, JSESSIONID to hold
the session ID (and thus facilitate single-sign-on). In WLS 6, you can
specify a different cookie name in the weblogic.xml file for that web app if
you don't want the single-sign on behavior (which I think is what you are
I have done this by with getter/setter that uses an array of Strings as
follows:
public String[] getMergeeIds() {
return mergeeIds;
}
public void setMergeeIds(String[] ids) {
this.mergeeIds = ids;
}
Then in my form I use the multiple=true ...
html:select
MergeeIds to then pull a second hashtable/array(from a
form) to list a set of values based on the ID Select
Box?
I guess I'm a bit confused on the syntax.
Thanks again,
Paul
--- Siggelkow, Bill [EMAIL PROTECTED]
wrote:
I have done this by with getter/setter that uses an
array of Strings as
follows
link rel=StyleSheet
href=jsp:expressionrequest.getContext()/jsp:expression/stylesheet.css/
-Original Message-
From: Luke Studley [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 3:13 PM
To: struts-user
Subject: Setting content attributes
How do you set the values from
I see two primary options ...
(1) use a TreeMap instead of a Hashtable
However, to me this be unnecessary if the sorting is purely for presentation
purposes, or
(2) Create a JavaBean that holds two lists ... one for the option values and
one for the option labels ... sorted according to the
It seems like you are wanting to bypass the authentication check and I don't
that is permitted using form-baased authentication.
-Original Message-
From: David Bolsover [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 5:15 PM
To: Struts User
Subject: FORM Authentication to
You don't have to use EJBs just to take advantage of an app server's
connection pooling.
I think the advantage of using EJB is that the App
Server has connection pooling. And AppServers supports
caches (??)
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
You can force a refresh with JavaScript like ...
script
function _refresh() {
window.location.reload(true);
}
/script
Then you can call this function if the pic has been updated.
I have not actually tested this so YMMV.
-Original Message-
From: Andy Timm [mailto:[EMAIL
You can do this by just coding the link in with an HTML anchor tag as
folows:
a href=bean:write name=abcd property
=xyz/
bean:write name=abcd property=xyz/
/a
or use an expression
html:link href=%=abcd.getXyz()%
bean:write name=abcd property=xyz/
/html:link
-Original
It knows because you access the form via the html:form tag.
-Original Message-
From: John Ng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:25 PM
To: Struts Users Mailing List
Subject: Populating form in the action
Hi, I have some questions about how to populate the
I believe that the name attribute can take a request-time expression that
you could
use for this purpose.
-Original Message-
From: Mike Hoeffner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 2:49 PM
To: [EMAIL PROTECTED]
Subject: setting a default bean for logic tags
The way I do it is to create a variable using the bean:size tag that
represents the size of the collection ...
Then I check if that value is 0 as follows ... (in addition you might want
to also check if the collection is present as you are doing)
bean:size
I am using form-based authentication on WLS 6.1 sp1 and do not see this
behavior.
-Original Message-
From: Cameron Ingram [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 29, 2001 11:17 AM
To: [EMAIL PROTECTED]
Subject: Logout Action
Hi all and thanks in advance!
I have a link that
I having inconsistent errors displayed by acrobat after uploading a PDF file
using the Struts (via the FormFile) ...
The file size is the same however, acrobat says There was a problem
processing the page ... then something about an error (110) ... or
sometimes error (16) ...
I have been unable
Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 21, 2001 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: Inconsistent error uploading PDF
I having inconsistent errors displayed by acrobat after uploading a PDF file
using the Struts (via the FormFile) ...
The file
Use the logic:notPresent tag
-Original Message-
From: Ines [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 5:30 PM
To: [EMAIL PROTECTED]
Subject: Logic:empty
I canĀ“t find the empty tag.
The documentation presents it but I could not find the class.
The problem i have is
Your JSPs should not be in your WEB-INF folder ... try moving it up.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 10:40 AM
To: [EMAIL PROTECTED]
Subject: Newbe - problem with Struts-Config.xml
Hello,
I am relatively new to
Check your url patterns for the ActionServlet servlet mapping in your
web.xml.
-Original Message-
From: Aapo Laakkonen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 10:12 AM
To: [EMAIL PROTECTED]
Subject: Weird problem (WAS)
Seems like my struts installation doesn't work
I had the same question last week (and for some reason did not get any
response from
the mailing list?) ... anyway, it seems to me that Struts really does not
handle multiple
servlet mappings for the ActionServlet. When using extension mappings,
Struts finds the action mapping to use by
I think your getting the error because of the placement of the quotes.
Try using single quoutes around the JSP expression as follows ...
logic:equal name=questionnaireVO property=qnrId
value='%=request.getParameter(qnrId)%'
/logic:equal
-Original Message-
From:
Use 'mapping.findForward(success)' instead of creating a new ActionForward
as the return value of your perform method.
This will use the local forward defined for your action, or if not
specified,
will try and find a global forward named success.
-Original Message-
From: Gogineni,
Bill Siggelkow
eBusiness Lead Developer
678.579.6458
Mirant
http://www.mirant.com
What are the implications if I have multiple URL mappings for my
ActionServlet? Specifically, say I configure '*.do' and '*.go' as mappings.
I may want to do this for security reasons, let's say, where *.do is for
security-constrained web resources and *.go is for non-security constrained
You need to specify an input attribute for your action that points to your
jsp page.
The input attribute identifies the page to go back to when errors occur ...
So your action mapping would look like ...
actionpath=/addrequest
What you *really* should do is use the Struts iterate tag in the logic
TLD.
Using scriptlet is generally a *bad* thing ... however, if you really wanted
to do this you need to use a JSP expression for the property value like this
...
Text: html:text property='%=names[i]%'/
-Original
Your app server should allow you to set a timeout on the HttpSession ...
also, you can invalidate the session yourself by calling
'session.invalidate()'. I do not know of a way to directly determine if a
user has closed the browser ...
-Original Message-
From: Rakesh [mailto:[EMAIL
You should only need to provide a relative link as the href attribute of
your link tag. You can also use the Struts base tag to set the base from
the calling page ...
html
head
titleMy Home Page/title
html:base/
link rel=stylesheet type=text/css href=styles/default.css
98 matches
Mail list logo