Hey folks,
Well, I have been working with Struts for the past 1 month, and
though the initial setup was a bit complex (the first time) and
firguring out the action mappings was tough, I am slowly discovering how
cool Struts is. Maybe that's why it's so popular. A heartfelt thanks to
Craig
Hi Nicolas,
Thanks for the response,
1)I tried this, but giving me error. Pls would u mind giving some code example ?
2)About exception - do u mean to say my own method common to all ? This also if
u can explain with code example would be of great help.
Thanks once again,
regards
Manish
1) You can have a Controller (org.apache.struts.tiles.Controller) and
in the "perform" you can get the "original" request url and save it as
a "request" attribute; and the tile can pull that request attribute.
You can specify the controller class for your tiles definition.
Just Before the jsp is re
From: "Manisha Sathe" <[EMAIL PROTECTED]>
For Edit what i want is to get the values from database and display it on
form as default.
What i am doing is ->
1)First calling one action handler getting the values from database and
putting inside one data bean. Putting that bean inside request scope t
Hi Uma,
Refer to struts-validation.war that comes with the struts distribution
Best Regards,
Janarthan S
Uma <[EMAIL PROTECTED]> wrote:
Hi,
How do I validate if a field is entered or not using the DynaActionForm?
My HTML form has and buttons. I want to check if
the user has entered some text i
Hi,
If you have a bean by name myBean in request scope, a property of the bean by
name myProperty can be displayed in the jsp page by -
Best Regards,
Janarthan S
Manisha Sathe <[EMAIL PROTECTED]> wrote:
I have Add/Edit/Delete for one database table.
For Edit what i want is to get the valu
I have Add/Edit/Delete for one database table.
For Edit what i want is to get the values from database and display it on form
as default.
What i am doing is ->
1)First calling one action handler getting the values from database and putting
inside one data bean. Putting that bean inside reque
There is also a feature in JDeveloper 10g that lets you monitor TCP/IP
traffic using a proxy. If you use the Apache SOAP library, there is another
utility available inside it called TcpTunnelGUI in the
org.apache.soap.util.net package.
-Richard
At 02:47 PM 1/10/2005, you wrote:
Jim Barrows wrot
I read the documentation for the tag
http://struts.apache.org/userGuide/struts-html.html#file
According to the Struts documentation:
"WARNING: In order to correctly recognize uploaded files, the
ActionForm bean associated with this form must include a
statement setting the corresponding
Hi. We have a tiles-based webapp. Buried down deep in a tile that gets
reused in a few different pages is the need to render a link back to
the current request, with a parameter added. This acts as a switch to
re-render the page a bit differently.
Unfortunately, request.getRequestURL() reflects
Try also JMeter for testing 5 or 10 users
On Mon, 10 Jan 2005 11:59:38 -0800 (PST), Martin Wegner
<[EMAIL PROTECTED]> wrote:
>
> If you are looking to test your Actions and Forms outside of the container
> then StrutsTetstCase is an excellent choice. For integration testing you
> could use some
Ashish Kulkarni wrote:
Hi
How do i display a drop down box from hashtable data
here is my form definiation
in my html i define
method="post" style="margin:0px;" >
// logic to display html:select with html:option tag
Yes, totally possible. Here are some snippets. :-)
This is what you'd hav
At 4:34 PM -0600 1/10/05, Durham David R Jr Contr 805 CSPTS/SCE wrote:
> If you're really daring, check out
http://wiki.apache.org/struts/StrutsChain
http://www.apache.org/~germuska/struts-1.3.0-dev/
This is a bit off topic, but the switch to SVN has made it easier for
users like me (behind a pr
Jim Barrows wrote:
-Original Message-
From: kjc [mailto:[EMAIL PROTECTED]
Is there a way to log the HTTP post string that is sent by
the browser when
clicking on
Why won't right click view source not work?
I think the OP meant what the HTTP Post looks like, not what the
generated HTML l
Hi there,
i am desperate with the nested-Tags.
My Problem: I have a bean A with holding a collection of bean B. Now i
would like to get access, through the collection, to get each bean B.
What do i get? I get each Bean B - instance in the main.jsp. Thats OK!
But i get only the first bean b - in
> -Original Message-
> From: kjc [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 3:25 PM
> To: Struts Users Mailing List
> Subject: How to view the actual HTTP generated by a struts action.
>
>
> Is there a way to log the HTTP post string that is sent by
> the browser when
>
Hi
How do i display a drop down box from hashtable data
here is my form definiation
in my html i define
// logic to display html:select with html:option tag
Ashish
__
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.
> If you're really daring, check out
> http://wiki.apache.org/struts/StrutsChain
> http://www.apache.org/~germuska/struts-1.3.0-dev/
This is a bit off topic, but the switch to SVN has made it easier for
users like me (behind a proxy) to checkout the source.
How would I checkout the StrutsChain co
Is there a way to log the HTTP post string that is sent by the browser when
clicking on
buttonOps is an instance of ImageButton pattern. I'm sure readers of the
group are familiar with it.
Thanks in advance.
-
To unsubscribe, e-
> -Original Message-
> From: Brandon Mercer [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 10, 2005 11:06 AM
> To: user@struts.apache.org
> Subject: General Action Question
>
>
> Hello Group,
> I'm reading an off the shelf book about DynaActionForms and
> I've got a
> question abou
If you are looking to test your Actions and Forms outside of the container
then StrutsTetstCase is an excellent choice. For integration testing you
could use something HttpUnit.
--Marty
--- Ashish Kulkarni <[EMAIL PROTECTED]> wrote:
> Hi
> what is the best way of testing struts action classes
Hi
what is the best way of testing struts action classes,
i need to do functional testing as well as
unit/integration testing.
I also need to create a scenario as if 5 or 10 users
are logged on to the web site
Ashish
=
A$HI$H
__
Do you Yahoo
Hello Group,
I'm reading an off the shelf book about DynaActionForms and I've got a
question about best practice stuff. In this book it says that you need
to create an Action to work with the info you got much the same as the
ActionForm you typically use. In my previous work I've always just s
At 1:54 PM + 1/10/05, Pilgrim, Peter wrote:
Is there any site where one can download Struts 1.3 Daily snapshots?
If you're really daring, check out
http://wiki.apache.org/struts/StrutsChain
http://www.apache.org/~germuska/struts-1.3.0-dev/
This is where I'm hoping to get people looking at some
On Mon, 10 Jan 2005 13:54:42 -, Pilgrim, Peter
<[EMAIL PROTECTED]> wrote:
> Is there any site where one can download Struts 1.3 Daily snapshots?
The usual nightly builds:
http://cvs.apache.org/builds/jakarta-struts/nightly/
are compiled from the trunk of the repository, so they constitute
For documentation, try http://struts.apache.org/userGuide/struts-html.html.
styleId is the attribute that you want to be able to access your image
from JavaScript, I believe.
-- Jeff
John McCosker wrote:
Hi,
this what I am trying to achieve,
I want to name the images so I can get at specifically
I seem to be getting these mixed up,
im using the org.apache.strutsel.taglib.html.ELImgTag bean,
and the property name does exist, I wonder if I should be declaring these in
my properties
file.
-Original Message-
From: John McCosker [mailto:[EMAIL PROTECTED]
Sent: 10 January 2005 14:20
T
Hi,
this what I am trying to achieve,
I want to name the images so I can get at specifically in javascript with
looping through all
document.images, however when I do this I get this error,
javax.servlet.ServletException: Cannot find bean spacerBody1 in any scope
I checked the struts-html-el.tl
On 10/1/05 2:33 pm, "Uma" <[EMAIL PROTECTED]> wrote:
> But since I am not writing any validate() method, how do my validate() get
> fired? And if I have to show error messages to the user, how do I handle
> this?
don't use DynaActionForm. use DynaValidatorForm. if you specify the rules on
validat
Is there any site where one can download Struts 1.3 Daily snapshots?
mtia
--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston,
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497
==
This
But since I am not writing any validate() method, how do my validate() get
fired? And if I have to show error messages to the user, how do I handle
this?
Sorry if my questions are stupid, I am new to struts.
Uma
-Original Message-
From: Pedro Salgado [mailto:[EMAIL PROTECTED]
Sent: Mond
check commons-validator.
declare the commons-validator plugin on your struts-config.xml.
use the validator-rules to specify validation rules (basic copy paste).
use the validation.xml to specify the rules that apply to which fields on
a form.
on your jsp use .
Pedro Salgado
On 10/1/
Look at the DateFormat and SimpleDateFormat classes.
http://java.sun.com/j2se/1.4.2/docs/api/java/text/DateFormat.html
http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html
Larry
On Mon, 10 Jan 2005 11:12:25 -0200, Flávio Maldonado
<[EMAIL PROTECTED]> wrote:
> Hi people...
>
Thanks a million for your response,
yea both beans are the same one for client end and the other for server end
when set,
I was wondering if I could get away with the one (the session bean) and use
it also client
end but this flakes on me,
error,
org.apache.jasper.JasperException: An error occ
Hi,
I posted the same question last week but could not get any reply. Can
someone help me please?
How do I validate if a field is entered or not using the DynaActionForm?
My HTML form has and buttons. I want to check
if the user has entered some text in the text field and that he has
sel
Hi people...
I'm trying to convert String to java.sql.Date and I'm having some problems.
Maybe anybody has a method that do it and can send to us.
Thanks...
Flávio Vilasboas Maldonado
Diretor de Desenvolvimento
SedNet Soluções
+55(35)3471-9381
I posted on wiki:
http://wiki.apache.org/struts/ApplicationSecurity
(any FAQ, maybe people create or edit WIKI)
.V
Hari Saptoadi wrote:
Hi All
i'd like to say sorry if someone already asked this question before...
what is best practice implement security in struts apps ?
i'm looking something that
consider setting your CustomerSessionBean values differently.
CustomerSessionBean sb = new
CustomerSessionBean(scv.getCustomerid(),scv.getCustomerName(),
scv.getCfid(),scv.getCftoken());
session.setAttribute("cookieSession", sb);
request.set
Hi, I am a struts newbie,
I am trying to access a bean in my jsp page like this,
I validate and then set the bean in my action,
package com.neo.five.ereports;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
Koon Yue Lam writes:
> Hi, here is the situation:
> Tomcat 5.25
> MySQL 4.1
> Struts 1.1
>
> when I use Struts form to get some form data submited by a webpage, it
> is encode in latin but not utf-8. I have already set the page encoding
> to UTF-8 in my JSP.
>
> I need to new a String specific
You can check for cancel in actions using
isCanceled(request)
Struts cancel tag uses a magic value that this method will detect
(formbean validation is also skipped)
About exception, I used to set a global exception handler that logs
exception stack and forwards to a generic error page.
Nico.
M
I am going to modify the code of a Tiles-based library and I want to
remove some deprecations (from Struts 1.1 to 1.2.4).
In particular, I want to remove the "DefinitionsUtil" class. In fact it is
only used to refer to the "DefinitionsUtils.userDebugLevel" and
"DefinitionsUtils.NO_DEBUG". What is t
I had posted it before - might hv missed the response. I want to check whether
Cancel button is pressed, if yes then want to redirect it to another page
Also how to handle th Exceptions. I am catching many exceptions inside my
Action Handlers.
what shall i do with them ? Currently just printin
I'm not interested in display tag or one of those.
I'm not sure whether you would categorise the pager taglib as "one of
those" but it is a popular approach to paging in JSPs and it is
reasonably lightweight.
http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html
-Original Message
JAAS would help but that's not Struts specific.
Mohan
-Original Message-
From: Craig McClanahan [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 08, 2005 9:30 AM
To: Struts Users Mailing List; Oleg
Subject: Re: cross application form bean
Sessions are unique to individual application
45 matches
Mail list logo