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
I would like to do the following:
JSP:
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 is because it is being passed String rather than a
subclass of Number.
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 produ
Hi,
The solution u have given works fine to populate the list item. But what i
want is to change the contents of list item when some of the list item
selection or some check box status changes. And moreover when some value
entered in text box based on that input i would like to fill the other text
Hi List,
I am about to start development work on some auction site which in principle
is similar to e-bay but not of that scale. I will be using J2EE+Jboss.
What kind of IDE development environment do you guys use for the
development?
I just tried Eclipse + EasyStruts + Lomboz. Lomboz is good bu
Greetings,
I have an application using Struts 1.1 and JBoss 3.2.3. Authentication is
Forms-based using JAAS. The username and password are pulled from the
database through j_security_check and several authorization levels are
defined through security-constraints. Login works fine.
I'm now trying
Greetings,
I have an application using Struts 1.1 and JBoss 3.2.3. Authentication is
Forms-based using JAAS. The username and password are pulled from the
database through j_security_check and several authorization levels are
defined through security-constraints. Login works fine.
I'm now trying
Hi,
The solution u have given works fine to populate the list item. But what i
want is to change the contents of list item when some of the list item
selection or some check box status changes. And moreover when some value
entered in text box based on that input i would like to fill the other text
Hi Sridhar,
This is the code to populate the data from the database, specialityList is the
collection, it defines the javascript array and to populate the data ...
bye
Srinivas
R Sridhar <[EMAIL PROTECTED]> wrote:
Hi,
How to popula
Hi Sridhar,
This is the code to populate the data from the database, specialityList is the
collection, it defines the javascript array and to populate the data ...
bye
Srinivas
R Sridhar <[EMAIL PROTECTED]> wrote:
Hi,
How to popula
Hi,
How to populate the java script variables with the dynamic data taken from the
database in struts. I would like to use these data to fill some other fields based on
list or chice selections in the form.Can we use normal style of javascript with the
struts validation framework.
Please help
If all you need is 2phase commit, You can directly use JTA along with XA
drivers for both of your databases.
2-phase commit using EJBs could have been an option if your system currently
uses EJBs for managing these database schemas.
>-Original Message-
>From: Zhang, Larry (L.) [mailto:[E
Our web application uses Web sphere application server. The main transaction is to
update People Soft database tables. We are using component interface (a People Soft
term) to update the underline tables in People Soft. Associated to a transaction ( a
People Soft database update for example), th
Howdy!
I'm just wondering if anyone has run across this issue and if so, is there a
workaround? It appears that the requiredif validator does not work
correctly when using nested properties. Here's my XML:
I use Post method.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel
Sent: Wednesday, June 02, 2004 5:24 AM
To: [EMAIL PROTECTED]
Subject: Re: Hidden Variables
Joshi, Naveen wrote:
> All,
>
> one out of 300 times my hidden variable would not set to form. Any
> idea
Hi,
Can you send the code for the method you have mentioned
regards,
keshav
- Original Message -
From: "Freddy Villalba Arias" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 10:38 PM
Subject: RE: Refresh parent window on popup submit
Hello Miguel,
You might want to search the archive for "indexed properties"; I think
that's what you're looking for.
HTH,
ATTA
- Original Message -
From: "Miguel Arroz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, June 02, 2004 4:04 PM
Subjec
I have a JSP page using logic, bean and html tags. It works and compiles
fine on my local machine using tomcat 4.1.24. However when deployed to a
live server running tomcat 4.0.4 I get the following error
java.lang.VerifyError: (class: org/apache/jsp/ProviderDetails$jsp, method:
_jspService signat
Hi!
I need to display a page that loads a list of items from a DB, and
that displays that list, with a text field and a checkbox per row. The
checkbox is easy to do, using multibox. But how can I get the text
field? Can I use something like multibox (and then read all the text
boxes from an a
I have a form with a list of 10 assets. Each asset has a name and a
cash value. I've successfully set up the validator to catch when a
non-numeric cash value is entered. I would like to display a little
exclamation point icon next to the field with the bad cash value.
Is this possible? I do
I am trying to use commons-logging in my struts, as well as my ejb's, but I
get a log4j error instead.
Here is the declaration/usage in my ejb:
CreditApplicationBean:
===
...
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
...
priva
Hello all... I wanted to post this here and get any comments that people had
so I could decide where to go with it...
For the past two days I've been working on a mechanism that would allow you
to expose existing Struts-based business logic as Web Services without
changing any existing code. W
I'm surprised using the parameter name didn't fix it..
All i can tell you is that it works for us with the stable release of
1.1
On 2 Jun 2004, at 20:56, Kamholz, Keith (corp-staff) USX wrote:
I actually think I'm going to be able to get around the problem.
We're going to do new sort of browsin
I found the problem - our team is providing a different implementation of
the MessageTag.class which behaves differently than the standard tag.
From: "Marcella Turner" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: why does RequestUti
Ole-
You could setup the Action execute method to return mapping.findForward to
different JSPs
based upon the Hostname that is embedded within Request object
InetAddress.getByName(request.getRemoteAddr()).getHostName()
see
http://www.coreservlets.com/Apache-Struts-Tutorial/Struts-Actions.html#Ex2-S
I actually think I'm going to be able to get around the problem.
We're going to do new sort of browsing interface so I won't have to use the
form with multiple submits.
Thanks for all the help though, the tips will come in handy I'm sure.
- Keith
-Original Message-
From: Mark Shifman
You should look at the source code for the version of DispatchAction and
LookupDispatchAction (available either from a download of src or the cvs
repository). Older builds just threw an exception if LDA didn't find a
parameter for method. You can overide the execute() but you might just
as we
Keith,
Where is the exception occurring? If it is happening in the
LookupDispatchAction (or DispatchAction), then you could implement a base
action class and override the execute method. In the overriden execute
method, you would
(1) Get the parameter name from the mapping (mapping.getParam
Duh! Never mind... nothing like forgetting basic Java programming...
Override processActionPerform() and be sure to call
super.processActionPerform() first. I'll just be off in the corner flaying
myself for a while...
From: "Frank Zammetti" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing
Hi all... I'm writing a custom RequestProcessor implementation where I need
to do some pre-processing and some post-processing. Pre-processing is easy,
I just overrode processPreprocess(). My question though is can I do the
same thing post-request? What I mean is this...
Assume I want to exe
If you have two beans in scope and both have a property of the same class,
is there a way to set one's property to the other property's value using one
of the tag libraries?
If you have
class C;
class A
{
private C propA; // with get & set methods
}
class B
{
private C propB; // with get
Isn't hideMessages() still a scripting element? I'm not familiar with
that...
From: Brad Balmer <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: How to display error msgs in a pop up window
Date: Wed, 02
That worked!
Thanks
-Original Message-
From: Matthias Wessendorf [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 01, 2004 2:11 PM
To: 'Struts Users Mailing List'
Subject: RE: validator.xml usage
type="org.apache.struts.validator.DynaValidatorActionForm">
try type="org.apache.struts.valid
Yes, exactly, that's what he would have to do unless he persisted the
information on the server, but that's really far more work than is worth it
I think.
You just made me think of another way... If you target the logon form to a
new window, then you can either (a) return your error information
Instead of using a pop-up I use a block to format my messages.
Inside my I have my block that will
display any type of message or error that I want. I then inlude a way
to click on a close link which simply sets the to be hidden and
moves it off the page.
This is a non-javascript way of
Another way would be to use some JavaScript on the input page that opens
a new window, the popup, and writes the error messages directly to that
using the document.write(...) function. Pretty easy really.
Frank Zammetti wrote:
One way to do this (the only way I can actually think of) is this...
You know I was just thinking about doing "/foo.do?method" when I read your
post. I stuck it in there, but that didn't work.
Then I tried "/foo.do?method=" and "/foo.do?method=label.modelBrowse" and
"/foo.do?method=model". Now it executes the 'unspecified' method no matter
what I do, even if I cli
One way to do this (the only way I can actually think of) is this... write
your logon page as you would normally in Struts, i.e., pretend your going to
display your error message there. That means re-displaying the user's
entries, all that. But, instead of displaying the messages, open a new
Hi all,
Sub: How can i get error messages in a pop up window by using STRUTS
I am using Struts and i want to handle all validation error messages in a new popup
window.
Consider Login form with loginID and password as form fields. I want to check
mandatory status at the server side, for thi
Keith-
you need to supply the HTTP variable HTTP_USER_AGENT
to BrowserType before modelBrowse
String UserAgent = (String) request.getHeader("User-Agent");
HttpSession currSession = request.getSession(true);
//This sets up the user.agent for the session
currSession.putValue("user.agent",UserAgen
One reason for using struts tags is that people are trained to use
them. Business is not always bending to the best coding
solution. Business has to bend to the best business decision.
Michael
At 02:55 AM 6/2/2004, Andrea M wrote:
I agree with Rick
Of corse you could use struts tags without St
With the stable release of 1.1 you need to pass the parameter through
usually
/foo.do?method=save
but to get the unspecified method running
/foo.do?method
suck it n see.
On 2 Jun 2004, at 17:07, Kamholz, Keith (corp-staff) USX wrote:
Yeah, I have basically that code for the submit buttons.
Isn't th
Yeah, I have basically that code for the submit buttons.
Isn't the 'unspecified' method of the LookupDispatchAction used to handle
this issue though? I thought that's exactly what it's purpose was, but the
method is not getting executed as I expected it to.
Very frustrating...
- Keith
-Or
Howdy!
I'm just wondering if anyone has run across this issue and if so, is there a
workaround? It appears that the requiredif validator does not work correctly when
using nested properties. Here's my XML:
Howdy!
I'm just wondering if anyone has run across this issue and if so, is there a
workaround? It appears that the requiredif validator does not work correctly when
using nested properties. Here's my XML:
Most likely the "browseType" parameter is not defined in you page, so it is
not submitted.
If you're using the struts submit buttons, you probably have something to
the effect of:
The effect of the button tag is that when it is clicked, the "browseType"
parameter will be added into th
Hi Martin,
> Ole-
>
> The module can use either an absolute path or relative to
> server root using
> the loadfile tag
>
> Here is the documentation
> http://httpd.apache.org/docs-2.0/mod/mod_so.html#loadfile
>
> Is this what you are looking for?
THanks for replying. I have several hosts u
Hm
It's not working for me. I have a form with 4 different submit buttons.
I'm trying to get it to execute the 'unspecified' method of my
LookupDispatchAction when the user presses 'Enter' rather than clicking on a
button.
Right now I have:
public ActionForward unspecified(ActionMapping
You just want a default value for the radio button?
Just make sure the corresponding value in your form bean is set to the value
for the radio button that you want selected by default. That's all.
- Keith
-Original Message-
From: ravishankar boddupalli [mailto:[EMAIL PROTECTED]
Sent:
Hello all... I haven't found a good answer to this on my own, so hopeing
someone can supply one... What is the benefit/purpose to using the
amd tags? I've read that they are "designed to work
with ActionServlet", but it's unclear to me in what way. What benefit does
one gain by using these
Awesome, thanks for posting the solution. I've been wondering how to do
just that.
Hopefully it'll work the same for a LookupDispatchAction, I'll find out in
just a few.
** Crosses fingers **
- Keith
-Original Message-
From: Kunal H. Parikh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, Jun
Ole-
The module can use either an absolute path or relative to server root using
the loadfile tag
Here is the documentation
http://httpd.apache.org/docs-2.0/mod/mod_so.html#loadfile
Is this what you are looking for?
Martin Gainty
(cell) 617-852-7822
(e) [EMAIL PROTECTED]
(http)www.laconiadatasyst
Thank You guys for the replies.Appreciate it. Have a good day
Regards
Srini Gade
From: Mark Lowe <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: AW: Struts Tag Library
Date: Wed, 2 Jun 2004 13:04:49 +020
Hi,
Does anyone know if it is possible to use a different Module for each
HTTP-Server-Host? Or is it only possible by subdirectorys in webapp?
Thanks
Ole
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
My own stupid fault.
I had set the value="" for the in order to try to get around the
problem
I had before I changed the scope to request.
Removed those and it now works ;-)
Tim
> -Original Message-
> From: Tim Penhey [mailto:[EMAIL PROTECTED]
> Sent: 02 June 2004 09:50
> To: Struts Us
While I can see that JSTL can be used for model 1 style development,
I'd still use JSTL for model 2 with or without struts.
There are lots of useful toys with JSTL that just aren't there in
struts, which are needed by the site builder JSTL functions especially,
these are used for purely present
Yes.. if you plan to use MVC use Struts (or Spring or whatever framework you
please)
However.. Taglibs are just the View part, so you can use Struts with
whatever presentation components you prefer, still staying inside MVC model.
Actually.. there's nothing that prevents you to not use JSP at all a
<2cents>
If you plan to use model 1 -> use jstl
If you plan to use model 2 -> use struts
:-)
Leon
> -Ursprüngliche Nachricht-
> Von: Andrea M [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 2. Juni 2004 11:55
> An: 'Struts Users Mailing List'
> Betreff: R: Struts Tag Library
>
> I agr
I agree with Rick
Of corse you could use struts tags without Struts framework, but there's no
point in doing so:
Tags like bean, logic and iterate are almost entirely supplanted by JSTL
The only struts tag that is still useful is but is designed to work
together with ActionServlet, so using it out
Joshi, Naveen wrote:
> All,
>
> one out of 300 times my hidden variable would not set to form. Any
> ideas what could be the issue.
do you use get or post method to send your form ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Joshi, Naveen wrote:
All,
one out of 300 times my hidden variable would not set to form. Any ideas what could be
the issue. I'am thinking that it is a browser issue. Is any one in the group facing
similar problem.
Thanks
Joe
Have you specify these hidden variables as a property in your ActionForm
Still working with the DynaValidatorForm.
I am trying to test by directly going to the action and not passing in all the required
parameters to make sure that the form validation is working (if I use my entry jsp the
javascript validation catches the problems [as designed]), but being the paranoid
from this code :
I guess that bean1 must be an object inside 'allofem'
So why are you trying to iterate an object :
pls wrote:
i had to add tags around the
because there were some trailing 'null' values in the Integer[] after
reading from DB.
"pls" <[EMAIL PROTECTED]> wrote in message
news:[EMA
i had to add tags around the
because there were some trailing 'null' values in the Integer[] after
reading from DB.
"pls" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have one multibox per page on a few pages.
> Each page name is represented by the 'key' property of a HashMap.
Srini,
i recommend to look at displaytag
--> http://displaytag.sf.net
they work together with struts.
Cheers,
> -Original Message-
> From: Srinivasa Jagannadh Gade [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 02, 2004 1:54 AM
> To: [EMAIL PROTECTED]
> Subject: Struts Tag Library
>
I have one multibox per page on a few pages.
Each page name is represented by the 'key' property of a HashMap.
Each selected checkbox number is stored in Integer[]'s in the 'value'
property of a HashMap.
After selecting all of the checks, the user is forwarded to a
confirmation.jsp which displays
66 matches
Mail list logo