Mike, you will have to expose the form like:
...where "myForm" is its name defined in the struts-config file.
If its DynaForm then you have to expose the form map:
Once you do this, you can use JSTL to access and render values:
or
robert
> -Original Message-
> From: Mike
+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 b
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 de
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:
60
You can find more information on SecurityFilter here:
htt
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 i
Try using the following with JSTL:
or you can try the following using
If you are still getting a error make sure you are
using proper JavaBean naming conventions. You can find this in
the JavaBean specification.
robert
> -Original Message-
> From: as as [mailto:[EMAIL PROTECTED]
>
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
You might also investigate using the
or the
http://jakarta.apache.org/struts/userGuide/struts-html
robert
> -Original Message-
arameters into your
> DTO in your form 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
a form.)
>
> The only issue I see 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
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-
;>>>(the
> >>>>
> >>>>
> >>>>>>>factory), and access the plugin interfaces always goes through the
> >>>>>
> >>>>>plugin
> >>>>>
> >>>>>
> >>>>>>>man
Use
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 am trying to display an html
sn't work... I don't understand why...
> It seems that I'll have to create 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: S
;
> Thanks again.
>
> But now I have this error message:
> java.lang.IllegalArgumentException: Path tiles.initial does not start with a
> "/" character
>
> This is because the following action:
>
>
>
>
> Any idea?
>
> Thanks!
>
> -O
ot;initial");
>
> Now I have this action to forward to the tiles definition:
>type="org.apache.struts.actions.ForwardAction"
> parameter="tiles.inicial">
>
>
>
> What should I put in LoginAction in order to go to a non secure mai
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: S
action defined after
> LoginAtion. LoginAction must be secure so the username 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
>
> -Origin
> 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-
> Fr
Use the 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 using the SSLEXT for stru
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
Daniel, it would be easier to use JSTL for this:
The string contained the word Struts.
JSTL can compare values coming from any scope; application, session, pagecontext,
request, or request parameters.
Currently, the value attribute doesn not accept runtime values.
You can verify this by loo
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
rns to see how they
> match strings or will be split
> http://www.weitz.de/regex-coach/
>
> Robert Taylor wrote:
>
> >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 implementatio
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 p
Try this:
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
>
>
> Hi all,
>
> I have unsuccessfuly spent all this time trying to figure this a
o you switch 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,
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: [SwitchActi
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/ht
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 ap
children to give their list of objects for that
> parent 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
+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 1
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 wr
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 essentia
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: [EMAI
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 can
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
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,
>
> Thank
ugh.
> Thanks n advance for the help,
> Sam
>
> Robert Taylor <[EMAIL PROTECTED]> wrote:
> 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 up
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
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:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http
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 validate="
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
First: Please do not send HTML emails to the list.
Now to address your question:
JSTL makes this easy.
Using Struts tags:
<%=indexId.intValue() + 1%>
robert
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 12:05 PM
#x27;t that be <%= index.intValue() + 1 %> 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:
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 Servl
Try this:
If you can use JSTL, this may work for you, assuming ShopWorkOrderFormBean named
shopWorkOrderForm in some scope:
robert
> -Original Message-
> From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, Febr
Google:
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=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
>
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 the
Try or
don't encode your HTML symbols in your file. Let
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 symbol to jsp page from user-defined taglib?
>
gt; response headers:
> >
> > http://www.widgetbuilders.com/
> >
> > I recently did some socket programming. DevProxy was an
> invaluable tool. You can see exactly
> > what flows through the socket between browser and host. Very
> good GUI interface.
> >
eed to run it using something like
> java org.apache.soap.util.net.TcpTunnelGui
> 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 8888
>
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
-
> 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 ActionMappin
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 thi
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
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]
>
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 requests
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
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 (log.i
Google:
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=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 P
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 {}.
Retr
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 [mailto:[EMA
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:
500
/c/systemError
404
/c/fileNotFoundError
For appl
rror message is:
>
> Unable to read configuration file
> ???-Martin
> - Original Message -
> From: "Robert Taylor" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Sunday, January
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac
he_org&restrict=&exclude=&words=handle+exceptions
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exception+Hand
ling
robert
> -Original Message-
> From: vasudevrao gupta [mailto:[EMAIL PROTECTED]
anUtils to Convert DynaValidatorForm)
>
>
> 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 sa
;
> I have been researching all morning 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
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
>
>
>
Invoke my action which uses
a dyna action form
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
> Subject: html link to a action with parameters
>
uot;." );
> System.out.println( "The subject is " +
> threadTopic + "." );
> System.out.println( "The creation date is " + threadCreationDate );
> System.out.println( "The number of replies are "
> + threadReplyCount );
>
> md
;
> md.createThread( receiver, sender, threadTopic,
> threadBody, threadCreationDate,
>
>threadViewCount,
>threadReplyCount );
>
> int threadID = 0;
> .
> .
> r
If you use 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
Subject: forwarding requ
sender is " + threadBean.getSender() );
>
> 3. 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
>
e Business Tier!!!
> (Used 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 f
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 Ja
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
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 respon
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, Jan
; Thanks for your reply robert.
>
> I am using struts 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
-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.
You are not supplying any values in your option
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
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 Arr
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
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] Populat
ude according to a given
> parameter?
>
>
>
> <-
>
>
>
> > choose.jsp
>
>
>
>
> Pedro Salgado
>
>
> On 29/12/2003 17:46, "Robert Taylor" <[EMAIL PROTECTED]> wrote:
>
> > Greetings, I have a tiles definition in my tiles-defs.xml
> similar t
Greetings, I have a tiles definition in my tiles-defs.xml similar to below:
which I would like to be able to modify the "heading" value such that
at runtime I could substitute a value for {0}.
For example, it would be ideal to use a JSTL type of syntax such as:
bu
Using JSTL tags and assuming you have a collection of elements named
"elements" in some scope:
robert
> -Original Message-
> From: Otávio Augusto [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 28, 2003 10:58 PM
> To: [EMAIL PROTECTED]
> Subject: Testing iterator quantity
>
>
>
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 p
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.
ro
You should probably use JSTL for this.
> -Original Message-
> From: gentyjp [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 18, 2003 12:16 PM
> To: [EMAIL PROTECTED]
> Subject: logic:iterate inside a logic:iterate ??
>
>
>
>Hi
>
> I'am a Struts newbie, s
Try this:
0 - INACTIVE
1 - ACTIVE
The regular HTML element doesn't "communicate" with
Struts. You need to use
robert
> -Original Message-
> From: Keith C. Klopfer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, December 18, 2003 6:12 AM
> To: [EMAIL PROTECTED]
> Subject: html
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 subclass
="java.lang.String"/>
> size="82" maxlength="25" tabindex="1"/>
>
You could use Struts-EL and do something like:
The Struts-EL taglib and jar file can be found in the /contrib directory
of the Struts distribution.
> Fifth, the error message is
creator}" scope="session"/> did
> not put the value in the session scope?
>
> 2. What is wrong with the tag?
>
> 3. What should I do if I want to put the value of
> "creator" in a session scope?
>
> -C
>
>
> --- Robe
>
> Hello Robert,
>
> Yes. I have also defined 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 Mes
pass this Sring and write it out in a
> > text
> > field in JSP#2 and just could not get it right. I
> > got
> > this error
> > message:
> >
> > [ServletException in:/article/content/postForm.jsp]
> > Cannot find bean cr in scope session'
> >
> scope="session"/>
>View/Send Messages
>
>
> And in postForm.jsp, I tried to retrieve that String
> and write it out in a text field this way:
>
> scope="session" type="java.lang.String"/>
>value="<%
Did you include the Struts bean tag-lib directive?
In other words if you view source, do you see
?
robert
> -Original Message-
> From: Shaun Roach [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 17, 2003 3:13 PM
> To: [EMAIL PROTECTED]
> Subject: Problem
>
>
> Hello, I have been
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
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 name
1 - 100 of 511 matches
Mail list logo