So I have a typical struts app, where everything ends in "*.do", e.g.:
http://www.citycarshare.org/howitworks.do
And I wanted to add a URL like:
http://www.citycarshare.org/ucsf
So I did:
action
*.do
action
ucsf
And all was good. The ap
mas ha scritto:
Hello,
Could someone please tell me the diffrence between
- and an Element?
I suppose you are writing about Tiles.
There is no "difference" because you use to declare the value
of an attribute as a "list", the element is use to specify an
elemen
Hi,
if you wanna use your own sort algorithm, you can make it as helper class
and it will be used in your DAO impl class
example:
public class SortEngine {
public static List sortById(List list) { ... }
}
public class MyDAOImpl extends MyDAO {
...
public List getSortedData(String attr) t
Hai u said using direct ssql
Where i give this sql query,
I have one method to sort
I have to use inside this method or?
- Original Message -
From: "Li" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, September 26, 2006 11:46 AM
Subject: Re: sort the list
It 's bet
It 's better if you can store sorted one in different list. And it is better
you retrieve sorted data from your persistent layer or dao
* you can use direct sql query
* or use object mapping like hibernate
Good luck
On 9/26/06, Gomathi <[EMAIL PROTECTED]> wrote:
Hai,
I have one arrali
Hai,
I have one arralist,I have to sort that list by using the lastname and the
sorted list store in samelist.
How to solve this
Thanks and advance
gomathi
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, neste
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:
---
The field in the ValidatorForm is: private String categoria
With this type of html:select i
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 any
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
re
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 Bea
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
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:
http://prdownloads.sourceforge.net/
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
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 matc
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
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 me
Hi
I try ---. 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, e.g.
---
(*Chris*)
On 9/
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.
---
(*Chris*)
On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote:
Hi
I need to validate an html:select with validator framework
This is the code tha
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();
session
On 9/25/06, Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote:
I need to validate an html:select with validator framework
---
I tried to use the required validation, but that does'nt work, i think
because the html:select have the "---" default value
More likely it's because you have value="
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 enume
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
Hi
I need to validate an html:select with validator framework
This is the code that i have
---
I need have a default value that is " ---" , but i need validate that this
value does'nt selected.
The code in the Validator form is
private Long categoria;
I tried to use the required valid
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 removeAttribute(..
Hello,
Could someone please tell me the diffrence between
- and an 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 - User mailing l
I am having a problem with the "struts configuration file validator" in
Websphere Studio Application Developer.
I currently have the validator turned on:
Windows> Preferences> Validation> Struts configuration file validator
For some/most of my tiles paths, the validator complains that:
Target
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
Specification-Vend
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
T
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
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 removin
Did you also map the filter to /* with a filter-mapping?
Just after the filter element you declared you should have:
SessionInactivityFilter< /filter-name>
/*
This is the first think I can think of.
If you think that you got that right it would be good if I could see your
whole web.xml fil
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?
SessionInactivityFilter
javawebparts.filter.SessionInactivityFilter
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 {
Yes, you probably just added the filter at the end of the web.xml, after the
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:
So try to have the declaration of the filter and filter-mapping just before
the listener eleme
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-
***
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 li
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:
SessionInactivityFilter
javawebparts.filter.SessionInactivit
In struts config have a Dynavalidator form-bean
..
have prepare(Action) and dispath(LookupDispatchAction) actions for the jsp
in the config which are session scoped.
In the jsp have a submit button which dispatches to the dispatch action to
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 p
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
hi Friends
Yes it is there in \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:
> Sent: Monday, September 25, 2006 4:08 PM
> Subject:
check commons-beanutils.jar is present or not
- Original Message -
From: "Mallik" <[EMAIL PROTECTED]>
To:
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 from
> DynaValida
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 org\apach
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 fi
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
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 wer
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:
http://www.nabble.com/Indexed-Properties-in-validation-Framework-h
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
http://jav
49 matches
Mail list logo