Hi pls find the best in the industry book.
If u dont mind pls let me know the architecture you are following.Generally we
call EJBs after Action using either Delegate or Facade pattern.If u are using
servicelocator u can straight away call ejb from Action
-Original Message-
From: Abhima
hi all!
does anybody here have some good ejb books. i need to use ejb in struts but
don't know how. please help
Regards,
Abhimanyu Koul
FinEng Solutions (P) Ltd.
Mobile : +91 9819510090
Hi,
I tried using your code but its not working. Can you please tell me what
do I need to write in validation.xml.
I am writing this:
Truong Xuan Tinh wrote:
Hi there, here is my implementation on the client side, it's validate
time against the pa
Hi All,
I want to specify a config folder in my classpath which will not be part of
my war file. Can you please suggest how can I do that? I want to place my
config files outside the war file for anyone to modify it.
regards,
Pankaj
Hi i am trying to use a multi select box in logic iterate
in this way
in the form bean i have following code.
private Map selectedBooks;
public Object getBookMapped(String index) {
return selectedBooks.get(key);
}
public void setBookMapped(String index,Obj
Thinking about it more, I think I will make a global ant task property of
whether to convert paths to absolute if they don't start with a "/" and add an
XML attribute to override that property on a URL by URL basis if wanted. That
will be a much more general solution and not so tiles specific.
Hi All
I formally announce more videos relevant to Java Web enterprise technologists.
Prashanth. S talks about WebSphere Security JAVAWUG BOF 17
http://video.google.com/videoplay?docid=-5567550256102152170
Mike Burton's Introduction to JSF
http
You can tell the runtime which SaxParserFactory implementation to use in
a number of ways, such as setting the
|javax.xml.parsers.SAXParserFactory system property.|
The xmlparsev2.jar probably contains a
|META-INF/services/javax.xml.parsers.SAXParserFactory file.|
See the method detail for t
Thanks Duane.
I did some more research and found out that oracle "xmlparsev2.jar" is
causing the issue. In the application ear directory with in WEB-INF/lib
we have two directories apache and oracle. The "xmlparserv2.jar" located
under oracle directory is trying to parse struts-config.xml and fail
Good point. We tend to wrap our tiles usage into the JSPs using
tags.
You forward to tiles using path="tile.definition.name" without the
beginning "/", correct?
I think I'll add an additional attribute of "tile" that can be used in
place of "path" that would not do the absolute path resolutio
Hoople is similar in that only ant knows. Both XDoclet and Hoople store
the mappings outside the struts-config.xml and merges them all in during
the build with ant.
The difference is in where the mappings are stored. With XDoclet they
are stored as attributes on the Action classes, with Hoople t
Rosh,
1. Were any errors produced? You never check. Perhaps:
(errors != null) && errors.size() > 0
2. Do you save the errors with a method such as saveMessages() /
saveErrors() ? How are you going to get them to your html:form so you can
show them to the client with html:errors, html:
On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:
Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.
...
--Struts config part--
You need to set validate="false" in the actio
Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.
I am pasting part of my code for you to take a look and let me know where I
am going wrong. Thanks again!
--Struts config part--
Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.
I am pasting part of my code for you to take a look and let me know where I
am going wrong. Thanks again!
--Struts config part--
I'll +1 that with one reminder for Rosh:
You mentioned using the Validation Framework so don't forget to have your
ActionForm extend either ValidateActionForm or ValidatorForm. Since I
didn't see any notes about that in Wendy's below link, and I've made this
mistake in the past, I thought I would
On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:
If I call validate method manually, can I still use validator framework and
use the input attribute in the config file to display the errors?
I need to validate only if form is submitted by clicking on a button.
If, yes can you show me with an exampl
Nathan Voxland announced:
> Hoople has worked well for us by allowing us to configure the
> action mappings in separate XML config files that are stored
> where the URL would be on the filesystem if Struts wasn't
> there. There are also several other features that make
> working with the actio
Thanks David for your reply.
If I call validate method manually, can I still use validator framework and
use the input attribute in the config file to display the errors?
I need to validate only if form is submitted by clicking on a button.
If, yes can you show me with an example how to call val
managing the action mappings in the struts-config.xml file
can be a big headache, especially with multiple developers.
And how! That's why I use XDoclet. Only Ant knows.
On 6/27/06, Nathan Voxland <[EMAIL PROTECTED]> wrote:
The Hoople team just released the 1.0 version of Hoople. We've b
Hi All
Announcement message from the JAVAWUG
I am pleased to announce that Patrick Lightbody's presentation
for BayCHI Silicon Valley Bay Area JUG is NOW available from GoogleVideo.
http://video.google.com/videoplay?docid=6908607645517853283
Thanks to Mike Van-Riper, and also to Dav
The Hoople team just released the 1.0 version of Hoople. We've been
using Struts for a number of years and have found that managing the
action mappings in the struts-config.xml file can be a big headache,
especially with multiple developers.
Hoople has worked well for us by allowing us to co
You might also consider the StringContentValid tag in the JSTags taglib
from Java Web Parts:
http://javawebparts.sourceforge.net
Specifically:
http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/jstags/StringContentValidTag.html
I *think* you can do:
Replace 'abc123' with only t
Thanks,
the error was the name. i changed to portal.index where was
/jsp/frameset.jsp.
Monkeyden wrote:
Your forward's path needs to point to the tile-def name
(portal.index), not
the JSP page that defines the tile-def (/jsp/frameset.jsp). Also, be
sure
you are using either the tiles plug
You could also check to see if the keycode is in a range. See the table
below. With a quick search, I found a javascript that will check it. codes
48-57 are numbers 0-9, codes 65-90 are upper letters A-B, codes 97-122 are
lower letters a-z.
ASCII table
http://www.newebgroup.com/rod/newillusion
Your forward's path needs to point to the tile-def name (portal.index), not
the JSP page that defines the tile-def (/jsp/frameset.jsp). Also, be sure
you are using either the tiles plugin or the TilesRequestProcessor.
OR
On 6/27/06, Alex Rodrigues da Silva <[EMAIL PROTECTED]> wrot
Adding the Commons Collections jar
(http://jakarta.apache.org/commons/collections/) to your war file isn't
working for you?
> -Original Message-
> From: Picha, Gayatri [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 27, 2006 1:09 PM
> To: Struts Users Mailing List
> Subject: RE: upgrading
Just download whatever version of Collections or Lang you want to use
and distribute the jars with your application:
http://jakarta.apache.org/site/downloads/downloads_commons-lang.cgi
http://jakarta.apache.org/site/downloads/downloads_commons-collections.cgi
Niall
On 6/27/06, Picha, Gayatri <[
Thanks for the quick reply I looked on that and updated the struts.jar
and all the commons.jar files but my code is looking for iterators which
is part of
Commons Collections jar and in struts version 1.2.9 it no longer has a
dependency on Commons Collections. Since my current version is 1.2.6 I
w
Jen-
check out
http://www.informit.com/articles/article.asp?p=23734&seqNum=5&rl=1
HTH,
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email
Your table's checkboxes, rows and columns are selected in runtime on
client, while JSP tag is processed on server.
You can do what is called "partial submit", that is to submit a form
each time you click on checkbox. This way your application will know
current selection and will be able to stick
there is a wiki page:
http://wiki.apache.org/struts/StrutsUpgrade
Picha, Gayatri wrote:
Hi,
I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are the
steps that needs to be done in order to do this.
Thanks in advance,
-Gayatri.
--
Mark Shifman MD. Ph.D.
Yale Center for Me
Hi,
I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are the
steps that needs to be done in order to do this.
Thanks in advance,
-Gayatri.
I was thinking to use the attributes: paramId,
paramName, paramProperty in my tag. But I do not know how to
pass more than one set of them.
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> I can think of those:
>
> 1) Use Javascript in link's "onclick" event to
> collect form data.
> 2) Use
See here for example: http://www.irt.org/script/155.htm
On 6/27/06, José María Tristán <[EMAIL PROTECTED]> wrote:
Hello:
I use validation of side of client. i have a function on javascript
that is
launch when the user submit the form. This function can to call the
validation functions o
Hi,
I´m trying to use tiles with struts.
in my tiles-defs.xml i have
in my struts-config i have
path="/logonAction" scope="request"
type="br.com.stasolutions.login.WSFLogonAction"
validate="true">
in my
I can think of those:
1) Use Javascript in link's "onclick" event to collect form data.
2) Use regular submit button, use CSS to display it as a link.
On 6/27/06, Caroline Jen <[EMAIL PROTECTED]> wrote:
I am working on a JSP written in JSTL and html-el
tags. The JSP is displayed fine.
This JS
I am working on a JSP written in JSTL and html-el
tags. The JSP is displayed fine.
This JSP has a table. Each row of the table has a
checkbox. Clients may select any number of the
checkboxes and click on a link to invoke a Struts
action.
I would like to pass the checkbox and every column of
ea
Jasper,
Thank you for your response. I'm not sure you understand my issue, though.
Either that, or I didn't understand your response, which is quite likely, as
I'm no old pro at this validation stuff.
The form has working validation on all the fields that require validation,
using the validati
Wendy Smoak said:
>
> On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote:
>
> > You can make the Action Servlet servlet-mapping anything you want.
> > Rather than use /MyAction.do, I have used /do/MyAction for
> years. In
> > fact, I usually have two servlet-mapping patterns for the Action
You can use the "page" attribute on the validations, with the "page"
attribute. Look at
http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html
under "Multi page forms" for an extremely brief overview.
Basically, create a java.lang.Integer variable in your form called
"page" and b
Hi i am trying to use a multi select box in logic iterate
in this way
in the form bean i have following code.
private Map selectedBooks;
public Object getBookMapped(String index) {
return selectedBooks.get(key);
}
public void setBookMapped(Stri
Fredrik Andersson ha scritto:
Could you point me to a usage example? =)
The Javadoc says:
Implementation of *Action* that changes the user's |Locale| and forwards
to a page, based on request level parameters that are set (language,
country, & page).
So fill your request parameters wit
Could you point me to a usage example? =)
Den 6/27/2006, skrev "Antonio Petrelli" <[EMAIL PROTECTED]>:
>Fredrik Andersson ha scritto:
>> Hi all
>>
>> I have manage to get the i18n internalization to work using the
>> properties files. now I would want to be able to change the language
>> through
need help with this please.
From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: user@struts.apache.org
Subject: javascript help
Date: Mon, 26 Jun 2006 15:20:26 -0400
function setMethodNameCopy() {
var copylbl = '';
var mtd=document.getElementById("mtdID");
mtd.valu
Could I get an example on how it is used? I don't get it ^^
Den 6/27/2006, skrev "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>:
>Hi
>
>This is the one that I am using, and it works great.
>
>Hermod
>
>-Original Message-
>From: C. Grobmeier [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 27, 2006
Yes I too think the problem comes from thetiles.xml file.
Basically I have a tile (menu) that points to an action class '\audit.do'
Now I did configure this action class in my struts.xml file. So much that
from one page it loads my page correctly, and from another page it does not
(and throws th
On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote:
You can make the Action Servlet servlet-mapping anything you want. Rather than use /MyAction.do, I
have used /do/MyAction for years. In fact, I usually have two servlet-mapping patterns for the
Action servlet: "/do/*" and "logout".
Ther
If you want to allow only characters and digits, you need not know keycodes
of all the special characters. Just compare the characters' and digits'
ASCII values with the character entered on OnKeyUp event. If it's a special
character, just drop it.
You can also use java.util.regex.Pattern and java
Hi
This is the one that I am using, and it works great.
Hermod
-Original Message-
From: C. Grobmeier [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 1:23 PM
To: Struts Users Mailing List
Subject: Re: Setting Language through the browser?
* * * * * * * * * * * * * * * * * * * *
You can make the Action Servlet servlet-mapping anything you want. Rather than
use /MyAction.do, I have used /do/MyAction for years. In fact, I usually have
two servlet-mapping patterns for the Action servlet: "/do/*" and "logout".
Notice the logout has no "do" at all. That allows me to put a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> Struts Extras already provides a "setLocale" action:
> http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html
hu great.
thanks for the tip. this action forwards to the originating page. i will
improv
Fredrik Andersson ha scritto:
Hi all
I have manage to get the i18n internalization to work using the
properties files. now I would want to be able to change the language
through the browser (by clicking on a flag). How can I do this?
Tips and pointers is appreciated =)
Struts Extras alread
A great :)
Will run and test that =) thanks a bunch :)
Den 6/27/2006, skrev "C. Grobmeier" <[EMAIL PROTECTED]>:
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>> That is kinda what I would like to do. I want to have 3 images on the
>> page and when you click on one of them the language change
Hi
You call the Action (as shown below).
If you want to see it in action, look at www.os-seilforening.org
Hermod
-Original Message-
From: Fredrik Andersson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 1:07 PM
To: Struts Users Mailing List
Subject: Re: Setting Language through
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
> That is kinda what I would like to do. I want to have 3 images on the
> page and when you click on one of them the language changes to the
> language coresponding to the image (in other words 3 flag images).
>
> How could I do that in an easy way on
ok, nice =)
That is kinda what I would like to do. I want to have 3 images on the
page and when you click on one of them the language changes to the
language coresponding to the image (in other words 3 flag images).
How could I do that in an easy way on a page? Do I have to make a class
or can I
Hello:
I use validation of side of client. i have a function on javascript
that is
launch when the user submit the form. This function can to call the
validation functions or no. I put bCancel = true but when function
validateSeguimientoComercialForm(form) is call the submit is launch.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Fredrik Andersson wrote:
> Hi all
>
> I have manage to get the i18n internalization to work using the
> properties files. now I would want to be able to change the language
> through the browser (by clicking on a flag). How can I do this?
>
> Tips an
I think you will need to develop a browser plug-in for this.
-Original Message-
From: Fredrik Andersson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 4:13 PM
To: Struts Users Mailing List
Subject: Setting Language through the browser?
Hi all
I have manage to get the i18n inter
I manage to get it working, thanks :)
Den 6/27/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:
>Ok, so after deployment tomcat will look for the files inside my class
>dir?
>
>It have tried it that way and still get Null returned from the
>bean:message tag. i18n now resides under my class di
Hi all
I have manage to get the i18n internalization to work using the
properties files. now I would want to be able to change the language
through the browser (by clicking on a flag). How can I do this?
Tips and pointers is appreciated =)
Steven Mitchell ha scritto:
action
/do/*
What? Isn't *.do ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I hava a javascript problem. I need to restrict anyone entering special
characters into a textbox which is there in my html. I know that i can use
onKeyPress event to handle this, but for this i need to know the keycodes.
Please anyone tel me if there is any other way to handle this
Ok, so after deployment tomcat will look for the files inside my class
dir?
It have tried it that way and still get Null returned from the
bean:message tag. i18n now resides under my class dir and I have set the
parameter accordingly.
Anything more I can do to solve this?
Den 6/27/2006, skrev "E
Hi again
I put everything under WEB-INF/i18n and updated my xml files accordingly.
now all I get when I look at the page is "???en_US.app.name???"
Why is that?
Den 6/27/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:
>Hi
>
>Yeah they files all contain the app.name=(Language name for testing
Hi again!
When I said that ApplicationResources.properties file is usually located in
source part, I meant that you should put it where you've put the other .java
and their packages. You can use another package, separated from the other
.java files, called for example "i18n".
You can define the
Hi again
I put everything under WEB-INF/i18n and updated my xml files accordingly.
now all I get when I look at the page is "???en_US.app.name???"
Why is that?
Den 6/27/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:
>Hi
>
>Yeah they files all contain the app.name=(Language name for testing
Good morning,
Ok :-) Many thanks for your help, that was very nice from you, I appreciate it..
Regards,
Halgurt
-Ursprüngliche Nachricht-
Von: The Jasper [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 27. Juni 2006 09:42
An: Struts Users Mailing List
Betreff: Re: Date Validation on the Cl
HI,
Client side validation is usefull as you say (allthough you should
still always validate serverside as well). Unfortunately not all
things are given to us, so somethings we have to write for ourselves.
I think for most purposes date without time are sufficient, so that's
why it was done that
Hi
Yeah they files all contain the app.name=(Language name for testing)
ApplicationResources.properties
ApplicationResources_sv.properties
ApplicationResources_no.properties
So you are saying that I should make a folder and put it under WEB-INF/
and place the files there? Or how do you mean by pa
HI,
You can write your own validate function or you can use the validation
framework. In any case no validation is performed on any field unless
you specify it. see
http://struts.apache.org/struts-action/faqs/validator.html for further
details.
mvg,
Jasper
On 6/26/06, Jennifer Jacobs <[EMAIL PR
which statistics do you mean exactly? CountStatistics? TimeStatistics?
leon
On 6/27/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote:
Hi All,
Is there any way to provide the statistics features provided by the
javax.management.j2ee.statistics package in struts?
regards,
Pankaj
--
Hi!
The ApplicationResources.properties file is usually inside source part, and
not in Web Content part. For example, you can create a package called "i18n"
and then you can save the ApplicationResources.properties file there. Then,
you have to set this in struts-config.xml:
Another question,
Hi,
Ok, that means client side date validation is still not perfect. The point is,
in a big application it is very usefull to have client side validation, even to
unburden the server and have a better performance. Are you interessted in
having such a validation on the clients side.
Best regard
Hi all
I'm quite new to struts and is trying to implement an Language
internalization on some jsp pages.
I have my ApplicationResources.properties files inside my WEB-INF folder
and in all my struts-config files I have added the
tag.
The web.xml was extended with the following.
/WEB-I
Hi All,
Is there any way to provide the statistics features provided by the
javax.management.j2ee.statistics package in struts?
regards,
Pankaj
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [E
Hi Kumar,
u go through this url definatly it vil help u
http://www.learntechnology.net/
On 6/27/06, Kumar deepak <[EMAIL PROTECTED]> wrote:
hi,
Try http://www.roseindia.net/struts
Regards
hicham <[EMAIL PROTECTED]> wrote:
hello
I'm a newbie to struts framework
if anybody knows
78 matches
Mail list logo