Hi, can anybody help my?
I can't acces a bean property id in a modified freemarker template.
I can access all other properties with simple OGNL expression but not if
they are called id or ids
If I add a getter: getMyId(){
return getId();
} I can get it via ${myId} but not via ${id}.
I want
Hi,
I think all the things that is there in parameters like id and name can
not be accessed from ftl, Work around? No idea, I had a custom widget had the
problem, so had to change the name.
If I am correct, you can not access getName() etc...
Regards,
Jishnu Viswanath
Hi,
suprisingly I can access name with ${name} and it returns the bean
property name and not the tag attribute (which could be called with
${parameters.name?html}) or nothing. So why can I not access id???
Berst regards,
Sven
Jishnu Viswanath schrieb:
Hi,
I think all the things
Hi Dave,
I am sorry if this question goes out of the range. Thanks for your answer
!!!
J.
--
View this message in context:
http://www.nabble.com/Action-and-ActionForm-newbie-questions-tp19692405p19721298.html
Sent from the Struts - User mailing list archive at Nabble.com.
The OSIV is read only by default, but also works in tandem with
Spring's transaction managers and could change its flush mode.
See
http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/orm/hibernate3/support/OpenSessionInViewFilter.html
2008/9/28 Jack_Ryde [EMAIL
Where is your bean stored? It is pushed into the value stack? is it in
page? request? session?
2008/9/29 Sven Grünewald [EMAIL PROTECTED]:
Hi, can anybody help my?
I can't acces a bean property id in a modified freemarker template.
I can access all other properties with simple OGNL expression
Hi,
I am facing an issue in getting, selected value of autocompleter in
javascript.
Issue:
On the onclick event of a button, I am calling a javascript function.
getAutoValue() {
var selectedValue = document.getElementById(auto).value;
alert(selectedValue);
}
where 'auto' is autocompleter's
Hi
I tried to add the ExecAndWait Interceptor to one of my actions.
For that I added to my action configuration the interceptor-ref for it.
action name=xmlDownload class=de.jfr.xml.XMLDownload
interceptor-ref name=boxiStack /
interceptor-ref name=execAndWait
I think it is stored on the value stack. As I said, I can get its other
properties directly via e.g. ${name}... Only ${id} is not working :-(
Gabriel Belingueres schrieb:
Where is your bean stored? It is pushed into the value stack? is it in
page? request? session?
2008/9/29 Sven Grünewald
Possibly just one of those reserved keywords!?
Might not be very helpful, but just think in that direction...
Regards
Jan
-Ursprüngliche Nachricht-
Von: Sven Grünewald [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 29. September 2008 16:07
An: Struts Users Mailing List
Betreff: Re:
Hi,
is it possible to get the Mapped Name of the action that was executed
from within JSP or Java?
example:: if http://localhost/hello.action is executed i want to get
hello.
Greetings,
Alexander
-
To unsubscribe, e-mail:
Is there a stack trace in the server console ?
- Pascal
Sven Grünewald wrote:
I think it is stored on the value stack. As I said, I can get its
other properties directly via e.g. ${name}... Only ${id} is not
working :-(
Gabriel Belingueres schrieb:
Where is your bean stored? It is pushed
Hi Alexander,
try using the action context. I got this statement in my jsps to display the
action name.
#context['struts.actionMapping'].Name
Hope that helps!
Regards
Jan
-Ursprüngliche Nachricht-
Von: Alexander Baetz [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 29. September 2008
Hi,
I am using struts2.0.11(I missed out in the previous mail).
One more question, Is it possible to trigger onchange event of
autocompleter(Ajax).
Kindly help me
Thanks in advance.
Is it possible to invoke the default interceptor stack for a static resource?
I want to use an interceptor to protect resources, but so far the only way I
can prevent users from directly accessing a html or jsp is by forcing all
requests through a servlet filter. I would like to get away from
First of all: Thanks for your help!
@Jan
I also thought about reserved word, but didn't find id on the list of
reserved freemarker-words in the docs. And I also think, that making
id a reserved word is a very bad idea if you want to use a framework
also in database-context ;-)
@Gabriel
Hi,
I'm just getting back into Struts after a few years away from web
programming. I've got a question about methods for updating only
certain members of an object.
I've got a struts action that creates, updates and deletes a User
object. When updating though, I have two different jsp pages
--- On Mon, 9/29/08, Bobby Politte wrote:
I've got a struts action that creates, updates and deletes a User
object. When updating though, I have two different jsp pages that
update only part of the object (user information on one, and password
on the other). Unexpectedly (at least to me),
hi,
One way I can think of is to use hidden fields in your forms, to pass
long the values you do not want changed. This way you keep your
Model-driven action consistent and you pass along the parameters that
you do not want the user to change in each use-case.
A not so clean way would be to
autocompleter is a dojo widget, you should try to get its value through dojo
api for widgets not dom api. Your javascript will not work (as you have already
noticed).
regards,
- Original Message
From: sheva j [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Monday, September 29,
hi again,
According to what Dave explains then my recommendation does not apply.
Maybe you should check what values you are initializing the User DTO
model to, maybe some of the fields are initialized as null or maybe you
think you are updating but Struts is actually creating a new DTO
Inside the form.ftl, the stack.findValue(id') will find the form's id
attribute, since the Form component is _already_ pushed into the
stack. Hence, your action's id variable is shadowed by the form's id
variable.
What you would need then is ${action.id}
2008/9/29 Sven Grünewald [EMAIL
Hi!!
I am running into the same error. I have a div inside another div. After a
few clicks I run into this error.
Have you found a work around? Any help or advise would be greatly
appreciated.
Thanks!
dynamicd wrote:
First I thought the problem was from ACEGI that I recently added to the
THe problem for me was a Tabbed Panel inside another TabbedPanel.
I removed it and i now have just one Tabbed Panel and it works fine.
dxa wrote:
Hi!!
I am running into the same error. I have a div inside another div. After a
few clicks I run into this error.
Have you found a work
Francisco Exposito wrote:
Hi,
Is it possible to use jqGrid with struts2? I am trying to use it but I don't
know how to do it.
In the script we have:
jQuery(#list2).jqGrid({
url:'server.php?q=2',
datatype: json,
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
ReadOnly wrote:
Hi.. May be someone can help me:)..I start use struts 2.0.11, spring,
hibernate. I need create cascading select fields.. For example: first
select: city second select: streets .. When you are choosing city in the
first one select second one need show streets only for this
I am trying to do it by hand.
I have this in my jsp:
script type=text/javascript
jQuery(document).ready(function()
{
jQuery(#list1).jqGrid({
url:'/WebAds/AjaxRetrieveUser.do', // this is the page where the XML Output is
delivered
datatype: json,
colNames:['Nombre','Desc'],
colModel:[
Hi I'm trying to invoke the Struts Action class through a Custom Servlet made
by me which is accepting request from outside world and based on a specific
parameter i need to redirect the request to appropriate action class.
How do i invoke the action class from my servlet?
I was trying to use
I would use response.sendRedirect(String)
2008/9/29 Vineet [EMAIL PROTECTED]:
Hi I'm trying to invoke the Struts Action class through a Custom Servlet made
by me which is accepting request from outside world and based on a specific
parameter i need to redirect the request to appropriate
I have used the jqGrid using the standard jsson plugin, using the
exclude elements for excluding all the other action properties, and it
works correctly.
I thing the js that constructs the grid lacks the json mapper.
Tomorrow morning I will send you the code I use for this.
Si quieres ser más
Hi all,
I am using Struts 2.1.2 with the REST plugin. I am trying to stream a byte
array stored in DB as the response to a particular request.
I have mapped /* to the S2 FilterDispatcher. I have a class extending
ActionSupport called ImageController, and its package is configured as an
31 matches
Mail list logo