Adam Gordon ha scritto:
The place we would do this is in a request listener class we have that
currently, amongst other things, creates the entire menu system for
the user.
You can use also a Controller class to create your menu items, and
associate it to your definition(s), I the code will b
Matthias Stoll ha scritto:
Hi there.
I have a Tiles / Struts application. When using i18n in Struts (property
files) everything works fine, even if the user has selected a language in
his browser (e.g. en as preferred language, struts loads the property_en
file). Tiles is not doing so. It loa
hi,
Thanks for the reply.But sorry to say my question is still not answered. Am
working with weblogic and am getting NullPointer exception in
TilesRequestProcessor.Is there anyway to overcome this. The classes are
getting deployed and its carried on well i have no issues on that, but when
the acti
Set the tomcat home flder in the system environment variables
Then tomcat starts working fine from out side
U can try this
Thanks
Nagesh
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 11:43 AM
To: user@struts.apache.org
Subj
Hi there.
I have a Tiles / Struts application. When using i18n in Struts (property
files) everything works fine, even if the user has selected a language in
his browser (e.g. en as preferred language, struts loads the property_en
file). Tiles is not doing so. It loads the default definition fil
Hi
I just strugled with this problem with MyEclipse, Tomcat 5.5
environment:
1. Install Tomcat as desired.
2. Configure your project to MyEclipse as "Exploded" project.
3. Start tomcat inside MyEclipse. (Started outside don't work)
4. Changes to implementation should reflect immedeatly to ru
hi,
I have a struts project, i want to know whether hot deployment of the
application is possible? I tried doing it but without much luck, i need to
restart my server everytime i do make changes in the class files.
My working environment is MyEclipse, weblogic 8.1, in the application am
using Til
Hi,
DisplayTags (SourceForge) sends a HTTP / GET-method to retrive next page
data.
It uses a parameter like 'd-49653-o' to control request (for
application).
OGNL don't accept this syntax and throws an exception.
Solution is to make an interpreter before Action to convert this to
another
prefer taking that enum value as string and use the same
On 12/13/06, Laurie Harper <[EMAIL PROTECTED]> wrote:
You'd need to either register a converter with BeanUtils that knows how
to convert the enum type to String, or just do this:
PropertyUtils.setProperty(context.getForm(), "status",
Remove this ".do?function=list" from the url mapping and try once
I think its possible
Thanks
Nagesh
-Original Message-
From: Chetan Pandey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 8:50 AM
To: 'Struts Users Mailing List'
Subject: Question about Filter Mapping
Hi
Hi All:
I have written a Filter AuthFilter for my Struts App.
I am doing the following mapping.
authFilter
com.blue.marketing.emailer.util.AuthenticationFilter
authFilter
/manageEvent.do?function=list
But the F
Ok, it's working.
Thanks,
Popo
--- Nikhil Walvekar <[EMAIL PROTECTED]> wrote:
> try
>
> onchange='<%= "onchangeGrade(" + indexId.intValue()
> + ");" %>'
>
>
> Regards,
> Nikhil
>
> On 12/12/06, Po Po <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I've a collection and i iterate using
> lo
You'd need to either register a converter with BeanUtils that knows how
to convert the enum type to String, or just do this:
PropertyUtils.setProperty(context.getForm(), "status",
Status.ACTIVE.toString());
L.
Deepa Umakanth wrote:
Error:
Caused by: org.apache.commons.beanutils.Conversi
Yep, everything seems to work fine besides other upgrade issues.
Thanks again.
Joseph McGranaghan wrote:
Thanks Naill, you're the man! :-)
I'll reply my results to the list.
-Joe
Niall Pemberton wrote:
On 12/10/06, Joseph McGranaghan <[EMAIL PROTECTED]> wrote:
Sorry, but I just can't get
Check that you are not using the same id for two different divs.
musachy
walidito wrote:
Hi,
I must be unlucky with struts 2, but I based myself on the showcase
(example2) to test the tabbed panel on my web app.
It's ok it works, but the issue is that I had another "ajax div" on my page,
that a
Hi,
I must be unlucky with struts 2, but I based myself on the showcase
(example2) to test the tabbed panel on my web app.
It's ok it works, but the issue is that I had another "ajax div" on my page,
that also used to work. Here it is :
initial content
@
But
Adam,
Yes indeed a controller is more suitable here.The TilesAction approach is
useful when a radically different layout is required depending on a condition.
rgds
Rahul
-Original Message-
From: Adam Gordon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 5:44 PM
To: Struts U
Rahul-
After reading 5.2.2, I can make it work using that structure, however I
believe it defeats the original intent of Tiles because it would require
me to have a n^2 tiles definitions for each scenario where n is the
number of submenu items that need to be configured.
After some digging a
Dojo has dialogs. Yahoo's javascript library, YUI, has popup containers
and dialogs also.
regards
musachy
Dariusz Wojtas wrote:
My Struts2 app contains a form with multiple tabs (tabbedPanel).
Some of my input fields represent foreign keys and I'd like to have
a functionality of pressing a but
My Struts2 app contains a form with multiple tabs (tabbedPanel).
Some of my input fields represent foreign keys and I'd like to have
a functionality of pressing a button that opens a dialog (possibly a
modal dialog/window),
loads some data into it (tabular, possibly multipage with displaytag),
sel
Look at "5.2.2 One Controller - Multiple Views"
in http://www2.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf
This allows you to choose layouts on the fly.
This can also be done by using just an org.apache.struts.tiles.Controller.
-Original Message-
From: Adam Gordon [mailto:[EMAIL PR
Hi-
We're using Tiles to define submenu items (in a putList) for menu we
have in our web app. We're using a custom menu object that has a
visibility flag that we can toggle depending on whether or not the user
has permission to see a given menu functionality.
My problem is that I can't seem
Chris,
I will check around.
Thank you very much for the suggestions & help.
On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> cant we use tag instead of
> is there any way to assign values & ids to d
Okay
I will also try in similar lines in my package.
On 12/13/06, Gary Feidt <[EMAIL PROTECTED]> wrote:
I put my resource files in my normal class path of
(web-inf/classes/cmo/lang). Here is mine as it works right now in my
struts-config.xml:
Gary
>>> [EMAIL PROTECTED] 12/12/2006 2:16 PM
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> cant we use tag instead of
> is there any way to assign values & ids to dynamically?
Unfortunately, I'm not the person to ask about that. I don't use JSP and
I'm not very familiar with the JSP tab libraries availabl
I put my resource files in my normal class path of
(web-inf/classes/cmo/lang). Here is mine as it works right now in my
struts-config.xml:
Gary
>>> [EMAIL PROTECTED] 12/12/2006 2:16 PM >>>
I Have the following Strcture
WEB-INF
- classes
-com
-login
- resources
Chris,
cant we use tag instead of dynamically?
On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> now i want to display the arraylist in jsp
> the empid should be assigned to check box
> so each row shou
I was talking about this javascript code:
dojo.io.bind({
url: "<@s.url
action="updateCharacterAvailable" namespace="/hangman/ajax" />",
load: function(type, data, event) {
var div =
dojo.byId("updateChar
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> now i want to display the arraylist in jsp
> the empid should be assigned to check box
> so each row should contain checkboxe which is going to populate dynamically
> and carry empid
>
> so that when i select the checkb
From: Don Brown [mailto:[EMAIL PROTECTED]
> As a published requirement, Struts 2 requires Servlet 2.4. However,
> I'd bet you could run a Struts 2 app on Servlet 2.3, if you were
> careful and did plenty of testing. You might run into a few problems
> in some of the JSP tags or perhaps intercepto
I Have the following Strcture
WEB-INF
- classes
-com
-login
- resources
- application.properties
- application_fr.properties
which means resources folder is there in WEB-INF and is seperated from the
com.login package containing java code
should wor
Thank you for your response,
As I'm a newbie, I haven't undersood well this part of your answer for the
"easy way":
then use the code above to make the request and process the html
returned from your action and create the widgets.
-What "code above" are you talking about ?
-Could you please be
Chris,
Thank you very much for the info.
I shall try this and get back to the forum on my findings.
i have been struggling with another issue, that is
Please suggest me some idea to achive the following
from DB getting empid,empname,salary..etc into a arraylist of beans. that
m
What is you package name? I have an app that called cmo.resources and
would use the following:
Gary
>>> [EMAIL PROTECTED] 12/12/2006 11:38 AM >>>
Hi,
i am working on internationalization in struts.
for this i did the following
1) WEB-INF/classes/resources folder defined all the files
exam
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kranti,
Kranti Parisa wrote:
> for this i did the following
>
> 1) WEB-INF/classes/resources folder defined all the files
> example : application.properties, application_fr.properties ..etc
[snip]
> 3) in struts-config.xml file defined the followin
=
i am working on internationalization in struts.
for this i did the following
1) WEB-INF/classes/resources folder defined all the files
example : application.properties, application_fr.properties ..etc
2) in each file defined the labels
example
label.firstname=First Name
3) in struts-
walidito wrote:
Hi everybody,
I'm trying to use both the struts-2 embedded ajax tags, I mean
And the real Dojo that I have downloaded from dojo's website.
Both work in a separate way, but If I try to use them both at the same time
it does'nt work anymore... Let me explain :
In my div tag, I
Your best bet most likely is a servlet filter. Do the transformation and
stuff the transformed content in request as an attribute, then grab it
later in your Actions.
Which version of Struts are you using? If pre-1.3, modifying the RP is
one of the few other options as Dave mentioned... you migh
Hi everybody,
I'm trying to use both the struts-2 embedded ajax tags, I mean
Dear Martin,
i am also facing the similar kind of problem.
I am not using any spring or JSF
its simple jsp and struts
=
i am working on internationalization in struts.
for this i did the following
1) WEB-INF/classes/resources folder defined all the files
example : application.proper
Hi,
Please suggest me some idea to achive the following
from DB getting empid,empname,salary..etc into a arraylist of beans. that
means each employee record is stored in a bean which is added to arraylist.
now i want to display the arraylist in jsp
the empid should be assigned to check box
so e
Hi Thomas-
I must've missed the registering and loading of your resource bundle in which
case you'll need to
Register the resource bundle
http://java.sun.com/javaee/5/docs/tutorial/doc/JSFConfigure5.html#wp1004714
then load the bundle
http://java.sun.com/javaee/5/docs/tutorial/doc/JSFPage6.html#w
Any one know how to setup MAilReader example in MyEclipse/ Eclipse pls show
me:
I have problem loading the Welcome.jsp in MailReader example Even it doesnot
show any error in container console at all. I am using myeclipse to setup
for MailReader example.
I guess that the tree I setup to run MailRe
From: O'Toole, Joe [mailto:[EMAIL PROTECTED]
> My application receieves an xml request. I need to perform some
> transformation of this xml before performing business logic etc.
I don't know if this is the best/most elegant solution but you can
always throw stuff into a custom request processor or
One of my favorite subclasses is EventDispatchAction. Check it out:
http://struts.apache.org/1.x/struts-extras/apidocs/org/apache/struts/
actions/EventDispatchAction.html
Basically, it works by allowing you to define various methods in your
Action class, which are tied to your various submit
Hi
My application receieves an xml request. I need to perform some
transformation of this xml before performing business logic etc.
Is there anyway I can configure through struts that I can invoke a java
class that does this task as I don't want to perform it in the action or the
model. Something
Hi,
i am working on internationalization in struts.
for this i did the following
1) WEB-INF/classes/resources folder defined all the files
example : application.properties, application_fr.properties ..etc
2) in each file defined the labels
example
label.firstname=First Name
3) in struts-confi
Oh.
I don't think you can hot-deploy a new tiles mapping file; it won't
reload it automagically. So you may be asking for a tile definition the
system doesn't know about until it's restarted and reloads the tiles.xml
file(s).
But really, someone that knows more about this should probably put me i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thom,
Thom Burnett wrote:
> I have a few buttons on my jsp page and I want to have validation happen on
> some buttons and not on other buttons.
>
> Is that possible? How? Any examples around?
This question came up a few weeks ago, and I'll tell you
hi Dave,
Thanks again !! i will tell you the problem more breifly, actually the
classes are getting loaded with hot deployment, but the problem comes with
loading the tilesRequestProcessor. It gives
*java.lang.NullPointerException*
at
org.apache.struts.tiles.definition.ComponentDefinitions
I don't think you can just hot-deploy any class, particularly if it has
already been instantiated.
Someone more familiar with classloaders/app servers is going to have to
pick this one up; I just know that hot-deploy of Struts 1 classes
doesn't work real well on weblogic/tomcat 4/etc.
Sorry!
Dav
I have a few buttons on my jsp page and I want to have validation happen on
some buttons and not on other buttons.
Is that possible? How? Any examples around?
Hi kranti,
I have just imported the Status class and use it directly in the
setProperty() as Status.ACTIVE
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 9:31 AM
To: Struts Users Mailing List
Subject: Re: conversionexception
can u plz l
can u plz let me know the declaration of the property status
On 12/12/06, Deepa Umakanth <[EMAIL PROTECTED]> wrote:
Hi,
Its just a setProperty where is I pass a value
PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE);
Where Stauts.Active value is
public enum Status {
Hi,
Its just a setProperty where is I pass a value
PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE);
Where Stauts.Active value is
public enum Status {
ACTIVE, INACTIVE, TESTING, PUBLISHED
}
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Dear Deepa,
you should use that enum object as a collection.
if you want to display all the contents of the enum use logic:iterate and in
type attribute mention the object type
On 12/12/06, Deepa Umakanth <[EMAIL PROTECTED]> wrote:
I am facing an error with PropertyUtils.getProperty(),
Which
Error:
Caused by: org.apache.commons.beanutils.ConversionException: Cannot
assign value of type 'com.kryterion.wa.util.enums.Status' to property
'status' of type 'java.lang.String'
PropertyUtils.setProperty(context.getForm(), "status", Status.ACTIVE);
-Original Message-
From: Deepa Umaka
Hi,
i am working on internationalization in struts.
for this i did the following
1) WEB-INF/classes/resources folder defined all the files
example : application.properties, application_fr.properties ..etc
2) in each file defined the labels
example
label.firstname=First Name
3) in struts-confi
From: Juan Espinosa [mailto:[EMAIL PROTECTED]
> Element_customer.persons=org.apache.struts2.showcase.conversion.Person
Did you try with just Element.persons anyway? I don't have the project
in front of me but I had a nested thing like this and IIRC (which I may
not; it was awhile ago :/ it somehow
I am facing an error with PropertyUtils.getProperty(),
Which is :
Caused by: org.apache.commons.beanutils.ConversionException: Cannot
assign value of type enum object to property 'status' of type
'java.lang.String'
Please advice
hi Dave,
thanks for the quick reply, can you just tell me where can i find the
solution for it.Its urgent req for me.
thanks,
Harish
On 12/12/06, Dave Newton <[EMAIL PROTECTED]> wrote:
From: Harish Kumar [mailto:[EMAIL PROTECTED]
> I'm getting the below exception, but only after hot-deploying
Hi to all, im still still still having problems with population of
collections in actionsnow im making test with conversion examples in
showcase application
The examples is like this...
An action that have a list inside (a list of Person objects (no using
generics)), also have a conversion p
From: Harish Kumar [mailto:[EMAIL PROTECTED]
> I'm getting the below exception, but only after hot-deploying a class
> file -- for example, an ActionForm-derived class. I believe the error
> occurs only on pages that use the particular deployed class.
I've seen that under other servers including o
I'm lost, frustrated, and reaching out for help.
When I get my JSP in my browser it contains the following in the heading:
???message.excuseQuestions.title???
So I check my messages.properties file and found the following line:
# -- screen messages
message.excuseQuestions.title=Grounds for Req
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Richard,
Gundersen, Richard wrote:
> Thanks for the lightning-fast response.
Right place, right time.
> I'd already suspected it might be something like that, so I was just
> amending my code in a similar way. But, I was doing it the other way
> ar
Yup
That worked a treat
Thanks Chris!
-Richard
-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 12, 2006 2:55 PM
To: Struts Users Mailing List
Subject: Re: Brackets in validation.xml
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Richard,
Hi Chris
Thanks for the lightning-fast response.
I'd already suspected it might be something like that, so I was just
amending my code in a similar way. But, I was doing it the other way
around (right to left)
I'll try your way out now. The validator's not shy when it comes to
parentheses is it
Hi Richard
Did you check JIRA for this bug?
https://issues.apache.org/struts/browse/WW?report=com.atlassian.jira.plugin.system.project:openissues-panel
Martin--
---
This e-mail message (including attachments, if any) is intend
Hi,
I'm getting the below exception, but only after hot-deploying a class file
-- for example, an ActionForm-derived class. I believe the error occurs only
on pages that use the particular deployed class.
I just added the Tiles plug-in and configured the TilesRequestProcessor.
I do have a tiles-de
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Richard,
Gundersen, Richard wrote:
> Can anyone please tell me why this works. It's two versions of a
> validation rule from my commons validator xml file (for a validwhen
> condition):
The parser that the validation package uses cannot parse express
+1
perhaps a way to illustrate what zipName would look like..maybe expand on use
of OGNL expression for zipName with a hyperlink example?
also expand on advantages/disadvantages of using Struts 2 themes over tables
with a hyperlink to advantages/disadvantages for each technique?
nice example
Thx
Hi
Can anyone please tell me why this works. It's two versions of a
validation rule from my commons validator xml file (for a validwhen
condition):
(
( (oldProductStatusId == 21) and ((productStatusId == 21) or
(productStatusId == 23) ) ) or
( (oldProductStatusId == 23) and ((produc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Aiping,
[I marked this as off-topic because it looks like a JDBC issue and not a
Struts one.]
Aiping wrote:
> after a certain period, it starts to give
> java.sql.SQLException: No more data to read from socket and users of
> the website are not able
Po Po ha scritto:
But when I run, it's javascript error. When view the
html source see, the ${indexId} is not convert to a
number (just as string).
Do you use a JSP 2.0 compliant app server, such as Tomcat 5.5?
-
To unsubsc
try
onchange='<%= "onchangeGrade(" + indexId.intValue() + ");" %>'
Regards,
Nikhil
On 12/12/06, Po Po <[EMAIL PROTECTED]> wrote:
Hello,
I've a collection and i iterate using logic:iterate,
inside the iterate, put a html:select.
...
...
In the html:select, I add an javascript onchange
Hello,
I've a collection and i iterate using logic:iterate,
inside the iterate, put a html:select.
...
...
In the html:select, I add an javascript onchange
event. the event call onchangeGrade.
I need the indexId is write as parameter in javascript
onchangeGrade.
But when I run, it's javasc
On 12/12/06, Mallik <[EMAIL PROTECTED]> wrote:
Hi friends
i am converting a project into struts
i want to use my javascript(js) calender file in strtus
application.(calender will display in popup)
but that javascript file is not working.
what will be the reason
this way i link it to jsp file:
77 matches
Mail list logo