Hello,
I'm completely stuck with following problem:
I have a form with one input type='file' field and one hidden input which
named documentId.
Normally when user uploads a file, value from hidden input passed into my
action property named documentId, so prepare() method retrieves some data
Hi,
as in subject. Is there in Struts2 tag which have the same behavior as
logic:redirect from Struts1? If no, how I can achive simillar effect
with S2 tags?
--
greetings! kbl/Cinek/greengoo
marcin.pietraszek.pl
-
To
Hi, how do I override the default value for the escape attribute
of s:property? I want to set it to false, as was the case in
WebWorks.
Thanks,
Claes
--
View this message in context:
http://www.nabble.com/-S2--Overriding-%3Cs%3Aproperty-escape%3D%22true%22%3E-default--tp14650078p14650078.html
Hi all,
I have an action property holding a key in a properties file. In the view
page, I like to display the value of the key. Since struts tags only accept
plain text as attribute values, I can only render the key in the view like
this:
s:property value=varHoldingKey/
Using s:property
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Using s:property value='getText(varHoldingKey)/ is NOT allowed because
of syntax error.
Is that a typo?
I use getText(...) inside s:property.../ tags fairly frequently w/o issue.
d.
[EMAIL PROTECTED] wrote:
Using s:property value='getText(varHoldingKey)/ is NOT allowed because
of syntax error.
The syntax error is that you have unmatched ''s and 's.
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
http://struts.apache.org/2.0.11/docs/redirect-action-result.html
the struts2.x prescribed algorithm is to use a redirect-action
is there something specific in your webapp to prevent you from using
redirect-action?
Maybe this could be named specyfic.. I want to redirect to action X
when
AFAIK there is no tag for this.
Can't you just use a scriptlet? It's only in one file.
d.
--- Marcin Pietraszek [EMAIL PROTECTED] wrote:
Hi,
http://struts.apache.org/2.0.11/docs/redirect-action-result.html
the struts2.x prescribed algorithm is to use a redirect-action
is there
Oops.
AFAIK S2 doesn't have an equivalent tag.
Can't you just use a scriptlet? It's only one file. Or use JSTL.
d.
--- Marcin Pietraszek [EMAIL PROTECTED] wrote:
Hi,
http://struts.apache.org/2.0.11/docs/redirect-action-result.html
the struts2.x prescribed algorithm is to use a
Hi Martin
Thanks for the reply
Yes, I need to access a Spring Context object from the Interceptor. So I
basically have 2 options, I can inject them in some way in the interceptor
which I haven't found a way, or I can access the WebApplicationContext from
the init method but I need the
Thanks Dave and Dale.
If the varHoldingKey is a key, it works fine. However, it is not a key
itself. It is an action property holding the key.
Suppose the key is confirm.title so varHoldingKey's value is the
confirm.title string. In the view, s:property value=varHoldingKey/ will
display
Get the text in the action.
You should be able to call a method inside getText, though.
--- [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks Dave and Dale.
If the varHoldingKey is a key, it works fine. However, it is not a key
itself. It is an action property holding the key.
Suppose
Hey All-
I'm developing an application using the ModelDriven approach. On of my
forms is a grid style data entry page and I'm having a difficult time
getting validation to work. I used the approach specified by Patrick
Lightbody (http://struts.apache.org/2.0.11/docs/type-conversion.html) for
Thanks Dave.
I wanted to do it either in the bean class or in the view page but now it
seems I have to deal with that in the action class.
Thanks again.
On Jan 6, 2008 3:42 PM, Dave Newton [EMAIL PROTECTED] wrote:
Get the text in the action.
You should be able to call a method inside
how should i get its value..i'm really new to this please help me..
should it be this way..
List selectedmod = getSelectedModules();
System.out.print(Selected +selectedmod.get(0));
thanks again
xniit2003 wrote:
It should be a list.
I guess your selectedModules in the name attribute is
Hi!,
I guess Im not understanding why you don't want to use
redirect-action-result?
Because I want use as a first-web-page tiles page. And as far as I
know I can achive this only with
action name=actionName
resulttiles.index/result
/action
so I want to redirect from index.jsp to
[EMAIL PROTECTED] wrote:
If the varHoldingKey is a key, it works fine. However, it is not a key
itself. It is an action property holding the key.
So, have you tried s:property value='%{getText(varHoldingKey)}'/ ?
-Dale
-
To
Hi ,
I have just started on struts 2.There seems to codebehind plugin for REST
for struts.
Basically i am trying to create a service say /servers/
Now i want to implement REST GET requests to servers/app1.,servers/app2
where app1,app2 are server names for which again i need to access
Hi,
I want to bypass FilterDispatcher for specific request.
Actually i use uploadFilter and here whenever i submit file upload reqeust
first time
the inputStream of the given request is consumed first time might be by
filterDipatcher
so first time i can not upload file.
so can any body tell me
i have a form select.. my problem is i dont know how can i get the selected
values in the form select box.
here is my code..
s:select name=selectedModules value=%{edituser.modules.{moduleId}}
list=modules listKey=moduleId listValue=moduleName
multiple=true size=7 /
Brian,
I guess you are using Spring 2.x.
I think you have to use scope=prototype (or scope=session if you
need it) instead of singleton=false.
Joachim
I have read through the spring plugin wiki page
http://struts.apache.org/2.0.11/docs/spring-plugin.html for struts2.
I want my actions to be
Hi
If I have an Exception configured to a Result and a Result to a JSP is it
possible to get the Exception object from the JSP page?
Regards,
Néstor Boscán
22 matches
Mail list logo