Hi,
Since portlets cannot use servlet session filters like the Spring
OpenSessionInViewFilter, what is the recommended approach to the Hibernate
lazy-load issue with Struts2 portlets?
The Spring Portlet MVC framework has the OpenSessionInViewInterceptor in
conjunction with their HandlerMapping st
Hi,
I'm trying to implement a scenario in which if the user who has not logged
in clicks on a page "for logged in users only" should be
redirected to "login page", and then after logging in he should be
redirected to the page he originally requested for.
I need to implement this in struts2.Can
No, I know how to write Jvascript to do my own validation, that is not a
problem. I am trying to use the Struts 2 client side validation to do this
for me. That is one of the benefits of the Struts 2 validation framework -
you can simply define a form element as 'required' and struts handles all
t
Thanks for the feedback.
For lack of an accepted 'correct' solution on hand, I've gone for the
following. If anyone else is interested, it's a not-TOO-horrible solution.
The general outline looks like:
function addDataelement(id) {
var x = document.getElementById(divEl
I don't know the exact code (I always forget JS details) but the basic
idea would be to give your checkboxes IDs in the JSP, then use
getElementById() to grab the DOM nodes for them and just do
(node.checked == true), then && the results. And your submit would have
call the method that validates as
Hello All,
I have a flow that is basically a toplevel struts2 action having a
result of type TilesResult. That tile
result has as one if it's attributes another struts2 action that also
has a result of type TilesResult.
So my tiles.xml looks like this (I've changed names and attributes to
try
how to include .swf in struts application?
tks
john
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
I am using struts 2.0.11, and with the validation framework, client-side
validation is of course done using javascript:
http://struts.apache.org/2.x/docs/client-validation.html
Javascript must be used for my project so I have no problem requiring it.
The client side (javascript)validation works
Hmm. I don't know of a way to make Struts 2 give back 2-D array
properties in the auto-magical way that it will do 1-D arrays (doesn't
mean there's not one: I keep finding out that a lot of things I want to
do can be done by magic if you know the correct XML incantation) but
perhaps you could sides
If you want client-side anything, wouldn't you want to use JavaScript?
As far as I know, everything XWork validation does is on the server.
(I would say have a validator in the action bean too, though, in case
the use has JS disabled and manages to submit without passing that
check.)
-Origina
Is it possible to set a different default interceptor stack per package using
default-interceptor-ref? I have split my struts configuration into mutiple
files each with a different package name. I have set the default in the first
file and the default for the second in the second file but the
Hi,
you are using spring, aren't you? If so, you have to set the scope of
your bean in the applicationContext.xml to "prototype" (or setting the
attribute "singleton" to "false", depending on the version of spring you
are using).
Joachim
Alec C4 schrieb:
Hi, all.
I have a config with
Is it possible to get back 2D arrays from a form?
I want to be able to have a table with some number of rows. Each row has a
'grouping' field which the user can enter a number in. Each row will also
have a dynamic 'foo' column which will have a button to add additional 'foo'
values. Some javasc
Hi everybody,
I have a form for updating the user information in my application. This form
is loaded when I click on an "update" link in my user information table.
The update form includes: username, password, and email fields, followed by
a drop-down list of available user groups that the user
In org.apache.struts2.components.Achor
public void evaluateExtraParams() {
super.evaluateExtraParams();
if (href != null)
addParameter("href",
ensureAttributeSafelyNotEscaped(findString(href)));
}
On Fri, May 9, 2008 at 9:59 AM, akshi gupta <[EMAIL PROTECTED]> wrote:
Actually I am writing my own custom tag by extending AnchorTag class
because I want "href" value for some business rules thats why I wanthref
evaluated value.
Now can you tell me from which method href evaluated value is coming?
Thanks,
Akshi
Musachy Barroso wrote:
I am not really sure why
I am not really sure why you want to know but here is the short explanation:
This will construct a url like: "/edit.action", and push it into the
stack, associated with the key "edit" (from the "id" attribute). Later
on
Edit
"%{edit}" will be evaluated against the stack and "/edit.action" wil
--- Laurie Harper <[EMAIL PROTECTED]> wrote:
> Is what a Spring 2.5 thing? AFAIK, you need to set the action
> mapping's 'class' attribute to the Spring bean identifier to get
> injection via the spring plugin...
Oh; I wonder why I don't have to do that.
My understanding was that they only need
I need to access the getServerName method of the request from an action, but
I¹d like to do it via the request map. What parameter do pass the get
method? I couldn¹t find anything on the site.
Z.
Hi, i installed Tomcat 6.0.16, and move existing application from
tomcat 5.5 to tomcat 6.6. after doing so, then i make the change to
server.xml(global) only, add the block of to reflect the
existing/transfered application but when i do test, receive error
message
Hello,
If we use anchor tag like this :
(ListSuccess.jsp) :
> <%@ taglib prefix="s" uri="/struts-tags"%>
.
.
> namespace="/" />
> Edit
Now , how href value get parse and get the complet
If you are refering to the annotations, yes they are an spring 2.5
thing (about time!).
musachy
On Fri, May 9, 2008 at 3:14 AM, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's
> 'class' attribute to the Spring bean identifier to g
Hi Laurie,
My JPA query is like that
Query query = em.createQuery("*SELECT c.name, c.id FROM Group c ORDER BY
c.name*");
List resultList = query.getResultList();
My "resultList" have all the values.It has the list of rows of id(numerical)
and name(string). "Group" entity has "id" of long
mgainty wrote:
>
> 2.0.11 FileUploadIntereptor.java
>
> ActionContext ac = invocation.getInvocationContext();
> HttpServletRequest request = (HttpServletRequest)
> ac.get(ServletActionContext.HTTP_REQUEST);
> HashMap map = request.getParameterMap();
> //for further information take a look at
>
Jeromy Evans on 09/05/08 08:05, wrote:
Adam Hardy wrote:
I initially shied away from doing that because I figured that later on
in the show we might want to use Collection sub-class x, y or z.
However the alternatives were too time-consuming, so I have done just
what you said.
I am now the
Is what a Spring 2.5 thing? AFAIK, you need to set the action mapping's
'class' attribute to the Spring bean identifier to get injection via the
spring plugin... but maybe I'm just tiered and not thinking it through :-/
L.
Dave Newton wrote:
Is this a Spring 2.5 thing? I'm not using 2.5 yet a
Adam Hardy wrote:
I initially shied away from doing that because I figured that later on
in the show we might want to use Collection sub-class x, y or z.
However the alternatives were too time-consuming, so I have done just
what you said.
I am now the proud owner of BidirectionalChildList()
27 matches
Mail list logo