Hi,
I m writing a REST service in S2 (using REST plugin) to store the data
received through xml snippet. But I m struck with the default behavior of
the plugin
http://www.w3.org/2001/xml-events"; xmlns:xforms="
http://www.w3.org/2002/xforms"; xmlns:xhtml="http://www.w3.org/1999/xhtml";
xmlns:xs=
Hi Nuwan,
Thanks a lot for your quick response.
I am doing that by using following site
http://www.utf.ru/tables/arabic.html
i am using sample example struts2-blank-2.1.6.war
HelloWorld.jsp
ar
Arabic
package_ar.properties
HelloWorld.message=
Hi Numan,
I am doing that by using following site http://www.utf.ru/tables/arabic.html
i am using sample example struts2-blank-2.1.6.war
HelloWorld.jsp
ar
Arabic
package_ar.properties
HelloWorld.message= ت
requiredstring = ${getText(fieldName)}
Hi,
you have to convert the arabic into Unicode and put to the message
properties file,
Thanks,
Nuwan
sajidbigler wrote:
Hi Friends,
I tried struts2-blank-2.1.6.war example and its working fine.but when i
tried to make it arabic locale i am not able to make it :(
with reference to below li
Hello Nils-H.
Customizing multipartRequestProcessor seems really hard.
I modified RequestUtils instead. I commented out the usage of
multipartHandler in method populate.
Now all my multipart/form-data requests are treated as
non-multipart/form-data and I am able to upload
files without using str
thanks for your reply...
If I understood you, then css theme actionerror.ftl or at least simple theme
actionerror.ftl should be picked and rendered. Can you think of the reason
for these templates not shown? (If seen more people with this same problem
asked in forums but now answer to them)
thank
On Thursday 26 February 2009 20:04:55 Greg Lindholm wrote:
> I would really like to know the answer as well, how do you validate a list
> of fields with annotations?
>
> let me tweak your example a bit so it will at least work (before
> validation).
> (See http://struts.apache.org/2.x/docs/tabular-
I would really like to know the answer as well, how do you validate a list of
fields with annotations?
let me tweak your example a bit so it will at least work (before
validation).
(See http://struts.apache.org/2.x/docs/tabular-inputs.html)
public List getMytext() {return mytext;}
public voi
If your actions are extending ActionSupport than you can go like so:
public String intercept(ActionInvocation invocation) throws Exception {
String message = ((ActionSupport)
invocation.getAction()).getText("resource.key")
...
}
Zarar
On Thu, Feb 26, 2009 at 12:23 PM, Security M
Hi,
I'm using Struts 2. I have this action-mapping ...
I first visit my page, http://localhost:7005/re/jsp/pcAccountLookup.jsp,
which submits a form to "/re/pcFlow.do". Unfortunately, this is when I get
a 404 error. Wha
Hallo Jim,
perfect, thank you
Jiri
Jim Kiley napsal(a):
The way I solved this was to add my own theme, and change the xhtml
theme's "checkboxlist" template to match what I wanted 'my'
checkboxlist to do.
Under the root of your web app, add a directory named "template".
Under "template" add
This might not help you, but the simplest answer might be to avoid doing
escaping, replacing, etc... and just make the value of your options be
whatever unique identifier you have for that record in the db. Then
when the user posts this value, you can look it up again in your
action. If you d
Have you put a collection named "locationList" in some scope?
Nils-H
On Thu, Feb 26, 2009 at 10:01 PM, wrote:
> Hi,
>
> I am receiving this exception on my portlet what am I missing?
> ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the
> service methods of the servlet: SPS
Hi,
I am receiving this exception on my portlet what am I missing?
ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the
service methods of the servlet: SPSInventory Portlet
. Exception thrown : javax.servlet.ServletException:
javax.portlet.PortletException: javax.servlet.jsp.
My uncle had his value truncated back in the war. He doesn't like to talk
about it much.
Oh your actual question. Have you tried escaping the quote marks? Using \"
instead of just " ?
jk
On Thu, Feb 26, 2009 at 3:47 PM, Dravid wrote:
>
> Any thoughts
>
> thanks in advance
>
>
> --
> View thi
Any thoughts
thanks in advance
--
View this message in context:
http://www.nabble.com/value-truncated-tp22211336p22233327.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-u
Here's what I've used, note the contentDisposition.
image/jpg
imageStream
attachment;
filename="image.jpg"
4096
-Original Message-
From: jfputnam [mailto:johnfput...@comcast.net]
Sent: Thursday, February 26, 2009 2:49 PM
To: user@struts.apache.org
Subject: Pro
I have followed serveral examples but still have an issue downloading a file
using an input stream. In IE7 when I try the download with text/plain
context type, the text is rendered in the html page. When I change the
contentType a file dialog folder pops up with open/open folder/ cancel no
save b
Hi, everyone.
I am using Struts 2: action with parameters interceptor. My action has some
optional properties of type Short(e.g. "currency"). When i submit form, the
"currency" value arrived into Struts framework equals to empty string - "".
Struts 2 tries to construct Short value from empty str
I want to make a tabular input along with validation.
For example:
IN JSP:
<% for (int i=0;i<=someBussinessLogicResultSet.size();i++) { %>
<% } %>
Then in Action I wrote:
@Validation
public myaction extends ActionSupport{
public String execute()
{
return SUCCESS;
}
@RequiredStringV
I think you can customize file uploading by using the "multipartClass"
in the controller configuration [1].
Nils-H
[1] -
http://struts.apache.org/1.3.10/userGuide/configuration.html#controller_config
On Thu, Feb 26, 2009 at 7:23 PM, John Dell'Aera wrote:
> Hello Dave.
>
> Thanks for your respo
Here's my struts.xml, partially
AUTOMATIC
Hello Dave.
Thanks for your response. I'm using Struts 1 at the moment.
Soon enough I will try Struts 2. But for now I want to finish learning
Struts 1.
How do you "intercept" the file upload mechanism in Struts 1?
Do I have to modify the source to ignore multipart/form-data encoded
requests?
I have LoggedInInterceptor.java and LoggedInInterceptor.properties in a
package, how do I use getText from the interceptor to read from the
properties file?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For addit
Dear Greg Lindholm,
Thanks so much. I could make it work with preresultlistener. Really Cool.
Dear Lukasz Lenar,
Thanks so much. So, I understand that the result has been created before it
reaches the post invoke in interceptor.
But, I still wonder with a question as to why this cannot happen
Ignacio de Córdoba wrote:
> I see actionerror.ftl exists for simple theme but not for ajax theme. Any
> workarrounds?
>
i don't have a solution to your actual problem, but the issue you
note in the sentence above is actually not an issue. if a template
doesn't explicitly exist for a theme,
The way I solved this was to add my own theme, and change the xhtml theme's
"checkboxlist" template to match what I wanted 'my' checkboxlist to do.
Under the root of your web app, add a directory named "template". Under
"template" add a directory called "myapp". Then copy checkboxlist.ftl out
of
Hmm... I found this two different behaviors in the S2 documentation itself.
POST -> create , PUT -> update:
http://struts.apache.org/2.x/docs/rest-plugin.html
PUT -> create, POST -> update:
http://cwiki.apache.org/S2PLUGINS/restful-crud-for-html-methods.html
which one to choose? confused!
Thanks
Hi,
In S2 REST plugin, the url mapping convention is POST for create, PUT for
update (as with the Rails style).
But from Sun tuts (
http://java.sun.com/developer/technicalArticles/WebServices/restful/) I see
POST for update, PUT for create.
I observed similar behavior in lot many frameworks/appli
Hi, some days ago I was also worry about how big is my Struts+Hibernate
project, and a plus... need to grow much more... then, I started to look for
solutions on the web.
I'm using MyEclipse, and it provides a enterprise application that really
looks interesting, I just started to read about that,
Hi Friends,
I tried struts2-blank-2.1.6.war example and its working fine.but when i
tried to make it arabic locale i am not able to make it :(
with reference to below link i am also facing same problem for Arabic.plz
help!
http://mail-archives.apache.org/mod_mbox/struts-issues/200902.mbox/%3c40
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
}Hallo,
is there any way to set that all items (checkboxes) in
s:checkboxlist are in their own line, one checkbox under other.
Defaultly they are all on the same line and I cannot find the way
how to set that each one checkbox has
John Dell'Aera wrote:
I have a file upload application that I'm porting to struts from my custom
framework.
I would like to continue using the jakarta file upload api so that I do not
have to modify
my file uploader class. Is there a way to bypass the struts file upload
functionality?
Should
33 matches
Mail list logo