How to do this in struts 2 ?
In struts 1 i had:
MessageResources resources = (MessageResources)
getServlet().getServletContext().getAttribute(org.apache.struts.Globals.MESSAGES_KEY);
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Thanks for helping.
Sure, here are all my settings.
I use MySQL 5.0.37, Tomcat 5.5.17 and Windows XP SP2 and MySQL Connector/J
5.0.5.
The name of the database that I'd like to connect to is called "akr_db" and the
name of my web-application is called "SZTGKR".
1) I have a context.xml file in my
Hi,
This is Vijay and currently using Struts2.0.6 production viersion in my
application development.
I have been used almost all tags in Struts2.0.6 but there are problem in tag. It doesn't include cssClass and cssStyle of
Second Select box at run time.
So Is there any solution for it?
If any
In Struts 1.x we achieved the following by wrote:
> Hi,
>
> One page we got a Iterator containing the Action
> Names, which means Actions names are not known
> earlier,
>
> How can we retrieve the value inside the URL tag.
>
> How can we retrieve the dynamic action names like
> this
> in S2
>
I FOUND IT. Apparently it's not possible to modify the DOM during the
request. But when it's over we can do it:
Here's the code:
dojo.event.topic.subscribe("/disableAll" , function(data , type, request) {
if (type == 'load') {
disableInputs(true);
}
});
---
Hi,
if you are using struts 1.x you can use nested tags, look at this link for a
sample
http://www.laliluna.de/struts-nested-iteration-tutorial.html
Thanks,
Nuwan
- Original Message -
From: "hk" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, May 22, 2007 12:57 AM
Subject: How can I acce
Hi,
One page we got a Iterator containing the Action
Names, which means Actions names are not known
earlier,
How can we retrieve the value inside the URL tag.
How can we retrieve the dynamic action names like this
in S2
that is in
I am still having this problem. Did any one went through some thing
similar when using ajax to submit a form from a link or a submit Button
and when used notifyTopic ?
The problem is that the form fields are never populated in the action !
Any help ?
Mansour wrote:
No, I can not see any thi
I have a bean, which has a class that contains a ArrayList of another class.
In this case, how can I access the property of the last class in a JSP page.
For example, the business object Movie has a class TitleStores that contains
a property of titlestores, which is a conllection of a class store
As I cannot guess the contents please display the appropriate web.xml
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
Dear Martin,
Thanks so much for your kind reply, but unfortunately I didn't
understand it and I don't think it answers my question. You might be
referring to Struts 2, but I am still using Struts 1.3.8 so my action
servlet is declared as follows:
action
org.a
Dear Martin,
Thanks so much for your kind reply, but unfortunately I didn't
understand it and I don't think it answers my question. You might be
referring to Struts 2, but I am still using Struts 1.3.8 so my action
servlet is declared as follows:
action
org.a
Good Evening Mr Levine
I wanted to address your question
If we look at the action servlet declaration in /WEB-INF/web.xml we are
displayed
action
com.opensymphony.webwork.dispatcher.ServletDispatcher
action
*.action
Any files with extension of 'acti
Dear All,
I am writing a Struts 1.3.8 web application. I'm using tiles, and in one
of the JSPs participating a tiles definition I placed an tag.
The tiles processor throws a path-not-found-exception, but the page is
displayed correctly and the applet works flawlessly. This is the error
messa
Posting to the group, since I believe a solution has been found.
It appears that my issue was something like a buffer overrun in the jsp.
A solution that we are testing is the following code snippet:
<%@ page buffer="1024kb" autoFlush="false" %>
The current size might be a little overkill but, m
No, I can not see any thing logged. Here' the whole JSP. it should give
you an idea about what I am doing. I am trying to save/update an account
and run a JS to disable the inputs.
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ ta
If you add and use the ajax theme, is any error
logged?
musahcy
On 5/21/07, Mansour <[EMAIL PROTECTED]> wrote:
Yes they are submitted provided that the submit button is inside the
form. Here's my code :
dojo.event.to
Yes they are submitted provided that the submit button is inside the
form. Here's my code :
value="Save from inside the form w/o ajax">
dojo.event.topic.subscribe("/disableAll" , function(data, type,
>
> Yes, Tiger is the webapp.
>
> My struts.xml contains
> class="com.mysite.ecommerce.actions.StartOrderAction" method="input">
> /startOrder.jsp
>
>
> My struts.properties is located in WEB_INF/classes along with the
> struts.xml file and contains
> struts.devMode = true
> struts.enable.D
Is dynamic method invocation turned on?
As an aside, why is dynamic method invocation turned off by default.
From experience this suggests that either the functionality is
experimental, or is not the sort of thing you should be using unless
you have good reason and know what you're doing. Are
Use a regular submit (no ajax) and see if you values are submitted.
musachy
On 5/21/07, Mansour <[EMAIL PROTECTED]> wrote:
I still don't what wrong with this. I fixed few problems but still can
not get the javascript function to execute when the request is being
made. It send the request but t
I can't seem to get values retrieved from the DB to populate on the form. The
list jsp and retrieving from DB work great, but values don't seem to make it
to the jsp. I pass the ID into the action method, retrieve the record, and
want to display the results.
struts.xml:
jsps/errors.j
I still don't what wrong with this. I fixed few problems but still can
not get the javascript function to execute when the request is being
made. It send the request but the values for the form are not populated.
Hopefully someone can find out what's wrong with my code.
dojo.event.topic.su
Hi all,
i'm developing an application using Struts 2 + Spring + Hibernate + Tiles 2.
I'm using the Jdeveloper 10.1.3 as the IDE. When i run the app inside the
IDE, everything works fine. But when i generate an EAR file and try to
deploy to server (OC4J or Tomcat), i receive the following message:
It's working now.
It's my fault. The onclick function needs a return value:
href="javascript://">
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Sorry, that was my fault as I was reorganizing the code for the post.
The keyword "this" was not taken off:
And I really don't think this is the issue.
ID
email
Address
Phone
Fax
action="/fe/getAccountById.action" method="post">
John Smith
>From my understanding the onSubmit="return true;" code just allows the
form to be submitted. See
http://www.htmlcodetutorial.com/forms/_FORM_onSubmit.html
I noticed in your pasted output, the "this" is removed from the anchor
tags. Could this be the issue?
Mike
-Original Message-
Fr
Mike:
I tried this one too and I tried using getElementByID and I tried
document.all[frmName], they all worked fine. I was able to get the
object successfully under FF and IE. I view the contents of this object
using simple alerts and JS console in FF. The problem is when submitting
the form
I've never used the this.parentNode.submit() in a form. That might only
work in Firefox. (I make no claim if this is true, as I didn't look it
up)
What I generally use is document.formName.submit().
Hope I helped,
Mike
-Original Message-
From: Mansour [mailto:[EMAIL PROTECTED]
Sent
I need a table that contains anchors. Clicking on this anchors executes
the Action I need. The table is working great in FF but not in IE. IE is
getting the form object correctly put can not submit it. When I click on
the anchor in IE, the page stays there and no action is taken. When I
looked
On 21/05/07, Roger Varley <[EMAIL PROTECTED]> wrote:
>
> You might have to post config snippets... I'm assuming
> Tiger is the webapp?
>
Dave
Forget the previous post - it's working after a fashion.
http://localhost:8084/Tiger/StartOrder.action runs OK and calls
StartOrder.input().
http://loca
You might have to post config snippets... I'm assuming
Tiger is the webapp?
Yes, Tiger is the webapp.
My struts.xml contains
/startOrder.jsp
My struts.properties is located in WEB_INF/classes along with the
struts.xml file and contains
struts.devMode = true
struts.enable.DynamicMethodInvoc
--- Roger Varley <[EMAIL PROTECTED]> wrote:
> restarted Tomcat but no joy I'm afraid -
>
http://localhost:8084/Tiger/StartOrder!execute.action
> still gives me the error message.
You might have to post config snippets... I'm assuming
Tiger is the webapp?
d.
Is dynamic method invocation turned on?
("Hey dynamic method invocation... you sure are
looking good today," he cajoled, breathily.)
It wasn't. I've changed the struts.properties file from
struts.enable.DynamicMethodInvocation = false to
struts.enable.DynamicMethodInvocation = true and restar
--- Roger Varley <[EMAIL PROTECTED]> wrote:
> I'm obviously missing something
Is dynamic method invocation turned on?
("Hey dynamic method invocation... you sure are
looking good today," he cajoled, breathily.)
d.
Hi
I'm trying to call a method on my action using the ! notation as
explained in the CRUD demo. If I call my action from the browser bar
as http://localhost:8084/Tiger/StartOrder.action then the execute()
method runs. If I call
http://localhost:8084/Tiger/StartOrder!execute.action then I get the
Thanx
Antonio Petrelli wrote:
2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
Because i allready have a template like this
value="/tiles/footers/admin/footer.jsp" />
...
2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
Because i allready have a template like this
...
and i want the toolbar definition n
Because i allready have a template like this
path="/tiles/layouts/templates/admin/blackplazza_admin/mainLayout.jsp">
value="/tiles/layouts/templates/admin/blackplazza_admin/mainMenu.jsp" />
.
2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
Antonio Petrelli wrote:
> 2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
>>
>> Hello
>>
>> I am having the follwoing definition at tiles-defs.xml
>>
>>
>>
>>
>>
>>
>>
>> how can i set that "toolbar" definition will be nu
Antonio Petrelli wrote:
2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
Hello
I am having the follwoing definition at tiles-defs.xml
how can i set that "toolbar" definition will be null?
What is that "{$1}"? I really cannot understand it.
Antonio
I was just l
You can use the notify topics to validate the date and cancel the request if
the date is not valid. On 2.0.6 I don't think there is any way to get Struts
do it for you. On 2.1 you can mix ajax with validation so any validation
supported by struts can be used with the ajax tags.
musachy
On 5/21/0
2007/5/21, Jim Theodoridis <[EMAIL PROTECTED]>:
Hello
I am having the follwoing definition at tiles-defs.xml
how can i set that "toolbar" definition will be null?
What is that "{$1}"? I really cannot understand it.
Antonio
Hello
I am having the follwoing definition at tiles-defs.xml
how can i set that "toolbar" definition will be null?
at tomcat 5.1.8 the works fine but
at tomcat 5.5 i am getting an error like
The requested resource
(/tera/tiles/layouts/templates/admin/blackplazza_admin
--- xiaojie han <[EMAIL PROTECTED]> wrote:
> There is struts1 and struts2. what are the
> differences between them?
http://struts.apache.org/2.x/docs/comparing-struts-1-and-2.html
d.
Pinpoint
customers
I am new to struts.
There is struts1 and struts2. what are the differences between them?
Thanks.
Yahoo!
oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobi
I am sure this issue is not new, and it must be a work around, but
unfortunately I was not able to find it yet.
We have a local Windows environment (Sun App Server 8.2) where our project
works just fine. But once we deployed it on our server (Sun Solaris) we've
got the following error on every ac
Hello all,
I'm using a datetimepicker in a search form, the result of the form is
displayed in a s:div (thanks theme="ajax" on s:submit ).
My problem is, when the user set a wrong value in the datetimepicker (
"toto"), the s:div is updated but with the error page. In fact it's another
form with a
by searching for solutions for jar problems i had i came across this
http://jcp.org/en/jsr/results?id=3238
and wondered has anyone from apache gave this thought?
_
Don't just search. Find. Check out the new MSN Search!
http://searc
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Balazs,
Balazs Michnay wrote:
> I still cannot estabilish database connection using connection pooling.
> I think I made all the settings I need, but still nothing...
> 1) I have a tag in my server.xml
Can you show us the connection settings you are
2007/5/21, אלחנן מעין <[EMAIL PROTECTED]>:
hi...
in my lib folder of an ear i've found a 'mystery' servlet.jar which has
the
size (76,877 kb) , i tried looking into manifest.mf but it says nothing
about the version only:
Manifest-Version: 1.0
Created-By: Ant 1.4
how do i know which version
hi...
in my lib folder of an ear i've found a 'mystery' servlet.jar which has the
size (76,877 kb) , i tried looking into manifest.mf but it says nothing
about the version only:
Manifest-Version: 1.0
Created-By: Ant 1.4
how do i know which version it is?
(it causes problems with our jsp co
Hi martin,
Yes, Now that I look at Digester's faq, seems like this can be pretty
useful.Once the info in the files are available through java beans, i can
use them anywhere I want using the getter methods.
However, in my current scenario, looks like a simple key value pair, ie
having a .properties
On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:
Can you give me an example?
The reason I chose to do it this way is basically I can change the
inputDirectory, outputdirectory and other values without making any
changes
in the code, hence using it anywhere becomes easy.
In our company, we
vikas rao schrieb:
No, Martin, I wasnt looking at plain xml reading ,in that case i could
just
use a normal parser and get the values right?
Thanks,
Vikas.
Yes, sure, you could just use an XML parser and do your own stuff. The
problem with this approach would be that changing your XML structur
Hi there,
This post might not be struts-related, but I read so many posts on this issue,
that I thought I might ask...
Having read all the posts, I still cannot estabilish database connection using
connection pooling.
I think I made all the settings I need, but still nothing...
1) I have a tag
No, Martin, I wasnt looking at plain xml reading ,in that case i could just
use a normal parser and get the values right?
Thanks,
Vikas.
On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:
Hi,
Can someone point out a tutorial or some place where I can learn how to
read values from a .cfg file?
Can you give me an example?
The reason I chose to do it this way is basically I can change the
inputDirectory, outputdirectory and other values without making any changes
in the code, hence using it anywhere becomes easy.
In our company, we have a jar file which is included in the build path and
t
Hi,
Just wonder why you need to do this in xml way?
Wasn't it much simpler if you do it in properties (key value) format?
Most of the time, I just found it people like to overuse xml :-p
Best regards,
MK Tan
On 5/21/07, vikas rao <[EMAIL PROTECTED]> wrote:
Hi,
Can someone point out a tutoria
Seems like you are looking for some type of XML reading.
I would propose to look at Digester (which stems from the Struts
project originally) (http://jakarta.apache.org/commons/digester/)
or Betwixt (also from Apache Jakarta Commons
http://jakarta.apache.org/commons/betwixt/) which builds on Di
Hi,
Can someone point out a tutorial or some place where I can learn how to read
values from a .cfg file?
Say I have a Input.cfg file which goes like:
Now, if I need the inputDir value inside my program, how do I do it?
Sorry that this is off topic from struts, but i cant seem to find so
HI I have got the solution posted on the forum. just change the'\' slashes to
'/'slashes.:)
sudeepj2ee wrote:
>
> HI
>
> I am using jetty server and the zip file download part of showcase is not
> working in the jetty its giving the following error-:
>
> java.lang.IllegalArgumentException: Can
You can find lots of useful links about struts and frames at this URL;
http://www.google.co.uk/search?q=struts+frames
-Original Message-
From: jalal udeen [mailto:[EMAIL PROTECTED]
Sent: 21 May 2007 05:57
To: Struts Users Mailing List
Subject: Re: [OT] Re: frames
hi
im usin
Thanks for your help, I got it.
As an aside, it may be worth pointing out that exposing your users to
a detailed StackTrace is not usually considered to be a good idea.
Firstly, a stack trace means nothing to your users and may actually
intimidate them, and secondly, if your application is web
Hi Laurie,
Finally I'm working with DefaultActionMapper and wildcards:
Struts.properties:
struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMa
pper
struts.xml
{1}
{2}
/Re
Hi Musachy,
Thanks a lot for the response :)
Cheers!
Jordi Rubio Moreno
-Mensaje original-
De: Musachy Barroso [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 17 de mayo de 2007 17:55
Para: Struts Users Mailing List
Asunto: Re: [S2] Freemarker vs struts taglibs
FreeMarker is a templa
NotifyTopics is not working. I don't know why, but I tried every
possible thing. I can not understand what's wrong with this. The
function showMessage() is called only once, when the page loads !! and
nothing after that causes it to execute. It's just a smiple message for
testing:
function
67 matches
Mail list logo