I've never liked this since I've always thought that, if one uses this
approach, as soon as one of those forms requires remembering its values,
all (action)forms (including that one) are forced to having session
scope (then you'd have to setup a garbage collection process for those
session forms).
I agree with u that Action Forms should not session scoped unless required
but i guess the question was whether u can use mulitple forms in jsp,i.e.
html:form.
I hope i have guess it right?
- Original Message -
From: Freddy Villalba A. [EMAIL PROTECTED]
To: Struts Users Mailing List
Doh - I guess I wasn't clear enough.
I want to have the Requests for the html pages (Section2) forwarded to a
standardLayout page which uses tiles to provide consistent screens. The
originally targetted html page needs to be included/embedded within the
standardLayout page.
David, I guess I
I am handling a web project and using struts framework. Can
any one tell me where to find stuff on Struts Best
Practices or Desgin and Coding Standards for a struts
Application.
There are couple of good articles that I found useful when I was
building my first struts based project. I've put
Hello,
I have multiple forms that point to the same action. It is not a
multipage form, it is done as different types of searches done on
different pages) and I would like to validate the forms individually
using the validate() method on the form bean. However, I am required to
define an input=
If you want different types of validation to be performed before the Action
is executed, then assuming you are using the Struts Validator I recommend
that you :
1) ensure your Forms extend from ValidatorActionForm,
2) Create separate ActionMappings for each type of validation you want to
perform
As an FYI. I don't think it is wise to say that the Struts taglibs will be
going away. I am of the opinion that they will be around for quite some
time. At least until JSF is adopted considered as the default choice for
all new web development.
On a somewhat related note, do you even know
I think that it is unusual to directly include Struts actions in JSP
files. When composing pages of different parts, Tiles is the much more
common approach. The standard usage of Tiles is to include JSP files
directly, but you can use tiles to include Struts actions in JSP files.
(See
Many times newer developers don't care so much about the academics of
what is proper. For example, they see the Struts tags and like them,
and then become attached to them. It can be disconcerting to them to
find out that they are using an outdated technology so soon after they
have discovered
hi rajagopal,
dynaforms are useful for putting something together quickly, but I find
them less useful than hardcoded form classes sometimes, especially if
there are many form fields.
The way to access some data from the form submit in your action is
usually so for a dynaform:
If you are only serving HTML pages and want to wrap them in your standard
layout, forget tiles and check out SiteMesh:
www.opensymphony.com/sitemesh
The Tiles mapping I suggested can do more complex things for you than
SiteMesh. It would require setting up a tiles controller. They are
explained
Hi,
I'd like know how I can use BeanUtils.copyProperties(form, model),
when I my objects have name equals but types noequals, example, in my
form I have a attribuite named dateInsert of type string, but in my
model I have this attribuite of the type java.util.Date. How I
specified to BeanUtils
Writing a date converter is pretty simple; the
only reason there isn't one included in the
beanutils distribution is that there's not a very
easy way to configure the date format in a
universal way.
Below is an example. This one is implemented as
a static inner class within the only class
Tomcat can provide a connection pool, you just have to configure the
pool and look up the resource in your application. The details can be
found here :
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
Tushar Agrawal wrote:
Hi Freinds,
I am using struts-config
Thanks for the information, Jeff.
Unfortunately, though the Tiles Advanced Features Guide indicates it is
possible to include multiple Struts actions (using tiles:insert) on
one page, I _still_ get the IllegalStateException Response has already
been committed.
We often need to prepare data to
Hi.
I want to make a static class which access a configuration file in /WEB-INF/.
I tried Classname.class.getResourceAsStream(/WEB-INF/config-file.xml); but it wont
work.
So I thought I have to do it by using getServletConfig().getServletContext(
).getResourceAsStream(/WEB-INF/config-file.xml)
Can't really comment on Tiles since I don't use it, but this recent thread may
be of interest:
http://marc.theaimsgroup.com/?t=10976831933
Quoting Parke Jeff [EMAIL PROTECTED]:
Thanks for the information, Jeff.
Unfortunately, though the Tiles Advanced Features Guide indicates it is
Hi,
I have a logic:iterate tag in my jsp.
logic:iterate name=autoForm property=menuEntries id=menuEntries
tr
td valign=middle
bean:write name=menuEntries property=key/
html:hidden name=menuEntries property=key/
/td
Hi,
Sorry if this problem has already been solved, I cannot seem to find
anything in the Struts List Archive...
I have an Action class that sets, in the ActionForward method of the
said Action class, an attribute of an object in the request scope to
push it to the presentation layer (JSP). In
Hi Can!
actually, i can't think of any other 'standard' solution
(using the actionValidator you still would need the single input attribute)
Maybe you could use a combined change of ActionMapping and
ValidatorActionForm.
Subclass those and set them in your config files.
Change the ActionMapping
Set the corresponding form property to true prior to loading the page.
If the actual form property value equals the ${boolValue}, then the
checkbox should render as checked. That is, it should produce the
appropriate HTML which should render the checkbox as checked.
robert
-Original
Using indexed=true will generate names such as menuAction[0],
menuAction[1] etc...
html:select name=menuEntries property=menuAction
indexed=true
Niall
- Original Message -
From: Srilatha Salla [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 05, 2004 4:41 PM
Thanks for the help.
I tried to understand what was on the site, it might take some time.
If possible can you let me know how to implement it in my case.
I have MenuEntry[] menuentries. in my form. MenuEntries has properties key,
description and menuaction.
So, what should i change this
Hi Every One,
Does Struts have any type of authentication/ authorization mecanism?
Best regards,
Davi Salgueiro
Hi Every One,
Does Struts have any type of authentication/ authorization mecanism?
Best regards,
Davi Salgueiro
Struts requires Servlet support container.
Therefore containers (such as tomcat, resin, etc). support declerative
security via web.xml.
You can read for example about tomcat jdbc realms.
So struts leverages J2EE security and you can extend it and customize it.
.V
Davi Salgueiro wrote:
Hi Every
El vie, 05-11-2004 a las 13:37 -0600, Vic (Vinny) Cekvenich escribió:
Struts requires Servlet support container.
Therefore containers (such as tomcat, resin, etc). support declerative
security via web.xml.
You can read for example about tomcat jdbc realms.
So struts leverages J2EE security
Once you have your users and roles defined, you can read use the
roles attribute for action mappings to restrict access to those
actions to a set of roles.
Hubert
On Fri, 05 Nov 2004 16:46:51 -0300, Mauro Morales M.
[EMAIL PROTECTED] wrote:
El vie, 05-11-2004 a las 13:37 -0600, Vic (Vinny)
I use tiles for it. A typical set of related definitions in my tiles
configuration file:
definition name=page.site.home path=/WEB-INF/jsp/layout/main.jsp
put name=menu value=action.site.menu /
put name=calendar value=action.site.calendar /
put name=survey
posting again
On Fri, 5 Nov 2004 10:49:25 -0800, Sanjay Choudhary
[EMAIL PROTECTED] wrote:
Hi All,
I have an application which contains 100+ jsp's. Use case is to
inject the Javascript conditionally into the JSP's. Condition is - If
a cookie is present in the request, inject the
-- Forwarded message --
From: Sanjay Choudhary [EMAIL PROTECTED]
Date: Fri, 5 Nov 2004 10:49:25 -0800
Subject: Using Forward and Include using RequestProcessor
To: [EMAIL PROTECTED]
Hi All,
I have an application which contains 100+ jsp's. Use case is to
inject the Javascript
Jeff,
Try this previous post on IllegalStateException response has already been
committed:
http://marc.theaimsgroup.com/?l=struts-userm=108152145227595w=2
The author suggested 2 courses of action:
1. Try increasing the buffer size on myjsp.jsp. Default is 8kb
2. Make sure that you are not
Hi,
I am able to display the text field for phoneNumber now. The code i wrote is
logic:iterate name=autoForm property=menuEntries id=menuEntries indexId=idx
tr
td valign=middle
bean:write name=menuEntries property=key/
html:hidden
For page or summary tab, a tab is label of words.
Can I change it to an image file?
If not, can I add an image file?
Moreover,
there is a purple border after clicking a tab.
Can I change the border color and even remove it?
Thanks
Hi Every body,
I developed a page using tiles and used struts-html tags in template page. As a result
when main page is excuted struts-html tags in template page are not rendered. How to
get Struts-html tags rendred when calling template page in main page?
Amit Gupta
There used to be (haven't checked on it for a while) a project called
Security Filter that was a security database implementation you could
package with your application. I believe it was a SourceForge project.
One of the projects I'm currently architecting has need for specialized
security -
There used to be (haven't checked on it
for a while) a project called Security Filter
that was a security database implementation you
could package with your application. I believe
it was a SourceForge project.
SecurityFilter hasn't been updated since January:
Amit,
What do you mean by main page? Your web.xml's welcome-file-list such as
index.jsp? If so, I posted about it within the last 24 hours. Try
something like this in your index.jsp file:
%@ taglib uri=/WEB-INF/tiles.tld prefix=tiles %
tiles:insert definition=someDefinition/
Regards,
David
38 matches
Mail list logo