There is an issue for it already logged in JIRA(WW-2328) and the fix version
is 2.1.1
So, you can expect the solution sooner.
-Omkar
Vineeth Varghese-2 wrote:
>
> Hi Folks,
>
> I am facing this odd issue with Struts2.0.9 on jetty. I specify a form
> using
> the s:form tag like:-
>
>
> but w
Hi! I'm doing the tutorial "Struts 2 + Spring 2 + JPA + AJAX" located at
http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html.
I have installed and configured MySQL and created a database named
"quickstart". But I get a syntax error when running this script:
CREATE TABLE 'quickst
Thanks man for your reply but i have been fallowing that..
On 11/19/07, Deepak Kumar <[EMAIL PROTECTED]> wrote:
>
> Please check tutorial at http://www.roseindia.net/struts/struts2
>
> Thanks
>
> -Original Message-
> From: vijay vijay [mailto:[EMAIL PROTECTED]
> Sent: Monda
> value="%{'/jsp/'+#parameters.file[0]}"
I thought I tried that one out already, but apparently I remembered
wrong, since it really works, which is great!
Anyway, for my part this is very inconvenient. Also I don't know a way
to pass an array to request parameters. Thus IMHO there should be a m
Zhang, Larry (L.) wrote:
Say I have page1 (form1) and page2 (form2), on page1 I have a hyper
link. When I click on the hyperlink, it will call another action (let's
say action2) which is associated to form2 in the struts-config.xml. My
question is that how to make form1 data available in action2?
It could actually be both. I assume you are using both client and
server side JavaScript validation (at the very least you should be doing
server side since HTML pages can be manipulated).
So, assuming you are doing both, you need the page you submitted the
data on to go somewhere because you wan
Hi I have a question. I am not sure if this is a Struts question or an HTML
question so here we go. I have a form on page x I submit the form validation
failed it goes back to the page x which is fine but then if validated true
it should open a new window with the stuff that should be there. So aga
2 items
Axis is your best choice for Tomcat WebService
is there a specific reason why you wanto implement this with Struts1 over
Struts2 ?
M--
- Original Message -
From: "Minghui Yu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Monday, November 19, 2007 3:44 PM
Subject: Look
Say I have page1 (form1) and page2 (form2), on page1 I have a hyper
link. When I click on the hyperlink, it will call another action (let's
say action2) which is associated to form2 in the struts-config.xml. My
question is that how to make form1 data available in action2? Thanks.
-
I am looking for a very simple Amazon web service library. I plan to use it
in a struts 1 application.
Basically, I want a library that once I provide with an ISBN for a
book, it will return current book price, image, reader comments
(optional), and, of course, URL to this book. I want to wrap all
my struts.xml is :
constant name="struts.locale" value="pt"
constant name="struts.multipart.maxSize" value="2597152"
when I upload a file greater than 2597152 kbytes is showed the follow
message :
the request was rejected because its size (289184035) exceeds the configured
maximum (2597152)
H
Hi Al,
I was having what I think was the same problem and have come up with a way
to deal with it (which you may have already figured out by now).
I have my actions set up using Post-Redirect-Get, so that the processing of
a view (form) is its own action and the preparation of the subsequent vie
I want to call amazon web service to display information about books
(price, image, etc). What shall be the simplest and best practice? (if
there is conflict between simple and best, choose simple)
Shall I do everything in JSP? (Suppose I have an external class that
once provided with an ISBN, wil
You're right... why do it in a scriptlet when I can just do it in my
action. I just used getter/setter and the s:property tag to display my
stack trace string that I created in my catch block.
Thanks!
On Mon, 2007-11-19 at 11:24 -0800, Dave Newton wrote:
> If you want to access something in a sc
If you want to access something in a scriptlet (which
hopefully you don't want to do) you can either access
the value stack or just stick it in one of the scope
maps. (See ParameterAware, RequestAware, SessionAware,
ApplicationAware.)
If you want generic tag-based access then just expose
the objec
In struts 1 you could use the bean:define tag to use objects in a jsp
file... for instance I used this to show a stack trace in an error jsp.
<%
out.println("");
%>
where I had set
catch (Exception e) {
request.setParameter("error", e);
}
How would I accomplish this in struts
Hi Folks,
I am facing this odd issue with Struts2.0.9 on jetty. I specify a form using
the s:form tag like:-
but when the html get render what i get is :-
This happens only on the first page so I guess whats happening is when my
browser makes a request the first time the server can't figure wh
The issue seems to be that OGNL's expression parsing
does different things at different times.
>
>
> prints out "/jsp/test.jsp", whereas
>
>
> > prints out "/jsp/[Ljava.lang.String;@1bd2184",
This is, perhaps, related to the thread from a week or
two ago, the "Re: OGNL s
Looks to me like the return value of parameters.file is *not* a String.
It's a an *array* of strings. And a toString() on an Array of strings
looks exactly like what you're seeing:
[Ljava.lang.String;...
(the prefixed "[" is the clue that it's a string *array*).
If the "file" parameter ha
You've got the interceptor setup order correct. You haven't really
provided enough info to really identify another other problems (we'd
need to see the form fields, the action, and the object being exposed
and hydrated in the action.)
But here are some things you can try...
1) turn on debugg
So I think I have it working and I didn't have to redirect the user,
which is good because that wasn't working anyway. I don't know if it
was JAAS or Struts, or what, but the login parameters were being
stripped from the request so they never got to the login page.
How I got it to work was th
I'm trying to use the Prepare interceptor in conjunction with the
Parameters interceptor to create objects from persistent storage before
Struts 2 sets their properties based on values posted from a form, as
suggested in
http://struts.apache.org/2.0.11/docs/prepare-interceptor.html
My understan
How are you accessing the JSP is also matters, if it needs to work
invoke the action from another url.
Say if you displaying list in list.jsp(listAction) invoke the listAction
from another URL, so that the list will come into the interceptor stak.
Regards,
Rajagopal Y
HCU-Consulting & Enterpris
Please check tutorial at http://www.roseindia.net/struts/struts2
Thanks
-Original Message-
From: vijay vijay [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 5:58 PM
To: Struts Users Mailing List
Subject: what abt actions in struts2.
Hi
what about actions in struts 2, ea
Hi
what about actions in struts 2, earlier we have actios like dispatch
action,lookup action,forward actions,includeactions can i use them here
too.
what about action cahing?where do we use this concept.how far this usefull?
can any one tell me.plz don't say look in to docs i have seen it
I tried following the Ajax tutorial in
http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html
http://struts.apache.org/2.0.11/docs/struts-2-spring-2-jpa-ajax.html ,
adapting it to a test application I already had.
I have a weird behaviour with a form submit:
Do had a look at:
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_ui_component
it may be helpfull.
Basti
Hernandez, David wrote:
>
>
> Yeah, I wanted to keep the label attribute, I mean it's not a big deal
> to add it myself. I was just wondering if there was some shortcut I was
> m
Hi,
I have a form declared in my struts config :
*
*
and here is my JSP code :
*
...
*
and my code in action
*log.info("IS processed : " + dynaForm.get(Constants.FormFields.IS_PROCESSED
));*
I always have null value first time I submit
28 matches
Mail list logo