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
snip
I'm not interested in display tag or one of those.
/snip
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
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
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 the
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.
Koon Yue Lam kisstech 'at' gmail.com 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
Hi, I am a struts newbie,
I am trying to access a bean in my jsp page like this,
c:out value=${clientSession.customerName}/
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;
consider setting your CustomerSessionBean values differently.
snip
CustomerSessionBean sb = new
CustomerSessionBean(scv.getCustomerid(),scv.getCustomerName(),
scv.getCfid(),scv.getCftoken());
session.setAttribute(cookieSession, sb);
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
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
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 html:text/ and html:radio/ buttons. I want to check
if the user has entered some text in the text
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,
c:out
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...
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 html:javascript/.
Pedro
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:
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
==
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
I seem to be getting these mixed up,
im using the org.apache.strutsel.taglib.html.ELImgTag bean, html:img
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
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,
html:img srcKey=image.spacer width=2 height=23
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
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
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
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
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,
-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 about best
Is there a way to log the HTTP post string that is sent by the browser when
clicking on
html:image src=anImage.jpg property=buttonOps.buttonA /
buttonOps is an instance of ImageButton pattern. I'm sure readers of the
group are familiar with it.
Thanks in advance.
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 code
Hi
How do i display a drop down box from hashtable data
here is my form definiation
form-bean dynamic=true name=loginForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=as400list
type=java.util.Hashtable /
/form-bean
in my html i define
html:form action=/login focus=userId
-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
clicking
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 -
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
Ashish Kulkarni wrote:
Hi
How do i display a drop down box from hashtable data
here is my form definiation
form-bean dynamic=true name=loginForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=as400list
type=java.util.Hashtable /
/form-bean
in my html i define
html:form
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 something
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
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
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 -
html:text property=myField
bean:write name=myBean property=myProperty /
/html:text
Best Regards,
Janarthan S
Manisha Sathe [EMAIL PROTECTED] wrote:
I have
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 in
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 then
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
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
40 matches
Mail list logo