Just a quick question, I have written a message resource foor part of
my application. I have added the message-resource to my struts
configuration. However when I run my web app the properties file is not
loaded. I know its the location. Here is my question, where in the
web app directo
You do understand that SelectAction is actually just a helper, and the
real story is DialogAction, do you? Have you seen the Login Control
example?
On 6/7/05, Dakota Jack <[EMAIL PROTECTED]> wrote:
> SelectAction is really old news and is what all the apps that use
> multiple select image buttons
I used tiles defined one of my jsp page with as the
following layout
At another jsp page, I would like to have a link
pointed to this definition. How can I do it? I am
currently using:
ToStudyNew. But it
does not seems to work.
Thanks,
___
Hi:
In my Action class, I stored a object in session with
HttpSession session = request.getSession();
session.setAttribute("myobject", object);
How can I access this object from jsp?
Thanks,
__
Yahoo! Mail
Stay connected, organized, and p
Code in a unit test:
DyanActionForm form = new DynaActionForm();
BeanUtils.copyProperties(bean, form);
This results in a NullPointerException when BeanUtils calls
form.getDynaClass().getProperties() (or something like that).
BeanUtils is expecting dynaClass to be set, but DynaActionFrom g
SelectAction is really old news and is what all the apps that use
multiple select image buttons do only with a lot less bloating of the
code See http://www.michaelmcgrady.com/button/
On 6/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> Struts Dialogs is an extension of Struts actions that
I'm probably missing something really obvious but I've been fiddling
about with this for a while now. Maybe someone can spot what I'm doing
wrong...
I'm using DynaActionForms in my Struts app and I'd like to be able to
reference a property like this:
I tried a form declaration like this:
Michael:
The redirect was it. I took out the redirect="true" and everything
is working fine.
Thanks,
Neil
--
Neil Aggarwal, JAMM Consulting, (214) 986-3533, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! htt
Yes they are included in a common include jsp file:
<%@ page language="java"%>
<%@ taglib uri="/WEB-INF/struts-html.tld"
prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld"
prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld"
prefix="logic"%>
and all are in the war.
--- Michael Joura
Oh, yeah, that's another thing. You usually can leave out the value
attribute, except in checkbox. In another thread, where you have
problems with the firstName text field, you can leave out the value
attribute, Struts will automatically populate the field with the value
held by the form.
http:/
It's not clear within your error at which point the error is
occurring. The problem could be that when BeanUtils tries to populate
the firstName field of the dependent bean, dependent is null. Maybe
you need to modify your form so that getDependent() always returns a
valid DependentVO object, ins
From: <[EMAIL PROTECTED]>
>
> In the JSP that is executed for the Dependent action this gets executed:
> value="${dependentForm.dependent.healthEligibilityIndicator}"/>
>
Why are you using the 'value' attribute? The framework will automatically
render the form element with the value present in t
What the heck did I just write?
I meant to say "From the error message you shared, it isn't clear at
which point in the submit process the error is occurring." Forgive
me, it's near the end of a pretty confusing day here at work.
Hubert
On 6/7/05, Hubert Rabago <[EMAIL PROTECTED]> wrote:
> It's
By the way, I should warn you that using Date and int fields on a form
bean (which is what you're essentially doing) can lead to problems
when the user types in invalid data.
Maybe you'd be interested in something like FormDef? http://formdef.dev.java.net
Hubert
On 6/7/05, [EMAIL PROTECTED] <[EM
I have to admit I didn't understand the question at all. :(
Hubert
On 6/7/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> This raises a question.
> Say I have a Dependent and DependentSubmit actions.
> The Dependent action gets data from the DB and displays it using the
> DependentForm.
>
Do you have <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
in your JSP?
On 6/7/05, chuck harris <[EMAIL PROTECTED]> wrote:
> I had a struts 1.1 web app contained in its own
> ear/war. It is/was deployed in jboss/tomcat 4.01sp1.
> Most of the pages extend validatorform. The
> validat
I had a struts 1.1 web app contained in its own
ear/war. It is/was deployed in jboss/tomcat 4.01sp1.
Most of the pages extend validatorform. The
validatorform validation worked as expected.
The pages were packaged in the war:
a.jsp ... many jsp's in the war
/web-inf/struts-config
/web-inf/validati
1) First, set the null attribute to "false" in your message resources
config: http://www.systemmobile.com/articles/strutsMessageResources.html
And check that Struts at least tries to load messages.
2) Does your form bean check for empty fields? Seems, that it forwards
to "input" without handing co
Micheal:
Could you show me how to build the "one action"?
Thanks,
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> If you want some kind of automation to build an HTML
> form or JSP for
> an arbitrary object on the fly, then Struts does not
> provide this
> service. You need to design pages
Hello:
I am trying to get errors generated from an Action to display
on a failure page, but the tag is not generating
any output.
You can see my app by going to
http://dev.rentclubs.com/rentclubs/register.do
If you submit the form without putting any input, it reloads
the page and the tag gen
Tony-
I agree with Larry on getting a better handle on what data elements are
identified (schema)
When will the data be used (should beans be short term session-scoped or
perhaps longer term entity beans)
also any business rules or validations use of 'ValidatorActionForm' need to
be identified
Scott Purcell wrote:
I am trying to create simple reference table for some cookies I am creating. I
wanted to put in a current_timestamp each time I do an insert so I can delete
this data after 2 or 3 weeks.
Here is the insert statement:
CREATE TABLE COOKIE_REF (cookie_ref varchar(50), dat ti
Thanks Dave.
This is what is defined.
The JSP posts here:
But the DependentForm bean has a bean defined within it.
It is this bean that I need to put data into it.
Dave Newton <[EMAIL PROTECTED]>
07/06/2005 03:57 PM
Please respond to
"Struts Users Mail
Tony Smith wrote:
What is the best way to implment this with Struts?
Need help, please, please, please,
What exactly are you asking? How to do CRUD pages in Struts? Which
Actions you might want to subclass to handle this (look at
DispatchAction, probably)? How to build forms in Struts?
D
Daniel Kies wrote:
If I forward to the jsp via an action, how do I make it so when the
jsp refreshes it hits the action?
The URL will show the URL of the action, not the JSP. When you refresh
it's refreshing the action, which will again forward to the JSP.
Dave
-
Hello,
I am trying to create simple reference table for some cookies I am creating. I
wanted to put in a current_timestamp each time I do an insert so I can delete
this data after 2 or 3 weeks.
Here is the insert statement:
CREATE TABLE COOKIE_REF (cookie_ref varchar(50), dat timestamp default
If you want some kind of automation to build an HTML form or JSP for
an arbitrary object on the fly, then Struts does not provide this
service. You need to design pages yourself. Maybe there are some
third-party libraries to do this.
I might implement something like this as an example for Struts D
[Announce]Dear Struts-users,
Stylus Studio 6 XML Enterprise Edition (an XML IDE) is now available for free
trial download at: http://www.stylusstudio.com/xml_download.html. Here is a
summary of some of the new features:
* Java Code Generation: Now you can generate code for your XQuery and XSLT
Right off the bat I assume you included in your taglib's e.g.
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
at top of your jsp?
then you must dynamically create the href so u
What is the best way to implment this with Struts?
Need help, please, please, please,
> So here is the situation:
>
> All data is in database.
>
> I have a user table with Fields like First Name,
> Last
> Name, Address, SSN, EMAIL, Telephone...
>
> I have Account table with fields like ID, D
[EMAIL PROTECTED] wrote:
Hello,
Short description:
-
How do I get posted data into a bean within the form bean ?
Do you have the bean defined in the struts-config for that particular
action? The "name" attribute of the action mapping should contain the
name of the b
Hi Martin...
I can not understand what you mean, could you explain it deeply please??
What i need, is to validate a form with a different definition in
validation.xml for each action.
Thanks, and wait for your reply...
Lucas
Martin Gainty <[EMAIL PROTECTED]> escribió:
Appears that either t
Hi Martin...
I can not understand what you mean, could you explain it deeply please??
What i need, is to validate a form with a different definition in
validation.xml for each action.
Thanks, and wait for your reply...
Lucas
Martin Gainty <[EMAIL PROTECTED]> escribió:
Appears that either t
Hello,
Short description:
-
How do I get posted data into a bean within the form bean ?
The JSP has this code.
The page is posted and I get this error:
[07/06/05 15:15:22:743 EDT] 6aa06aa0 WebGroup E SRVE0026E: [Servlet
Error]-[BeanUtils.populate]: java.lang.Illega
If I forward to the jsp via an action, how do I make it so when the
jsp refreshes it hits the action?
On 6/7/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> On 6/7/05, Daniel Kies <[EMAIL PROTECTED]> wrote:
> > Greetings. Here is my problem:
> > index.jsp does a redirect to my action.
> > acti
Daniel Kies wrote:
index.jsp does a redirect to my action.
action loads a bean with data
forwards to x.jsp
x.jsp looks fine, data comes up fine.
I do a refresh. I get Cannot find bean in any scope. The first time
i have data with no problems because the action class loads the
request with th
The problem is that you have a tag nested within a tag.
In order to do this you need to use the html-el:link tag. The el is
Expression Language.
However, I am having difficulties with applying the el tags... so I cannot
yet help you.
One quick way around this is to do it this way:
HTH,
G
Appears that either the generated ActionForm or DynaActionForm form name (as
evideenced by by the validator. Take a look at your struts-config.xml to determine the
form name and substitute for unknown 'myFormName_required'
in other words
- Original Message -
From: "Lucas Bern"
Here's how I do it:
This example has the 50 US states stored in a map.
state is a variable store in some scope.
-Original Message-
From: Grzegorz Stasica <[EMAIL PROTECTED]>
Sent: Jun 7, 2005 2:46 PM
To: user@struts.apache.org
Subject: Reading value from HashMap via JSTL
hi,
I've a pa
On 6/7/05, Daniel Kies <[EMAIL PROTECTED]> wrote:
> Greetings. Here is my problem:
> index.jsp does a redirect to my action.
> action loads a bean with data
> forwards to x.jsp
>
> x.jsp looks fine, data comes up fine.
>
> I do a refresh. I get Cannot find bean in any scope. The first time
> i
> How can I access value for specific key from JSTL
>
>
>
> Or is it better way to store these values. I rule out having each
> value as a different variable since I'll have 52*3 different
> variables
You can just do:
${myhashmap.mykey}
- Dave
---
hi,
I've a page on which there are a lot of similar data. For every week in
a year (52 total) I have 3 different values for instance:
week 1
efficiency=98
complaints=45
other=3
I've decided that HashMap will be the best to store all of the values
and access each value base on key (key is bein
Hi all
I have a problem with validator. I'm trying to validate a form depending on the
action, so I'm using the ValidatorActionForm as superclass of my form...
I made everything as specified in the documentation, but, the java script code
generated by validator produces an error
"myFormName_req
Greetings. Here is my problem:
index.jsp does a redirect to my action.
action loads a bean with data
forwards to x.jsp
x.jsp looks fine, data comes up fine.
I do a refresh. I get Cannot find bean in any scope. The first time
i have data with no problems because the action class loads the
reque
I have a struts app that needs to change a link's url as well as the
title. That is, the url for the product catalogs are different for
Germany and US as well as the titles.
en_US
link.title=Products
link.url=http://www.myUScompany.com/products
de_DE
link.title=Produkte
link.url=http://www.myDEcom
Hi all,
perhaps this question has been asked allready,
but let me ask it again...
Is anybody in Stuttgart (Germany) at ApacheCon Europe 18->22 July.
Thanks,
Matthias
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
You need to put that /DB/home url pattern in your web.xml otherwise the
servlet container won't force you to login when requesting it.
Adam
On 07/06/05 13:02 marc wrote:
Ok seems like it is not working well at all.
Me login is logging me in ok. But it seems like neither me web.xml or my
str
On 07/06/05 12:55 Larry Meadors wrote:
I am generally allergic to Javascript which I guess limits what can be done
with fancy pop-up pickers. Am open to suggestions should there be a nice
robust script out there I guess.
Get over it. Like it or not, JavaScript is here to stay. Anyone who
look
What I mean by security is, what sort of user authentication? For your
login, that is. I assume that it's hand-rolled and you're accessing some
sort of data store to verify the password given by the user.
I'll also assume that you've got the struts-config mapping correct, so
that the correct f
http://wiki.apache.org/struts/StrutsCatalogLazyList
Look at the section: Hand Cranking lazy List in the ActionForm.
This is possible with the version you are currently using.
HTH,
- Glenn
Stéphane Zuckerman <[EMAIL PROTECTED]>
07/06/2005 12:28 PM
Please respond to
"Struts Users Mailing List"
Struts Dialogs is an extension of Struts actions that provides an
improved user experience along with event-based programming model.
Struts Dialogs currently consists of two action classes: SelectAction
and DialogAction.
SelectAction
SelectAction is an abstract Action t
Martin Gainty a écrit :
Stephane
Did you look at LazyList?
http://wiki.apache.org/struts/StrutsCatalogLazyList
I did, and that's why I asked if there was a solution without using a
version of struts > 1.2.4 . :-) I don't think my colleagues would like
it if I were to change the version of th
Stephane
Did you look at LazyList?
http://wiki.apache.org/struts/StrutsCatalogLazyList
Martin-
- Original Message -
From: "Stéphane Zuckerman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, June 07, 2005 9:53 AM
Subject: Highly dynamic forms
Hello,
Here's the que
Hello,
Here's the question for the short version (below you'll find some
lengthier explanations ...) :
I'd like to render a list of groups of radio buttons. Said list has a
variable length. So my data structure looks like :
[ [radio1,radio2,radio3], [radio1,radio2,radio3,radio4], ...]
I am
Michael, are you in a clustered environment here or is it a single OC4J
instance?
Duncan
Michael Rasmussen wrote:
I am working with Oracle Application Server 10G (version 9.0.4.0.0
according to help) with an application using Struts 1.1. We want to
use Struts' forward with redirect option, bu
I'm presuming you also have the following in your web.xml:
Admin user allowed to invoke all methods
admin
to define the security roles used?
If you change your action path to reflect the url pattern for the 'admin'
role secured resource, it should certainly work and should not require the
So here is the situation:
All data is in database.
I have a user table with Fields like First Name, Last
Name, Address, SSN, EMAIL, Telephone...
I have Account table with fields like ID, Date,
Balance,... Each user can have one or more Accounts.
I have Transaction table with fields like ID, Da
This may help you:
http://wiki.apache.org/struts/StrutsCatalogLazyList
http://www.developer.com/java/ejb/article.php/3321521
http://www.developer.com/java/ejb/article.php/2233591
- Glenn
"Scott Purcell" <[EMAIL PROTECTED]>
07/06/2005 09:19 AM
Please respond to
"Struts Users Mailing List"
T
use dynamic form with dynamic array inside.
Scott Purcell <[EMAIL PROTECTED]> wrote:Hello,
I am using the struts framework for a project, and I am seeking advice on the
following situation. To preface where I am, we have used server side validation
(validation.xml) throughout the full project a
Hello,
I am using the struts framework for a project, and I am seeking advice on the
following situation. To preface where I am, we have used server side validation
(validation.xml) throughout the full project and all is good. I understand
simple field validation and the attributes of the vali
If use the tag like this
I need implement the server side validation ? or this is inside de shale?
Thanxs
--
Mariano G. Petrakovsky
Programmer · Software Factory
AXG Tecnonexo - www.tecnonexo.com
Development facilities:Av. Maipú 1252 8º (C1006ACT) · Buenos Aires ·
Argentina.
Tel.: (5
Hello,
I am using the struts framework for a project, and I am seeking advice on the
following situation. To preface where I am, we have used server side validation
(validation.xml) throughout the full project and all is good. I understand
simple field validation and the attributes of the valid
Hi Senthil-
This is not a Struts question and doesn't really belong on this list,
but I'll try to answer it anyway. You are storing the passwords as a
hash, which by definition is one-way and non-reversible back into the
cleartext. Hashes are mainly used when you want to compare previously
entered
It seems you'r not encrypting the password but hashing it
explanation :
- pasword *encryption* can be reversed, using some secret key
- pasword *hashing* produces a unique String, that DOES NOT CONTAIN
infos about the password (cannot be reversed). The hash algorithm (MD5,
SHA...) is designed s
Write JSP comments as <%-- --%>
On 6/7/05, andy wix <[EMAIL PROTECTED]> wrote:
> I think the problem was due to my having an include file in the footer that
> was commented out:
>
>
> It seems this isn't the way to comment out stuff in jsp? Why it worked for
> some pages and not others I still
Hello all.,
In my database password already stored in encrypted format.
Once user forget the password i need to send back him but its seeing by
encryption format only.
Bofere send password to user, i need to decrypt in java.
I am encrypt using following code
cryptoInterface=CryptoFactory.g
Oh sh&* !
Hubert you had your finger on the problem all along...
Now that I have had my first coffee of the day things are falling in
place.
The problem is that the JSP is posting to an action which did not have the
correct form bean.
So it wasn't able to find the property method.
This raises a
Ok seems like it is not working well at all.
Me login is logging me in ok. But it seems like neither me web.xml or my
struts actions is looking in me roles.
I have a admin user wdkmaol, that has the admin role. To test things I
made this code in the login action:
On 6/6/05, Martin Ravell <[EMAIL PROTECTED]> wrote:
> Do you split your dates into day, month and year fields in your HTML?
No, as a user this is the most irritating UI that I can imagine for date input.
> How do you find is the best way to validate?
I use a String property for the field, then p
As Hubert suggested here are some of the details.
...
public class DependentForm extends ActionForm {
private DependentVO dependent;
public DependentVO getDependent() {
return dependent;
}
public void setDependent(DependentVO dependentVO) {
Nils Liebelt wrote:
> Hi all,
>
> Let's say I got a typical tile main layout definition:
>
> path="/common/mainLayout.jsp"> value="/common/header.jsp" /> value="sample" type="string"/> value="/common/footer.jsp" />
>
> Now the content has to split into 2 pane
I think the problem was due to my having an include file in the footer that
was commented out:
It seems this isn't the way to comment out stuff in jsp? Why it worked for
some pages and not others I still have no idea - the only thing I can think
is that i may have been looking at cached page
Hi, my name is Alessandro Rossini and I want to let you know the launch of a
new project called ZNF.
The goal of this project is to provide an open source framework for building
PHP5 enterprise web applications, based on Struts.
This is not the first attempt to rewrite the Struts implementation,
Hello,
I had similar problem in the past...
Do you have any request attributes /session attributes /appcontext
attributes
That you are using in that page?
Regards
marco
-Original Message-
From: andy wix [mailto:[EMAIL PROTECTED]
Sent: 07 June 2005 11:08
To: user@struts.a
Hi,
I am getting an exception when loading a page of Tiles.
The error shown in the jsp page is:
javax.servlet.jsp.JspException: ServletException in '/footer.jsp': null
at
org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:921)
at org.apache.struts.taglib.ti
I imaging the JSP must be session aware as the strust tags are included in
the jsp and compile --> The tags would look for a bean to populate the
fields.
Original Message Follows
From: Emmanouil Batsis <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing L
Mark Benussi wrote:
There is no security implemented.
Is it possible that the JSP is not session aware and thus a session is
not created to carry the form (and it's fields?)?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
There is no security implemented.
When the form is submitted it calls the BeanUtils.populate method.
With debgging enabled no values are copied into my form on the first
submission of the form if the form is within a page that was produced as the
result of the first ever session request to a u
What sort of security are you using? Container-managed? SSL?
And what exactly do you mean? Which values disappear? The login form fields?
On 07/06/05 07:08 Mark Benussi wrote:
I am submitting a Struts form in my live application but the values seem to
be getting lost between my browser and th
The Validator module gives you automatic date validation according to
your chosen date format, configured in an xml file on a per-form basis.
Adam
On 07/06/05 06:13 Martin Ravell wrote:
Hi all,
Having just joined the list I am unaware if this topic has been done to
death already but I was
80 matches
Mail list logo