I have 3 FormObjects.
I have a newuser.jsp page containing the form userForm, in this form i put a
javascript button with an onclick event, window.open with a popup (adresuser.jsp),
with the form adresUserForm. Finally i have on the userForm another javascript button
with a popup to specialinfo
hi Drik
once the user have filled up the other 2 forms in the pop window
u can make object of those two forms into your final action and can get the
values
like
Form1 form=new Form1();
Form2 form2=new Form2();
from1.getUserAddress();
from1.getCity();
Hope this works
Regards
Gurpreet Dhanoa
Hi,
Also do not forget to set the header so that the save as dialogue box is displayed in
IE...For that you have to set the content-disposition header ..
following is the code from our project..
Class FileOpenAction{
protected final void returnBinaryFile(
HttpServletRe
If the forms are in different windows then instantiating new forms I
dont think will work. If you want a non javascript way of doing things
then you'll want to scope the master form to the session, and then keep
populating to from your subforms .
However you do this I imagine that scoping the m
the solution :
in the the "id" must be choosen carefully ... you have
to use the same value as "property"
I found the explanation here (/Indexed References/) :
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/bean/package-summary.html#doc.Properties
for me :
François Richard
Hi:
I'm working with a Struts 1.0 application. I extended Action to create a
base action that handles backwards navigation in a stack fashion.
Each method calls a "saveStep" method to the stack. This step has form,
mapping and dispatch name. Base action has a method called "stepBack"
that can be ca
Hi,
I have a jsp input form with dynamically generated multibox, I need to fill these
boxes with checked and unchecked state once the user selects a previously saved
record. I need to know how to resolve this problem.
I have done the same with a single multibox, using the set('property name', v
Hi,
I found the idea interesting..
But I have a couple of questions...
the assumption you are making here is entire request parameters are captured in the
form...How else can you call some action if it does not have access to all the request
parameters..
Also it means that the action have very
Im working with struts1.1 myself.
Our application has quite a few screens that correspond to records in the
application, and these records are often related to other records in the
application - ie you might need to pick one from a drop down or such like.
We were able to give the user the ability
The checkboxes are selected depending on whether the value and the
property value match..
if myprop is set to foo it will be ticked..
On 24 Dec 2003, at 11:11, Rajesh, Harikrishnan (H.) wrote:
Hi,
I have a jsp input form with dynamically generated multibox, I need to
fill these boxes with
I want to use an update user details page in my application which uses a
form to display the current user details and updates any changes. Im
having problems displaying the information of the user bean in the value
property.
What I want is
Ive tried the following which is giving me errors:
"
or
You can also populate in the refering action (assuming you've one), i
think this is better and keeps your form cleaner and thus perhaps more
reusable.
theForm.setName("Brian");
or dynaactionform
theForm.set("name","Brian");
will render to
Cheers Mark
On 24 Dec 2003, at 12:10, C
hi,
Is it possible to generate the formbeans from jsp or html. Is there any tool
available ?
Regds
Ashwani
This message contains information that may be privileged or confidential and
is the property of the Cap Gemini Ernst & Young Group. It is
Hi all,
I have two questions:
1) I have a problem with the help menu of my application wich contains html
pages.
I would not like to access those pages without being log on, so I access
them via a secure Action that just do a forward to the good page:
You 're forgetting two things...
1- He wants to show a pdf file in a new browser
to do that, you must set the apropiate target into de A tag...
xxx
target="_blank" will open the link in a new window.
2- This, will only work if the users uses Internet Explorer...cause it's an
activeX contai
This seem to be a authentication issue managed with Container Managed
Authentication
web
Require users to authenticate
/xxx/*.jsp
POST
GET
CMA
This might be the wrapper you are looking for
protected MessageResources getMessageResources(){
return MessageResources.getMessageResources("ApplicationResources");
}
//getMessageResources().getMessage( "key" );
The API has lot of other methods.
Mohan
-Orig
If Struts is J2EE on Steroids
Then FOP is PDF on Steroids
check out Implementing Formatting Objects Processor at
http://xml.apache.org/fop/
Saludos,
-Martin
- Original Message -
From: "hernux" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, Decembe
I want to have select element without any selected values by default.
I can do this by setting selectedIndex=-1 or
value='not_existing_value' in JavaScript.
Can I do this with Struts functionality?
-
To unsubscribe, e-mail: [EMAI
Holiday Greetings to All!
Quick design question - Is it possible to synchronize an application-scoped
object between two servlets within the same web application? I have a
servlet that I have written that maintains a List object that is stored in
application scope. This servlet basically creates
HI,
WSAD(Websphere studio development) has a facility to generate actionform
beans from JSP
Regards
Vasudevraogupta
-Original Message-
From: Kalra, Ashwani [mailto:[EMAIL PROTECTED]
Sent: 24 December 2003 18:40
To: Struts (E-mail)
Subject: any tool which can generate formbeans from jsp
Just don't set the form value.
On 24 Dec 2003, at 15:15, AKostylev wrote:
I want to have select element without any selected values by default.
I can do this by setting selectedIndex=-1 or
value='not_existing_value' in JavaScript.
Can I do this with Struts functionality?
-
Hi all
I'm trying to add a parameter (yeah,i mean only one) to a link. actually, it is an
logic:iterator tag which generates a table, and one of the columns is the link to an
action which is going to get the parameter send throw the request, process it and go
to a jsp. so, the code follows:
just need paramId to set the parameter name.
On 24 Dec 2003, at 15:59, Otávio Augusto wrote:
Hi all
I'm trying to add a parameter (yeah,i mean only one) to a link.
actually, it is an logic:iterator tag which generates a table, and one
of the columns is the link to an action which is going to g
U mean i just need to add the paramId ?
thanks
Otávio Augusto
On Wed, 24 Dec 2003 16:11:52 +
Mark Lowe <[EMAIL PROTECTED]> wrote:
> just need paramId to set the parameter name.
>
>
> On 24 Dec 2003, at 15:59, Otávio Augusto wrote:
>
> > Hi all
> >
> > I'm trying to add a parameter (yeah,
Wednesday, December 24, 2003, 7:02:24 PM, you wrote:
ML> Just don't set the form value.
ML> On 24 Dec 2003, at 15:15, AKostylev wrote:
>> I want to have select element without any selected values by default.
>> I can do this by setting selectedIndex=-1 or
>> value='not_existing_value' in JavaSc
the paramId value of html:link will be the name of the parameter that
gets passed in the query string, the paramName attribute will be the
name of a bean that is used (toString) to generate the value of that
parameter. So, something like this:
my
link
Should generate a link like so:
my link
Oh, and check here:
http://jakarta.apache.org/struts/userGuide/struts-html.html#link
All the info you should ever need :)
Otávio Augusto wrote:
U mean i just need to add the paramId ?
thanks
Otávio Augusto
On Wed, 24 Dec 2003 16:11:52 +
Mark Lowe <[EMAIL PROTECTED]> wrote:
just need p
Thanks Brice. Works fine now, and it makes all sense.
Otávio Augusto
On Wed, 24 Dec 2003 10:27:46 -0600
Brice Ruth <[EMAIL PROTECTED]> wrote:
> the paramId value of html:link will be the name of the parameter that
> gets passed in the query string, the paramName attribute will be the
> name of
Hi all-
I have a problem which i'm sure someone else must have gone thru. I have a
collection of Value Objects that hve properties like firstName, lastName
etc. I wrote a getter in the form bean that returns this collection of
value objects
[code]
// This is my IncompleteFolderAction.java
.
> -Original Message-
> I use select with multiple=false and I don't set the parameter's
> value. As result I get:
>
>
> Test1
> Test2
>
>
> So none of options has "selected" attribute, but first option is
> selected on the page.
I think what you're tryin
You could also do something like:
Which should give you something resembling no option being selected.
Beware, unless you have validation of this field, it is perfectly valid
for the browser to submit this ...
Wendy Smoak wrote:
-Original Message-
I use select with multiple=false and
an option will only be selected by default if the form property has
been set to a value or there is a match in an available scope (like a
parameter with the same name as the form property). Otherwise it will
just do its thing.
I'd use a simple action without a formbean for something like a
nav
Sorry to bother you with an easy question, but I can't find the answer.
I want to iterate over Category_VO[] which is stored in a session attribute.
I read that it can be done, but I can't find an example for raw arrays.
Here's what I have (which probably doesn't even make sense):
Thanks!
I think life would be easier if you store your Category_VO objects in a
java.util.Collection, then use JSTL forEach tag. Something like this:
<%
Collection v = new Vector();
v.add( new Category_VO("cat 1") ); //Assuming your constructor takes a
String which is the shortTitle
v
Hi Guys
Can anybody help how to work with StrutsTestCase i am using Eclipse
suresh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
//psuedo code.
List categoryList = Category.getList();
request.setAttribute("categories", categoryList.toArray());
I made the first bit up. But should give you the idea.
may do what you want.. Depends on what methods you've got in there..
Cheers Mark
On 24 Dec 2003, at 18:23, e-den
Just look at the existing mail archives which has similar thread
-Original Message-
From: Suresh Korvi
Sent: Wednesday, December 24, 2003 1:32 PM
To: [EMAIL PROTECTED]
Subject: From Suresh
Hi Guys
Can anybody help how to work with StrutsTestCase i am using Eclipse
suresh
---
If I am understanding correctly you just want
which will pull the value from the "name" property of the bean.
If you specify a value in the tag it oiverrides what is in
the bean.
- Dan
> I want to use an update user details page in my application
> which uses a
> form to display the current user
Suresh
Post to StrutsTestCase Forum
http://sourceforge.net/forum/forum.php?forum_id=121751
Keep me apprised,
-Martin
- Original Message -
From: "Ramadoss Chinnakuzhandai" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 1:33 PM
Subj
Or you can override the form value like this
If the value you set doesn't exist then nothing will
be selected. Which means the first item will be
selected, because something always is (if we are talking
about a dropdown and not a multiselect). But you can
always add a blank first item like this
Quoting Jerry Jalenak <[EMAIL PROTECTED]>:
> Holiday Greetings to All!
>
> Quick design question - Is it possible to synchronize an application-scoped
> object between two servlets within the same web application? I have a
> servlet that I have written that maintains a List object that is stored
<%
LabelValueBean[] lvArray = new LabelValueBean[] {
new LabelValueBean("label1", "value1"),
new LabelValueBean("label2", "value2"),
new LabelValueBean("label3", "value3"),
new LabelValueBean("label4", "value4") };
request.setAttribute("lvArray", lvArray);
%>
Hi Mark,
I tried this:
Category_VO[] pcatResults = null;
Category_DAO dao= new Category_DAO();
pcatResults = dao.selectTopLevel();
request.getSession (true).setAttribute ("PCAT", pcatResults);
---
and, I get this:
javax.servlet.jsp.JspException: Cann
Looks like you should copy what your view needs from your model rather
than shoe-horning in your data objects into your jsps.
Have a simple bean called Category in this example with a title
property.
Category_VO[] pcatResults = dao.selectTopLevel();
ArrayList categoryList = new ArrayList();
w
Craig -
Thanks for the response. One last question - during the time period where
the getServletContext().setAttribute() is executing in Servlet_1, is there
any concern about collision with an access from Servlet_2 (Struts)? I guess
I'm unsure whether the setAttribute() method is synchronized o
hi all
Maybe this is an inapropriate place to ask that, but i'm gonna take the risk anyway. I
imagine there are users who work with Struts and Hibernate, just like i do (i haven't
found any hibernate's discussion list, so i'm posting this question here). is someone
has ever had the "lazy instan
What kind of problem are you referring to with lazy instantiation? You can
disable or enable it.. but if you have big lists of items that you may or
may not use its good to leave it on..
-David
- Original Message -
From: "Otávio Augusto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent:
Hibernate throws that if it finds a null value on an indexed column.
Of example if you've a load of users and groups and say 3 users with
group_id of 999 and then someone removes group 999 you'd get this
exception.
On 24 Dec 2003, at 20:16, Otávio Augusto wrote:
hi all
Maybe this is an inap
hi
the thing is: i have a bean called Setor, and this bean has an attribute called
quadras, which is a collection. ok, i can retrieve the ben using hibernate, store it
in a session (now talking about struts) and go to my jsp page. there, i have this
piece of code:
Otávio,
Hibernate discussions are at http://http://forum.hibernate.org. A few of
the discussion threads talk about Struts. Many cover "lazy" instantiation.
Regards,
David
-Original Message-
From: Otávio Augusto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 24, 2003 3:17 PM
To: [E
I's iteratin'! Thanks for all the help.
- Original Message -
From: "Daniel Lipofsky" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; "e-denton
Java Programmer" <[EMAIL PROTECTED]>
Sent: Wednesday, December 24, 2003 1:07 PM
Subject: RE: Easy question: iterate
<%
Thanks a lot David. i've disabled lazy instantiation, and it is working now. but even
for small tables and not many data, i feel the performance has decreased.
Thanks to all who helped ;)
Otávio Augusto
On Wed, 24 Dec 2003 15:54:09 -0500
"David Friedman" <[EMAIL PROTECTED]> wrote:
> Otávio,
>
Quoting Jerry Jalenak <[EMAIL PROTECTED]>:
> Craig -
>
> Thanks for the response. One last question - during the time period where
> the getServletContext().setAttribute() is executing in Servlet_1, is there
> any concern about collision with an access from Servlet_2 (Struts)? I guess
> I'm un
Nightly binary builds of the Struts-Faces Integration Library, updated to work
with the new beta release of JavaServer Faces, are now available:
http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
As always, the source code for this library is in the "contrib/struts-faces"
direc
Well, maybe that is not the place (again)...but, anyway, merry christmas to all of
you. Let's build even better days ;)
Otávio Augusto
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
I am stuck and need your knowledge and experience.
When the button is my JSP is clicked, there are two
action forms involved, threadForm and postForm.
The threadForm is populated by hidden fields and text
fields that are passed from the JSP. All the
properties of the threadForm are to be inserte
Hi all
Is this piece of code correct??
Nome do setor:
Comentários:
Quadras:
In my Action, I'm setting a session this way:
request.getSession().setAttribute("setores", setor);
The first two lines are correctely printed, but one of the attributes of this bean is
58 matches
Mail list logo