Hi Navjot!
I would suggest IntelliJ IDEA for Java development.
While IDEA does have support for EJB development, I prefer using plain Java
Classes with XDoclet tags.
IDEA gives you a high degree of flexibility, great environment and fantastic
re-factoring support.
IDEA increases developer
I would like to do the following:
JSP: bean-el:message key=format.number.2
arg0=${transSelectForm.priFLC} //td
Resources: format.number.2=Convert {0,number,#0.00}
This fails with the follwing error:
java.lang.IllegalArgumentException: Cannot format given Object as a
Number
I believe this
In the code below what would be my ActionForm class,
and what all attributes will it have and of which type,
do we need a City class too..
I am gettin an error HTML BEAN tag not found... so i
guess some prroblem with the jsp/form
layout:select key=Country property=country
Instead of having the tags just write the HTML, also include a
script type=text/javascript
// in here put your iterate tags whether they be JSTL or struts
// then just use the standard javascript event handler to modify the pages.
/script
add onchange attributes to the form elements to
Does the DynaValidatorForm handle java.util.Date?
If it does, how does it handle I18N for input?
Thanks,
Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi. I'm developing an application with Struts 1.1, Tomcat 5 and Eclipse. I
explain my problem:
This situation is: I have 1 jsp (jsp1) that shows information in a grid.
From this grid I can go to the jsp2, where I can see the details of 1 row of
the previous grid. From jsp2 I can
hey all,
Preventing users from accesing action. I am writing a web app to manage
administrators and profiles.
Administrators may access to the web app based on the profiles they have.
The profiles, determine which pages the administrator might access. The
profiles, and authorizations, might change
We used a filter for the same purpose...works like a charm
I presume the configuration is pretty simple.configure it in the
web.xml using the filter tags and make sure the filter class is present
in your web app
-Original Message-
From: Shilpa Vaidya [mailto:[EMAIL PROTECTED]
usage in validation.xml:
field property=fooDate depends=required,date
arg0 key=fooForm.fooDate/
var
var-namedatePattern/var-name
var-valueMM/dd//var-value !-- or a locale ... ;-)
--
/var
/field
API of Validator-Framework said
hi, after a post i got mail from:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
that the messages is undeliverable
anyone able, to delete them from list?
--
Matthias Weßendorf
Aechterhoek 18
D-48282 Emsdetten
Email: matthias AT wessendorf DOT net
URL: http://www.wessendorf.net
Folks,
I cant seem to fix this. I have 2 properties files:
WEB-INF\classes\com\expensys\expensyswt\resources\ApplicationResources.prope
rties
WEB-INF\classes\com\expensys\expensyswt\resources\jdbc.properties
My struts-config.xml snippet is:
message-resources key=ApplicationResources
Hi Shilpa
I'm not sure you really need to use Filters for this purpose with Struts.
I think if you make sure you never access pages directly (maybe putting them
under WEB-INF... I've never done this but I know it's possible) but always
thru actions, then it shouldn't be difficult to implement a
Navjot,
Eclipse + MyEclipse is a great setup and I can highly recommend it. If
you're looking for an alternative to EasyStruts, you may want to look into
Struts Console. Struts Console plugs nicely into Eclipse 3.0 and provides
support for Struts, Tiles and Validator configuration files as well
Hi John,
It is possible but i am not sure it is working or not
before inset into the database we will use Single quate( ' ' ) to store the data,
after u can access '' symble from the database..
bye
Srinivas
John Antonakos [EMAIL PROTECTED] wrote:
We have some drop down boxes in our jsp's
Hi,
Create a generic Action class and for all another Action class created,
extends the generic Action.
Inside generic Action do anything, including authorizations user, log, etc.
The generic Action class has the execute(...) method and the last method
executed is an another execute() ex.:
Shilpa,
We are doing just that. A filter comes
into effect before the control goes to the servlet. So if you can stop
the user at the filter level you are actually saving some processing. We
are checking for the presence of session in the filter.
Brati Sankar Ghosh
Tata Consultancy Services
hi,
When working with struts-tiles i have been encountered
with the problem as below.
please, suggest me how to rectify the problem.
javax.servlet.ServletException: Can't get definitions
factory from context.
I have to be honest and say I've never used a filter except for one
situation to do security on the input side, a very basic application. How
would you envision it being used for the output?
From: Marco Mistroni [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To:
I donot know whether I have understood
this properly but are you trying to mask your actual action mapping?
If so you can define a dummy action
to which your form points. In the dummy just forward to your actual action.
In the rendered jsp/html page you will see the dummy action.
Brati Sankar
Can we have this user removed from the
list. All the mail sent to the group fails to go to the user.
Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
- Forwarded by Brati
Sankarghosh/KOL/TCS on 06/03/2004 06:11 PM -
Delivery Failure
Thanks brati,
r u writing a servlet filter .
how did u approach it.
can u show me a starting point.
shilpa
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 5:59 PM
To: Struts Users Mailing List
Cc: 'Struts Users Mailing List'
A filter will only work with servlet
containers implementing servlet specifications 2.3.
We have a general filter which is extended
by other filters doing various actions like xml processing,session validations
and security logic.
Here is the generic filter code.
import javax.servlet.Filter;
hey amit,
the url is -
http://prdownloads.sourceforge.net/securityfilter/securityfilter-1.0.1.z
We really need sound help. I have less time.Also in the book struts in
action they mention filtering.
How wud i start making my own servlet filter.expersts pls advice.
Regd.
shilpa
ip?download
+1
On 3 Jun 2004, at 14:30, Frank Zammetti wrote:
I'm going to pull a Bill Gates here...
UltraEdit and a command prompt should be enough for anybody!
Seriously though... I know many people swear by this IDE or that IDE,
but I've done a large number of projects ranging from small ones to
huge
Not at all-
I have worked in so many shops where something minor would popup like jsp
wouldnt compile and the developer hadnt a clue
what was going on
Quite frankly (no pun intended) the developer should have vi and a shell
if the application does not build and deploy properly in the shell
then
Hi,
Well, main issue here is that if you want everything to be
transparent
To the user (including the forward) then whole stuff has to be done so
that
Something 'intercepts' the response when XML is contained in it (if I
can explain myself correctly)
In other way, to do same steps that
Have you tried to use amp for ? just a thought.
Kathy
-Original Message-
From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 8:07 AM
To: Struts Users Mailing List
Subject: Re: How can i avoid the use of in a drop down box ?
Hi John,
It is possible
Have you tried to use amp for ? just a thought.
Kathy
-Original Message-
From: Srinivas Rao [SMTP:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 8:07 AM
To: Struts Users Mailing List
Subject:Re: How can i avoid the use of in a drop down box ?
Hi John,
It is possible
Could I plug Struts Console into MyEclipse? Thanks.
Kathy
-Original Message-
From: James Holmes [SMTP:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 7:04 AM
To: 'Struts Users Mailing List'
Subject:RE: [OT] Good env for struts-based-web-tier and ejb components
I am re-writing the question cause the stupid Outlook formatted my text
and made it without any meaning to it.
-
We have some drop down boxes in our jsp's which take
data straight from the DB. Some of those data contain
the
Ah, I see. I'm not familiar enough with filters, but I had always thought
they were on the input side only. If that belief is wrong, then it
certainly becomes an option.
I think at some point to make this really worth anything I'll have to break
my transparency rule to some extent. I do
Yes, Struts Console will plug into MyEclipse as well as IBM WebSphere Studio
Application Developer.
-James
http://www.jamesholmes.com/struts/
-Original Message-
From: Kathy Zhou [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 8:36 AM
To: 'Struts Users Mailing List'
Subject: RE:
Also, I realized on the drive in that there's no need to put the parameters
as a query string as I'm doing... I can just put the parsed parameters
directly into the request object as an attribute. Since only the second
pass of a Web Service request would know or care about that object, it will
Hi, nges entirely here.
At this point my belief is that probably the best way to handle this is
to
have an element added to the Action mappings in Struts-Config.xml that
specifies the target JSP for a Web Service request. The default woudl
be
the generic template I put together, although a
Have you tried to set filter=false ???
Rouven
- Original Message -
From: John Antonakos [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 3:40 PM
Subject: Re: How can i avoid the use of amp in a drop down box ?
I am re-writing the
where should i put that ?
i never heard of it...
please give more info, where does it go ?
to struts-config.xml or somewhere else ?
In the Struts FormClass or inside the jsp tag ?
- Original Message -
From: Rouven Gehm [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Hi,
One question... why would you put parameters as query string?
Ideally what the client is sending is a SOAP request (or XML request),
so
The parameters are already embedded in the SOAP request.
Only thing that you need is to open a connection to struts URL, for
example
html:options collection=blah filter=false/
Daniel.
-Original Message-
From: John Antonakos [mailto:[EMAIL PROTECTED]
Sent: 03 June 2004 15:10
To: Struts Users Mailing List
Subject: Re: How can i avoid the use of amp in a drop down box ?
where should i put that ?
i never heard
If so you can define a dummy action to which your form points. In the
dummy just forward to your actual action. In the rendered jsp/html page
you will see the dummy action.
Thanks, unfortunately the example I gave was somewhat simplified. I'd
rather avoid having to configure dozens of dummy
Hi All,
If I have a property that is a java.util.Date, how can I provide it with a default
value
of today?
Thanks,
Tim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I ve been using Torque with Struts for quite a while and
performs very well.
But Ive seen that you guys usually uses Hibernate with
Struts.
Can you tell me what are the dis/ad vantages.
Thanks
Julio Cesar De Salvo - Project Leader
Exactly! Actually...not sure about the template, but when u go via
WS (webservices) all the client is interested is in getting back XML...
The XML generated by you action class as a response...
That's the thing I want to avoid though... I don't want the Actions to be
altered at all (and the
I would say take a look at the readme for how this is currently working.
Basically, the answer is this...
When a Web Service request comes in (recognized by the presence of the
SOAPAction header), the RequestProcessor parses the SOAP message contained
in the body of the request. The
I've been looking through javadocs for a couple of hours and I haven't found
the answer to what seems like a straight-forward question...
Assume I am writing a sublcass of RequestProcessor... how can I, in the
processPreprocess() method, get the path that was called? In other words,
if I
Never mind... I told you it would be obvious... request.getServletPath().
Argh. WAKE UP FRANK!!
Frank
From: Frank Zammetti [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: How to get requested path?
Date: Thu, 03 Jun 2004 10:41:40 -0400
Frank-
the Path Follows the URI and precedes the Query String
http://java.sun.com/products/servlet/2.1/api/javax.servlet.http.HttpServletRequest.html#getPathTranslated()
Does this help??
Martin
- Original Message -
From: Frank Zammetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Thanks Martin, it actually turns out that I needed request.getServletPath().
I completely forgot to look at what the request object offered, I was
instead looking at the headers, parameters and attributes, and also seeing
if the information was contained in RequestProcessor somewhere. I
Hello again,
Exactly! Actually...not sure about the template, but when u go via
WS (webservices) all the client is interested is in getting back XML...
The XML generated by you action class as a response...
That's the thing I want to avoid though... I don't want the Actions to
be
altered at all
You can fake it and do this... have a hidden span in your page that,
just before you submit your form, you display. You will probably also want
to wrap everything else in your page in a span and hide it at the same
time. I say this is faking it because the browser won't have any idea
what's
Hello,
I am using a form displaying properties from a bean. One property of
this bean is named aProperty.
The bean as another property which is a list of other beans (call it
items), which one of the item has the property named aProperty too.
In my form, I want to know which user is shown, so I
I need to have the many-to-many relantionship properly set in the xml
schema file for the torque generation engine, but once it is it works
like charm.
And with the experience I was able to write some tuned sql statements
although Torque lacks of support for stored procedures and triggers.
Hi,
When I use bean:write ... if the value is null, the tag returns .
But, when I try, for example, System.out.print(xxx.getProperty()) inside an Action and
the property is null. It returns the String null.
What is the best practice to avoid printing null ? I have to check all values before
Thanks Frank,
Do you have any sample code of using SPAN ?
I think this is also good to avoid 2 submit´s click. Am I right?
- Original Message -
From: Frank Zammetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 11:57 AM
Subject: RE: Action messages.
I'm not sure what you mean by avoid 2 submit 's click. If your referring
to the pooling method requiring a submit after the initial one (potential
any number of submits really), then yes, you would avoid that.
Here's an example off the top of my head (so the disclaimer is it might not
be
Hi all,
I am working on a Struts app where I will be slapping some stuff into a
database table, and from there I will need to get an insert ID back. I
am using a MySQL database, my database stuff is handled by iBatis, and
I am assuming that I need to use the MySLQ command mysql_insert_id() to
Hi,
I'm using the following code :
html:link action=logoutActionlogout/html:link
The html code I get is the following :
a href=/lex/logoutAction.dologout/a
When I read the explanation about how the html:link tag works, I
understood the content of href attribute should be
iBatis 2.0 has this ability.
The other option is to have a KeyGenerator class that handles all of
this for you. Don't use the auto generated keys from mysql.
Nathan
On Jun 3, 2004, at 11:07 AM, Andy Engle wrote:
Hi all,
I am working on a Struts app where I will be slapping some stuff into a
Greetings,
What I would like to do is to be able to display different JSPs for the
same ForwardAction.
I now have this:
action path=/TermsAndConditions
type=org.apache.struts.actions.ForwardAction
parameter=/WEB-INF/secure/credentials/termsAndConditions.jsp
/action
What I would
I am trying to design my forms and the way I need to validate them.
Here is what my Business Model Looks like:
CreditApplication
--Business
|Business Account
---Banker
---Guarantor
Each of the Items above has their own HTML page and DynaValidationForm.
Now there are general validation
Now there are general validation needed at submit time for each Form
Does this means that you save the data onto a persistent storage on each
form submit.
If that is the case, on a validation error of the final credit application
all you have to figure out is which form does the error belong too
All,
Use Date to store data and Calendar to manipulate data is the best choice?
What´s the advantage in store data with Calendar insted of Date?
Thanks.
Atenciosamente
Fabrício Garcia Imbrizi
Murah Technologies
11 8275 0199
Very interesting: http://www.softwarereality.com/lifecycle/xp/case_against_xp.jsp
Enjoy.
Mike
__
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Well I have done that. I have created
a directory under lib and included struts.jar in it. This is running fine
in JDeveloper when I added the path to the classpath.
Brati Sankar Ghosh
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Frank Zammetti
[EMAIL
Hi All,
We are facing a peculiar problem in Struts 1.1 implementation in our
project. Actually we are migrating an existing application to Struts
Framework. The existing application is to be compared with the struts
implementation. The deployment is on Weblogic Server 8.1 SP1.
When the
What IDE are you using? Can't it help you with this?
JBuilder certainly spares me this hassle (okay, that's not all good.
I've had some *other* hassles* because of it, but they are certainly
worth it).
-Original Message-
From: Riyad Kalla [mailto:[EMAIL PROTECTED]
Sent: Thursday,
65 matches
Mail list logo