Hi. I have a div where I want to put the result of an action after submitting
a form like this:
The problem is that
Use wildcards for your actions.
The action's alias now includes the method name. Refer to the action by
it's alias matching the wildcard:
Use the validation filenames ActionClassName-alias-validation.xml:
MyAction-abc_methodA-validation.xml
MyAction-abc_methodB-validation.xml
Refe
Hello ,
i want to know how to hide & unhide a hyperlink.
Thanks
--
View this message in context:
http://www.nabble.com/hide---unhide-hyperlink-tf4315531.html#a12287720
Sent from the Struts - User mailing list archive at Nabble.com.
---
Hello,
i want to know how i can print value of a boolean variable in struts ,which
i used in my java class.
thanks
--
View this message in context:
http://www.nabble.com/how-to-print---check-value-of-boolean-variable-tf4315530.html#a12287717
Sent from the Struts - User mailing list archive at
Hello everybody. I am getting this error when I am trying to use tiles in
struts2. If anybody could help that would be terrific. Any input will be
greatly appreciated. Thank you.
javax.servlet.ServletException: Unable to define definition for a container
which does not implement MutableTilesContai
Resend
On 8/20/07, j alex <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Just checking one more time if someone has an answer to my below email. We
> decided to go with XML validation, and as i understand it, we cannot have
> validation files based on action methods, but can only name it by action
> alias
Hi You need to use a different result type:
anotherAction
On 8/21/07, Sawan <[EMAIL PROTECTED]> wrote:
>
> Hello Experts,
>
> I want to call an Action within the Action result and I am trying following
> Struts XML.
>
>
> /Action2.actio
Hi I am getting this error could anyone help please. I am trying to use
tiles in Strut2 thanks
javax.servlet.ServletException: Unable to define definition for a container
which does not implement MutableTilesContainer
--
Pavel Sapozhnikov
xFact, Inc
[EMAIL PROTECTED]
On myForm, I have a collection (an array of Analyst objects),
analystList, when I iterate through it, I want to render a check box for
each row, and I specifically want to put the analyst id to value
attribute of the checkbox tag, do you know how to do it? And also how to
get the value of the check
mraible wrote:
>
> I have the following class:
>
> public class TestAction {
>
> public static String concat(String str1, String str2) {
> return str1 + " and " + str2;
> }
> }
>
> In a JSP, I can write the following and it works fine:
>
>
>
> However, if I change it to an
Thanks so much for the detailed replies to my tiles/sitemesh question.
Two thumbs up to this forum, and thanks for taking the time to share this
useful information.
:)
Sol
-
Boardwalk for $500? In 2007? Ha!
Play Monopoly Here and Now (it's updated
Hi everybody. I have a question. I included all necessary things in order to
take advantage of tiles in Struts2. I included listened in web.xml I
included result type in struts.xml so now I know that I need
tiles-config.xml in my WEB-INF right. Well how does tile-config.xml look
like. Could anyone
People in the list,
I would like to specify derby home to the JVM so that the JVM can pickup the
database.I added one line in catalina.bat. I added the last line to JAVA_OPTS
as shown below:
set JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
Your form buttons do not have to invoke the same action. Try this
-Original Message-
From: abhiram [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2007 11:30 AM
To: struts forum
Subject: redirect to jsp when cancel button is pressed(without executing
the correspo
hi!! that was a smart way.. but i could make it work only in static html..and
not in a jsp with struts tags. i want to use only struts tags .
it is working if i write it this way..
--
--
but if i write an for the second form too.. it is not working.. as
it was
I put the folder in the root of the application, at the same level as
WEB-INF
All the best! May the force be with you ;)
GEDA wrote:
Struts version is 2.0.9
I will try once again and repeat the steps you wrote here. Wish me luck.
One question: Where exactly did you put the folder template/aja
In my experience, just having OSIV doesn't automatically imply that you
expect all your data to be retrieved ad-hoc. (maybe the users do :)
OSIV doesn't prevent the user from using eager fetching when necessary or
useful ( and my experience delays it until your application is working and
you'r
And what if you are using a different ObjectFactory... such as Spring?
- Patrick.
-Original Message-
From: Don Brown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 22, 2007 5:26 AM
To: Struts Users Mailing List
Subject: Re: [S2] how to get the constants in struts.xml
programmatically?
I haven't tried it yet, but the Chaining Interceptor is also meant for
this purpose.
[EMAIL PROTECTED] wrote:
>> 1) How can values in the value stack be sent among actions, so that they
> are
>> available in the final web page?
>
> Put your values in HttpSession
>
>
>
>
>
> wild_oscar <[EM
Thank you for your answer.
I have picked up some information on OGML, and debug screen helped also.
I am starting to be quite comfortable in Struts 2 and like it a lot.
kuvera
Aram Mkhitaryan írta:
> no, standard EL is quite different,
>
> here we have value stack,
>
> if you don't specify the
One of many options, I can think over the top of my head is, use just that
button in a different form. Simple but I guess it would work.
abhiram <[EMAIL PROTECTED]>
08/22/2007 08:30 AM
Please respond to
"Struts Users Mailing List"
To
struts forum
cc
Subject
redirect to jsp when cancel b
Hi!! i have a small problem..
in a particular jsp (which is a form), there is a cancel
button().
i just want to know how to redirect to another page when the cancel button is
pressed (instead of executing the corresponding Action of the form).
for instance.. there is a page called AddAddre
>1) How can values in the value stack be sent among actions, so that they
are
>available in the final web page?
Put your values in HttpSession
wild_oscar <[EMAIL PROTECTED]>
22/08/2007 16:48
Veuillez répondre à
"Struts Users Mailing List"
A
user@struts.apache.org
cc
Objet
Sending value
no, standard EL is quite different,
here we have value stack,
if you don't specify the id by #id,
then it retrieves everything from the root element which is your action,
so to get from session or request, first use #request or #session
Best,
Aram
Aram Mkhitarya
Being new to Struts2, I was searching for an answer to a use case I
developed:
- Welcome page has login form (send to LoginAction)
- LoginAction reads username and password and sends to ListStuffAction
- ListStuffAction reads stuff from database and sends to Stuff page
- Stuff page lists the stuf
Struts version is 2.0.9
I will try once again and repeat the steps you wrote here. Wish me luck.
One question: Where exactly did you put the folder template/ajax in your
application ?
Thanks.
Manu Mahajan-2 wrote:
>
> This is the link to the file that I used
> http://svn.apache.org/viewvc/str
Hi,
My web application allows a user to authenticate via a database.
When he submits his username and password, the request goes to the
AuthentificationAction.
In this action, I want to clean the session if he already had something in
the session
(e.g. he connected with a username and then he wa
Thanks anyway, I'll try it immediately...
All my best
Riccardo
___
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
http://it.docs.yahoo.com/nowyoucan.html
---
--- Riccardo Mollame <[EMAIL PROTECTED]> wrote:
> WHERE'S THE DAMN PROBLEM?!?
The "params" interceptor [1] does not do what you
think it does. You are assuming you have implemented
ParameterAware [2, sorta], which is different.
d.
[1]
http://struts.apache.org/2.x/docs/parameter
I think that you'll need to declare the param, something in the likes of...
/ActionParam.jsp
{1}
not sure though since I don't have the time to thoroughly look through the
code :p
Riccardo Mollame wrote:
>
> file set:
>
> Launch JS
file set:
Launch JSP page: TestActionParam.jsp
Action: ActionParam.java
Response JSP page: ActionParam.jsp
Struts config file: struts.xml
source code:
TestActionParame.jsp **
<%@ taglib prefix="s" uri="/struts-tags" %>
TestActionParam
test
***
It's not as easy as modifying the code the way I did, because if you use
the validation in a form, and the validation fails, it goes through the
tiles processor with and uri null, and because of the modifications it
fails coming back to the original screen.
So I've put the old code(in fact the nor
:(... so i´ve to change all my nice autocompleters :_(
Pedro, I don´t know anything about DWR? have you did your own autocompleter
using DWR ? or you get it from some place? do you have any link ?
thanks a lot.
Pedro Herrera wrote:
>
> I was having the same problem. What I did ? Autocom
On Friday 17 August 2007 17:35:32 Pedro Herrera wrote:
> hi,
>putting the constant in strut.xls works fine ?
>
>
This works great, thank you!
Also thanks for pointing me to the JIRA issue, James.
> Herrera
Bye, Sandro
> Sandro Giessl-2 wrote:
> > Hi,
> >
> > I'm doing file upload usi
First, ensure that the object that Struts will be injecting to is
created by Struts. Then, you can do:
@Inject(StrutsConstants.SOME_CONSTANT_HERE)
public void setSomeConstant(String val) {...}
For example, Actions, Interceptors, and Result objects are generally
processed for injections by Struts
On Friday 17 August 2007 17:35:32 Pedro Herrera wrote:
> hi,
>putting the constant in strut.xls works fine ?
>
>
This works great, thank you!
Also thanks for pointing me to the JIRA issue, James.
> Herrera
Bye, Sandro
> Sandro Giessl-2 wrote:
> > Hi,
> >
> > I'm doing file upload usi
Lazy initialization is to boost performance. The problem is that it doesn't
apply to all cases. In cases where you have to iterate over a list of
objects and those have lazy loading properties that you need, it will
generate a lot of extra queries to to database. In those cases it's best to
use eag
Anyone know the answer?
Thank you very much
Joe Lam wrote:
>
> In my class, I want to read a constant in struts.xml.
> I see some examples using @inject , somehow I cant make it work.
>
> May someone help me? just wanna to get those constants in struts.xml
> (don't want to use java properti
This is something new to me, I always thought that lazy initialization
is to boost performance. So we should really use eager fetching by
default and minimize the use of OSIV.
On 8/22/07, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote:
> "And, is there a better alternative than using
> OpenSessionInV
"And, is there a better alternative than using
OpenSessionInViewInterceptor?"
Yes. It's important to realise that while OpenSessionInView feels very
handy, it is not a particularly nice design pattern, as it can stress your
database with lots of small queries. It's best to learn how to do eager
fe
probably you'll need to invert the filter-mapping declaration order.
hezjing wrote:
With OpenSessionInViewFilter, my web.xml will look like this
struts2
org.apache.struts2.dispatcher.FilterDispatcher
sessionFilter
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
With OpenSessionInViewFilter, my web.xml will look like this
struts2
org.apache.struts2.dispatcher.FilterDispatcher
sessionFilter
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
struts2
/*
sessionFilter
/*
Does it cause any conflict when both struts2
You can't use the OpenSessionInViewInterceptor from Spring in Struts 2.
Struts 2 interceptors are not compatible with Spring interceptors as they
have their own interface. You'll have to use OpenSessionInViewFilter. Take a
look here:
http://www.springframework.org/docs/api/org/springframework/orm/
Hi
I'm encountering this exception (when trying to iterate a list of
orders for a specific customer in JSP),
failed to lazily initialize a collection of role:
com.dummy.Customer.orders, no session or session was closed
at
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializat
Ok... so you could create a Number format type converter, but what about
getting the locale (i18n) format from resource bundles?
I could not find a way to get a text from the message resource bundles (like
getText('format.number') in the Action classes).
Anyone facing the same problem?
Luiz He
Hi all,
In my aplication I need to String to Date, it is working only for
MM/dd/ format only
I found strange that it is hardcode inside the XWorkConversion class.
Is there any other place where I can set this date format.
thanks to all
regards
Vamsi
---
>
>
> Hi,
>
> is there a way to specify different images for each node? Or are property
> such expandIconSrcPlus immutable for the entire tree?
>
> Thanks,
>
> P.
...ping? (Btw, I think it's not possibile because it's a ?)
--
Have you resolved this yet? Did you find anything in your startup logs?
Nils-H
On 8/16/07, Frederick N. Brier <[EMAIL PROTECTED]> wrote:
> I have deployed the struts-portlet example, and it works. I continue to
> make comparison's between all of its configuration files, my own, and
> other examp
I kept that one too.
that's why I said all the script files are getting loaded also.
maybe you forget to add between the tag
2007/8/21, vamsi <[EMAIL PROTECTED]>:
I am facing some problem with datetimepicker
datetimepicker not showing up any thing on the browser(any browser)
But the all
Google ? Search in nabble's forum ?
http://www.nabble.com/how-to-use-confirmdialog-box-tf4303548.html#a12249806
kushi <[EMAIL PROTECTED]>
22/08/2007 08:56
Veuillez répondre à
"Struts Users Mailing List"
A
user@struts.apache.org
cc
Objet
how to use confirm dialog box
Hello experts
50 matches
Mail list logo