hi,
the index.jsp you post in here, does not have a link to
search.jsp just 2 lines of text.
So i cant reproduce the error you described.
For example this index.jsp presents a link to search.jsp and it works:
(of course html:link will work too)
<%@ taglib uri="http://struts.apache.org/tags-html
Nilay,
As you can see Attributes for action from:
http://struts.apache.org/dtds/struts-2.0.dtd
There is no configuration that would let you do that. However you can do this
programatically by using ServletActionContext.getRequest().getMethod()
Hope this helps.
Kumar.
--- On Fri, 3/27/09
I'm interested in storing multi-line information that would later be
retrieved into s:text (for instance, text to be displayed in the "about us"
page in a site).
Is it possible to do so?
I've tried the common "\" in the properties file, but s:text only returns
the first line in that case.
How to make Struts2 action take only POST request. Is there any way like
spring controller , acceptable HTTP method. We only want submit to happen by
post and no GET request should be allowed
--
View this message in context:
http://www.nabble.com/How-to-make-Struts2-action-take-only-POST-request
> --- On Fri, 3/27/09, Musachy Barroso wrote:
>
> There is no documentation about it. Don't tell anyone I told you, but
> you just need to do something like:
>
> @Inject("the.constant")
> public void setSomeConstant(String constant) {
> }
Darn it, Musachy! If you keep giving away our secrets, ho
Works Great. Thanks.
--- On Fri, 3/27/09, Musachy Barroso wrote:
From: Musachy Barroso
Subject: Re: using inject with Convention Plugin
To: "Struts Users Mailing List"
Date: Friday, March 27, 2009, 12:55 PM
There is no documentation about it. Don't tell anyone I told you, but
you just need to
same situation with me,i want to set parameter for FileUpload action in REST:
image/JPEG,image/PNG
how can I do this?
在2009-03-24,"Radoslav Krivak" 写道:
>
>
>GF-7 wrote:
>>
>> Is this a TODO or is it already available?
>>
>
>In 2.1.6 it certainly isn't available. I was looking for somet
There is no documentation about it. Don't tell anyone I told you, but
you just need to do something like:
@Inject("the.constant")
public void setSomeConstant(String constant) {
}
and the value of the constant with key "the.constant" will be
injected. You can also inject by type, like the "Contain
Hi,
I am looking for a way to inject resources while using Convention Plugin. I
can't find any relevant docs. Can someone point me in right direction?
Thanks,
Kumar.
Hi,
I have issue in building simple Struts. application. I encounter error when
I want to click the button that link to serach.jsp page from index.jsp.
I am using Struts 1.3.10, Apache Tomcat 5.5.17.
I am stack due to this error. thanks guys.. :)
below are the details:
Error message:
its the default validation method...
- if you use the Validation Framework ( FormBean extends ValidationForm)
its validation method will be called(validate all fields against the
configuration in validation.xml)
and all errors will be added to the default ActionMessage Object
- if u use yo
Hi All,
We are developing an application with Struts 2.1.6 and tiles 2.0.6. We
don't want the browser to cache the pages.
I tried all the options and still the browser is caching the pages and when
I hit the back button the page gets loaded.
Tried Options
1. Wrote an interceptor and added the
We also have a pattern for many situations where we encapsulate our
page-centric handling into a single action where for example a GET into
the action sets up the page, and a POST to the same action for form
handling but to a different method in the action. Our approach to avoid
validation on the
I can't remember where I found this information its been so long since we added
the configuration. And now I'm not sure if its right. But I do recall that
when we added the property to struts.xml for:
that the value was a magic number. Again, I just don't recall why. We haven't
hit the li
Actually no. We intentionally did not make my class with the blob
property a serializable class, mainly because blobs are not serializable
(if I'm not mistaken) and if they are, there's no reason for us to store
this particular object in serialized form (we're not clustering or
putting this object
Hi,
The problem is most probably that dojo.xhrGet is not available in the
dojo version that comes
with Struts 2.0.x ( dojo 0.4)
You must make sure to use only dojo functions that are avail. in ver. 0.4.
See here more details:
http://dojotoolkit.org/forum/dojo-0-4-x-legacy/dojo-0-4-x-support/w
Hi guys, sorry for the previous email. I pressed some shortcut by accident.
I am trying to generate an ajax request with javascript. The code is very
simple but it doesn't work.
The message I get is: dojo.xhrGet is not a function (in Firefox error
console).
With a and , I am able to generate a r
Hi there,
I am trying to submit a form as an ajax request
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
function submitForm() {
var kw = {
url: "example.HelloWorld!execute.action",
handleAs:"text",
load: function(response){
18 matches
Mail list logo