What's the problem?
robert
-Original Message-
From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 2:28 PM
To: Struts Users Mailing List
Subject: Handling Date objects in ActionForm gracefully
All,
We are facing a problem when we define
+1
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 2:36 PM
To: Struts Users Mailing List
Subject: Re: Handling Date objects in ActionForm gracefully
Have it as a string and convert it to a date or calendar when you pass
it back to
Mike, you will have to expose the form like:
c:set var=form value=${myForm}/
...where myForm is its name defined in the struts-config file.
If its DynaForm then you have to expose the form map:
c:set var=form value=${myForm.map}/
Once you do this, you can use JSTL to access and render
http://jakarta.apache.org/struts/faqs/indexedprops.html
-Original Message-
From: Prakasan OK [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 6:18 AM
To: Struts Users Mailing List
Subject: Indexed Property
Hi,
can anyone give me a sample code for implementing indexed
Charles, you can use container managed security or the SecurityFilter to authenticate
users when accessing protected resources. You
can set the session time out by adding something like the following to your web.xml
file:
session-config
session-timeout60/session-timeout
/session-config
Try using the following with JSTL:
c:set var=myValue value=${teacher.SSN}/
or you can try the following using bean:*.../
bean:define id=myValue name=teacher property=SSN/
If you are still getting a error make sure you are
using proper JavaBean naming conventions. You can find this in
the
You will need to use Struts-EL taglib then you should be able to do what you want.
http://jakarta.apache.org/struts/faqs/struts-el.html
html:select property=no_account
c:forEach var=accounts items=${Accounts} varStatus=status
html_el:option value=${account.no_account}
c:out
before you validate them. Causes ugly exception
messages on the browser.
On 03/18/2004 02:25 AM Robert Taylor wrote:
Well, I would say it depends. If I had a DTO ( a domain object) which had all the
fields
I needed to display...including types like int, Date, boolean, etc... I would
Use the sslext:pageScheme secure=false/ on the main page.
This should switch it back to HTTP.
robert
-Original Message-
From: Joao Batistella [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 9:58 AM
To: 'Struts Users Mailing List'
Subject: SSLEXT
Hello.
I'm now
To: 'Struts Users Mailing List'
Subject: RE: SSLEXT
I can't. Because my main page is not a page at all. It's a Tiles definition.
Where can I find the documentation about SSLEXT? I mean the description of
the tags?
Thanks,
JP
-Original Message-
From: Robert Taylor [mailto:[EMAIL
and password are
trasmitted in a secure way. But after that, no more HTTPS is necessary.
Is there way in step 4 to forward the user to a non secure page?
Thanks,
JP
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 17 de março de 2004 15:29
To: Struts
Correction:
...in that action mapping configuration define it to be non-secure using the
set-property element.
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 10:52 AM
To: Struts Users Mailing List
Subject: RE: SSLEXT
Yes. Instead
another action?
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 17 de março de 2004 15:52
To: Struts Users Mailing List
Subject: RE: SSLEXT
Yes. Instead of forwarding directly to the Tile, define an action which
simply forwards (or redirects
:
action path=/initial forward=tiles.initial
set-property property=secure value=false/
/action
Any idea?
Thanks!
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 17 de março de 2004 16:35
To: Struts Users Mailing List
Subject: RE: SSLEXT
a page just to change the protocol. What
do you think?
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: quarta-feira, 17 de março de 2004 17:09
To: Struts Users Mailing List
Subject: RE: SSLEXT
Hmmm. Okay, then try using your original action mapping def:
action
Use c:out value=${error} escapeXml=false/
robert
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 17, 2004 1:43 PM
To: [EMAIL PROTECTED]
Subject: Links within ActionErrors
I know this probably violates some basic guidlines but...
I
your business
services
accessible from other platforms, systems, whatever...
My few bucks...Anyone has comments...they are welcome...
Regards
Henrik
- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED
Adam, its frowned upon to pass a web tier object (ActionForm) into the business
tier. I believe a widely used technique is to use BeanUtils to copy the properties
from the ActionForm to a DTO (a Domain Object) which can be passed to the
business tier.
robert
-Original Message-
is that you may end up introducing view helper
methods to your model beans.
Nick
Robert Taylor wrote:
Adam, its frowned upon to pass a web tier object (ActionForm) into the business
tier. I believe a widely used technique is to use BeanUtils to copy the properties
from the ActionForm
Cool! I'll take a look. Thanks David.
robert
-Original Message-
From: Hibbs, David [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 9:20 AM
To: 'Robert Taylor'; [EMAIL PROTECTED]
Subject: RE: [OT] Search string tokenizer
I wrote some code to do this for an open-source
Daniel, it would be easier to use JSTL for this:
c:if test=${myValue == 1}
The string contained the word Struts.
/c:if
JSTL can compare values coming from any scope; application, session, pagecontext,
request, or request parameters.
Currently, the bean:define .../ value attribute doesn not
Adam, IMHO the Business Delegate pattern abstracts the client from knowing
your business implementation, whether it be EBJ, JDO, POJO, roll your own. The
client interfaces with the Business Delegate and not its implementation.
For example, if you have an Action (client) interface with the Business
Mike, I don't believe the Servlet spec. allows you to forward to another web
application.
You will have to redirect.
robert
-Original Message-
From: Mike Zatko [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 9:14 AM
To: Struts Users Mailing List
Subject: Re: [SwitchAction]
in between application
contexts?
I know, I'm sorry I meant redirect. I'm just wondering if struts allows
an elegent way to create redirects to other applications without
hardcoding it?
Robert Taylor wrote:
Mike, I don't believe the Servlet spec. allows you to forward to another web
Try this:
logic:equal scope=session name=userid property=admin value=false
robert
-Original Message-
From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED]
Sent: Monday, March 15, 2004 2:04 PM
To: [EMAIL PROTECTED]
Subject: Accessing boolean attribute using logic
Hi all,
I
I did a google search on this and didn't really come up with anything useful.
Before I implement this myself, is there an existing implementation of parsing
a search string which would produce tokens similar to how Google or other search
engines parse search strings.
For example, I would like to
like this: (.+|[\d\w]*)
You should get close to what you need (i think the above will return the
space character as a token too, not sure).
And here is a program that lets you test out patterns to see how they
match strings or will be split
http://www.weitz.de/regex-coach/
Robert Taylor
http://sourceforge.net/projects/securityfilter/ emulates container managed security.
robert
-Original Message-
From: Mailing List [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 6:19 AM
To: [EMAIL PROTECTED]
Subject: security framework!!!
I'm developing a web
Adam, I've been using SecurityFilter (sslext taglib form and link tags) with Tiles for
a while without
any issues.
robert
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Saturday, March 13, 2004 11:25 AM
To: Struts Users Mailing List
Subject: sslext http/https
I don't know.
You may want to try the JSTL users mailing list:
[EMAIL PROTECTED]
robert
-Original Message-
From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:30 PM
To: [EMAIL PROTECTED]
Subject: [OT] 2 JSF questions
1) Since JSF is written
+1. Join the tables in a query and write an algorithm to parse the results into
the view you need. One connection, one query, let the database do the work.
Not very OO, but very efficient.
robert
-Original Message-
From: Hookom, Jacob [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12,
and then constituting the parent completely. I agree getting them
back together and then parsing them out would be better but sure not a clean
OO way of getting data.
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 1:01 PM
To: Struts Users Mailing List
You can't send data structures over HTTP you can only send strings.
You could set those values as hidden form elements with a naming
convention that would enable your server side code to recognize
the elements in the request and create the appropriate server side
data structure. This is
Is it possible that dbConnection.doUpdate() gets a new connection
each time which could possibly use up (exceed max allowed) the connections in the pool.
Just a guess.
robert
-Original Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 4:32 PM
To: [EMAIL
The JSTL spec is a great reference. I would recommend you download it.
robert
-Original Message-
From: as as [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 8:48 AM
To: Struts Users Mailing List
Subject: RE: Sorting table columns in jsp using struts
Henri,
Thanks for the
Are you using DispatchAction or LookupDispatchAction?
robert
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, March 05, 2004 1:24 PM
To: Struts Users Mailing List
Subject: Validation help for same Form, multiple pages/tabs
I'm using the same
Okay. Here is what I do which may or may not help.
I have subclassed DispatchAction to handle image buttons.
The newer Struts version may handle this, but it didn't prior
to 1.1. Image buttons may not be your problem but it has a special
method to extract the dispatched operation.
Anyhow you
Yes.
The DispatchAction will only invoke the method defined in the request under the name
defined in the parameter attribute of your
action mapping. So if I had update() and restore() as methods in a DispatchAction, and
I only wanted to validate on the update, then
I would only define
The problem is your servlet init parameters don't exist in the ServletContext.
If you want them to be available to your code, then define them
as init parameters to your application:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
from a JSP page?
Thanks,
Regards,
Harm de Laat
Informatiefabriek
The Netherlands
Robert Taylor [EMAIL PROTECTED]
02-03-2004 13:43
Please respond to
Struts Users Mailing List [EMAIL PROTECTED]
To
Struts Users Mailing List [EMAIL PROTECTED]
cc
Subject
RE
and validate
do I need an updated .xdt file for this?
y xdoclet generated Struts-config.xml is not having the action mappings for the
actiin class of mine, extending Dispatch Action.
It shows it fine for classes extending Action class though.
Thanks n advance for the help,
Sam
Robert
First: Please do not send HTML emails to the list.
Now to address your question:
JSTL makes this easy.
c:forEach var=item items=${form.items} varStatus=status
tr
tdc:out value=${status.count}//td
tdc:out value=${item.someValue}//td
/tr
/c:forEach
Using Struts tags:
logic:iterate id=item
% instead of using indexId,
since you set the index variable to be called index in the iterate tag?
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 11:15 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: row counts
You may want to see if this supports your requirements:
https://sourceforge.net/projects/securityfilter/
robert
-Original Message-
From: David Evans [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 26, 2004 12:07 PM
To: Struts Users Mailing List
Subject: servlet filters and
Wrap the service in a ServletContextListener. The Servlet2.3 spec and higher mandate
that these listeners be invoked before the
application can process requests; so initialization can take place here and they have
access to the application init parameters
through web.xml. Then place them in
Try this:
logic:iterate id=parts indexId=index
collection=%=ShopWorkOrderFormBean.getShopWorkOrder().getPartList()%
type=com.cat.sdl.fdd.dataBean.shopWorkOrder.PartBean/td
tr
td class=formCellbean:write name=parts
property=partNumber/nbsp;/td
td class=formCellbean:write name=parts
Google:
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Storing+CLOB+in+Oracle+using+JDBC
Hit:
http://otn.oracle.com/tech/java/jroadmap/jdbc/listing.htm
robert
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 7:20 AM
To:
Matt, we ended up storing our email templates in a configuration file and
loading them into
memory (using Digester) at application run time. The configuration templates
can contain
both plain text and HTML message versions. We leverage the
java.text.MessageFormat
API to replace place holders in
socket programming. DevProxy was an
invaluable tool. You can see exactly
what flows through the socket between browser and host. Very
good GUI interface.
Mike
--- Robert Taylor [EMAIL PROTECTED] wrote:
Sorry for the OT post, but Googling and searching the mailing
list archives
Try c:out value=${symbal} escapeXml=false/ or
don't encode your HTML symbols in your file. Let
c:out .../ do it for you.
robert
-Original Message-
From: Ricky Lee [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 07, 2004 9:42 AM
To: [EMAIL PROTECTED]
Subject: how to output html
Sorry for the OT post, but Googling and searching the mailing list archives are not
producing much.
I may not be asking the right question though.
Anyhow, I need a tool (free) to examine the request and response headers.
Any suggestions?
robert
server_host_name 80
where is the port the tool listens on.
server_host_name is your app server name
80 is the port your server listens on.
You then need to configure your browser to use
and localhost to proxy.
Regards,
Richard
--- Robert Taylor [EMAIL PROTECTED] wrote
You might try Tortois CVS:
http://www.tortoisecvs.org/
robert
-Original Message-
From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 03, 2004 3:17 PM
To: [EMAIL PROTECTED]
Subject: [OT]CVS client
Importance: High
Hi,
can anybody suggest
Yes, the ServletContext is the most appropriate place to put it if you
want your data to be available during the life time of the application.
If your container conforms to Servlet spec. 2.3 or higher, a
solution is to implement one or more ServletContextListener(s).
Is the a best practice? I
But how can I get the value specified in the parameter
attribute in my action class.
ActionMapping.getParameter() will get you the value of the parameter
attribute.
Also using set-property inside a
action tag does not work?
It works for me. You have to subclass ActionMapping and
The ServletContextListener does exactly what you want.
When the web application starts the
ServletContextListener.contextInitialized() is
invoked passing you ServletContextEvent which contains the ServletContext.
These are guaranteed to be invoked before the web application can process
any
John, why not retrieve these from the DB at application start up time
and place them in the ServletContext where they are accessible for
the life time of the application and easily rendered by JSTL or Struts
tags.
robert
-Original Message-
From: Menke, John [mailto:[EMAIL PROTECTED]
javax.servlet.ServletContextListener
robert
-Original Message-
From: Arne Brutschy [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 8:00 AM
To: Struts Users Mailing List
Subject: [OT] looking for a method that will be called on application
startup
hi,
I'm looking
What's the name of your Cancel button? Struts should not validate
if it finds org.apache.struts.taglib.html.CANCEL or
org.apache.struts.taglib.html.CANCEL.x
Take a look at the RequestProcessor.processValidate() code:
if (request.getAttribute(Globals.CANCEL_KEY) != null) {
if
Google:
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Unit+Test+In+Struts
I believe you want:
http://strutstestcase.sourceforge.net/
but I could be wrong.
robert
-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 2:17 PM
Wendy,
If you simply want to present a list of options to the user represented as
check boxes
and collect the selected options, and the selected options are just single
string values,
then you can do the following:
Define accounts property as an java.lang.String[] and initialize it to {}.
Matthew,
What we do is define this in our web.xml file so that when the container
gets a 500, 404, etc... error status code, I can then assign the appropriate
Struts action to handle it. For example:
error-page
error-code500/error-code
location/c/systemError/location
You could simply store the loaded Properties object in the ServletContext
where the
same instance would be available to the entire web application thus acting
as a singleton
of sorts without necessarily implementing the pattern.
robert
-Original Message-
From: jay andrews
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac
he_orgrestrict=exclude=words=handle+exceptions
http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Struts+Exception+Hand
ling
robert
-Original Message-
From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
Sent:
- Original Message -
From: Robert Taylor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 8:45 AM
Subject: RE: Exception handling in struts
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_ja
karta_apac
)
Robert, I followed your advices. Your code works
very well. I have successfully inserted all the
values of my bean properties into the database. Thank
you very much.
--- Robert Taylor [EMAIL PROTECTED] wrote:
The same problem exists, you are calling getters on
a ThreadBean instance
. BeanUtils.copyProperties() uses reflection to copy
properties. Are you using proper JavaBeans naming
convention?
Yes, I used a pair of get and set methods for each
properties in the JavaBean (ThreadBean.java). And in
my action class, I could print out the value of those
properties.
--- Robert
If you use html:option .../ then the selected value should show as being
selected when
the page is reloaded.
robert
-Original Message-
From: Namasivayam, Sudhakar (Cognizant)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 9:15 AM
To: Struts Users Mailing List
);
md.createThread( receiver, sender, threadTopic,
threadBody, threadCreationDate,
threadViewCount,
threadReplyCount );
int threadID = 0;
.
.
return threadID;
}
}
--- Robert Taylor
,
threadReplyCount );
int threadID = 0;
.
.
return threadID;
}
}
--- Robert Taylor [EMAIL PROTECTED] wrote:
Your code seems a bit confusing based upon what you
want to
achieve.
If indeed you want ThreadHandler to inherit from
ThreadBean
html:link action=/myDynaActionFormActionNameInvoke my action which uses
a dyna action form/html:link
Please do some research before posting.
robert
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 1:03 PM
To: Struts Users Mailing List
Look at IndexedProperties:
http://jakarta.apache.org/struts/faqs/indexedprops.html
robert
-Original Message-
From: Nathan Maves [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 1:02 PM
To: Struts Users Mailing List
Subject: dynamic parameters to DynaActionForm
is it
and still can not find a good
answer.
I need to send the action a set of parameters like..
param1
param2
param3
.
.
.
param#
The amount of parameters in the form are dynamic. How or what type of
object would you use in a form bean.
Nathan
On Jan 8, 2004, at 11:18 AM, Robert Taylor
Have you checked to make sure that the fields you expect
actually exist in the form before calling BeanUtils.populate()?
If so, have you checked to see if the data was copied properly
just after BeanUtils.populate()?
BeanUtils.populate() uses reflection to copy properties.
Are you usingproper
BeanUtils to Convert DynaValidatorForm)
What does BeanUtils.populate(); do? I used
BeanUtils.copyProperties();
Does it make any difference?
--- Robert Taylor [EMAIL PROTECTED] wrote:
Have you checked to make sure that the fields you
expect
actually exist in the form before calling
The displaytag library will do what you want:
http://sourceforge.net/projects/displaytag/
robert
-Original Message-
From: Hari_s [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:50 AM
To: Struts Users Mailing List
Subject: Re: split table
thank for your response
Take a look at http://struts.ditlinger.com/ , the Struts SSL Extension.
robert
-Original Message-
From: Alain Van Vyve [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 10:48 AM
To: [EMAIL PROTECTED]
Subject: Mix protocols transparently in Struts
I would like to mix
Assuming you are using Struts to process the form submission,
once the user selects a value from the drop down list and submits
the form to be processed, the action which you have configured to
handle this form submission, will have access to the selected value
via the form configured to store the
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 11:43 AM
To: [EMAIL PROTECTED]
Subject: RE: selecting a value from drop down list
Okay. I just saw something in your original post.
select name=sName style=width:225px
logic:iterate id
and in the action i am using
request.getParameter(sname);
for all other text boxes i get the value using request.getParamter();
but I dont get any value for the drop down list.
Can you help me more
Regards
Kamal
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED
Look at ListUtils.lazyList()
http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect
ions/ListUtils.html#lazyList(java.util.List,%20org.apache.commons.collection
s.Factory)
robert
-Original Message-
From: Paulo Rezende [mailto:[EMAIL PROTECTED]
Sent: Monday,
Are you redirecting instead of forwarding? If so, your request attributes
will be lost once
the page is rendered.
robert
-Original Message-
From: Sudhakar G [mailto:[EMAIL PROTECTED]
Sent: Friday, January 02, 2004 12:05 AM
To: [EMAIL PROTECTED]
Subject: Problem in Displaying
Thanks to all who replied. I'll look into each suggested solution more
closely.
robert
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 2:15 PM
To: Struts Users Mailing List
Subject: RE: [Tiles] Populating Tiles definition attribute
One could use DynaValidatorActionForm for wizard processes that used the
same form but
validate different fields based on the path.
robert
-Original Message-
From: Brice Ruth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 1:29 PM
To: Struts Users Mailing List
Subject:
You should be able to do this with standard J2EE security provided
by your web container.
If you store your user credentials in a database, then you may want
to look at SecurityFilter:
http://sourceforge.net/projects/securityfilter/
It allows you to leverage standard J2EE security features but
Using JSTL tags and assuming you have a collection of elements named
elements in some scope:
table ...
c:forEach var=element items=${elements} varStatus=status
c:if test=${(status.index % 10 == 0) !status.first}/tr/c:ifc:if
test=${status.index % 10 == 0}tr/c:if
td!-- put data here --/td
c:if
Greetings, I have a tiles definition in my tiles-defs.xml similar to below:
definition name=search extends=layout
put name=heading value={0}Search type=string /
put name=content value=/search.jsp type=page /
/definition
which I would like to be able to modify the heading value such
=header value=/header.jsp/
put name=body value=/choose.jsp/ -
put name=footer value=/footer.jsp/
/definition
choose.jsp
c:import url='/WEB-INF/com/website/tiles/choose/${request.choose}'/
Pedro Salgado
On 29/12/2003 17:46, Robert Taylor [EMAIL PROTECTED] wrote:
Greetings
As long as the DynaBean implentation exposes a Map interface then yes.
For example, DynaActionForm implements DynaBean and exposes a Map interface,
so if you had a property named customerName, in a form bean named
customerDetailForm,
then you could render that property like so using JSTL.
c:out
var=cr
value=${articleForm.creator} scope=session/ did
not put the value in the session scope?
2. What is wrong with the c:set tag?
3. What should I do if I want to put the value of
creator in a session scope?
-C
--- Robert Taylor [EMAIL PROTECTED] wrote:
Are you sure
=creator value=${cr}/
The Struts-EL taglib and jar file can be found in the /contrib directory
of the Struts distribution.
Fifth, the error message is that cr cannot be found
in the session scope.
Once again, this is because the JSTL taglib directive is missing.
-Caroline
--- Robert Taylor
You may want to consider creating a separate object to hold these
values in the session and use your form beans for data input.
This way you can decide when to populate your form beans with
the data that you've captured in the session.
To control when reset() affects my form properties I
Try this:
html:select property=status
html:option value=00 - INACTIVE/html:option
html:option value=11 - ACTIVE/html:option
/html:select
The regular HTML option/ element doesn't communicate with
Struts. You need to use html:option /
robert
-Original Message-
From: Keith C.
logic:iterate id=document name=formName property=documents
logic:iterate id=lv name=document property=labelValueBeans
bean:write name=lv property=label/
bean:write name=lv property=value/
/logic:iterate
/logic:iterate
You should probably use JSTL for this.
c:forEach var=document
There are a couple (3) ways to do it.
1. Have both JSP#1 and 2 use the same form then have the action that
processes JSP#1 simply
forward to JSP#2 and Struts will auto-populate the field.
2. Have the action that processes JSP#1 forward or redirect to
JSP#2 whose form has the same property
To address the fundemental question, it is considered a best practice
to only use String or Boolean objects or collections of String and/or
Boolean objects or collection of
data structures which contain String and/or Boolean objects in your forms.
This is because it gives you
more control over
Did you include the Struts bean tag-lib directive?
In other words if you view source, do you see
bean:write name=statLine property=lineDate/
?
robert
-Original Message-
From: Shaun Roach [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 3:13 PM
To: [EMAIL PROTECTED]
/
html:text property=creator
value=%=author% size=82 maxlength=25
tabindex=1/
-Caroline
--- Robert Taylor [EMAIL PROTECTED] wrote:
There are a couple (3) ways to do it.
1. Have both JSP#1 and 2 use the same form then have
the action that
processes JSP#1 simply
forward to JSP
--- Robert Taylor [EMAIL PROTECTED] wrote:
There are a couple (3) ways to do it.
1. Have both JSP#1 and 2 use the same form then
have
the action that
processes JSP#1 simply
forward to JSP#2 and Struts will auto-populate the
field.
2. Have the action that processes JSP#1
the validator plugin in my
struts-config.xml file.
I am attaching my example code here. Please tell me why it is not working.
Thanks for your help and patience.
Regards,
Abhishek.
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Friday, December 12, 2003 8
1 - 100 of 490 matches
Mail list logo