Re: Can I put a "public final static" field in the Action, and How to read the static field in JSP page?

2008-11-04 Thread Nils-Helge Garli Hegvik
Take a look at http://struts.apache.org/2.0.12/docs/ognl-basics.html Nils-H On Wed, Nov 5, 2008 at 8:18 AM, Mead Lai <[EMAIL PROTECTED]> wrote: > my Action is: > public class myAction extends BaseAction { > public final static String BASE_URL = ""; > } > > Should the "BASE_URL " declare as "

Can I put a "public final static" field in the Action, and How to read the static field in JSP page?

2008-11-04 Thread Mead Lai
my Action is: public class myAction extends BaseAction { public final static String BASE_URL = ""; } Should the "BASE_URL " declare as "private" access modifier, and add get() & set() in the Action? How to get the static field in the JSP? Or maybe there is any other way to get "constant" val

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Nils-Helge Garli Hegvik
Could you show us the entire stack trace? Nils-H On Wed, Nov 5, 2008 at 5:05 AM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > i am using apache Tomcat 6.0.3, struts 2.1.2, and jdk 1.6. can any > one help me solving this issue? > > Thanks in advance. > > On Tue, Nov 4, 2008 at 7:06 PM, Gr

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Mead Lai
"java.lang.UnsupportedOperationException: Don't use default servlet session". Just use the session from ActionContext, don't use the servlet's. protected Map getSession() { return ActionContext.getContext().getSession();//from ActionContext here! } protected HttpServletRequest request(){

Re: (i am a begginer with struts)i have a jsp page and i wish that when the user load this page, automatically be loaded an information from the database, someone idea please?

2008-11-04 Thread Wes Wannemacher
Probably the easiest way to get data from a database is to query it. -Wes On Wed, 2008-11-05 at 01:03 -0500, jose luis pulido burbano wrote: > José Luis Pulido BurbanoEstudiante De Ingeniería De SistemasUniversidad Del > Valle > _ >

(i am a begginer with struts)i have a jsp page and i wish that when the user load this page, automatically be loaded an information from the database, someone idea please?

2008-11-04 Thread jose luis pulido burbano
José Luis Pulido BurbanoEstudiante De Ingeniería De SistemasUniversidad Del Valle _ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx --

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Narayana S
Hi, i am using apache Tomcat 6.0.3, struts 2.1.2, and jdk 1.6. can any one help me solving this issue? Thanks in advance. On Tue, Nov 4, 2008 at 7:06 PM, Greg Lindholm <[EMAIL PROTECTED]> wrote: > > > > Ganesh123 wrote: > > > > Excellent work. i am looking for the same solution.

Error Flushing the Output Stream

2008-11-04 Thread DavidCAIT
I have a Struts action which populates a large amount of data into a List which is then displayed by a JSP page. At the top of this JSP page, there is also a link to another static page on the same website. When I wait for the JSP page to fully load and display all of the data, then everything wor

showcase ajax validation example

2008-11-04 Thread Frank Maritato
Hi, I noticed the struts-2.0.11.2 showcase ajax validation example doesn't give an error if you load the page, do nothing and just click submit. This a bug? -- Frank Maritato - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

struts 2 + java 1.4 + maven

2008-11-04 Thread Andrei Ivanov
Hello, I'm forced to use java 1.4 and I was very happy to see there are jars that work with it. The thing is I also want to use maven for managing dependencies and I don't know how to specify in my pom that it has to use the translated jars... Can anybody tell me how? Thank you. --

ApacheCon live video streaming available; keynotes and Apache 101 are free

2008-11-04 Thread Martin Cooper
Can't make ApacheCon this week in New Orleans? You can still watch all the keynotes, Apache 101 sessions, and system administration track in live video streams: http://streaming.linux-magazin.de/en/program_apacheconus08.htm?ann Keynotes and the Apache 101 lunchtime sessions are free; the full

[S2] No JavaScript in TabbedPanel

2008-11-04 Thread Tobias . Brandenburger
Hello, I want to use Javascript in a TabbedPanel. But it does not work, similar to http://markmail.org/message/ir6varn7cq372zdl (unsolved). if i look into the generated html-file with firebug, i cant find the javascript-block of site2. any idea how to fix this? Thanks in advance. sourcecode

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Greg Lindholm
Ganesh123 wrote: > > Excellent work. i am looking for the same solution. i tried > implementing your interceptor , but it is throwing exception ... > "java.lang.UnsupportedOperationException: Don't use default servlet > session". > > near session.setAttribute(ACTION_MESSAGES_KEY,ac

Re: Redirecting action with ajax enabled

2008-11-04 Thread Sergio Sánchez González
I meant just changing the submit to And losing ajax... 2008/11/4 Sergio Sánchez González <[EMAIL PROTECTED]>: > I've found dojo fails when I retreive a page using ajax. > > For example, a simple login: > > > > > > > > > > > > > The pag

Redirecting action with ajax enabled

2008-11-04 Thread Sergio Sánchez González
I've found dojo fails when I retreive a page using ajax. For example, a simple login: The page retreived uses dojo javascript but doesn't work. If I just change the submit to: then it works. But of course, I lose the retreive

struts 2.1 beta release yet ?

2008-11-04 Thread Pedro Herrera
when struts 2.1 is going to RC ? What are the problems pending to go ahead ? Herrera -- View this message in context: http://www.nabble.com/struts-2.1-beta-release-yet---tp20319689p20319689.html Sent from the Struts - User mailing list archive at Nabble.com.

Re: [S2] Preserving messages across a Redirect in Struts 2

2008-11-04 Thread Narayana S
Hi Greg, Excellent work. i am looking for the same solution. i tried implementing your interceptor , but it is throwing exception ... "java.lang.UnsupportedOperationException: Don't use default servlet session". near session.setAttribute(ACTION_MESSAGES_KEY,actionMessages); can you h

Re: Scoped Model Driven Interceptor issue

2008-11-04 Thread Lukasz Lenart
2008/11/3 Peterson, Andy J <[EMAIL PROTECTED]>: > We are using the scoped model driven intcerceptor in our application. > How do you clear the scoped model before the session times out? We will > fill out a form and then go back to the form and the data from the > previous form is still there. Imp

Re: Passing parameters through a form

2008-11-04 Thread Alexander Baetz
Solved with the help of the hidden-tag. Greetings, Alexander Alexander Baetz schrieb: Hi, i'm using a formular (struts form) to edit attributs of my model objects. The intention is that prepare gets the correct model-object, model driven puts it on the stack and params sets all attributes. S

Re: struts

2008-11-04 Thread Nisha Akash
Thanks for ur reply -- View this message in context: http://www.nabble.com/struts-tp20162279p20317788.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio