No, in the same page i have to display
tr
td value1/tdtd value2 /tdtd value3 /td
tr
for the next 3 values i should display in next row.using logic iterate and only with
struts not with jstl.
thanks
naveen.
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Sent: Monday,
Are you trying to do this to save space:
value1 value2 value3
value4 value5 value6
value7 value8 value9
Or this to show 3 properties of any one bean at a time:
bean1.value1 bean1.value2 bean1.value3
bean2.value1 bean2.value2 bean2.value3
bean3.value1 bean3.value2 bean3.value3
Regards,
David
i mean when i am displaying the value from collection using logic iterate i display
values in tr with 4 td for the 5th value i have to go for next tr with 4 td
value to be displayed.as i showed in last mail
thanks
naveen.
-Original Message-
From: David Friedman [mailto:[EMAIL PROTECTED]
Hi All,
Can anybody provide me with links/tutorials/articles related to
DynaValidatorForm ??
Thanks Regards,
BS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is anybody having any comments on exception handling strategies ?? I am
looking for solutions reagarding handling exceptions related to database.
Thanks,
BS
-Original Message-
From: Baljinder Singh
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 11:44 AM
To: Struts Users
Hi Baljinder
I use one common rule of thumb in regard to exception handling in Struts
applications: Never throw an exception in action classes, always catch
exceptions in action classes
At lower layers (Business Delegate, EJB Facade, Data Access Object, etc) I
COULD use exceptions to communicate
http://javaboutique.internet.com/tutorials/Struts11Val/
http://prdownloads.sourceforge.net/struts/The-Validator-Framework.pdf?downlo
ad
--
Andrew Kuzmin
www.java201.com
- Original Message -
From: Baljinder Singh [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent:
Hi All,
I have a typical problem.
I have iPlanet and Weblogic installed. iPlanet is forwarding request to weblogic.
1) From iPlanet server I make a call :-
172.31.235.253 - - [26/Nov/2003:11:26:56 +0900] GET
/shvn/dfw/INTEAPP/directDerivatives/BankAdminAuditLog.do HTTP/1.1 200 14149
This call
Hi,
before knowing about tokens, I have implemented a way to deal with the refresh of a
POST form problem. Now that I know that tokens exist, I can't really use them for
several reasons, but mainly because it adds a field in the form which modifies my
current form validation with javascript.
Hi,
When I use an ActionForm which have a HashMap to store values as
specified in chapter 4 of the users guide, the name of the text field is not
properly displayed. My code is given below.
ActionForm
private Map map = new HashMap();
public void setMap(String key,Object value){
Hi all,
In case I have 2 drop-down-lists and the second drop-down-list content
changed automatically if we select certain item at the first one,
how can I do it in the struts world? Any references to this case? Any code
example?
I am totally blind to this case..
best regards
-GI.
You can directly do it using javascript, refer to the below URL for a
detailed example
http://www.jguru.com/faq/view.jsp?EID=923880
F.
- Original Message -
From: Gede Indrawan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 12:39 PM
My application has form containing a table with hyperlinks in one column.
When a user clicks on one, a request is made to the server passing in the ID of the
chosen file (Microsoft Word) to be downloaded.
The file is then downloaded to the user's browser (Internet Explorer - V5) but I
cannot
This release is a significant refactoring of the 1.x codebase. The
source
and site is now built using Maven. Menus can now be defined using
Velocity
templates and support has been added for looking up dynamic values.
This
means that if you have ${variableName} in your menu-config.xml (in a
Hi Felipe,
not quite sure exactly what you want to do - where do you expect
subbody1 subbody2 to come from? If you are defining them in your
tiles-defs.xml then you need to pass them as variables explicitly to
'body' in your maintemplate:
tiles:get name=body
put name=subbody1
Hi Raphaël
what happens if the user has two browser windows open for two different
datasets which use the same action? He will be prevented from submitting
the second one.
Adam
On 12/01/2003 11:30 AM Raphaël di Cicco wrote:
Hi,
before knowing about tokens, I have implemented a way to deal
Hi,
Is it possible to tell the controller that redirect to next page instead
of forwarding.
Antony Paul.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
its redirect(true or false) attribute in actionforward tag
-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 5:41 PM
To: struts
Subject: redirecting insead of forward.
Hi,
Is it possible to tell the controller that redirect to
next page
Hi,
I would like to receive comments on when to use forward and redirect in
action mapping. Do people use forward only. All the articles and examples I
saw uses forward.
Antony Paul.
-
To unsubscribe, e-mail: [EMAIL
Thanks Adam for your comment.
Yes you're right... but in my application every new window I open is indexed
with a windowId.
In fact, every session attribute name is built using this windowId, so that
session objects don't mix between pages. The flag itself uses the windowId
this way, but I didn't
Hello,
is there any possibility to check from an jsp page (or custom tag) for
the requiredness of a property? I'm using the validator. When I
specify the property as required in the validator.xml, I want to
display a small red star behind the input field on the page. Is his
possible to to this
I think you can't...
if you want to display name, then you need to have a getName() and setName()
- Original Message -
From: Antony Paul [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 11:36 AM
Subject: Using map backed forms beans
Hi,
When I use an
Hello,
I'm trying to use the validator with a regexp mask on an textarea field.
There are two problems:
1) even if the regexp allows empty strings and the field is not
required, the validator reports that the field is invalid. same
mask works for a simple text input.
2) I'm trying to use
Hi Antony,
As a rule i always use just forward unless there is a specific need to
redirect to the page you're forwarding to.
For example, say i had an action which saved some details from a form to a
database. if the page is not redirected then if the user were to refresh the
page, the action
Hi all,
I have implemented a scheme for dynamically reloading classes and struts
configuration files for JPlates 3.0.1 and Struts 1.1, and welcome anyone
interested to try it out. Everything you need is in the JPlates trial
download at http://www.jplates.com, and the config setup is described
Thank u for the reply. I followed the same pattern in another non struts
based application. But on reading the struts users guide and articles and
going through the sample sapplication, I found that nobody is mentioning
about redirect and the problem with refresh. So I gott confused whether
there
I have a problem using SingleSignOn with a Struts 1.1 app in Tomcat 4.1
(tried 24 29).
I have Tomcat set up with the SingleSignOn valve, and a number of web
apps (5) all using FORM based authentication. The single sign-on seems
to be working fine for 4 out of the 5, but I have a problem with
Anthony,
I use redirect to separate actions which do work and actions which display
information.
Let's say I have 2 pages/Action objects: DisplayItem, ProcessBid.
The user sees an item he likes (say displayItem.do?id=123) and enters a bid. The
bid will get submitted to processBid.do. Once
Hi,
I am currently using Struts 1.0.2 and have notice something with regard to
handling of ActionForms.
Why is it, that in the perform() method of my Action I am able to modify
the passed-in ActionForm and all modifications that I make to the
ActionForm in my Action have effect on the ActionForm
Er...
Swing *is* a MVC framework...
..but maybe you'll find what you are looking for here:
http://www.d-haven.org/guiapp/
CHR
-Original Message-
From: AnilA [mailto:[EMAIL PROTECTED]
Sent: 27. november 2003 14:41
To: Struts Users Mailing List
Subject: [OT] MVC Framework
Hi
Welcome to java 101, formerly known as the struts-users mailing list.
Object references are passed to method calls. While that reference
cannot be changed, the object that it references can. On the other hand,
if you create a new action form and assign it to the form parameter,
nothing will
Don't think so. Assignment to an execute queue is done through a servlet init
parameter like so:
servlet
...
init-param
param-namewl-dispatch-policy/param-name
param-valueQueueName/param-value
/init-param
/servlet
Which means that you could assign the Struts ActionServlet to an
Sepand:
google under java pass by reference vs. pass by value and look at the very
first result. It contains a real nice discussion about this..
Geeta
EXCELSIS - Sepand Oboudiyat wrote:
Hi,
I am currently using Struts 1.0.2 and have notice something with regard to
handling of ActionForms.
For example, say i had an action which saved some details from a form to a
database. if the page is not redirected then if the user were to refresh
the
page, the action would be called again and the data saved again. This
obviously i would not want the user to do so in this case i redirect the
Welll,
Common misconception, but, technically all java calls are by value.
That is, there is no such thing in java as passing something by reference.
The hook is, the value passed in when something is an Object is actually a
reference (aka a pointer) to the existing object.
While you can
I'm migrating an application to Tiles. In my main struts-config.xml, I
have the following forward defined to switch into a submodule:
forward name=toNewsManager contextRelative=true
path=/newsmanager/index.do redirect=true /
This Forward is referenced in a menu.jsp tile which is recreated in
caroline,
when the user gets to page2, what is the url displayed in the address box?
is it the action or the jsp page?
claire
- Original Message -
From: Caroline Lauferon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 4:04 PM
Subject:
Hi Caroline,
I sent you a struts war file ready to deploy. It includes all source files.
Call up the displayItem.do, enter a bid amount, submit the form, then refresh on
the resulting page. Both action objects do a System.out.println when they're
called. When you refresh the page after
hum... tings are not exactly like I described them, but i thought it was the
same *.jsp are tiles tiles definitions names, not resources. does it
matter. the URL shown is the action path.
Caroline
caroline,
when the user gets to page2, what is the url displayed in the address box?
is it
Thank you very much Hubert! and Thank you Claire!
it indeed works the way you describe it. I suppose redirect=true works
only with /sthg.do or sthg.jsp, and not with a tile definition, isn't it?
So, to solve my problem, I should use a /mytiledefinition.do (being a
forward action), like this :
One small tangent on why you might still want to call session.setAttribute. If
you ever want your app to work in a clustered/distributed environment, you
should always call session.setAttribute after modifying the state of a session
attribute. It may seem redundant:
Address address = ...;
Object
Hello,
For my webapp I need to make sure a date is in the form 'mm/dd/yy', but
I haven't been able to achieve this with the struts validator (I only
need the javascript to work for now). All the examples I can find use
'MM/dd/' or 'MM-dd-'. If I switch to one of these and put in a 4
char
I just picked up the new Core J2EE 2nd Ed. book and it
mentions this issue. To summarize, any errors from
the database (SQL exceptions) should be considered
compile-time errors, and should be resolved as being
fatal to the program's successful operation.
In all my action code, i do a try/catch
Hi,
I am using FormFile and after it is validated it must be displayed on the
next JSP. However, the field is blank. When I look at the source in IE6, I
see the file name without the directory. But even that is not displayed.
Any thoughts?
S P
I have a form with a field that has type=java.lang.Integer.
This required by the rest of the application so I can't change it to String.
I'm using the depends=integer in the field validation but it does not
produce any error when I insert text garbage in the field. Instead it
defaults to 0.
I wrote:
I'm trying to use the validator with a regexp mask on an textarea field.
There are two problems:
1) even if the regexp allows empty strings and the field is not
required, the validator reports that the field is invalid. same
mask works for a simple text input.
2) I'm trying to
On Mon, 1 Dec 2003, Sharmila Pandith wrote:
Hi,
I am using FormFile and after it is validated it must be displayed on the
next JSP. However, the field is blank. When I look at the source in IE6, I
see the file name without the directory. But even that is not displayed.
Any thoughts?
Yes,
Hi,
I have a textbox which is supposed to hold a numeric value - ie the property
corresponds to a numeric datatype in the Action form. If I leave this textbox empty ,
I want my validate method to catch it and print an error as this field is a required
field. However, when I leave this text
Unfortunately Google wasn't too helpful because I'm having trouble
defining the problem.
I have a small webapp with a single DynaValidatorForm that holds all the
fields.
I have an Action class called ViewReport which handles forwarding to
the 'input' page, receiving the input, then forwarding
That is my what I don´t know.
I don´t know if I have to define the two components subbody1 and 2 in my
foo.jsp (body file), or in my tiles-defs.xml.
I suppose it is better in my tiles-defs.xml. So in foo.jsp I could only
get the values and that´s it.
Could you give a simple example of the
Hi all, i'm a Struts newbie and i'm trying to move my web-application from
JSP/Servlets to Struts/Tiles. Someone of you can suggest my the best way to implement
menu tile using Struts Tiles togheter? I need real experience mixing Struts Tiles
because I found something googling but real
Thanks, that was helpful.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:30 PM
To: Struts Users Mailing List
Subject: Re: FormFile not re-populated
On Mon, 1 Dec 2003, Sharmila Pandith wrote:
Hi,
I am using FormFile and after it
not sure I fully understand your problem. This may be the answer you aren't
looking for, but maybe it can help (it just gives the current path):
%@ page import=org.apache.struts.Globals %
c_rt:set var=mapping_key value=%= Globals.MAPPING_KEY %/
c:set var=mapping
Just today a new version of Struts Menu was released, that is what I use.
.V
Francesco Di Candia wrote:
Hi all, i'm a Struts newbie and i'm trying to move my web-application from JSP/Servlets to
Struts/Tiles. Someone of you can suggest my the best way to implement menu tile using Struts
Tiles
Dear all,
Struts and JSTL both have validator framework, which one is preferred if I'm using
struts and JSTL in one web application?
Thanks.
bruce
Hi All,
I have a loop this way
logic:iterate id=xSome name=KEY_USER property=appCourses
html:text name=xSome property=courseName /
html:text name=xSome property=level /
/logic:iterate
I am iterating thro a list called getAppCourses. Suppose i change these
values will the list also get
I have a need to process a large amount of data and return a csv file to the
client. Is it possible to do this with a Struts action? Is so, what would
I return as an ActionForward (see below)?
return mapping.findForward(blabla);
or
return mapping.findForward(null);
I don't want to forward
from http://marc.theaimsgroup.com/?l=struts-userm=106730742008404w=2
modified slightly:
// Now write the actual content type and data
response.setContentType(text/plain);
JspWriter stream = response.getWriter();
... write out the csv ...
// Return null to tell Struts the response is
I also use struts menu ... very easy to get started with. Once installed
and configured, you can use a tag like: menu:displayMenu name=MenuOrder
/ to add an upper level menu.
-Original Message-
From: Francesco Di Candia [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:52 PM
When using FOP on a past project to output pdf, I used:
response.setContentType(application/pdf);
response.setHeader(Content-Disposition, attachment;filename=
+ reportName + ; );
The second line caused it the browser to give a open/save dialog so that
.csv does not appear
Not sure if you are using a form bean or a dynaactionform. But, specify a
String type field and then validate the string and convert to numeric.
Mike
-Original Message-
From: Nandita Rajagopalan [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:47 PM
To: [EMAIL PROTECTED]
I was looking at chain's implementation, instead of executing the commands
with the visitor pattern, wouldn't a more powerful/flexible method be to
implement it using a filter pattern?
See:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/InterceptingFilter.
html
Sample Chain:
If the type is String[], you will get an array of values.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 2:40 PM
To: [EMAIL PROTECTED]
Subject: saving values thro logic:iterate to a list
Hi All,
I have a loop this way
logic:iterate
OK, thanks for the return null; tip, that works great. But the
Content-Disposition does not seem to work for my browser (IE 5.5). I get
the save box when I left mouse click on the link, but it saves an HTML page
not the actual CSV data. However, if I right click on the link, everything
works
We use:
String contentType = this.beanWriter.getContentType();
response.setContentType(contentType);
response.setHeader(Content-Disposition,attachment;filename=\
+ this.beanWriter.getFileName(request)
+ \);
My formatting is a little different than the previous responder-- might
I know every situation is different depending on the
environment you are in.
However, the use of redirect to prevent double form
submissions is not an appropriate solution to that
problem. I prefer to use the built in mechanism in
struts (transactional tokens) to solve this problem
for me. This
Howdy,
I'm having a bizarre problem with a new ActionForm I've just created: when I
hit a jsp that uses this form, the RequestUtils say there's an error
creating form bean of my class.
2003-12-01 17:01:33,432 [Thread-2] ERROR org.apache.struts.util.RequestUtils
Error creating form bean of
If you define double submissions as the user clicking submit twice, then no,
redirect doesn't save you from that. You should use transactional tokens
(assuming your app design/specs allow you to).
If your mappings are like this:
action path=/displayItem type=MyDisplayAction
forward
I am having trouble accessing a message from my
non-default message bundle.
I have the following entries in my struts-config.xml
file...
message-resources
parameter=com.it.rfr.resources.rfrresources
/message-resources
message-resources key=shared
Wow, pretty nice and good looking, thanks for the heads up Matt.
FYI in Mozilla 1.4, the coolmenu4 example looks a bit messed up.
Matt Raible wrote:
This release is a significant refactoring of the 1.x codebase. The
source
and site is now built using Maven. Menus can now be defined using
I haven't used the multi bundles before, but I remember recently someone saying
the order by which s/he declared the resources solved the problem:
message-resources key=approvals parameter=com.myapp.one /
message-resources key=org.apache.struts.action.MESSAGE
parameter=com.myapp.two /
instead
The following doesn't seem to be working as I would expect... I sort of
suspect that this may not be a struts issue, but I really thought you
were supposed to be able to drop in jsp expressions anywhere.
html:link page=/prototypes/PopulateLocation.do?row=%=
this.should.fail %Edit/html:link
is
Attention Todd Thorner! :-)
It look like you had very similar problem, but I saw no replies to your
post. Did you ever get this fixed:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg86103.html
I'm working under an extreme deadline, please help :-(
-
Howdy,
I'm having a
Just to be explicit, you have a file in tomcat as:
WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
Regards,
David
-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 7:22 PM
To: Struts Users Mailing List
Subject: Re: Error
My drop-down list got an error message:
org.apache.jasper.JasperException: Cannot retrieve
definition for form bean null
I have tried to display the drop-down list in two
ways:
First:
html:select size=1 property=editor
multiple=false
html:options collection=editors property=name
Matt,
I'm using Maven to build my project and I see the 2.0 jar is not yet
deployed to the maven repository
(http://www.ibiblio.org/maven/struts-menu/jars/). Do you plan to have it
there? If so, when?
Thx
- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Since you mentioned FormFiles and failed validations, I'd like to share
something: It's a pain that you lose the uploaded file if the form
validation fails. I decided to make my validation screen do a special
message to please upload the files again because form Validation failed IF
any files
Just to be explicit, you have a file in tomcat as:
WEB-INF/classes/com/ponyprinting/web/manager/UploadForm.class ?
Yep.
WEB-INF/classes/com/ponyprinting/web/manager/forms/UploadForm.class
...just to be precise.
Thanks,
-Sasha
On 12/1/03 6:27 PM, David Friedman [EMAIL PROTECTED] wrote:
The easiest way is to declare a bean and scope for the request - that way
the other jsps have a chance to use the attribute. The tiles attributes are
only scoped (TilesContext) for the testpage.jsp declared in the path=
attribute in the first definition when using the getAsString.
Try this at
And I think you just found my problem - it was a small typo:
In struts-config, I had:
type=com.ponyprinting.web.manager.UploadForm /
Instead of:
type=com.ponyprinting.web.manager.forms.UploadForm /
Thanks a lot David! Sorry to bother the list with such a stupid mistake.
But when you've been
Noah you can add attributes to extended definitions and then extend them.
I have an example using that technique on my site:
http://www.calandva.com/holmansite/do/blog/blogging?date=20030711#094831
definition name=home.pagedef page=/template.jsp
controllerUrl=/do/renderCrumb
put
Yep. That was the first thing I noticed when I read your email after
dinner: 'form' :)
Regards,
David
-Original Message-
From: Sasha Borodin [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 7:45 PM
To: Struts Users Mailing List
Subject: Re: Error creating form bean
And I
Per the JSP spec about request-time attribute values:
The expression must appear by itself (multiple expressions, and mixing
of expressions and string constants are not permitted).
Which means you have to use:
html:link page='%= nasty + expression + here %'Edit/html:link
Gus Heck wrote:
The
Hi Caroline,
The list should not be a session attribute.
Instead, you should declare member variables inside your Form bean
as follows..
public class EditorForm {
String [] options;
EditorBean editor;
public String [] getOptions() {
return options;
}
public EditorBean getEditor()
I'm sorry, I sort of lost track of this thread. Do you ever get this
working?
Alexander Kirsch wrote:
Hallo all!
Kris Schneider wrote:
Are you using a JSP 2.0 container (like Tomcat 5)? If not, you can't
use JSTL
1.1, you have to use JSTL 1.0. For a quick sanity check, what do you
get with
Heres (a very simplified description of) what I do (its conceptually the
same as what James suggested):
I use a session based form for upload pages especially since I usually need
to allow the user to upload multiple files for one 'field', and because some
of these files can be quite big and the
After days of trying to figure out why my actions wouldn't forward, only
redirect, I finally narrowed down the problem.
If I use a forward path of /dir1/dir2 the action will always redirect, no
matter what the redirect value of the forward is. However, if I use
/dir1/dir2/index.jsp then the
You might want to check your web server configuration to see if the
directory index knows to show the index.jsp as the index page or to do
something else, such as redirect to an error page or a particular page.
What is your web server?
Regards,
David
-Original Message-
From: Bessette
Hi,
I am using Struts weblogic , My Question is each time i do some changes in my
.java files the changes dont' get reflected immediately. Each time after compiling i
have to restart weblogic :-( .. which is taking a hell lot of my time .. Can anyone
suggest some weblogic setting thru
hi,
I have the following flow.
Page A : Display some rows. These rows are not in DB.Initially there are
no rows. It contains add button
Page B : On clicking the add button of Page A, page B opens up the form
which user fills and forward back to page A.
Page A now displays new row along with
You have to persist your data. If you declare your form in request
scope, then once user clicks on submit on page A, you have to save the
data to a Value Object stored in session.
Khalid
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003
Yeah I was thinking of the same approach. I thought if there is better way.
Means I have to keep a collection of Page A form beans in session
-Original Message-
From: Khalid K. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 11:54 AM
To: 'Struts Users Mailing List'
Subject:
Hi,
Pls read this thread
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=articlegroup=weblogic.develo
per.interest.jspitem=11050utag=
IMO not possible. However I have heard that there are IDE tools which do the
equivalent for you.
/Ashwani
-Original Message-
From: Shakti
Is there a way to call something like a bean write taglib with a
map key/value combination in jstl or something else? Thanks.
LEGAL NOTICE
This electronic mail transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
94 matches
Mail list logo