perhaps use a servlet filter to do this - you can simply map the filter
to whatever urls you wish to apply rather than remembering to include
some code in each and every jsp/action class etc
e.g. in your doFilter(ServletRequest, ServletResponse, FilterChain)
method:
1. HttpSession session =
Hi,
You can use SessionInactivityFilter from the JavaWebParts project if you
don't want to reinvent the wheel:
Doc:
http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/SessionInactivityFilter.html
JWP Home Page:
http://javawebparts.sourceforge.net/
Good Luck,
Tamas
HI friends,
i have form which need indexed properties technique...(by net surfing i
came to know)
i need a full length tutorial on this topic ,or some code snipats
help me please
ur's
Mallik
--
View this message in context:
Hi
Thanks for reply but I'm still confused
What you mean expected behavior? In link to bugzilla you provided this
is considered as a bug and it says it is fixed in Struts 1.2 family.
I'm using 1.2.9
As I understood this tag should format according to current locale.
All I want that numbers were
Hi,
I have used masking in validation-admin.xml in my project. The problem
is that I want 'Enter' to be allowed to my Text Area on which masking is
done but masking does not allow me to do so. Please help me in this
context.
Thanks
And I was looking more on this question and seems that keypoint of this
that when I use format property DecimalFormat applyPattern(String
pattern) method is called, and when formatKey property is used then
applyLocalizedPattern(String pattern) method is called.
So seems that in resource file
HI friends
i want to do some validations, that why i want to extends from
DynaValidatorForm in my app
this is the error i am getting when compile:
-
CollegeForm.java:12: cannot access org.apache.commons.beanutils.DynaBean
file
check commons-beanutils.jar is present or not
- Original Message -
From: Mallik [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Monday, September 25, 2006 4:08 PM
Subject: extending from DynaValidator problem?
HI friends
i want to do some validations, that why i want to extends
hi Friends
Yes it is there in webroot\WEB-INF\lib
let me know the problem ...
ur's
Mallik
Venkata Phani Kumar wrote:
check commons-beanutils.jar is present or not
- Original Message -
From: Mallik [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Monday, September 25, 2006
Hey,
I am writing a custom tag and I need to rewrite a link to an image from with
the tag-code (by overiding the doStartTag method);
I know that in a jsp-page you can do this with html:rewrite .. but how to
do this from within java-code ?
Any hints would be welcome.
Jan
--
View this message
At the moment WebWork and Struts2 are *mostly* the same. The difference
being that webwork is deemed production ready and s2 is just a little
ways away.
/Ian
Li wrote:
Hi,
WW is doing integration work with Struts. WW has more features, their
intercepters are powerful.
For starting new
In struts config have a Dynavalidator form-bean
form-bean name=Form1 type= DynaValidatorForm
form-property name=typeName type=java.lang.String/
..
/form-bean
have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp
in the config which are session scoped.
action
Thanks for all your replies.
My application is a struts application. I tried to use
SessionInactivityFilter, i am getting compilation errors.
I just have to include the following in my xml file or I need to do
something else also:
filter
filter-nameSessionInactivityFilter/filter-name
Hi all,
In the jsp page ProjectsFound.jsp I obtain the list of all projects in a
DB and I have two bottoms (edit and add groups).
If I click on Add Groups, I want to show in the new page (addGroups.jsp) the
name of the project and a list of all groups
in order to select all which I want to
Hello Jan-
I found this page to be quite helpful when manipulating image attributes
http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/index.html#image
Here is the javadoc for the doStartTag
http://jakarta.apache.org/taglibs/sandbox/doc/image-doc/javadoc/index.html
M-
Yes, you probably just added the filter at the end of the web.xml, after the
error-page element that you already had in there.
You have to declare the elements in the order defined by the DTD.
For 2.3 this is:
!ELEMENT web-app (icon?, display-name?, description?, distributable?,
context-param*,
Martin,
I found the solution myself; here is the code: this gives me an url which is
valid in the context of my application.
Thanks for your response,
Jan
import org.apache.struts.taglib.TagUtils;
...
TagUtils utils = TagUtils.getInstance();
String img = null;
try {
Thanks Tamas. That seems to get rid of the errors but it doesn't work. When
the session expires, it doesn't take me to any page, I tried forwarding to
struts actions and .jsp files, it doesn;t work for both. Any idea?
filter
filter-nameSessionInactivityFilter/filter-name
Moving from Struts 1 to Struts 2 is non-trivial, but it is less work
than moving from Struts 1 to any other platform I could name. Both
codebases share the same architectural hallmarks. An application does
not need to be rethought. It most cases, an application needs to be
streamlined by removing
Hi Tamas
I am getting this error. do I need to inculde class SessionInactivityFilter
or implement this class. I didn't understand how it is going to work.
Servlet error: Error loading filter 'SessionInactivityFilter', filter-class
'javawebparts.filter.SessionInactivityFilter' not found
This is
Hi,
This is perhaps kind of a dumb question but, I need to know what
version of struts are running one app because I made the app with
netbeans 5 so I didnt download the jars.
Regards.
--
Ing. Joel Alejandro Espinosa Carra
Centro de Tecnología de Semiconductores
CINVESTAV Unidad Guadalajara
Check the struts.jar and read META-INF/MANIFEST.MF. It will have
information like this (from a 1.2.9 jar):
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.3.1_04-b02 (Sun Microsystems Inc.)
Extension-Name: Struts Framework
Specification-Title: Struts Framework
Hello,
Could someone please tell me the diffrence between lt;putListgt;
lt;itemgt; and an lt;addgt; Element?
Thank you,
Andrew J. Leer
--
View this message in context:
http://www.nabble.com/Diffrence-between-putList-item-and-an-add-Element--tf2333765.html#a6493357
Sent from the Struts -
Hi all,
How I can kill son objects and variables in session, without kill everything
in session like with session.invalidate().
I want that some objects always be in session and when I press a menu option
all other variables or object that are in session be erase.
i can´t use
Hi
I need to validate an html:select with validator framework
This is the code that i have
html:select property=categoria styleClass=editGrande
html:option value=null---/html:option
html:options collection=categoriasDescarte property=id labelProperty=
nombre/html:options
/html:select
I
son = some :P
2006/9/25, Daniel Chacón Sánchez [EMAIL PROTECTED]:
Hi all,
How I can kill son objects and variables in session, without kill
everything in session like with session.invalidate().
I want that some objects always be in session and when I press a menu
option all other variables
You can use this code:
Enumeration enumeration = session.getAttributeNames();
while (enumeration.hasMoreElements()) {
String element = (String) enumeration.nextElement();
session.removeAttribute(element);
}
If yo don't have delete any element, you can do this:
Enumeration
thaanks!
I will use it
2006/9/25, Heidy Gutiérrez Guzmán [EMAIL PROTECTED]:
You can use this code:
Enumeration enumeration = session.getAttributeNames();
while (enumeration.hasMoreElements()) {
String element = (String) enumeration.nextElement();
According to your code, the default value is the String null, not ---.
You might want to try setting that to an empty value, e.g.
html:option value=---/html:option
(*Chris*)
On 9/25/06, Heidy Gutiérrez Guzmán [EMAIL PROTECTED] wrote:
Hi
I need to validate an html:select with validator
Hi
I try html:option value=---/html:option. and that also does't work
If you have any more idea, i would be grateful
On 9/25/06, Chris Pratt [EMAIL PROTECTED] wrote:
According to your code, the default value is the String null, not ---.
You might want to try setting that to an empty value,
Daniel Chacón Sánchez wrote:
son = some :P
2006/9/25, Daniel Chacón Sánchez [EMAIL PROTECTED]:
Hi all,
How I can kill son objects and variables in session, without kill
everything in session like with session.invalidate().
I want that some objects always be in session and when I press a
What do you suggest me to use for keep that preserve names? A file, an
arrayList, or what? An example code of the use of that with the code that
Heidy gived??
2006/9/25, Jason King [EMAIL PROTECTED]:
Daniel Chacón Sánchez wrote:
son = some :P
2006/9/25, Daniel Chacón Sánchez [EMAIL
Hello Daniel,
The preserve list could be upto your implementation. It could be a
Delimited String which you read from a property file and you can store it
in a ArrayList.
Loop the arrayList, get the entires, and compare it with the Session
Attributes
session.getAttributeName ().
If they
Yeap :-) I think the better is a properties file
2006/9/25, [EMAIL PROTECTED] [EMAIL PROTECTED]:
Hello Daniel,
The preserve list could be upto your implementation. It could be a
Delimited String which you read from a property file and you can store it
in a ArrayList.
Loop the arrayList, get
Hi,
Sorry, I had to sleep in the meantime ;-).
Yes, of course you will need to have the SessionInactivityFilter and it's
dependencies in your webapp.
The easiest is probably to just include the jar containing it. To do that
get the binary distribution of JWP:
Thank you.
Regards.
--
Ing. Joel Alejandro Espinosa Carra
Centro de Tecnología de Semiconductores
CINVESTAV Unidad Guadalajara
Tel. +52 (33) 3770-3700 ext. 1049
http://www.gdl.cinvestav.mx
--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se
You said your form property was of type 'Long'. By default, a null input
value will be turned into 0, so the required validator rule will think
the property has a value.
You should generally use String-typed form bean properties, but if you
need to keep it as Long, you'll want to configure
On 9/25/06, Laurie Harper [EMAIL PROTECTED] wrote:
You said your form property was of type 'Long'. By default, a null input
value will be turned into 0, so the required validator rule will think
the property has a value.
Good catch, Laurie! I completely missed the type... probably didn't
I'm still not sure why my decorator JSP has scriptlet values not
evaluated when decorating a HTML file. I think it is the same reason
the s:url doesn't render the context path too though.
I'm not exactly sure how it can evaluate the decorator:applyDecorator
but then the scriptlet doesn't know
Hi
I tried with the solution of Laurie, and that work's.
Now the problem is that i have two kinds of html:select
The first html:select, load an Collection of Value Objects
This is the code:
html:select property=categoria
html:option value=---/html:option
html:options
You might even have the problem that you have a session scoped form bean
(possible with many nested beans inside) and you want to kill all nested beans
except a few ones.
In this case the following steps might help.
1.) Instantiate a new instance of your form bean.
2.) Copy all properties,
41 matches
Mail list logo