oh I found that my implementation will let user skip my
validation and directly execute the action.
- Original Message -
From: "Justy Wong" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 19, 2004 1:48 PM
Subject: Re: vali
If I define more layout in tiles-defs.xml
and refer tiles layout in tiles-defs.xml,
how to minimize the layout jsp?
My situation likes this
Welcome.jsp and WelcomeBody.jsp (one page)
calls
Login.jsp and LoginBody.jsp (another page)
On Mon, 18 Oct 2004 12:11:59 -0400, Jeff Beal <[EMAIL PROTECTE
Thanks!!! I tried your last suggestion and it works fine!!!
public ActionErrors validate(ActionMapping actionMapping, HttpServletRequest
httpServletRequest) {
if (getCheck()==null) {
return null;
} else {
return super.validate(actionMapping, httpServletReque
I will explain my doubt.
i hav 5 modules in my project. so i want to use 5 different config files.
shall i hav all the files in web-inf package or i hav to keep it inside the
modules.
Regards,
Krishna Srinivasan.
HCL Technologies Ltd.
Insurance Solutions Development Center (ISDC).
---
Multi configuration actually encompasses two different styles of usage:
Peer configurations - where one large application struts-config.xml file has been
arbitrarily split up into two or more peer configuration files. The struts-example
application is an example of this.
action
ok. thanx.
but how can i use in different modules?.
can u give me small example?
Regards,
Krishna Srinivasan.
HCL Technologies Ltd.
Insurance Solutions Development Center (ISDC).
Just use comma seperated file names; e.g.
go
org.apache.struts.action.ActionServlet
config
/WEB-INF/struts-config.xml,/WEB-INF/struts-config2.xml
...etc
bye-Ben
--- "Krishna Srinivasan, ISDC Chennai"
<[EMAIL PROTECTED]> wrote:
>
> HI,
> In my project i want to use multipl
HI,
In my project i want to use multiple struts-config.xml file.
how to use? i know struts 1.1 supports multiple struts config files.
can anyone help me in this problem?
Regards,
Krishna Srinivasan.
HCL Technologies Ltd.
Insurance Solutions Development Center (ISDC).
--
> Joe, do u mean checking the field with "validwhen" using
> validation.xml or
> implement the actionForm.validate() ?
> I really want to use the basic struts validation framework instead of
> implementing validate() function to minimize the maintainence cost.
You can do it both ways.
Use valida
Thanks for all!!
>From Joe:
> > On the other hand, if you actually have this situation, you don't have
to
> > turn off validation -- simply implement your validation rules so that
they
> > can recognize the distinction. For example, have all your forms submit
a
> > hidden field, and have your val
Rosemary,
I had a long day at work so bear with me..
Are you using the JavaScript 'onClick' event to go to the new form which is
resulting in missing hidden fields? If so, that is your problem:
It isn't changing the action on the from (And then submitting the form) but
changing the web page in
Nice trick, Joe - hadn't thought of doing that :-)
- Original Message -
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 18, 2004 9:40 PM
Subject: Re: validation question
At 10:28 AM +0800 10/19/04, Justy Wong wrote:
Thx f
- Original Message -
From: "Justy Wong" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, October 18, 2004 9:28 PM
Subject: Re: validation question
Thx for your suggestions.
1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1
with i
At 10:28 AM +0800 10/19/04, Justy Wong wrote:
Thx for your suggestions.
1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1
with it on (login.do).
that means for every action, I've to create 1 more action. but it will
almost double the maintainence affort.
In practice, it's rar
Hello,
I'm having trouble doing what I want with a struts;
I've read through the documentation and examples but
haven't found anything quite like what I want to do.
However, it seems like a common problem so perhaps
someone can help me.
I have two pages, one of which I will call query.jsp,
and t
Thx for your suggestions.
> 1) 2 action mappings -- 1 with validation turned off (welcome.do) and 1
with it on (login.do).
that means for every action, I've to create 1 more action. but it will
almost double the maintainence affort.
> 2) Turn validation off, and handle that in the action:
then
Application-specific exceptions are one of the least used and most useful
tools. That's exactly how I'd go about doing it, and I dare say it's the
right way.
- Original Message -
From: "Laurent Duperval" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 18, 2004 1:42 PM
Hi
Does Struts work well with AspectJ?
Sorry if this is a stupid question.
Thanks
Duuude
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Just create the forward dynamically, set redirect, and return it ;-)
Yes, you can do that ;-) I much prefer having everything in the config so
you can change it by just editing the XML and bouncing the server, but that
doesn't fit all problems.
- Original Message -
From: "Durham David
Yep, using templates. Are they no longer supported?
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton Java
Programmer" <[EMAIL PROTECTED]>
Sent: Monday, October 18, 2004 2:10 PM
Subject: Re: Latest Struts Install
Hi,
Does the Struts 1.0 (synchronizer token)supports
the following mechanism ?
saveToken(request) ..?
isTokenValid(request) ..?
setting the hidden field in the form(Token value
from session) automatically...?
Thanks
Uma Kagitha.
--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> Once y
Are you using the Template library?
What version of Struts are you moving from?
That class was deprecated and removed after 1.1.
(BTW, it has been recommended to use Tiles instead of templates for about 2
years now)
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678
Hello Ankur,
I think u are getting the error page only because u did not define the
output page. ie in
Hope it helps u .
Regards :)
Krishna
- Original Message -
From: "Ankur Gupta" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'
Hi,
I just tried to install Struts Struts 1.2.4 and got the error below.
Should I be using the binaries or library download (What's the difference?)
?
Thx.
exception
javax.servlet.ServletException: org/apache/struts/taglib/template/InsertTag
org.apache.jasper.servlet.JspServlet.servi
On Mon, 18 Oct 2004 06:27:18 -0700 (PDT), Caroline Jen
<[EMAIL PROTECTED]> wrote:
> Now, I have this situation: While the web application
> is running, I need a place to store an uploaded file
> temporarily and then write this file out.
>
> Where is the proper place to create a directory to
> stor
Laurent Duperval wrote:
I'm sure others have done something similar. What approaches have you
taken?
Well, shortly after posting this, I remembered the tag could
be added in an action. By defining a specific exception for the errors
I'm trackin and sending them back to the container, this seem
HI,
We've created a bunch of forms to allow users to create new object in
our database. All the forms have a "name" property in them, and
depending on the object, there are other properties. Most of our
validation is just a simple "required".
However, we have a business rule which states that t
Hello,
I have setup validation logic on a form, however, when I click on submit a
blank page is displayed. Following is my configuration:
What can I be doing wrong??
-ankur
-
> Basically I would like to temporarily set redirect on a given forward,
> is this possible?
The ActionServlet "freezes" the configuration of Forwards in
ActionServlet.init(), so you're better off creating 2 forwards, IMO.
- Dave
-
I have a few cases in my app where I would like to redirect instead or
the default forward. I have an Action that process a query sting then I
would like to redirect back to the page that called the action. I have
tried to set the redirect flag on the ForwardConfig for the calling page
but it seam
On Mon, 18 Oct 2004 11:38:12 +0200, Ian van der Neut <[EMAIL PROTECTED]> wrote:
> ResourceBundle bundle = ResourceBundle.getBundle("application");
Change this to:
ResourceBundle bundle =
ResourceBundle.getBundle("java.resources.application");
since you're required to specify t
> The validation works fine however, when I just type the
http://localhost:8080/login.do
> in my browser (no submit), the validation error will show up at once.
> I understand that it's just like I submit a form to login.do action
without any
> parameter. My question is, do struts provide any sim
Hi:
I have a struts application that allows me to update a list of employees
data.
The following is a 'desired' Update screen to update all employees
information on 'one' screen:
Employee Name Employee AgeDepartment (this is a drop down)
Anderson, John 30 a drop-down l
Thank you, Jeff, for the detailed explanation - it was exactly what I
was looking for! This puts me on track to reduce code complexity and
increase maintainability quite a bit. The custom RequestProcessor did
the trick.
Thanks again!
Best Regards,
Bent.
On Mon, 18 Oct 2004 11:01:25 -0400, Jeff
Hi,
Struts doesn't have anything like that.
IMHO, I also think that using validator on the login page is not good
practice as it would give malicious users a good idea on how your app
handles authentication.
Usually, you'd just return a generic error message such as
"Username/password invalid" w
When the RequestProcessor receives the request from clicking on the link
in WelcomeBody.jsp, this is (roughly) the sequence of events that it
follows:
- Populate the ActionForm with request parameters (in your case, there
are none)
- Validate the ActionForm (it fails; required fields are abse
Hi, Joe,
Thank you for your patience. Let me describe the
problem again.
I have JSP file J1 with form F1 inside. It is used to
accept user's input. And I will display the result in
JSP file J2 with form F2. And there are a checkbox
and multibox in F2.
At first, I didn't associate F2 with Action A
Read http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292381.
It describes how to move your Tiles definitions (the part in
Welcome.jsp) into an XML file and using definition names for your Struts
forwards.
-- Jeff
PC Leung wrote:
I use two JSP to form a page.
Is it necessary?
Welcom
WelcomeBody.jsp calls LoginBody.jsp.
There is a submit button in LoginBody.jsp.
When LoginBody.jsp is shown, the submit button
seems to be pressed at the same time.
Do I have to define global-forward "login"?
WelcomeBody.jsp:
struts-config.xml:
---
I use two JSP to form a page.
Is it necessary?
Welcome.jsp:
WelcomeBody.jsp:
Login.jsp:
LoginBody.jsp:
---
The first thing to remember is that a Forward is just a Java object.
You can create them and manipulate them in any way that you want.
For instance, in our application we didn't want the users to use the
"Back" button on their browser. We hid the toolbar, disabled the
necessary shortcuts, and
We are developing a search engine that crawls through source code and
provides a powerful semantic search capability. As a test, we have
crawled through Struts and several other java development frameworks (JDK,
Eclipse, NetBeans, JUnit).
If you are interested in trying it, send an email to
[EMAI
Well, it's been a while since I used JBuilder, so this may not be 100%
accurate advice. There are configuration options for setting up an internal
instance of Tomcat. It is entirely possible that your JBuilder's internal
Tomcat configuration is old and doesn't support anything beyond Servlet 2.2.
We have released a Work effort application. It is
based on an open source stack. The frameworks used are
Struts/iBATIS/Spring along with a whole bunch of other
open source frameworks. Even though the application is
a commercial application, the full source code is
available publicly. If you are loo
Kind of ide ?
It doesn't work onto ñy jbulder 8, but i think it's a configuration problem,
i've ever meet a Servlet dismatch between tomcat 4 & tomcat 5 Is there
something else ?
All is workimg onto Tomcat 4, but wanna work onto bigger cat ;o)
Y.
-Message d'origine-
De : James Mitche
It works fine for last 5 projects I've worked on. (all 1.1 and up)
--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
- Original Message -
From: "Le Goff, Yoann" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED
Hi Struts users,
I am developing a web based reporting system using Struts, and one
requirement is that each customer can have their own tailored version
of the reports.
I use tiles to define each report page for each customer, and for each
page for each customer I define a element in the
. In t
Does somebody use Tomcat 5.028 & Struts ?
If you are, witch version of Struts and do you meet any problem for
configuration ?
Y.
Have you ever deployed them in a clustered environment? Yes, all
underlying objects are serializable and session replication is properly
configured.
-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Monday, October 18, 2004 10:06 AM
To: Struts Users Mailing List
Sub
Bill Siggelkow wrote:
Laurent Duperval wrote:
Hello,
Does anyone have experience using (Mock)StrutsTestCase to test
wildcard actions (actions that end in *) and MappingDispatchActions?
Does it work? Are there any particular issues to be aware of?
Thanks,
L
I haven't tested mapping dispatch action
Ivan Vasquez wrote:
Is is OK to use Collections (or sets, lists, maps for that matter)
inside an ActionForm? We are trying to represent fairly complex
multiple-choice items in our forms.
Ivan
-
To unsubscribe, e-mail: [EMAIL PROTEC
Is is OK to use Collections (or sets, lists, maps for that matter)
inside an ActionForm? We are trying to represent fairly complex
multiple-choice items in our forms.
Ivan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
Laurent Duperval wrote:
Hello,
Does anyone have experience using (Mock)StrutsTestCase to test wildcard
actions (actions that end in *) and MappingDispatchActions?
Does it work? Are there any particular issues to be aware of?
Thanks,
L
I haven't tested mapping dispatch action with StrutsTestCase,
How about the createTempFile method? It gives you a unique name in the correct
directory (System defined temp directory, thus configurable by the administrator) and
creates/locks the file so it can be used in multiuser environments.
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#creat
Oops...
I meant
> I usually use System.getProperty("java.io.tmpdir").
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <[EMAIL PROTECTED]>
-
To
Hi Caroline,
> Now, I have this situation: While the web application
> is running, I need a place to store an uploaded file
> temporarily and then write this file out.
>
> Where is the proper place to create a directory to
> store a temporary file?
>
> Is any place in the application OKay?
I usu
Now, I have this situation: While the web application
is running, I need a place to store an uploaded file
temporarily and then write this file out.
Where is the proper place to create a directory to
store a temporary file?
Is any place in the application OKay?
Yes, the html:hidden is within an html:form. Also when I do a view
source on the page, I can see the values of the hidden variables
correctly.
but when I trace them to action class, they are null, all of them.
another thing. this is what my html:form tag in my first jsp page says.
but in the sam
Hi,
Added to the below list is one more question:
7. How can I call a struts action in tag. The action redirects to a
JSP(with JSF tags) under WEB-INF (say /WEB-INF/jsp/xyz.jsp). When I tried to achieve
this, the tag generated .
But, I want to perform a struts action.
Craig: Could you pl
You need to use html:hidden to create an invisible control that will be
submitted along with the form and then use html:text to display that
value to the user.
Leandro Melo wrote:
Actually, i just would like to use a label inside one
form, instead of a readonly field.
But if i don't use the html
Hello,
Does anyone have experience using (Mock)StrutsTestCase to test wildcard
actions (actions that end in *) and MappingDispatchActions?
Does it work? Are there any particular issues to be aware of?
Thanks,
L
-
To unsubscribe,
Hi all,
this is probably a constantly discussed topic and I have surely found a load
of inromation concerning this,but it still did not solve my problem.
I have a web page which displays multiple records, each record representing
one person. I am using index to retrieve each record.
The person i
Hi, Ian.
Have you tried to use a different package (directory name) for your bundle?
The java and javax packages should be sealed by the JVM classloader to prevent abuse
of standard classes.
Hiran
-
Hiran Chaudhuri
SAG Systemhaus GmbH
Elsenheimer Straße 1
Hello all,
I'm getting the following error when I want to change the language of
my webapp. I searched the archives and google, but can't really find
anything that helps me. I get the following error:
javax.servlet.ServletException: Can't find bundle for base name
application, locale en_US
I hav
Hi,
I have a http://localhost:8080/login.do action and I want to do validation for the
form when user submit their username & password.
here is my setting in validation.xml:
m
Hi list,
this weekend I found this *interessting*
article on Struts and JavaServer Faces.
http://www.sys-con.com/story/?storyid=46516&DE=1
Perhaps it is helpful for somebody of you
guys.
Greetings,
Matthias
--
Matthias Weßendorf
Aechterhoek 18
DE-48282 Emsdetten
Germany
Email: matthias AT wess
66 matches
Mail list logo