error page at login

2007-06-26 Thread Tony Yawe

The error message is as attached. i hope i will be able to get a solution.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

how to use I18N in macros

2007-06-26 Thread sudhitekkala

hello
>
> to develop a page in velocity i am not getting the design as expected ...
> so
> i started using macros so that i can get the expected design
>
> for example:::
>
> 
> 
> #ssubmit("key=button1" "value=Search")
> #ssubmit("key=button2" "value=Submit")
> 
> 
>
> i have taken the key attribute for the purpose of i18n...actually it
> should
> work as in one row to td's should form in which each should hold two
> submit
> buttons... but when you observe the html page the second submit button
> will
> be taken as in second row...
>
> in this case i used macro to get the two submit buttons in the one row as
> bellow:::
>
> #macro(button $value)
> 
> #end
>
> 
> 
> #button("Search")
> #button(Submit)
> 
> 
>
> here i am getting the design but when i am writing the key attribute in
> the
> macro or in the calling macro i am not at all seeing the button in the
> html
> page
>
>as the velocity tags can be derived or executed with struts help so if
possible please kindly solve my problem
>
>
> regards 
-- 
View this message in context: 
http://www.nabble.com/how-to-use-I18N-in-macros-tf3986570.html#a11319213
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: help me...

2007-06-26 Thread Vikash Manoranjan
Hi Nuwan,

I have already set as mentioned below:










Still the problem persists.
Please help me.

Thanks and Regards, 

Vikash Manoranjan




-Original Message-
From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] 
Sent: 27 June 2007 14:46
To: Struts Users Mailing List
Subject: Re: help me...


Hi,

Do you have a form property in your struts-config. that is a array?, if 
there is one you should set the size or initial property.

size

The number of array elements to create if the value of the
"type" attribute specifies an array, but there is no value
specified for the "initial" attribute.This is what said in 
the 1.1 DTD, hope this would help you.Thanks,Nuwan

- Original Message - 
From: "Vikash Manoranjan" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 27, 2007 4:59 AM
Subject: help me...


HI all,

I am getting the below mentioned exception while deploying the application.
I am using Struts 1.1 . Kindly help me:

SEVERE: Parse Error at line 635 column 82: Attribute "size" must be declared
for element type "form-property".

org.xml.sax.SAXParseException: Attribute "size" must be declared for element
type "form-property".

at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(ErrorHandlerWrapper.java:236)

at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
erWrapper.java:172)

at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:382)

at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:316)

at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAtt
rsAndValidate(XMLDTDValidator.java:1306)

at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
nt(XMLDTDValidator.java:1971)

at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XML
DTDValidator.java:816)

at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl
ement(XMLNSDocumentScannerImpl.java:322)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
entContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
ocument(XMLDocumentFragmentScannerImpl.java:368)

at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:834)

at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:764)

at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14
8)

at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
AXParser.java:1242)

at org.apache.commons.digester.Digester.parse(Digester.java:1495)

at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:860)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
05)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3917)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)

at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)

at
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:906)

at
org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.jav
a:473)

at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java
:98)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:524)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at
org.apache.coyote.http11.Http11Processor.process(Http11Pr

Re: help me...

2007-06-26 Thread Nuwan Chandrasoma

Hi,

Do you have a form property in your struts-config. that is a array?, if 
there is one you should set the size or initial property.


size

The number of array elements to create if the value of the
   "type" attribute specifies an array, but there is no value
   specified for the "initial" attribute.This is what said in 
the 1.1 DTD, hope this would help you.Thanks,Nuwan


- Original Message - 
From: "Vikash Manoranjan" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 27, 2007 4:59 AM
Subject: help me...


HI all,

I am getting the below mentioned exception while deploying the application.
I am using Struts 1.1 .
Kindly help me:

SEVERE: Parse Error at line 635 column 82: Attribute "size" must be declared
for element type "form-property".

org.xml.sax.SAXParseException: Attribute "size" must be declared for element
type "form-property".

at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseEx
ception(ErrorHandlerWrapper.java:236)

at
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandl
erWrapper.java:172)

at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:382)

at
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErro
rReporter.java:316)

at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDefaultAtt
rsAndValidate(XMLDTDValidator.java:1306)

at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartEleme
nt(XMLDTDValidator.java:1971)

at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XML
DTDValidator.java:816)

at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartEl
ement(XMLNSDocumentScannerImpl.java:322)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Fragm
entContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)

at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanD
ocument(XMLDocumentFragmentScannerImpl.java:368)

at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:834)

at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Con
figuration.java:764)

at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:14
8)

at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractS
AXParser.java:1242)

at org.apache.commons.digester.Digester.parse(Digester.java:1495)

at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.j
ava:860)

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)

at javax.servlet.GenericServlet.init(GenericServlet.java:211)

at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11
05)

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)

at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3917)

at org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)

at
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2990)

at
org.apache.catalina.manager.ManagerServlet.reload(ManagerServlet.java:906)

at
org.apache.catalina.manager.HTMLManagerServlet.reload(HTMLManagerServlet.jav
a:473)

at
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java
:98)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:524)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

at java.lang.Thread.run(Thread.java:595)



Thanks and Regards,

Vikash Manoranjan




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio

Re: Struts dont react

2007-06-26 Thread Søren Blidorf
Your right! But nothing is written in the logfile.

The Catalina log looks like this:

2007-06-27 07:49:13 org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-80
2007-06-27 07:49:14 org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
2007-06-27 07:49:19 org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
2007-06-27 07:49:41 org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
C:\Programmer\Apache Software Foundation\Tomcat
6.0\bin;.;C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\W
INDOWS\system32\WBEM;C:\Programmer\Fælles filer\Adaptec
Shared\System;C:\Programmer\ATI Technologies\ATI Control
Panel;C:\Programmer\Microsoft SQL Server\80\Tools\BINN;C:\Programmer\Apache
Software Foundation\Tomcat 6.0\lib\sqljdbc.jar
2007-06-27 07:49:43 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-80
2007-06-27 07:49:43 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 10397 ms
2007-06-27 07:49:44 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2007-06-27 07:49:44 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
2007-06-27 07:50:24 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-80
2007-06-27 07:50:26 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2007-06-27 07:50:26 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/981  config=null
2007-06-27 07:50:26 org.apache.catalina.startup.Catalina start
INFO: Server startup in 43674 ms


- Original Message -
From: "Laurie Harper" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, June 26, 2007 11:07 PM
Subject: Re: Struts dont react


Søren Blidorf wrote:
> I have upgraded my Struts app to 1.2.9.
>
> I have done it step by step removing all deprecations.
>
> My realm log in still works, but when I do something in my app that "uses"
Struts nothing happens.
>
> Can anybody give me a hint on what to do.

Start with your log files. You haven't provided enough information for
anyone else to debug this for you, so start with basic diagnostics.

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make tabs in JSP

2007-06-26 Thread Kavita Mehta
I'm using Struts 1.2 ...
wd search more on JSPTabControl as you previously suggested.

thanks



"Angelo zerr" <[EMAIL PROTECTED]> 
06/26/2007 06:17 PM
Please respond to
"Struts Users Mailing List" 


To
"Struts Users Mailing List" 
cc

Subject
Re: How to make tabs in JSP






If you are using Struts2.x, you should use tabbedpanel as Adrian have you
suggested.

2007/6/26, Adrian Ost <[EMAIL PROTECTED]>:
>
> Angelo zerr schrieb:
> > Hi,
> > perhaps you could be interest with JSPTabControl
> > http://jsptabcontrol.sourceforge.net/
> > which generate tabs with ul/li HTML.
> >
> > Regards Angelo
> >
> > 2007/6/26, Kavita Mehta <[EMAIL PROTECTED]>:
> >>
> >> Hi,
> >> I want to code a JSP page with tabs . Does struts support an easy way
> of
> >> doing the same.
> >> Any link to the related resource would be helpful ...I have searched 
on
> >> Struts-Layout ...any other option ?
> >>
> >> Thanks
> >> Kavita
> >>
> >>
> >>
> >>
> >>
> >>
> 
*DISCLAIMER*
> >>
> >>
> >> This message and/or attachment(s) contained here are confidential,
> >> proprietary to HUGHES SYSTIQUE and its customers.
> >> Contents may be privileged or otherwise protected by law. The
> >> information
> >> is solely intended for the entity it is
> >> addressed to. If you are not the intended recipient of this message,
> >> it is
> >> strictly prohibited to read, forward,
> >> print, retain, copy or disseminate this message or any part of it. If
> >> you
> >> have received this e-mail in error,
> >> please notify the sender immediately and delete the message.
> >>
> >>
> >>
> 

> >>
> >>
> >>
> >
> or u just go for the struts 2 tag tabbedpanel ... pretty easy to
> customize with new template.
> http://struts.apache.org/2.x/docs/tabbedpanel.html
> greets adi
>
>
> --
> Adrian Ost
>
> MindMatics AG
> Marcel-Breuer-Str. 18
> D-80807 München
>
> E-Mail: [EMAIL PROTECTED]
> Web:   www.MindMatics.de
> 
> Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail
> irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich
> zu benachrichtigen und die E-Mail zu löschen.
>
> Ust-IdNr. DE211603599
> Registergericht München: HRB 131369
> Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin
> Barbalata
> Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner 
(stellvertr.
> Vorsitzender)
>
> The contents of this e-mail are confidential. If you received this
> e-mail in error, please notify us immediately and delete the e-mail.
> 
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





*DISCLAIMER*

This message and/or attachment(s) contained here are confidential, proprietary 
to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is 
solely intended for the entity it is 
addressed to. If you are not the intended recipient of this message, it is 
strictly prohibited to read, forward, 
print, retain, copy or disseminate this message or any part of it. If you have 
received this e-mail in error, 
please notify the sender immediately and delete the message.





Struts 2 Login example using a session

2007-06-26 Thread Session Mwamufiya
Hi,

I tried to follow the simple login example at
http://struts.apache.org/2.x/docs/simplelogin-with-session.html, but there
are many things that I don't get:
- first, it's written for webworks, not struts 2, are there any
compatibility issues between the two?
- second, the session is never set with a timeout attribute, how do we
actually enforce a timeout?
- third, do we need to include a line like  at the beginning of every jsp file in
our web app to check whether the user is still logged in; or is there a more
general way of ensuring that.

Thanks,

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] onsubmit in tag

2007-06-26 Thread Vincent Lin

Hi Dave,

Thank you.
You are right.
There is an error in my validateFields() function.
It works now.
The "return true" in onsubmit has nothing to do with my problem.

Vincent

On 6/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> If you try it in a plain html form, you will know
> the difference. That's really useful to use
> onsubmit="return (validateFields())" in form
> tag,

Um... Yeah, I understand that. What I'm saying is:

onsubmit="return validateFields(); return true;"

will always return the value of the validateFields()
function call; the trailing "return true;" will never
happen.

d.




  

Shape Yahoo! in your own image.  Join our Network Research Panel today!
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [S2] How to integrate JSF with struts 2?

2007-06-26 Thread Jason Wyatt
Thanks Don, I finally got JSF working with struts 2.

Seems like the docs at
http://struts.apache.org/2.x/docs/javaserver-faces.html could really use an
example of how to set up the jsf plugin. 

I didn't realise the JSF plugin isn't normally "plugged in" until I saw the
struts-plugin.xml inside the struts2-jsf-plugin-2.0.6.jar and the
struts-jsf.xml file under the showcase\web\WEB-INF\classes directory.

Maybe I missed some other resource on the web?

Regards
Jason
 

-Original Message-
From: Don Brown [mailto:[EMAIL PROTECTED] 
Sent: Monday, 25 June 2007 6:54 PM
To: Struts Users Mailing List
Subject: Re: [S2] How to integrate JSF with struts 2?

How the JSF integration works is we decompose the JSF Lifecycle object into
its phases and store each in a Struts 2 Interceptor.  Therefore, the request
enters the Struts 2 FilterDispatcher like normal, then if the action mapping
includes the JSF interceptors (like it does in your example by including the
"jsfStack"), the request will go through the JSF phases.  The page
displayed, employee.jsp, is determined using normal JSF means (taking the
action name and appending a ".jsp").
Even that might be configurable, though I couldn't say for sure.

Don

On 6/25/07, Jason Wyatt <[EMAIL PROTECTED]> wrote:
> I'm confused as to how to integrate a third-party JSF component with 
> our Struts 2 app.
>
> I've been able to get a the third-party example JSF page working with 
> using one web.xml file, and our Struts 2 app works with another 
> ordinary web.xml file, but I can't seem to get both working together using
one web.xml file.
>
> The example at http://struts.apache.org/2.x/docs/javaserver-faces.html 
> shows one way of integrating JSF with Struts 2 - by adding  
>  to the action definition.
>
> However, I don't really understand the example... How does the action 
> know to go to the employee page on success? It seems to be missing 
> something. The example code:
>
>  class="org.apache.struts.action2.showcase.jsf.EmployeeAction">
> 
> 
> 
> index
> 
>
>
> The "showcase" JSF example seems to use another way - by setting up a 
> javax.faces.webapp.FacesServlet to process all *.action requests.
>
> This seems quite different to the documented example above, and 
> counterintuitive... If Faces is processing the actions, then how does 
> the struts framework get called?
>
>
> Thanks for any help, regards
>
> Jason
>
>
> -
> Falun Dafa  Truth - Compassion - Forbearance
>
> A mind & body practice under persecution in China
>
> http://www.faluninfo.net
>
>
>
>
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



stat.odd ? test

2007-06-26 Thread Mansour

I am trying to iterate over a list and display rows in different style:







...


The resulting code have the class attribute always empty.  Like this :






Can any one advice what's wrong ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] login action w/FORM authentication?

2007-06-26 Thread Jon Wilmoth
Unfortunately it looks like the S2 architectural change is the culprit after 
all.  After digging through the tomcat 5.5.23 (also present in the most recent 
6.0.13 release) code I've come to the conclusion Struts2 actions CAN NOT be 
used for any of the common web.xml descriptor elements (form-login-page, 
form-error-page, welcome-file?, other?).  Here's a snippet of the javadoc from 
org.apache.catalina.core.ApplicationDispatcher's invoke method:

* IMPLEMENTATION NOTE: This implementation assumes that no 
filters are applied to a forwarded or included resource, because they were 
already done for the original request.

This is a major bummer to say the least.  I'm not sure if the tomcat 
implementation of the servlet spec is flawed, if there's a gap in the servlet 
spec or what.  I am surprised I'm the first S2 user to run into this.  I'd 
GREATLY appreciate if one of the Struts developers had a workaround suggestion. 
 For example would it be feasible to port FilterDispatcher to a servlet?

- Original Message 
From: Jon Wilmoth <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Monday, June 25, 2007 7:14:52 PM
Subject: Re: [S2] login action w/FORM authentication?


Well I've been able to prove it's possible with S1.  I added a struts 1 action 
to log when it was called and forward to a s1 based login.jsp and changed the 
web.xml to /login.action.  

Is it possible that the architectural change to filters instead of servlets 
requires some sort of special configuration with container managed 
authentication?  Is it only tomcat that requires a special struts2 
configuration?

- Original Message 
From: Ian Roughley <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Monday, June 25, 2007 11:08:41 AM
Subject: Re: [S2] login action w/FORM authentication?


yes - it is definitely possible.  The thing to remember is that if you 
are using struts2 tags (which I'm pretty sure you are), you need to 
redirect through an action first so the value stack is available to the tag.

/Ian

Jon Wilmoth wrote:

>To add a little more context...The login action loads the login.jsp just fine 
>when called directly, but doesn't work when invoked by the servlet container.  
>Instead I see the following in the Tomcat log:
>
>Jun-25-2007 10:31:30:865 AM, PDT [DEBUG] 
>(org.apache.catalina.authenticator.FormAuthenticator) - Save request in 
>session '930B154E1AD9BFB1283165CD888441EF'
>Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] 
>(org.apache.catalina.core.ApplicationDispatcher) - servletPath=/login.action, 
>pathInfo=null, queryString=null, name=null
>Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] 
>(org.apache.catalina.core.ApplicationDispatcher) -  Path Based Forward
>Jun-25-2007 10:31:33:053 AM, PDT [DEBUG] 
>(org.apache.catalina.core.ApplicationDispatcher) -  Disabling the response for 
>futher output
>
>I tried configuring the app to go directly to the login jsp page, but the 
>struts2 tags throw the following NullPointer:
>
>Jun-25-2007 10:36:03:552 AM, PDT [ERROR] 
>(org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mywebapp].[jsp])
> - Servlet.service() for servlet jsp threw exception
>java.lang.NullPointerException
> at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58)
> at 
> org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:52)
> at 
> org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
> at org.apache.jsp.login_jsp._jspx_meth_s2ib_005furl_005f0(login_jsp.java:503)
> at org.apache.jsp.login_jsp._jspService(login_jsp.java:111)
>
>If this is off topic and I should post this to the Tomcat user list please let 
>me know...it just seems to me that other S2 users may have this same question.
>
>- Original Message 
>From: Jon Wilmoth <[EMAIL PROTECTED]>
>To: user@struts.apache.org
>Sent: Sunday, June 24, 2007 9:21:02 PM
>Subject: [S2] login action w/FORM authentication?
>
>
>Is it possible to use an action as the webapp's login page?  I've tried the 
>following web.xml/struts.xml entries with S2.0.8 & Tomcat 5.5.23, but get a 
>404 The requested resource (/mywebapp/login.action) is not available message.
>
>
>FORM
>
>/login.action
>/loginFailure.action
>
> 
>
>
>/login.jsp
>
>  
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vikranth.vaddi

The problem you have is that struts does not instantiate form bean correctly.
If you are using action form object in your case deployForm object , check
if it extends ActionForm.May be it does not and thats why form object is
null.Try this first.

Also, i recommend using DynaActionForm inside struts-config.xml and do not
create objects for form beans yourselves. Struts will automatically do that
for you.
-- 
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11315918
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Dave Newton
What does the "upload()" method in your
 do?

--- vbharath19 <[EMAIL PROTECTED]> wrote:

> 
> when i get the formfile using getthefile
> 
> 
> 
> newton.dave wrote:
> > 
> > --- vbharath19 <[EMAIL PROTECTED]> wrote:
> >> if (actioncalled!=null &&
> > actioncalled.equals("upload")) {
> >> System.out.println("inside upload action");
> >> FormFile myFile =
> deploymentForm.getTheFile();
> >> }
> > 
> > We're getting there. Now, which line is throwing?
> > 
> > d.
> > 
> > 
> > 
> >
> >
>

> > Yahoo! oneSearch: Finally, mobile search 
> > that gives answers, not web links. 
> >
>
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11315299
> Sent from the Struts - User mailing list archive at
> Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: browser caching

2007-06-26 Thread mfnospam

not sure whether this works - I'm new to s2 myself.
However there seems to be a possibility to configure brwoser caching in 
struts.properties:

struts.serve.static.browserCache=false
maybe this helps

kind regards
matthias

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19

when i get the formfile using getthefile



newton.dave wrote:
> 
> --- vbharath19 <[EMAIL PROTECTED]> wrote:
>> if (actioncalled!=null &&
> actioncalled.equals("upload")) {
>> System.out.println("inside upload action");
>> FormFile myFile = deploymentForm.getTheFile();
>> }
> 
> We're getting there. Now, which line is throwing?
> 
> d.
> 
> 
> 
>
> 
> Yahoo! oneSearch: Finally, mobile search 
> that gives answers, not web links. 
> http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11315299
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



browser caching

2007-06-26 Thread Pierre Goupil

Hello,

I'm trying to avoid browser caching in my webapp since I've only got dynamic
pages. I'm trying the Apache mod_expires stuff. I've set it to :

ExpiresActive On
ExpiresDefault "now"

But unfortunately, it doesn't work : my HTTP header is set to
"Cache-Control: max-age= 0" actually but the browser (Firefox) still doesn't
want to do another request when I would like it to do so. It's configured to
not use caching (0 MB as cache files size) but it looks like it keeps the
current page in memory.

My (Struts) question is : could this occur because I'm using an
org.apache.struts.actions.ForwardAction forwarding ? Is there a way to avoid
this annoying caching ? I've tried it in as much browsers as I could, but no
way.

LiveHTTPHeaders does show me that after the first request, when I come back
to my page thanks to forwarding, the browser doesn't make another request.
Is this normal behaviour, as far as Struts' forwarding is concerned ?

I'm using : Apache 2.2, Struts 1.3 & Tomcat 5.5

Cheers,


Pierre


--
"Mon horizon était désormais les pétales courbés,
Ma nouvelle demeure resplendissait de flèches d'herbes folles
Et d'oreillers de pollens odorants."

(Naïmah, le philosophe Fémereif)


Re: Re: S2 - How do I ...

2007-06-26 Thread Ray Clough
Laurie,

I am using Struts 2.0.8.

This is a large app, and only one module knows anything about the Web Layer.  
So I'm trying to introduce a 'MessageProviderService' for the non-Struts 
modules.  I wrote a class that wraps the ResourceBundle class, so that I do not 
have any Struts artifacts in the other layers.  I want one of these modules to 
create a List of all the available ResourceBundle languages.  I was hoping to 
pass in the address of the ResourceBundles, which is stored in the 
'struts.properties' file under the key "struts.custom.i18n.resources".  
Presumably this property is available to the Struts module, where I want to 
read it and pass it on to the 'MessageProviderService' class, which I want to 
have parse the ResourceBundle names to get the 'language' suffix, which I then 
want to convert to the 'language', for example 'zh = chinese'.

So I have 2 problems:  (1) getting the property 'struts.custom.i18n.resources', 
and (2) converting the suffix to the language (or I may be able to iterate thru 
a set of File Names with 
'ResourceBundle.getResourceBundle(fileName).getLocale().getLanguage()', or 
something like that).

I hope that is clear.  Any advice, especially on point #1 would be great.

- Ray Clough


> - Original Message -
> From: "Laurie Harper" <[EMAIL PROTECTED]>
> To: user@struts.apache.org
> Subject:  Re: S2 - How do I ...
> Date:  Tue, 26 Jun 2007 17:01:35 -0400
> 
> 
> Ray Clough wrote:
> > How do I get the Struts properties from within my application.  What I am
> 
> Depends which version of Struts you're using.
> 
> > looking for is to read the property "struts.custom.i18n.resources", which is
> > defined in the 'struts.properties' file, so that I can get the
> > ResourceBundle names.  I guess that there is a Struts Properties object
> > which can be referenced and read, the question is how.
> 
> For Struts 1, use the Action.getResources() methods to get the 
> resource bundle, then retrieve the specific property you want from 
> that.
> 
> For Struts 2, use the ActionSupport.getText() methods to retrieve 
> the property directly.
> 
> > Also, although this is not a Struts question, how do I resolve the suffix on
> > a ResourceBundle to the language name?
> 
> I'm not sure what you mean. Usually, you take a resource bundle 
> name and a locale to locate the most locale-specific resource 
> bundle. Are you trying to derive a locale from a resource bundle 
> file name?
> 
> L.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

>



- Ray Clough
[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts dont react

2007-06-26 Thread Laurie Harper

Søren Blidorf wrote:

I have upgraded my Struts app to 1.2.9.

I have done it step by step removing all deprecations.

My realm log in still works, but when I do something in my app that "uses" 
Struts nothing happens.

Can anybody give me a hint on what to do.


Start with your log files. You haven't provided enough information for 
anyone else to debug this for you, so start with basic diagnostics.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Template testing

2007-06-26 Thread Laurie Harper

Mark P Ashworth wrote:

Is there a way to test how a tag like 
will be processed by a custom theme. I would like to get all of the theme processing done during development instead of integration time with the actual pages. What do you want to test, exactly? If you have a custom theme, then you have defined how the tags will be processed (rendered). Are you looking for an automated testing strategy for verifying your custom theme works as intended, or something else? L. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom filter - Is this possible

2007-06-26 Thread Laurie Harper

tom tom wrote:

Hi,

Can some one let us know, how to define a Custom
filter which would do what the
org.apache.struts2.dispatcher.FilterDispatcher does
but in addition it checks a Cetain attribute (e.g.
Window State) and shows nothing if a certain criteria
is met.

Is this something possible.? or How can I have
pluggable such configuration which does what I want
but also preserving the functionality.


You don't extend the existing filter, you wrap it. Create a new filter 
which implements the decision logic you need. Your filter will simply 
skip forwarding the request to the next filter in the filter chain if 
your criterion is met. Make sure you map your filter ahead of 
FilterDispatcher, so it gets control first.


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 - How do I ...

2007-06-26 Thread Laurie Harper

Ray Clough wrote:

How do I get the Struts properties from within my application.  What I am


Depends which version of Struts you're using.


looking for is to read the property "struts.custom.i18n.resources", which is
defined in the 'struts.properties' file, so that I can get the
ResourceBundle names.  I guess that there is a Struts Properties object
which can be referenced and read, the question is how.


For Struts 1, use the Action.getResources() methods to get the resource 
bundle, then retrieve the specific property you want from that.


For Struts 2, use the ActionSupport.getText() methods to retrieve the 
property directly.



Also, although this is not a Struts question, how do I resolve the suffix on
a ResourceBundle to the language name?


I'm not sure what you mean. Usually, you take a resource bundle name and 
a locale to locate the most locale-specific resource bundle. Are you 
trying to derive a locale from a resource bundle file name?


L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts dont react

2007-06-26 Thread Søren Blidorf
I have upgraded my Struts app to 1.2.9.

I have done it step by step removing all deprecations.

My realm log in still works, but when I do something in my app that "uses" 
Struts nothing happens.

Can anybody give me a hint on what to do.

Soren, DK


Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Dave Newton
--- vbharath19 <[EMAIL PROTECTED]> wrote:
> if (actioncalled!=null &&
actioncalled.equals("upload")) {
> System.out.println("inside upload action");
> FormFile myFile = deploymentForm.getTheFile();
> }

We're getting there. Now, which line is throwing?

d.



   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Implementing wizard like interface in struts

2007-06-26 Thread Michael Jouravlev

How do I know? This is your application, you should know better how
you manage its state.

On 6/26/07, semaj <[EMAIL PROTECTED]> wrote:


How can I check the current app state? Could you direct me to some resources?

Thanks,
semaj


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Chris Pratt

I just completed a project using it and I'd have to say I'm very impressed.
I have two criticisms, one directly about Struts and one about a supporting
API that we tried to use (Acegi (aka Spring Security)).

As far as the Struts criticism I don't like the fact that the default struts
tag behaviour is to insert things into my code that I didn't ask for.  And
furthermore that it relies on an additional, heavy-weight technology that I
don't use anywhere else in my system.  And it seems that switching to
theme="simple" doesn't turn off that heavy-weight requirement, it just uses
it with even less of a benefit.

I think it's great that some people have the ability to code at the level
where the programmers decide everything including the look and feel of all
forms on the site.  I've never had a job like that, everywhere I've worked
the business area, corporate communications, or marketing decide what the
look and feel of each page are and, many times, even though we do our best
to try and funnel them in the right direction, each page has a slightly
different look and feel.  The new Struts tags actually make my job harder,
not easier.

The other criticism is that we attempted to use Acegi, since the rest of our
stack is Struts/Spring/Resin/LDAP we thought it would be a good fit.
Unfortunately IMO it's not ready for prime time, especially it's LDAP
support.  It probably does a good job if you're using SQL and can take their
schema and run with it, but we found it a mess trying to fit into our
corporate LDAP.  I think I'd wait another couple of revisions before trying
that one again.

But all in all, I would have to say that Struts 2 is an absolutely first
rate, ready for prime time, success!!!
 (*Chris*)

On 6/26/07, Ted Husted <[EMAIL PROTECTED]> wrote:


Usually, ready for primetime is used in connection with code quality,
and I don't think we have a problem there :)

Most of your post speaks to a having a lockstep set of implementation
practices, that say "do it this way and don't deviate". Struts on
Rails, so to speak. No, we don't have that, and it's unlikely that we
ever will. The nature of the ASF beast is that we have many people
from many different teams working on the codebase, and so it ends up
representing many points of view.

In terms of a stack, the most popular is
Struts/Apache/Spring/Hibernate, or SASH.

* http://sourcelabs.com/?page=software&sub=sash

We've have talked about creating a single-stack Struts distribution
that would bundle these sorts of thing together, but no one seems to
have the time.

As for timetables, the best bet is to focus on what's available now,
since there's no telling when anything will ship or be tagged GA.
We're all volunteers, and our time ebbs and flows.

-Ted.

On 6/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>  ***  Please don't blast me for asking.  I'm simply looking for educated
and
> objective feedback ***
>
> Is your company using Struts2?  We are starting a Proof of Concept this
week
> and I honestly don't even know where to begin!  I have read so many
> different viewpoints about S2 that I can't tell whether I'm coming or
> going.  What interfaces to implement?  What companion frameworks to
> leverage?  What interceptor stacks to use?  What about the choice of UI
> toolkits?  I read last night how the ajax support was being extracted
from
> S2 and made a plug-in.  I realize these are not easy questions, but I am
> leading a Struts 2 subcommittee and I am being asked for recommendations
and
> timetables.  Do you think S2 is ready for prime time?
>
> Thanks,
> Scott

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Implementing wizard like interface in struts

2007-06-26 Thread semaj

How can I check the current app state? Could you direct me to some resources?

Thanks,
semaj


Michael Jouravlev wrote:
> 
> Do you really care if one instance of the wizard stays in the session?
> If yes then you have to remove it yourself. You should know better
> when it is appropriate to remove it based on your application state.
> Struts form is just an object in the session map, so you can remove it
> from session manually, this is not that big a deal.
> 
> You can add your own command into the chain of commands, so every time
> your app receives a request you would check current app state and
> remove objects that are not valid for that state.
> 
> Michael.
> 
> On 6/26/07, semaj <[EMAIL PROTECTED]> wrote:
>>
>> Then, how can I solve this problem in struts 1.3.8? Don't you think
>> nobody
>> have face this issue? If yes, then they have not solve the problem??
>>
>>
>> Michael Jouravlev wrote:
>> >
>> > No, it will not. Unless you defined the form in Rollover scope ;-)
>> > http://wiki.apache.org/struts/RolloverScope
>> >
>> > After 1.3.9 is released, I will check in Rollover scope features into
>> > main Struts codebase.
>> >
>> > Michael.
>> >
>> > On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hey Michael,
>> >>
>> >> Thank you for your reply. I would like to ask you one more question.
>> Will
>> >> it
>> >> remove the form from the session if the user navigates to some other
>> >> pages
>> >> by clicking one of the menu items? Let's say the user is in sign up
>> >> wizard,
>> >> fills out first and second steps, but he changes his mind and clicks
>> on
>> >> the
>> >> menu items to go to other pages without completing the wizard
>> operation.
>> >> Will the easy wizard remove the form from session?
>> >>
>> >> Thank you,
>> >> semaj
>> >>
>> >>
>> >> Michael Jouravlev wrote:
>> >> >
>> >> > Try this:
>> >> http://downloads.sourceforge.net/struts/dialogs-samples-2.0.war
>> >> > I am sorry the online demos are not working at this moment. When you
>> >> > start this demo app, select "New User Signup Wizard" link on that
>> >> > start page, then check out the wizard. Notice, that the URL does not
>> >> > change after you submit a request, also you can reload a page
>> anytime,
>> >> > also you cannot directly navigate to a specific page of a wizard,
>> >> > which ensures that the user interface and wizard state machine are
>> >> > kept in sync.
>> >> >
>> >> > The wizard uses Easy Wizard classes (net.jspcontrols.wizard.* ), you
>> >> > don't have to use them, but they simplify things. The source code
>> for
>> >> > Easy Wizard if you need it can be found at:
>> >> > http://downloads.sourceforge.net/struts/dialogs-2.0.zip This archive
>> >> > contains the same sample application as well along with build files.
>> >> > Some docs on Easy Wizard can be found at:
>> >> > https://easywizard.dev.java.net/
>> >> >
>> >> > Michael.
>> >> >
>> >> > On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> It's been a week; have not found any solutions... any idea guys!!
>> >> >>
>> >> >> semaj wrote:
>> >> >> >
>> >> >> > Hi there,
>> >> >> >
>> >> >> > May be someone has already solved this problem. I need to
>> implement
>> >> a
>> >> >> > wizard like page flow in my strut web application.
>> >> >> >
>> >> >> > This is what I've done:
>> >> >> > 1. Created one big action form and put it in session scope.
>> >> >> > 2. Created action class extending DispatchAction
>> >> >> > 3. Created several jsps.
>> >> >> >
>> >> >> > I successfully implemented the logic with previous, next, finish,
>> >> and
>> >> >> > cancel button. I removed the action form from session if the user
>> >> >> clicks
>> >> >> > cancel or finish buttons. The only problem i'm having is how to
>> >> remove
>> >> >> the
>> >> >> > action form from session if the user navigates to other pages
>> from
>> >> menu
>> >> >> > bar (without clicking cancel or finish buttons).
>> >> >> >
>> >> >> > The other problem I'm having is how to navigate the user to first
>> >> step
>> >> >> if
>> >> >> > he/she directly types the url of other subsequent pages.
>> >> >> >
>> >> >> > I think i'm not the first person to face this problem. someone
>> must
>> >> >> have
>> >> >> > already implemented this. Any hint will be greatly appreciated!!
>> >> >> >
>> >> >> > There are different third party plugins for struts wizard. Do
>> they
>> >> >> solve
>> >> >> > my problems?
>> >> >> >
>> >> >> > Thanks,
>> >> >> > semaj
>> >> >> >
>> >> >> >
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11294298
>> >> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >>
>> -
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> --

Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt

Excellent, works great.

Thanks yet again, Musachy.

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> I posted the solution here the other day, off the
> top of my head (quite
> unreliable):
> 
> [
> <#list options as o>
>["${o.description}","${o.code}"]
>   <#if o_has_next>,
> 
> ]
> 
> musachy
> 
> On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > Hmm, I guess I could do that, though I would have
> to
> > learn a bit more about Freemarker above my simple
> > template:
> >
> > [
> > <#list options as o>
> > ["${o.description}","${o.code}"],
> > 
> > ]
> >
> > However, when I went back to Struts 2.0.6 and my
> > problem went away.  Should I change my template or
> > will  2.1 behave like 2.0.6?
> >
> > Relatedly, I am trying to use the handy
> > initComboxWithDefaultValue() function posted here,
> but
> > though it seems to work initially when focus
> leaves
> > the
> > field the forceValidOption="true" causes it to
> blank.
> > Debugging shows that key and value are valid.
> >
> > Any suggestions?
> >
> > Thanks,
> >
> > Scott
> >
> > --- Musachy Barroso <[EMAIL PROTECTED]> wrote:
> >
> > > That trailing comma on IE is the mother of all
> > > annoyances :)
> > >
> > > musachy
> > >
> > > On 6/26/07, Toni Lyytikäinen <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > Try removing the last comma from the list like
> > > this:
> > > >
> > > > [
> > > > ["ALABAMA STATE UNIV HORNETS"],
> > > > ["ALBANY ST UNIV GOLDEN RAMS"],
> > > > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > > > ["BALL ST UNIV CARDINALS"],
> > > > ["BAYLOR UNIV BEARS"],
> > > > ["CATAWBA COLLEGE"]  
> <--
> > > removed comma
> > > > ]
> > > >
> > > > On 6/26/07, Scott Nesbitt
> <[EMAIL PROTECTED]>
> > > wrote:
> > > > >
> > > > >
> > > > > Using the following code:
> > > > >
> > > > >  > > action="LookupSportsTeam"/>
> > > > >
> > > > >   > > > >   id="sportsTeam"
> > > > >
> > > keyName="sportsTeamKey"
> > > > >   theme="ajax"
> > > > >  
> formId="sportsForm"
> > > > >
> > > href="%{#autosportsteam}"
> > > > >   cssStyle="width:
> > > 340px;"
> > > > >  
> dropdownHeight="180"
> > > > >  
> loadMinimumCount="2"
> > > > >
> > > loadOnTextChange="true"
> > > > >  
> autoComplete="false"
> > > > >  
> showDownArrow="false"
> > > > >   delay="100"
> > > > >  
> searchType="substring"
> > > > >
> > > forceValidOption="true"/>
> > > > >
> > > > > I am getting what looks like a Dojo error:
> > > Object
> > > > > error  at line 4871.
> > > > >
> > > > > Here is what Fiddler says is the JSON I
> return:
> > > > >
> > > > > [
> > > > > ["ALABAMA STATE UNIV HORNETS"],
> > > > > ["ALBANY ST UNIV GOLDEN RAMS"],
> > > > > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > > > > ["BALL ST UNIV CARDINALS"],
> > > > > ["BAYLOR UNIV BEARS"],
> > > > > ["CATAWBA COLLEGE"],
> > > > > ]
> > > > >
> > > > > Any ideas?  Strangely, this works on a WIN2K
> > > machine
> > > > > with IE6, but fails on a WINXP machine with
> IE6,
> > > both
> > > > > with the latest patches.
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Scott
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> >
>

> > > > > Don't get soaked.  Take a quick peak at the
> > > forecast
> > > > > with the Yahoo! Search weather shortcut.
> > > > >
> > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > > > >
> > > > >
> > >
> >
>
-
> > > > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > "Hey you! Would you help me to carry the stone?"
> > > Pink Floyd
> > >
> >
> >
> >
> >
> >
> >
>

> > Got a little couch potato?
> > Check out fun summer activities for kids.
> >
> >
>
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 



  
___
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html

-
To unsubscr

Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Ted Husted

Usually, ready for primetime is used in connection with code quality,
and I don't think we have a problem there :)

Most of your post speaks to a having a lockstep set of implementation
practices, that say "do it this way and don't deviate". Struts on
Rails, so to speak. No, we don't have that, and it's unlikely that we
ever will. The nature of the ASF beast is that we have many people
from many different teams working on the codebase, and so it ends up
representing many points of view.

In terms of a stack, the most popular is
Struts/Apache/Spring/Hibernate, or SASH.

* http://sourcelabs.com/?page=software&sub=sash

We've have talked about creating a single-stack Struts distribution
that would bundle these sorts of thing together, but no one seems to
have the time.

As for timetables, the best bet is to focus on what's available now,
since there's no telling when anything will ship or be tagged GA.
We're all volunteers, and our time ebbs and flows.

-Ted.

On 6/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

 ***  Please don't blast me for asking.  I'm simply looking for educated and
objective feedback ***

Is your company using Struts2?  We are starting a Proof of Concept this week
and I honestly don't even know where to begin!  I have read so many
different viewpoints about S2 that I can't tell whether I'm coming or
going.  What interfaces to implement?  What companion frameworks to
leverage?  What interceptor stacks to use?  What about the choice of UI
toolkits?  I read last night how the ajax support was being extracted from
S2 and made a plug-in.  I realize these are not easy questions, but I am
leading a Struts 2 subcommittee and I am being asked for recommendations and
timetables.  Do you think S2 is ready for prime time?

Thanks,
Scott


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Implementing wizard like interface in struts

2007-06-26 Thread Michael Jouravlev

Do you really care if one instance of the wizard stays in the session?
If yes then you have to remove it yourself. You should know better
when it is appropriate to remove it based on your application state.
Struts form is just an object in the session map, so you can remove it
from session manually, this is not that big a deal.

You can add your own command into the chain of commands, so every time
your app receives a request you would check current app state and
remove objects that are not valid for that state.

Michael.

On 6/26/07, semaj <[EMAIL PROTECTED]> wrote:


Then, how can I solve this problem in struts 1.3.8? Don't you think nobody
have face this issue? If yes, then they have not solve the problem??


Michael Jouravlev wrote:
>
> No, it will not. Unless you defined the form in Rollover scope ;-)
> http://wiki.apache.org/struts/RolloverScope
>
> After 1.3.9 is released, I will check in Rollover scope features into
> main Struts codebase.
>
> Michael.
>
> On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>>
>> Hey Michael,
>>
>> Thank you for your reply. I would like to ask you one more question. Will
>> it
>> remove the form from the session if the user navigates to some other
>> pages
>> by clicking one of the menu items? Let's say the user is in sign up
>> wizard,
>> fills out first and second steps, but he changes his mind and clicks on
>> the
>> menu items to go to other pages without completing the wizard operation.
>> Will the easy wizard remove the form from session?
>>
>> Thank you,
>> semaj
>>
>>
>> Michael Jouravlev wrote:
>> >
>> > Try this:
>> http://downloads.sourceforge.net/struts/dialogs-samples-2.0.war
>> > I am sorry the online demos are not working at this moment. When you
>> > start this demo app, select "New User Signup Wizard" link on that
>> > start page, then check out the wizard. Notice, that the URL does not
>> > change after you submit a request, also you can reload a page anytime,
>> > also you cannot directly navigate to a specific page of a wizard,
>> > which ensures that the user interface and wizard state machine are
>> > kept in sync.
>> >
>> > The wizard uses Easy Wizard classes (net.jspcontrols.wizard.* ), you
>> > don't have to use them, but they simplify things. The source code for
>> > Easy Wizard if you need it can be found at:
>> > http://downloads.sourceforge.net/struts/dialogs-2.0.zip This archive
>> > contains the same sample application as well along with build files.
>> > Some docs on Easy Wizard can be found at:
>> > https://easywizard.dev.java.net/
>> >
>> > Michael.
>> >
>> > On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>> >>
>> >> It's been a week; have not found any solutions... any idea guys!!
>> >>
>> >> semaj wrote:
>> >> >
>> >> > Hi there,
>> >> >
>> >> > May be someone has already solved this problem. I need to implement
>> a
>> >> > wizard like page flow in my strut web application.
>> >> >
>> >> > This is what I've done:
>> >> > 1. Created one big action form and put it in session scope.
>> >> > 2. Created action class extending DispatchAction
>> >> > 3. Created several jsps.
>> >> >
>> >> > I successfully implemented the logic with previous, next, finish,
>> and
>> >> > cancel button. I removed the action form from session if the user
>> >> clicks
>> >> > cancel or finish buttons. The only problem i'm having is how to
>> remove
>> >> the
>> >> > action form from session if the user navigates to other pages from
>> menu
>> >> > bar (without clicking cancel or finish buttons).
>> >> >
>> >> > The other problem I'm having is how to navigate the user to first
>> step
>> >> if
>> >> > he/she directly types the url of other subsequent pages.
>> >> >
>> >> > I think i'm not the first person to face this problem. someone must
>> >> have
>> >> > already implemented this. Any hint will be greatly appreciated!!
>> >> >
>> >> > There are different third party plugins for struts wizard. Do they
>> >> solve
>> >> > my problems?
>> >> >
>> >> > Thanks,
>> >> > semaj
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> 
http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11294298
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11299698
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMA

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19

sorry mate..this is the code that throws the exception

if (actioncalled!=null && actioncalled.equals("upload"))
{
System.out.println("inside upload action");

FormFile myFile = deploymentForm.getTheFile();
}



newton.dave wrote:
> 
> --- vbharath19 <[EMAIL PROTECTED]> wrote:
>> when i run the page and upload the file and invoke
>> the action class i get the following error.
>> 
>> java.lang.NullPointerException
>> at
>> actions.DeployAction.execute(DeployAction.java:139)
> 
> Why wouldn't you include the code that's throwing the
> exception?!
> 
> d.
> 
> 
> 
>  
> 
> It's here! Your new message!  
> Get new email alerts with the free Yahoo! Toolbar.
> http://tools.search.yahoo.com/toolbar/features/mail/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11309749
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Implementing wizard like interface in struts

2007-06-26 Thread semaj

Then, how can I solve this problem in struts 1.3.8? Don't you think nobody
have face this issue? If yes, then they have not solve the problem??


Michael Jouravlev wrote:
> 
> No, it will not. Unless you defined the form in Rollover scope ;-)
> http://wiki.apache.org/struts/RolloverScope
> 
> After 1.3.9 is released, I will check in Rollover scope features into
> main Struts codebase.
> 
> Michael.
> 
> On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>>
>> Hey Michael,
>>
>> Thank you for your reply. I would like to ask you one more question. Will
>> it
>> remove the form from the session if the user navigates to some other
>> pages
>> by clicking one of the menu items? Let's say the user is in sign up
>> wizard,
>> fills out first and second steps, but he changes his mind and clicks on
>> the
>> menu items to go to other pages without completing the wizard operation.
>> Will the easy wizard remove the form from session?
>>
>> Thank you,
>> semaj
>>
>>
>> Michael Jouravlev wrote:
>> >
>> > Try this:
>> http://downloads.sourceforge.net/struts/dialogs-samples-2.0.war
>> > I am sorry the online demos are not working at this moment. When you
>> > start this demo app, select "New User Signup Wizard" link on that
>> > start page, then check out the wizard. Notice, that the URL does not
>> > change after you submit a request, also you can reload a page anytime,
>> > also you cannot directly navigate to a specific page of a wizard,
>> > which ensures that the user interface and wizard state machine are
>> > kept in sync.
>> >
>> > The wizard uses Easy Wizard classes (net.jspcontrols.wizard.* ), you
>> > don't have to use them, but they simplify things. The source code for
>> > Easy Wizard if you need it can be found at:
>> > http://downloads.sourceforge.net/struts/dialogs-2.0.zip This archive
>> > contains the same sample application as well along with build files.
>> > Some docs on Easy Wizard can be found at:
>> > https://easywizard.dev.java.net/
>> >
>> > Michael.
>> >
>> > On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>> >>
>> >> It's been a week; have not found any solutions... any idea guys!!
>> >>
>> >> semaj wrote:
>> >> >
>> >> > Hi there,
>> >> >
>> >> > May be someone has already solved this problem. I need to implement
>> a
>> >> > wizard like page flow in my strut web application.
>> >> >
>> >> > This is what I've done:
>> >> > 1. Created one big action form and put it in session scope.
>> >> > 2. Created action class extending DispatchAction
>> >> > 3. Created several jsps.
>> >> >
>> >> > I successfully implemented the logic with previous, next, finish,
>> and
>> >> > cancel button. I removed the action form from session if the user
>> >> clicks
>> >> > cancel or finish buttons. The only problem i'm having is how to
>> remove
>> >> the
>> >> > action form from session if the user navigates to other pages from
>> menu
>> >> > bar (without clicking cancel or finish buttons).
>> >> >
>> >> > The other problem I'm having is how to navigate the user to first
>> step
>> >> if
>> >> > he/she directly types the url of other subsequent pages.
>> >> >
>> >> > I think i'm not the first person to face this problem. someone must
>> >> have
>> >> > already implemented this. Any hint will be greatly appreciated!!
>> >> >
>> >> > There are different third party plugins for struts wizard. Do they
>> >> solve
>> >> > my problems?
>> >> >
>> >> > Thanks,
>> >> > semaj
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11294298
>> >> Sent from the Struts - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11299698
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11309597
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Dave Newton
--- vbharath19 <[EMAIL PROTECTED]> wrote:
> when i run the page and upload the file and invoke
> the action class i get the following error.
> 
> java.lang.NullPointerException
> at
> actions.DeployAction.execute(DeployAction.java:139)

Why wouldn't you include the code that's throwing the
exception?!

d.



 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Musachy Barroso

I posted the solution here the other day, off the top of my head (quite
unreliable):

[
<#list options as o>
  ["${o.description}","${o.code}"]
 <#if o_has_next>,

]

musachy

On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:



Hmm, I guess I could do that, though I would have to
learn a bit more about Freemarker above my simple
template:

[
<#list options as o>
["${o.description}","${o.code}"],

]

However, when I went back to Struts 2.0.6 and my
problem went away.  Should I change my template or
will  2.1 behave like 2.0.6?

Relatedly, I am trying to use the handy
initComboxWithDefaultValue() function posted here, but
though it seems to work initially when focus leaves
the
field the forceValidOption="true" causes it to blank.
Debugging shows that key and value are valid.

Any suggestions?

Thanks,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> That trailing comma on IE is the mother of all
> annoyances :)
>
> musachy
>
> On 6/26/07, Toni Lyytikäinen <[EMAIL PROTECTED]>
> wrote:
> >
> > Try removing the last comma from the list like
> this:
> >
> > [
> > ["ALABAMA STATE UNIV HORNETS"],
> > ["ALBANY ST UNIV GOLDEN RAMS"],
> > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > ["BALL ST UNIV CARDINALS"],
> > ["BAYLOR UNIV BEARS"],
> > ["CATAWBA COLLEGE"]   <--
> removed comma
> > ]
> >
> > On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> > >
> > >
> > > Using the following code:
> > >
> > >  action="LookupSportsTeam"/>
> > >
> > >   > >   id="sportsTeam"
> > >
> keyName="sportsTeamKey"
> > >   theme="ajax"
> > >   formId="sportsForm"
> > >
> href="%{#autosportsteam}"
> > >   cssStyle="width:
> 340px;"
> > >   dropdownHeight="180"
> > >   loadMinimumCount="2"
> > >
> loadOnTextChange="true"
> > >   autoComplete="false"
> > >   showDownArrow="false"
> > >   delay="100"
> > >   searchType="substring"
> > >
> forceValidOption="true"/>
> > >
> > > I am getting what looks like a Dojo error:
> Object
> > > error  at line 4871.
> > >
> > > Here is what Fiddler says is the JSON I return:
> > >
> > > [
> > > ["ALABAMA STATE UNIV HORNETS"],
> > > ["ALBANY ST UNIV GOLDEN RAMS"],
> > > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > > ["BALL ST UNIV CARDINALS"],
> > > ["BAYLOR UNIV BEARS"],
> > > ["CATAWBA COLLEGE"],
> > > ]
> > >
> > > Any ideas?  Strangely, this works on a WIN2K
> machine
> > > with IE6, but fails on a WINXP machine with IE6,
> both
> > > with the latest patches.
> > >
> > > Thanks,
> > >
> > > Scott
> > >
> > >
> > >
> > >
> > >
> >
>


> > > Don't get soaked.  Take a quick peak at the
> forecast
> > > with the Yahoo! Search weather shortcut.
> > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > >
> > >
>
-
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
>






Got a little couch potato?
Check out fun summer activities for kids.

http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19

done..it doesn't work..any other ideas?

nuwan chandrasoma-2 wrote:
> 
> Hi,
> 
> try removing the .do from your action in the form and just put the action 
> name what is in the struts-config.xml.
> 
> Thanks,
> 
> Nuwan
> 
> 
> - Original Message - 
> From: "vbharath19" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, June 26, 2007 4:03 PM
> Subject: Form Upload throwing null pointer. cannot retrieve the file in 
> action class..HELP URGENT!!!
> 
> 
>>
>> Hi,
>>
>> I have a jsp from which i upload a file. this field is of Formfile type.
>>
>> jsp entry:
>>
>> > action="/pages/deploy-action.do" >
>>   
>> 
>> 
>>  
>>  
>> 
>> 
>>
>> I have not used bean:define in the jsp. when i use it,it throws cannot
>> assign null exception.
>>
>> in the struts config xml, entries are present for form - bean but not for
>> its property, i tried entering the property, it did not make a difference
>>
>> I am using the multiform/form-data enctype and also method=post.
>>
>> when i run the page and upload the file and invoke the action class i get
>> the following error.
>>
>> java.lang.NullPointerException
>>at actions.DeployAction.execute(DeployAction.java:139)
>>at
>> org.apache.struts.action.RequestProcessor.processActionPerform(Reques
>> tProcessor.java:419)
>>at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
>> va:224)
>>at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
>> 6)
>>at
>> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
>>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11308662
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11309524
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt

Hmm, I guess I could do that, though I would have to
learn a bit more about Freemarker above my simple
template:

[
<#list options as o>
["${o.description}","${o.code}"],

]

However, when I went back to Struts 2.0.6 and my
problem went away.  Should I change my template or
will  2.1 behave like 2.0.6?

Relatedly, I am trying to use the handy
initComboxWithDefaultValue() function posted here, but
though it seems to work initially when focus leaves
the 
field the forceValidOption="true" causes it to blank. 
Debugging shows that key and value are valid.

Any suggestions?

Thanks,

Scott

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> That trailing comma on IE is the mother of all
> annoyances :)
> 
> musachy
> 
> On 6/26/07, Toni Lyytikäinen <[EMAIL PROTECTED]>
> wrote:
> >
> > Try removing the last comma from the list like
> this:
> >
> > [
> > ["ALABAMA STATE UNIV HORNETS"],
> > ["ALBANY ST UNIV GOLDEN RAMS"],
> > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > ["BALL ST UNIV CARDINALS"],
> > ["BAYLOR UNIV BEARS"],
> > ["CATAWBA COLLEGE"]   <--
> removed comma
> > ]
> >
> > On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> > >
> > >
> > > Using the following code:
> > >
> > >  action="LookupSportsTeam"/>
> > >
> > >   > >   id="sportsTeam"
> > >  
> keyName="sportsTeamKey"
> > >   theme="ajax"
> > >   formId="sportsForm"
> > >  
> href="%{#autosportsteam}"
> > >   cssStyle="width:
> 340px;"
> > >   dropdownHeight="180"
> > >   loadMinimumCount="2"
> > >  
> loadOnTextChange="true"
> > >   autoComplete="false"
> > >   showDownArrow="false"
> > >   delay="100"
> > >   searchType="substring"
> > >  
> forceValidOption="true"/>
> > >
> > > I am getting what looks like a Dojo error:
> Object
> > > error  at line 4871.
> > >
> > > Here is what Fiddler says is the JSON I return:
> > >
> > > [
> > > ["ALABAMA STATE UNIV HORNETS"],
> > > ["ALBANY ST UNIV GOLDEN RAMS"],
> > > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > > ["BALL ST UNIV CARDINALS"],
> > > ["BAYLOR UNIV BEARS"],
> > > ["CATAWBA COLLEGE"],
> > > ]
> > >
> > > Any ideas?  Strangely, this works on a WIN2K
> machine
> > > with IE6, but fails on a WINXP machine with IE6,
> both
> > > with the latest patches.
> > >
> > > Thanks,
> > >
> > > Scott
> > >
> > >
> > >
> > >
> > >
> >
>

> > > Don't get soaked.  Take a quick peak at the
> forecast
> > > with the Yahoo! Search weather shortcut.
> > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > >
> > >
>
-
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 



   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Nuwan Chandrasoma

Hi,

try removing the .do from your action in the form and just put the action 
name what is in the struts-config.xml.


Thanks,

Nuwan


- Original Message - 
From: "vbharath19" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, June 26, 2007 4:03 PM
Subject: Form Upload throwing null pointer. cannot retrieve the file in 
action class..HELP URGENT!!!





Hi,

I have a jsp from which i upload a file. this field is of Formfile type.

jsp entry:


  


 
 



I have not used bean:define in the jsp. when i use it,it throws cannot
assign null exception.

in the struts config xml, entries are present for form - bean but not for
its property, i tried entering the property, it did not make a difference

I am using the multiform/form-data enctype and also method=post.

when i run the page and upload the file and invoke the action class i get
the following error.

java.lang.NullPointerException
   at actions.DeployAction.execute(DeployAction.java:139)
   at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:419)
   at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:224)
   at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
   at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)


--
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11308662

Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread vbharath19

Hi,

I have a jsp from which i upload a file. this field is of Formfile type.

jsp entry:


 


   
 



I have not used bean:define in the jsp. when i use it,it throws cannot
assign null exception.

in the struts config xml, entries are present for form - bean but not for
its property, i tried entering the property, it did not make a difference

I am using the multiform/form-data enctype and also method=post. 

when i run the page and upload the file and invoke the action class i get
the following error.

java.lang.NullPointerException
at actions.DeployAction.execute(DeployAction.java:139)
at
org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:419)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:224)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:119
6)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)


-- 
View this message in context: 
http://www.nabble.com/Form-Upload-throwing-null-pointer.-cannot-retrieve-the-file-in-action-class..HELP-URGENT%21%21%21-tf3983276.html#a11308662
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Minimized Window State NOT working

2007-06-26 Thread Nils-Helge Garli

I have to correct myself. The dispatcher extends the GenericPortlet
class, but it overrides the render method because of the specialized
mode handling. But the effect is still the same, the window state
logic in doDispatch is not invoked.

Sorry for the confusion.

Nils-H

On 6/26/07, Nils-Helge Garli <[EMAIL PROTECTED]> wrote:

All portlets are responsible for what to render in the different
window states, even when caching is enabled, if the portlet is the
"target" of a user interaction (PLT.18.1 in the spec). But usually
when creating portlets, you extend the GenericPortlet class, which has
built in logic for skipping rendering in the "doDispatch" method when
the window state is minimized. Quote from the javadoc for
GenericPortlet:

"If the window state of this portlet is minimized, this method does
not invoke any of the portlet mode rendering methods."

The Jsr168Dispatcher in Struts 2 does not extend GenericPortlet (it
just implements the Portlet interface, since the handling of modes is
a bit different from a "regular" portlet), so this logic is missing.
This means, that for now, the responsibility of what is rendered in
the minimized state is up to the developer.

I'll create an improvment request in the JIRA for adding default
window state handling to the Struts 2 portlet dispatcher.

For now, a workaround would be to subclass the Jsr168Dispatcher (or
modify it directly) and in the render method, do something like

if(!request.getWindowState().equals(WindowState.MINIMIZED)) {
   super.render(request, response);
}

Nils-H

On 6/26/07, tom tom <[EMAIL PROTECTED]> wrote:
>
> > "When a portlet is in MINIMIZED window state, the
> > portlet should only render
> > minimal output or no output at all."
>
> Ealier we were using struts-bridge for portlet
> development, there it was showing no output for the
> MINIMIZED window state, also I have seen lot of other
> portlet development strategies where it shows nothing
> for the minimized window state.
>
> > As I interpret this, it's the responsibility of the
> > portlet to display the
> > correct content. So you need to do some checking for
> > the window state and
> > take according action in your portlet.
>
> I DONT THINK this is possible, The reason is as
> follows.
>
> In S2 when I submit a form (not a HREF) it goes to an
> action and there after forward to a JSP, Now being in
> the same page if I switch between modes, it does not
> go the action class but shows the content probably
> from cache or already rendered content, Due to this
> reason how can I check for the Window State in the
> corresponding action class.
>
>
>
>
>
> >
> > However, there wasn't much information about the
> > minimized window state in
> > the spec. I couldn't find any description of the
> > contract between the portal
> > server's "window buttons" and the window states, so
> > there might be different
> > behaviour from server to server.
>
> We have different portlet development strategies
> working fine with uPortal, hence this is nothing to do
> with the uPortal or any other portal container.
>
>
>
> Please let me know if any way around for this.
> This should be a common problem to anyone, Can we
> enforce it to hit the action class for each switch
> between windows states so that in the portet we can do
> something.
>
> Thanks
>
>
>
>
>
>
> 

> Got a little couch potato?
> Check out fun summer activities for kids.
> 
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Dave Newton
+1; that one cost me about 30 minutes on day a couple
of weeks ago.

--- Musachy Barroso <[EMAIL PROTECTED]> wrote:

> That trailing comma on IE is the mother of all
> annoyances :)
> 
> musachy
> 
> On 6/26/07, Toni Lyytikäinen <[EMAIL PROTECTED]>
> wrote:
> >
> > Try removing the last comma from the list like
> this:
> >
> > [
> > ["ALABAMA STATE UNIV HORNETS"],
> > ["ALBANY ST UNIV GOLDEN RAMS"],
> > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > ["BALL ST UNIV CARDINALS"],
> > ["BAYLOR UNIV BEARS"],
> > ["CATAWBA COLLEGE"]   <--
> removed comma
> > ]
> >
> > On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]>
> wrote:
> > >
> > >
> > > Using the following code:
> > >
> > >  action="LookupSportsTeam"/>
> > >
> > >   > >   id="sportsTeam"
> > >  
> keyName="sportsTeamKey"
> > >   theme="ajax"
> > >   formId="sportsForm"
> > >  
> href="%{#autosportsteam}"
> > >   cssStyle="width:
> 340px;"
> > >   dropdownHeight="180"
> > >   loadMinimumCount="2"
> > >  
> loadOnTextChange="true"
> > >   autoComplete="false"
> > >   showDownArrow="false"
> > >   delay="100"
> > >   searchType="substring"
> > >  
> forceValidOption="true"/>
> > >
> > > I am getting what looks like a Dojo error:
> Object
> > > error  at line 4871.
> > >
> > > Here is what Fiddler says is the JSON I return:
> > >
> > > [
> > > ["ALABAMA STATE UNIV HORNETS"],
> > > ["ALBANY ST UNIV GOLDEN RAMS"],
> > > ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> > > ["BALL ST UNIV CARDINALS"],
> > > ["BAYLOR UNIV BEARS"],
> > > ["CATAWBA COLLEGE"],
> > > ]
> > >
> > > Any ideas?  Strangely, this works on a WIN2K
> machine
> > > with IE6, but fails on a WINXP machine with IE6,
> both
> > > with the latest patches.
> > >
> > > Thanks,
> > >
> > > Scott
> > >
> > >
> > >
> > >
> > >
> >
>

> > > Don't get soaked.  Take a quick peak at the
> forecast
> > > with the Yahoo! Search weather shortcut.
> > >
> http://tools.search.yahoo.com/shortcuts/#loc_weather
> > >
> > >
>
-
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> > >
> >
> 
> 
> 
> -- 
> "Hey you! Would you help me to carry the stone?"
> Pink Floyd
> 



   

Pinpoint customers who are looking for what you sell. 
http://searchmarketing.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What is the version number of dojo release included in struts 2.0.8 ?

2007-06-26 Thread Gajbhe, Laxman (Contractor)
Hi,
 
 We are currently using 2.0.6. For some of the ajax problems we had to
get the latest release from dojo website and rebuild 2.0.6 jar. 
 
 We are planning to move to 2.0.8. I did not find any information from
struts site about what is dojo release that it uses to bundle with
2.0.8.
 
 Can somebody please provide that information?
 
thanks,
 
Laxman
 

This e-mail and its attachments are confidential and solely for the
intended addressee(s). Do not share or use them without Fannie Mae's
approval. If received in error, contact the sender and delete them.

 


Re: [S2] onsubmit in tag

2007-06-26 Thread Dave Newton
--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> If you try it in a plain html form, you will know
> the difference. That's really useful to use 
> onsubmit="return (validateFields())" in form
> tag,

Um... Yeah, I understand that. What I'm saying is:

onsubmit="return validateFields(); return true;"

will always return the value of the validateFields()
function call; the trailing "return true;" will never
happen.

d.



  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parameter interception

2007-06-26 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> Hey Dave, to you care to comment?

Sure; might as well earn my pay today.

Oh, wait.

>> Do you know what the code would look like to get
the
>> id off the action?

AFAIK ModelDriven just pushes the model on to the top
of the stack, so the easiest would be to use the OGNL
stack notation: "[1].id"

d.



   

Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Musachy Barroso

That trailing comma on IE is the mother of all annoyances :)

musachy

On 6/26/07, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote:


Try removing the last comma from the list like this:

[
["ALABAMA STATE UNIV HORNETS"],
["ALBANY ST UNIV GOLDEN RAMS"],
["BALDWIN-WALLCE CLG YELLW JCKTS"],
["BALL ST UNIV CARDINALS"],
["BAYLOR UNIV BEARS"],
["CATAWBA COLLEGE"]   <-- removed comma
]

On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:
>
>
> Using the following code:
>
> 
>
> id="sportsTeam"
>   keyName="sportsTeamKey"
>   theme="ajax"
>   formId="sportsForm"
>   href="%{#autosportsteam}"
>   cssStyle="width: 340px;"
>   dropdownHeight="180"
>   loadMinimumCount="2"
>   loadOnTextChange="true"
>   autoComplete="false"
>   showDownArrow="false"
>   delay="100"
>   searchType="substring"
>   forceValidOption="true"/>
>
> I am getting what looks like a Dojo error: Object
> error  at line 4871.
>
> Here is what Fiddler says is the JSON I return:
>
> [
> ["ALABAMA STATE UNIV HORNETS"],
> ["ALBANY ST UNIV GOLDEN RAMS"],
> ["BALDWIN-WALLCE CLG YELLW JCKTS"],
> ["BALL ST UNIV CARDINALS"],
> ["BAYLOR UNIV BEARS"],
> ["CATAWBA COLLEGE"],
> ]
>
> Any ideas?  Strangely, this works on a WIN2K machine
> with IE6, but fails on a WINXP machine with IE6, both
> with the latest patches.
>
> Thanks,
>
> Scott
>
>
>
>
>

> Don't get soaked.  Take a quick peak at the forecast
> with the Yahoo! Search weather shortcut.
> http://tools.search.yahoo.com/shortcuts/#loc_weather
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: S2 - Dojo Tree Widget

2007-06-26 Thread Musachy Barroso

That would be great :), the tree tag needs some serious help with the
documentation.

regards
musachy

On 6/26/07, Max Pimm <[EMAIL PROTECTED]> wrote:


Thanks musachy. I was looking at the on-line documentation and hadn't
seen anything about the tree tag. I've now found an example in the
struts-showcase app. This should do the job although i will need to
embellish it with drag n drop and a context menu to add and remove
nodes. I don't want to speak too soon, but if this goes ok perhaps i
could help add this functionality to showcase example.

max

Musachy Barroso wrote:
> The tree works on 2.0.6/2.0.8 AFAIK, did you try the "tree" tag?
>
> regards
> musachy
>
> On 6/26/07, Max Pimm <[EMAIL PROTECTED]> wrote:
>>
>> I have seen that people are working on integrating the Dojo tree widget
>> into the 2.1 release. I'm using 2.0.6 release and am about to implement
>> the tree
>> widget in my app.
>>
>> I'm new to dojo and haven't been able to find much official
>> documentation for this widget. I wondered if someone who has a bit more
>> experience could confirm that i am going about this in the right way.
My
>> plan is to implement the tree as follows.
>>
>> 1) Import the necessary dojo js's.
>> 2) Create the empty html div structure.
>> 3) Using the  RPCUrl property of the TreeLoadingController hook the
tree
>> upto a struts action to retreive the children of a given node.
>> 4) Implement the struts action and use the JSON Plugin to render the
>> results.
>>
>> Is this correct? Will this work with the 0.4 distribution of dojo
>> bundled in struts 2.0.6?
>>
>> Thanks,
>>
>> max
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Toni Lyytikäinen

Try removing the last comma from the list like this:

[
   ["ALABAMA STATE UNIV HORNETS"],
   ["ALBANY ST UNIV GOLDEN RAMS"],
   ["BALDWIN-WALLCE CLG YELLW JCKTS"],
   ["BALL ST UNIV CARDINALS"],
   ["BAYLOR UNIV BEARS"],
   ["CATAWBA COLLEGE"]   <-- removed comma
]

On 6/26/07, Scott Nesbitt <[EMAIL PROTECTED]> wrote:



Using the following code:



 

I am getting what looks like a Dojo error: Object
error  at line 4871.

Here is what Fiddler says is the JSON I return:

[
["ALABAMA STATE UNIV HORNETS"],
["ALBANY ST UNIV GOLDEN RAMS"],
["BALDWIN-WALLCE CLG YELLW JCKTS"],
["BALL ST UNIV CARDINALS"],
["BAYLOR UNIV BEARS"],
["CATAWBA COLLEGE"],
]

Any ideas?  Strangely, this works on a WIN2K machine
with IE6, but fails on a WINXP machine with IE6, both
with the latest patches.

Thanks,

Scott





Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [S2] OptionTransferSelect in 2.0.8

2007-06-26 Thread Adam Ruggles

https://issues.apache.org/struts/browse/WW-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41243

WW-1993

Musachy Barroso wrote:

What if the ticket number? That would be a major issue

regards
musachy

On 6/25/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:


Something broke between 2.0.6 and 2.0.8 when posting collections.  You
will need to create a conversions properties file for your action.  I've
logged a bug but I haven't had any feed back on it yet.

Felipe Rodrigues wrote:
> HI,
> I'm having a similar problem.
> My action only get's the really selected(Highlighted) values of
> doubleSelect. If I don't click in at least one, I get an null 
object in

the
> list inside my action.
>
> did anything changed?
>
> Tahnks,
>
> Felipe
>
>
> Julien Leonard wrote:
>
>> Hi all,
>> In 2.0.6, I used optiontransfertselect with Long params like this :
>>
>>
>>
>> > leftTitle="%{getText('saving.input.countries.available')}"
>> rightTitle="%{getText('saving.input.countries.selected')}"
>> doubleList="saving.countries"
>> doubleListKey="id"
>> doubleListValue="%{getText(i18nKey)}"
>> doubleName="selectedCountries"
>> doubleId="saveSaving_selectedCountries"
>> id="saveSaving_availableCountries"
>> list="availableCountries"
>> listKey="id"
>> listValue="%{getText(i18nKey)}"
>> allowUpDownOnLeft="false"
>> allowUpDownOnRight="false">
>> allowUpDownOnRight="false">
>>
>>
>> in my action I have this :
>>
>> private List selectedCountries = new LinkedList();
>> public List getSelectedCountries()
>> {
>>  return selectedCountries;
>> }
>>
>>
>> public void setSelectedCountries( List selectedCountries )
>> {
>>  this.selectedCountries = selectedCountries;
>> }
>>
>> In  2.0.6, it was good. But in 2.0.8 have a
>> java.lang.ClassCastException: java.lang.String when I want to 
acces to

>> the selectedCountries List.
>> In fact struts inject a xworkList typed as String.
>> Is it a bug of 2.0.8 ?
>> Can I resolve it?
>>
>> Julien
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



S2: autocompletion trouble in 2.0.8

2007-06-26 Thread Scott Nesbitt

Using the following code:



 

I am getting what looks like a Dojo error: Object
error  at line 4871.

Here is what Fiddler says is the JSON I return:

[
["ALABAMA STATE UNIV HORNETS"],
["ALBANY ST UNIV GOLDEN RAMS"],
["BALDWIN-WALLCE CLG YELLW JCKTS"],
["BALL ST UNIV CARDINALS"],
["BAYLOR UNIV BEARS"],
["CATAWBA COLLEGE"],
]

Any ideas?  Strangely, this works on a WIN2K machine
with IE6, but fails on a WINXP machine with IE6, both
with the latest patches.

Thanks,

Scott


 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] onsubmit in tag

2007-06-26 Thread Vincent Lin

If you try it in a plain html form, you will know the difference.
That's really useful to use onsubmit="return (validateFields())" in form
tag,
and validate all fields in validateFields() function (If you are not using
validators.).
Return true in validateFields() if all validations are passed.
Return false when there is something wrong in your input.


On 6/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> For example, onsubmit="return (validateFields())" is
> specified in html  tag. If the javascript
> function validateFields() return true, the form will
> submit, otherwise it won't.
>
> It works fine in struts 1.
> But struts2 always add 'return true' in onsubmit
> event. That causes validateFields() useless.

Why / how? Once it hits a return it doesn't make any
difference what's after it.

d.






Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Implementing wizard like interface in struts

2007-06-26 Thread Michael Jouravlev

No, it will not. Unless you defined the form in Rollover scope ;-)
http://wiki.apache.org/struts/RolloverScope

After 1.3.9 is released, I will check in Rollover scope features into
main Struts codebase.

Michael.

On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:


Hey Michael,

Thank you for your reply. I would like to ask you one more question. Will it
remove the form from the session if the user navigates to some other pages
by clicking one of the menu items? Let's say the user is in sign up wizard,
fills out first and second steps, but he changes his mind and clicks on the
menu items to go to other pages without completing the wizard operation.
Will the easy wizard remove the form from session?

Thank you,
semaj


Michael Jouravlev wrote:
>
> Try this: http://downloads.sourceforge.net/struts/dialogs-samples-2.0.war
> I am sorry the online demos are not working at this moment. When you
> start this demo app, select "New User Signup Wizard" link on that
> start page, then check out the wizard. Notice, that the URL does not
> change after you submit a request, also you can reload a page anytime,
> also you cannot directly navigate to a specific page of a wizard,
> which ensures that the user interface and wizard state machine are
> kept in sync.
>
> The wizard uses Easy Wizard classes (net.jspcontrols.wizard.* ), you
> don't have to use them, but they simplify things. The source code for
> Easy Wizard if you need it can be found at:
> http://downloads.sourceforge.net/struts/dialogs-2.0.zip This archive
> contains the same sample application as well along with build files.
> Some docs on Easy Wizard can be found at:
> https://easywizard.dev.java.net/
>
> Michael.
>
> On 6/25/07, semaj <[EMAIL PROTECTED]> wrote:
>>
>> It's been a week; have not found any solutions... any idea guys!!
>>
>> semaj wrote:
>> >
>> > Hi there,
>> >
>> > May be someone has already solved this problem. I need to implement a
>> > wizard like page flow in my strut web application.
>> >
>> > This is what I've done:
>> > 1. Created one big action form and put it in session scope.
>> > 2. Created action class extending DispatchAction
>> > 3. Created several jsps.
>> >
>> > I successfully implemented the logic with previous, next, finish, and
>> > cancel button. I removed the action form from session if the user
>> clicks
>> > cancel or finish buttons. The only problem i'm having is how to remove
>> the
>> > action form from session if the user navigates to other pages from menu
>> > bar (without clicking cancel or finish buttons).
>> >
>> > The other problem I'm having is how to navigate the user to first step
>> if
>> > he/she directly types the url of other subsequent pages.
>> >
>> > I think i'm not the first person to face this problem. someone must
>> have
>> > already implemented this. Any hint will be greatly appreciated!!
>> >
>> > There are different third party plugins for struts wizard. Do they
>> solve
>> > my problems?
>> >
>> > Thanks,
>> > semaj
>> >
>> >
>>
>> --
>> View this message in context:
>> 
http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11294298
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11299698
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BigInteger and BigDecimal Properties Issue

2007-06-26 Thread Mark Menard
On 6/25/07 7:19 PM, "Mark Menard" <[EMAIL PROTECTED]> wrote:

> I have an action with a property of type BigDecimal, that is initialized, so
> it has a value:
> 
> Public class myAction {
>  BigDecimal myBigDecimal = new BigDecimal ("1.1");
> 
>  ...
> }
> 
> I have a form with the following:
> 
> 
> 
> The issue is if I blank out the value, myBigDecimal still retains the 1.1
> value in the action.

I overcame this behavior by writing my own type converter.
 
> Questions:
> 
> When a field is a java.lang.Number, and the input is blank, should "null" be
> set on the property?
> 
> Looking at ognl.OgnlOps.doubleValue() for a 0 length string it should be
> returning 0.0, why is it null?

This still leaves the question on what the default behavior ought to be. My
thought is the properties should be set to null.

Mark

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 - Dojo Tree Widget

2007-06-26 Thread Max Pimm
Thanks musachy. I was looking at the on-line documentation and hadn't 
seen anything about the tree tag. I've now found an example in the 
struts-showcase app. This should do the job although i will need to 
embellish it with drag n drop and a context menu to add and remove 
nodes. I don't want to speak too soon, but if this goes ok perhaps i 
could help add this functionality to showcase example.


max

Musachy Barroso wrote:

The tree works on 2.0.6/2.0.8 AFAIK, did you try the "tree" tag?

regards
musachy

On 6/26/07, Max Pimm <[EMAIL PROTECTED]> wrote:


I have seen that people are working on integrating the Dojo tree widget
into the 2.1 release. I'm using 2.0.6 release and am about to implement
the tree
widget in my app.

I'm new to dojo and haven't been able to find much official
documentation for this widget. I wondered if someone who has a bit more
experience could confirm that i am going about this in the right way. My
plan is to implement the tree as follows.

1) Import the necessary dojo js's.
2) Create the empty html div structure.
3) Using the  RPCUrl property of the TreeLoadingController hook the tree
upto a struts action to retreive the children of a given node.
4) Implement the struts action and use the JSON Plugin to render the
results.

Is this correct? Will this work with the 0.4 distribution of dojo
bundled in struts 2.0.6?

Thanks,

max

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] onsubmit in tag

2007-06-26 Thread Dave Newton
--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> For example, onsubmit="return (validateFields())" is
> specified in html  tag. If the javascript 
> function validateFields() return true, the form will
> submit, otherwise it won't.
> 
> It works fine in struts 1.
> But struts2 always add 'return true' in onsubmit
> event. That causes validateFields() useless.

Why / how? Once it hits a return it doesn't make any
difference what's after it.

d.



 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help using Ajax form validation

2007-06-26 Thread Deepak Kumar
Hi,

Check this
http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam
ple.shtml

Thanks


-Original Message-
From: King, William S. [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 6:26 PM
To: user@struts.apache.org
Subject: Help using Ajax form validation


I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right
direction to use Dojo in my application...it's a web app using portles,
JSPs, Struts2, Ajax. I see in documentation that to utilize the Ajax
form validation I need to install the Dojo toolkit. I've downloaded the
zip file, but it doesn't look like bringing the .jar file in to my
eclipse project will do anything for me. Any help would be greatly
appreciated.


W. Shane King

General Dynamics
Advanced Information Systems
2673 Commons Blvd., Suite 200
Beavercreek, OH 45431

Email: [EMAIL PROTECTED]
Voice: (937) 427-4431
Fax: (937) 427-6416



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Ian Roughley
Yes.  I know of several companies that are using s2 in production 
environments.  I also know of an extremely large company that has 
started to use s2 for prototyping. 

As far as your other questions go - this really depends on the project.  
Like any design decision, the choices need to made depending on the 
services and features required.


/Ian

[EMAIL PROTECTED] wrote:

***  Please don't blast me for asking.  I'm simply looking for 
educated and

objective feedback ***

Is your company using Struts2?  We are starting a Proof of Concept 
this week

and I honestly don't even know where to begin!  I have read so many
different viewpoints about S2 that I can't tell whether I'm coming or
going.  What interfaces to implement?  What companion frameworks to
leverage?  What interceptor stacks to use?  What about the choice of UI
toolkits?  I read last night how the ajax support was being extracted 
from

S2 and made a plug-in.  I realize these are not easy questions, but I am
leading a Struts 2 subcommittee and I am being asked for 
recommendations and

timetables.  Do you think S2 is ready for prime time?

Thanks,
Scott



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Parameter interception

2007-06-26 Thread stanlick

Hey Dave, to you care to comment?

On 6/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Alright!  Now we are getting somewhere.  Do you know what the code would
look like to get the id off the action?

Scott

On 6/25/07, Dave Newton < [EMAIL PROTECTED]> wrote:
>
> --- [EMAIL PROTECTED] wrote:
> > 
> > 
>
> If you've implemented ModelDriven and it's returning
> the payrollUpdate, then this would be expected
> behavior: ModelDriven puts the model on the stack so
> its properties are available w/o prefixing.
>
> d.
>
>
>
>
> 

>
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket:
> mail, news, photos & more.
> http://mobile.yahoo.com/go?refer=1GNXIC
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Scott
[EMAIL PROTECTED]





--
Scott
[EMAIL PROTECTED]


Re: [S2] How do I create a client side validator?

2007-06-26 Thread Vincent Lin

Thanks for your help.
But I only see how to configure client side validators.
What I want is to create a customized client side validator.
The build in validators can't meet our requirements such as validating the
length of Chinese characters.

On 6/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:


--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> Is there any document talking about how to create a
> client side validator in struts2?

Yes, it's one of the links under the "validation"
section on the wiki.

http://struts.apache.org/2.x/docs/validation.html

http://struts.apache.org/2.x/docs/client-validation.html

d.




  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user
panel and lay it on us.
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: [S2] onsubmit in tag

2007-06-26 Thread Vincent Lin

I usually use onsubmit in form tag to do javascript validation.

For example, onsubmit="return (validateFields())" is specified in html
 tag.
If the javascript function validateFields() return true, the form will
submit, otherwise it won't.

It works fine in struts 1.
But struts2 always add 'return true' in onsubmit event.
That causes validateFields() useless.


On 6/26/07, yitzle <[EMAIL PROTECTED]> wrote:


Um... Firstly, it does the same thing.
I think if you move the code to the submit button it renders it as
expected.

On 6/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Vincent Lin <[EMAIL PROTECTED]> wrote:
> > Why it renders onsubmit="return (validateFields());
> > return true;"
> > instead of onsubmit="return (validateFields())" ?
> > Can I make renders  onsubmit="return
> > (validateFields())" only?
>
> Probably that's what's in the template. I'm not sure
> that it really matters, though.
>
> d.
>
>
>
>
>

> Building a website is a piece of cake. Yahoo! Small Business gives you
all the tools to get online.
> http://smallbusiness.yahoo.com/webhosting
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




ExecuteAndWaitInterceptor with round robin load balancing

2007-06-26 Thread Martin Gilday
Has anyone attempted to use the ExecuteAndWaitInterceptor with a load
balancer on round robin?  

I am having problems getting it to work with WebWork 2.2.5.  Seeing as
the interceptor looks unchanged in Struts 2 I thought it might be
worthwhile also asking here.  My problem is detailed
http://forums.opensymphony.com/thread.jspa?messageID=161853

My general concern is whether it is possible for this interceptor to
work with replicated sessions across a cluster?  Looking at the source
the BackgroundProcess created by the interceptor would need to be
replicated, along with the action inside it.  If you were then sent to a
different node would the interceptor correctly be able to determine if
the job had completed?

Thanks for any help,
Martin.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] onsubmit in tag

2007-06-26 Thread yitzle

Um... Firstly, it does the same thing.
I think if you move the code to the submit button it renders it as expected.

On 6/26/07, Dave Newton <[EMAIL PROTECTED]> wrote:

--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> Why it renders onsubmit="return (validateFields());
> return true;"
> instead of onsubmit="return (validateFields())" ?
> Can I make renders  onsubmit="return
> (validateFields())" only?

Probably that's what's in the template. I'm not sure
that it really matters, though.

d.





Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help using Ajax form validation

2007-06-26 Thread Musachy Barroso

If you are using 2.0.8 or 2.0.6 the AJAX validation was implemented with
DWR, not Dojo. AJAX validation with Dojo will be(it is) available on 2.1

regards
musachy

On 6/26/07, King, William S. <[EMAIL PROTECTED]> wrote:


I've downloaded the showcase, and the example I'm trying to use is under
the validation examples, validation (ajax).   The generated source code
is pointing to some js files that don't exist in the project, so I'm
assuming (I know...that's bad) the files are generated by Dojo.  I'm
having issues finding out how to port dojo into my existing project.
Thanks for the reference points, I'm gonna check those out now.

Shane

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 9:34 AM
To: Struts Users Mailing List
Subject: Re: Help using Ajax form validation

I think you have more than one question :), start by checking out the
tutorials:

http://struts.apache.org/2.x/docs/tutorials.html

and take a look at "Starting with Struts" book:

http://www.infoq.com/minibooks/starting-struts2

Then you can move to the Dojo stuff:

http://struts.apache.org/2.x/docs/ajax-tags.html

I would also advise to download Struts Showcase as it has many examples
that will help you get started.

musachy

On 6/26/07, King, William S. <[EMAIL PROTECTED]> wrote:
>
> I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right
> direction to use Dojo in my application...it's a web app using
> portles, JSPs, Struts2, Ajax. I see in documentation that to utilize
> the Ajax form validation I need to install the Dojo toolkit. I've
> downloaded the zip file, but it doesn't look like bringing the .jar
> file in to my eclipse project will do anything for me. Any help would
> be greatly appreciated.
>
>
> W. Shane King
>
> General Dynamics
> Advanced Information Systems
> 2673 Commons Blvd., Suite 200
> Beavercreek, OH 45431
>
> Email: [EMAIL PROTECTED]
> Voice: (937) 427-4431
> Fax: (937) 427-6416
>
>


--
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


RE: Help using Ajax form validation

2007-06-26 Thread King, William S.
I've downloaded the showcase, and the example I'm trying to use is under
the validation examples, validation (ajax).   The generated source code
is pointing to some js files that don't exist in the project, so I'm
assuming (I know...that's bad) the files are generated by Dojo.  I'm
having issues finding out how to port dojo into my existing project.
Thanks for the reference points, I'm gonna check those out now.

Shane

-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 9:34 AM
To: Struts Users Mailing List
Subject: Re: Help using Ajax form validation

I think you have more than one question :), start by checking out the
tutorials:

http://struts.apache.org/2.x/docs/tutorials.html

and take a look at "Starting with Struts" book:

http://www.infoq.com/minibooks/starting-struts2

Then you can move to the Dojo stuff:

http://struts.apache.org/2.x/docs/ajax-tags.html

I would also advise to download Struts Showcase as it has many examples
that will help you get started.

musachy

On 6/26/07, King, William S. <[EMAIL PROTECTED]> wrote:
>
> I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right 
> direction to use Dojo in my application...it's a web app using 
> portles, JSPs, Struts2, Ajax. I see in documentation that to utilize 
> the Ajax form validation I need to install the Dojo toolkit. I've 
> downloaded the zip file, but it doesn't look like bringing the .jar 
> file in to my eclipse project will do anything for me. Any help would 
> be greatly appreciated.
>
>
> W. Shane King
>
> General Dynamics
> Advanced Information Systems
> 2673 Commons Blvd., Suite 200
> Beavercreek, OH 45431
>
> Email: [EMAIL PROTECTED]
> Voice: (937) 427-4431
> Fax: (937) 427-6416
>
>


--
"Hey you! Would you help me to carry the stone?" Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help using Ajax form validation

2007-06-26 Thread Musachy Barroso

I think you have more than one question :), start by checking out the
tutorials:

http://struts.apache.org/2.x/docs/tutorials.html

and take a look at "Starting with Struts" book:

http://www.infoq.com/minibooks/starting-struts2

Then you can move to the Dojo stuff:

http://struts.apache.org/2.x/docs/ajax-tags.html

I would also advise to download Struts Showcase as it has many examples that
will help you get started.

musachy

On 6/26/07, King, William S. <[EMAIL PROTECTED]> wrote:


I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right
direction to use Dojo in my application...it's a web app using portles,
JSPs, Struts2, Ajax. I see in documentation that to utilize the Ajax
form validation I need to install the Dojo toolkit. I've downloaded the
zip file, but it doesn't look like bringing the .jar file in to my
eclipse project will do anything for me. Any help would be greatly
appreciated.


W. Shane King

General Dynamics
Advanced Information Systems
2673 Commons Blvd., Suite 200
Beavercreek, OH 45431

Email: [EMAIL PROTECTED]
Voice: (937) 427-4431
Fax: (937) 427-6416





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


RE: How to make tabs in JSP

2007-06-26 Thread nagesh.kumar
In struts layout u have lots options mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 5:34 PM
To: user@struts.apache.org
Subject: How to make tabs in JSP

Hi,
I want to code a JSP page with tabs . Does struts support an easy way of
doing the same.
Any link to the related resource would be helpful ...I have searched on
Struts-Layout ...any other option ?

Thanks
Kavita




*DISCLAIMER*


This message and/or attachment(s) contained here are confidential,
proprietary to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is
solely intended for the entity it is addressed to. If you are not the
intended recipient of this message, it is strictly prohibited to read,
forward, print, retain, copy or disseminate this message or any part of it.
If you have received this e-mail in error, please notify the sender
immediately and delete the message.






+
CONFIDENTIALITY NOTICE & DISCLAIMER

The contents of this e-mail are confidential to the ordinary user of the e-mail 
address to which it was addressed and may also be privileged.  If you are not 
the addressee of this e-mail you may not copy, forward, disclose or otherwise 
use it or any part of it in any form whatsoever.  If you have received this 
e-mail in error please e-mail the sender by replying to this message. The 
recipient should check this email and any attachments for the presence of 
viruses. InterGlobe accepts no liability for any damage caused by any virus 
transmitted by this email.
+



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: S2 - Dojo Tree Widget

2007-06-26 Thread Musachy Barroso

The tree works on 2.0.6/2.0.8 AFAIK, did you try the "tree" tag?

regards
musachy

On 6/26/07, Max Pimm <[EMAIL PROTECTED]> wrote:


I have seen that people are working on integrating the Dojo tree widget
into the 2.1 release. I'm using 2.0.6 release and am about to implement
the tree
widget in my app.

I'm new to dojo and haven't been able to find much official
documentation for this widget. I wondered if someone who has a bit more
experience could confirm that i am going about this in the right way. My
plan is to implement the tree as follows.

1) Import the necessary dojo js's.
2) Create the empty html div structure.
3) Using the  RPCUrl property of the TreeLoadingController hook the tree
upto a struts action to retreive the children of a given node.
4) Implement the struts action and use the JSON Plugin to render the
results.

Is this correct? Will this work with the 0.4 distribution of dojo
bundled in struts 2.0.6?

Thanks,

max

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: [S2] OptionTransferSelect in 2.0.8

2007-06-26 Thread Musachy Barroso

What if the ticket number? That would be a major issue

regards
musachy

On 6/25/07, Adam Ruggles <[EMAIL PROTECTED]> wrote:


Something broke between 2.0.6 and 2.0.8 when posting collections.  You
will need to create a conversions properties file for your action.  I've
logged a bug but I haven't had any feed back on it yet.

Felipe Rodrigues wrote:
> HI,
> I'm having a similar problem.
> My action only get's the really selected(Highlighted) values of
> doubleSelect. If I don't click in at least one, I get an null object in
the
> list inside my action.
>
> did anything changed?
>
> Tahnks,
>
> Felipe
>
>
> Julien Leonard wrote:
>
>> Hi all,
>> In 2.0.6, I used optiontransfertselect with Long params like this :
>>
>>
>>
>> > leftTitle="%{getText('saving.input.countries.available')}"
>> rightTitle="%{getText('saving.input.countries.selected')}"
>> doubleList="saving.countries"
>> doubleListKey="id"
>> doubleListValue="%{getText(i18nKey)}"
>> doubleName="selectedCountries"
>> doubleId="saveSaving_selectedCountries"
>> id="saveSaving_availableCountries"
>> list="availableCountries"
>> listKey="id"
>> listValue="%{getText(i18nKey)}"
>> allowUpDownOnLeft="false"
>> allowUpDownOnRight="false">
>> allowUpDownOnRight="false">
>>
>>
>> in my action I have this :
>>
>> private List selectedCountries = new LinkedList();
>> public List getSelectedCountries()
>> {
>>  return selectedCountries;
>> }
>>
>>
>> public void setSelectedCountries( List selectedCountries )
>> {
>>  this.selectedCountries = selectedCountries;
>> }
>>
>> In  2.0.6, it was good. But in 2.0.8 have a
>> java.lang.ClassCastException: java.lang.String when I want to acces to
>> the selectedCountries List.
>> In fact struts inject a xworkList typed as String.
>> Is it a bug of 2.0.8 ?
>> Can I resolve it?
>>
>> Julien
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>





--
"Hey you! Would you help me to carry the stone?" Pink Floyd


Re: Is S2 Ready for Prime Time?

2007-06-26 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
> Is your company using Struts2?

Yes (multiple companies), although at least one may be
switching to JRoR.

> We are starting a Proof of Concept this week
> and I honestly don't even know where to begin!

In terms of what?

> What interfaces to implement?

So far I generally extend ActionSupport (or an
app-specific superclass) and will implement
Preparable, ModelDriven (or ScopedModelDriven),
SessionAware, and a few others much less frequently,
on an as-needed basis.

> What companion frameworks to leverage?

Like what? I use Hibernate (for now) and Spring,
that's about it for the most common stuff.

> What interceptor stacks to use?

So far I just use the defaultStack plus a couple of
custom interceptors.

> What about the choice of UI toolkits?

App- and company-specific; some don't use any.

> I read last night how the ajax support was being 
> extracted from S2 and made a plug-in.

Yeah, that's been an on-going project for some time, I
believe. That's for 2.1, and I think it'll be a good
thing (particularly since I'm much more familiar with
Prototype and would prefer to use it (I think)).

> Do you think S2 is ready for prime time?

Sure. That doesn't mean there aren't some oddities, or
that it's the best for all environments or projects,
but that's pretty much true for any framework.

The questions you asked are pretty vague; the answers
will depend a lot on a specific project, company,
culture, developers, etc.

d.



   

Sick sense of humor? Visit Yahoo! TV's 
Comedy with an Edge to see what's on, when. 
http://tv.yahoo.com/collections/222

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help using Ajax form validation

2007-06-26 Thread King, William S.
I'm BRAND NEW to Struts2 & Ajax. Can anyone point me in the right
direction to use Dojo in my application...it's a web app using portles,
JSPs, Struts2, Ajax. I see in documentation that to utilize the Ajax
form validation I need to install the Dojo toolkit. I've downloaded the
zip file, but it doesn't look like bringing the .jar file in to my
eclipse project will do anything for me. Any help would be greatly
appreciated.

 
W. Shane King
 
General Dynamics
Advanced Information Systems
2673 Commons Blvd., Suite 200
Beavercreek, OH 45431
 
Email: [EMAIL PROTECTED]
Voice: (937) 427-4431
Fax: (937) 427-6416
 


RE: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
Please repost under a new subject heading; you may get
more responses that way.

--- "King, William S." <[EMAIL PROTECTED]>
wrote:
> I see in documentation that to utilize the Ajax
> form validation I need to install the Dojo toolkit. 

S2 comes w/ Dojo (at least in the 2.0 version).

d.



   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make tabs in JSP

2007-06-26 Thread Angelo zerr

If you are using Struts2.x, you should use tabbedpanel as Adrian have you
suggested.

2007/6/26, Adrian Ost <[EMAIL PROTECTED]>:


Angelo zerr schrieb:
> Hi,
> perhaps you could be interest with JSPTabControl
> http://jsptabcontrol.sourceforge.net/
> which generate tabs with ul/li HTML.
>
> Regards Angelo
>
> 2007/6/26, Kavita Mehta <[EMAIL PROTECTED]>:
>>
>> Hi,
>> I want to code a JSP page with tabs . Does struts support an easy way
of
>> doing the same.
>> Any link to the related resource would be helpful ...I have searched on
>> Struts-Layout ...any other option ?
>>
>> Thanks
>> Kavita
>>
>>
>>
>>
>>
>>
*DISCLAIMER*
>>
>>
>> This message and/or attachment(s) contained here are confidential,
>> proprietary to HUGHES SYSTIQUE and its customers.
>> Contents may be privileged or otherwise protected by law. The
>> information
>> is solely intended for the entity it is
>> addressed to. If you are not the intended recipient of this message,
>> it is
>> strictly prohibited to read, forward,
>> print, retain, copy or disseminate this message or any part of it. If
>> you
>> have received this e-mail in error,
>> please notify the sender immediately and delete the message.
>>
>>
>>

>>
>>
>>
>
or u just go for the struts 2 tag tabbedpanel ... pretty easy to
customize with new template.
http://struts.apache.org/2.x/docs/tabbedpanel.html
greets adi


--
Adrian Ost

MindMatics AG
Marcel-Breuer-Str. 18
D-80807 München

E-Mail: [EMAIL PROTECTED]
Web:   www.MindMatics.de

Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail
irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich
zu benachrichtigen und die E-Mail zu löschen.

Ust-IdNr. DE211603599
Registergericht München: HRB 131369
Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin
Barbalata
Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner (stellvertr.
Vorsitzender)

The contents of this e-mail are confidential. If you received this
e-mail in error, please notify us immediately and delete the e-mail.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: How to make tabs in JSP

2007-06-26 Thread Adrian Ost

Angelo zerr schrieb:

Hi,
perhaps you could be interest with JSPTabControl
http://jsptabcontrol.sourceforge.net/
which generate tabs with ul/li HTML.

Regards Angelo

2007/6/26, Kavita Mehta <[EMAIL PROTECTED]>:


Hi,
I want to code a JSP page with tabs . Does struts support an easy way of
doing the same.
Any link to the related resource would be helpful ...I have searched on
Struts-Layout ...any other option ?

Thanks
Kavita





*DISCLAIMER* 



This message and/or attachment(s) contained here are confidential,
proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The 
information

is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, 
it is

strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If 
you

have received this e-mail in error,
please notify the sender immediately and delete the message.


 






or u just go for the struts 2 tag tabbedpanel ... pretty easy to 
customize with new template.

http://struts.apache.org/2.x/docs/tabbedpanel.html
greets adi


--
Adrian Ost

MindMatics AG
Marcel-Breuer-Str. 18
D-80807 München

E-Mail: [EMAIL PROTECTED]
Web:   www.MindMatics.de 


Der Inhalt dieser E-Mail ist vertraulich. Sollte Ihnen die E-Mail
irrtümlich zugesandt worden sein, bitten wir Sie, uns unverzüglich
zu benachrichtigen und die E-Mail zu löschen.

Ust-IdNr. DE211603599
Registergericht München: HRB 131369
Vorstand: Ingo Lippert, Christian Hinrichs, Oliver Beckmann, Armin Barbalata
Aufsichtsrat: Martin Weber (Vorsitzender), Dr. Dirk Brückner (stellvertr. 
Vorsitzender)

The contents of this e-mail are confidential. If you received this
e-mail in error, please notify us immediately and delete the e-mail.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] How do I create a client side validator?

2007-06-26 Thread King, William S.
I'm BRAND NEW to Struts2 & Ajax.  Can anyone point me in the right
direction to use Dojo in my application...it's a web app using portles,
JSPs, Struts2, Ajax.  I see in documentation that to utilize the Ajax
form validation I need to install the Dojo toolkit.  I've downloaded the
zip file, but it doesn't look like bringing the .jar file in to my
eclipse project will do anything for me.  Any help would be greatly
appreciated.


-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 26, 2007 4:35 PM
To: Struts Users Mailing List
Subject: Re: [S2] How do I create a client side validator?

--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> Is there any document talking about how to create a client side 
> validator in struts2?

Yes, it's one of the links under the "validation"
section on the wiki.

http://struts.apache.org/2.x/docs/validation.html

http://struts.apache.org/2.x/docs/client-validation.html

d.



 



Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user
panel and lay it on us.
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.9.8/869 - Release Date: 6/25/2007
5:32 PM



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
rescribe

Now there is no escape.

--- mahesh <[EMAIL PROTECTED]> wrote:

> unscribe
> 
> -Original Message-
> From: Dave Newton [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 26, 2007 4:35 PM
> To: Struts Users Mailing List
> Subject: Re: [S2] How do I create a client side
> validator?
> 
> --- Vincent Lin <[EMAIL PROTECTED]> wrote:
> > Is there any document talking about how to create
> a
> > client side validator in struts2?
> 
> Yes, it's one of the links under the "validation"
> section on the wiki.
> 
> http://struts.apache.org/2.x/docs/validation.html
> 
>
http://struts.apache.org/2.x/docs/client-validation.html
> 
> d.
> 
> 
> 
>  
>

> 
> Fussy? Opinionated? Impossible to please? Perfect. 
> Join Yahoo!'s user panel
> and lay it on us.
>
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.476 / Virus Database: 269.9.8/869 -
> Release Date: 6/25/2007
> 5:32 PM
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [S2] How do I create a client side validator?

2007-06-26 Thread mahesh
unscribe

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 26, 2007 4:35 PM
To: Struts Users Mailing List
Subject: Re: [S2] How do I create a client side validator?

--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> Is there any document talking about how to create a
> client side validator in struts2?

Yes, it's one of the links under the "validation"
section on the wiki.

http://struts.apache.org/2.x/docs/validation.html

http://struts.apache.org/2.x/docs/client-validation.html

d.



 


Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel
and lay it on us.
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.9.8/869 - Release Date: 6/25/2007
5:32 PM



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make tabs in JSP

2007-06-26 Thread Angelo zerr

Hi,
perhaps you could be interest with JSPTabControl
http://jsptabcontrol.sourceforge.net/
which generate tabs with ul/li HTML.

Regards Angelo

2007/6/26, Kavita Mehta <[EMAIL PROTECTED]>:


Hi,
I want to code a JSP page with tabs . Does struts support an easy way of
doing the same.
Any link to the related resource would be helpful ...I have searched on
Struts-Layout ...any other option ?

Thanks
Kavita





*DISCLAIMER*

This message and/or attachment(s) contained here are confidential,
proprietary to HUGHES SYSTIQUE and its customers.
Contents may be privileged or otherwise protected by law. The information
is solely intended for the entity it is
addressed to. If you are not the intended recipient of this message, it is
strictly prohibited to read, forward,
print, retain, copy or disseminate this message or any part of it. If you
have received this e-mail in error,
please notify the sender immediately and delete the message.







How to make tabs in JSP

2007-06-26 Thread Kavita Mehta
Hi,
I want to code a JSP page with tabs . Does struts support an easy way of 
doing the same.
Any link to the related resource would be helpful ...I have searched on 
Struts-Layout ...any other option ?

Thanks
Kavita




*DISCLAIMER*

This message and/or attachment(s) contained here are confidential, proprietary 
to HUGHES SYSTIQUE and its customers. 
Contents may be privileged or otherwise protected by law. The information is 
solely intended for the entity it is 
addressed to. If you are not the intended recipient of this message, it is 
strictly prohibited to read, forward, 
print, retain, copy or disseminate this message or any part of it. If you have 
received this e-mail in error, 
please notify the sender immediately and delete the message.





Is S2 Ready for Prime Time?

2007-06-26 Thread stanlick

***  Please don't blast me for asking.  I'm simply looking for educated and
objective feedback ***

Is your company using Struts2?  We are starting a Proof of Concept this week
and I honestly don't even know where to begin!  I have read so many
different viewpoints about S2 that I can't tell whether I'm coming or
going.  What interfaces to implement?  What companion frameworks to
leverage?  What interceptor stacks to use?  What about the choice of UI
toolkits?  I read last night how the ajax support was being extracted from
S2 and made a plug-in.  I realize these are not easy questions, but I am
leading a Struts 2 subcommittee and I am being asked for recommendations and
timetables.  Do you think S2 is ready for prime time?

Thanks,
Scott


XSLTResult - Custom Adapters

2007-06-26 Thread mfnospam

Hello everybody,

I just tried out the new Struts version using the HelloWorld example. I 
extended it to support XSLT as view technology.
I'm fascinated how easy it was. The only thing I could not figure out 
how to do it is how I can register custom adapters for converting custom 
objects to XML.
The javadoc says I need to use registerAdapter method of AdapterFactory, 
but how and where do I call it?


Thanks you very much in advance
Matthias Fischer

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] How do I create a client side validator?

2007-06-26 Thread Dave Newton
--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> Is there any document talking about how to create a
> client side validator in struts2?

Yes, it's one of the links under the "validation"
section on the wiki.

http://struts.apache.org/2.x/docs/validation.html

http://struts.apache.org/2.x/docs/client-validation.html

d.



  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] onsubmit in tag

2007-06-26 Thread Dave Newton
--- Vincent Lin <[EMAIL PROTECTED]> wrote:
> Why it renders onsubmit="return (validateFields());
> return true;"
> instead of onsubmit="return (validateFields())" ?
> Can I make renders  onsubmit="return
> (validateFields())" only?

Probably that's what's in the template. I'm not sure
that it really matters, though.

d.



   

Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] How do I create a client side validator?

2007-06-26 Thread Vincent Lin

Is there any document talking about how to create a client side validator in
struts2?
Thanks!


[S2] onsubmit in tag

2007-06-26 Thread Vincent Lin

Hi!

I wrote



in my JSP, but struts 2 rendered the following html:



Why it renders onsubmit="return (validateFields()); return true;"
instead of onsubmit="return (validateFields())" ?
Can I make renders  onsubmit="return (validateFields())" only?

Thanks!


Re: Problem downloading a file using a Struts 2 action

2007-06-26 Thread Max Pimm
You can do this without explicitly accessing the output stream of the 
HttpServletResponse.


1) In struts.xml define the result type of your action as a stream, you 
can define content type here aswell


  
   
   application/msword
   
   

2) In your action class define a variable with name input stream and 
define a getter for it.


   private InputStream inputStream;  


   public InputStream getInputStream() {
   return inputStream;
   }

3) In your action method set the input stream to your file input stream

   File file = new File(downloadDirectory + filename);
   this.inputStream = new FileInputStream(file);

And that should work.

You can find more documentation on the stream result type here 
http://struts.apache.org/2.x/docs/stream-result.html
  



jneville wrote:

Hi,

I'm trying to code file download functionality in a Struts 2 action. The
action executes and the "success" result is invoked, but the pop-up window
in the browser, which prompts to save the file, does not appear.

I think I am configuring the response incorrectly (see code below). Any help
greatly appreciated.

Thanks,
John

My action code is as follows :-

File file = new File(downloadDirectory + filename);
FileInputStream fis = new FileInputStream(file);
BufferedInputStream bis = new BufferedInputStream(fis);

HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("application/msword");
response.setHeader("Content-disposition", "attachment; filename=" +
filename);

OutputStream output = response.getOutputStream();
byte[] buffer = new byte[4096];
int count = 0;
int n = 0;
while (-1 != (n = bis.read(buffer))) {
output.write(buffer, 0, n);
count += n;
}

bis.close();
fis.close();
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem downloading a file using a Struts 2 action

2007-06-26 Thread jneville

Hi,

I'm trying to code file download functionality in a Struts 2 action. The
action executes and the "success" result is invoked, but the pop-up window
in the browser, which prompts to save the file, does not appear.

I think I am configuring the response incorrectly (see code below). Any help
greatly appreciated.

Thanks,
John

My action code is as follows :-

File file = new File(downloadDirectory + filename);
FileInputStream fis = new FileInputStream(file);
BufferedInputStream bis = new BufferedInputStream(fis);

HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("application/msword");
response.setHeader("Content-disposition", "attachment; filename=" +
filename);

OutputStream output = response.getOutputStream();
byte[] buffer = new byte[4096];
int count = 0;
int n = 0;
while (-1 != (n = bis.read(buffer))) {
output.write(buffer, 0, n);
count += n;
}

bis.close();
fis.close();
-- 
View this message in context: 
http://www.nabble.com/Problem-downloading-a-file-using-a-Struts-2-action-tf3981397.html#a11302604
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



S2 - Dojo Tree Widget

2007-06-26 Thread Max Pimm
I have seen that people are working on integrating the Dojo tree widget 
into the 2.1 release. I'm using 2.0.6 release and am about to implement 
the tree

widget in my app.

I'm new to dojo and haven't been able to find much official 
documentation for this widget. I wondered if someone who has a bit more 
experience could confirm that i am going about this in the right way. My 
plan is to implement the tree as follows.


1) Import the necessary dojo js's.
2) Create the empty html div structure.
3) Using the  RPCUrl property of the TreeLoadingController hook the tree 
upto a struts action to retreive the children of a given node.
4) Implement the struts action and use the JSON Plugin to render the 
results.


Is this correct? Will this work with the 0.4 distribution of dojo 
bundled in struts 2.0.6?


Thanks,

max

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Minimized Window State NOT working

2007-06-26 Thread Nils-Helge Garli

All portlets are responsible for what to render in the different
window states, even when caching is enabled, if the portlet is the
"target" of a user interaction (PLT.18.1 in the spec). But usually
when creating portlets, you extend the GenericPortlet class, which has
built in logic for skipping rendering in the "doDispatch" method when
the window state is minimized. Quote from the javadoc for
GenericPortlet:

"If the window state of this portlet is minimized, this method does
not invoke any of the portlet mode rendering methods."

The Jsr168Dispatcher in Struts 2 does not extend GenericPortlet (it
just implements the Portlet interface, since the handling of modes is
a bit different from a "regular" portlet), so this logic is missing.
This means, that for now, the responsibility of what is rendered in
the minimized state is up to the developer.

I'll create an improvment request in the JIRA for adding default
window state handling to the Struts 2 portlet dispatcher.

For now, a workaround would be to subclass the Jsr168Dispatcher (or
modify it directly) and in the render method, do something like

if(!request.getWindowState().equals(WindowState.MINIMIZED)) {
  super.render(request, response);
}

Nils-H

On 6/26/07, tom tom <[EMAIL PROTECTED]> wrote:


> "When a portlet is in MINIMIZED window state, the
> portlet should only render
> minimal output or no output at all."

Ealier we were using struts-bridge for portlet
development, there it was showing no output for the
MINIMIZED window state, also I have seen lot of other
portlet development strategies where it shows nothing
for the minimized window state.

> As I interpret this, it's the responsibility of the
> portlet to display the
> correct content. So you need to do some checking for
> the window state and
> take according action in your portlet.

I DONT THINK this is possible, The reason is as
follows.

In S2 when I submit a form (not a HREF) it goes to an
action and there after forward to a JSP, Now being in
the same page if I switch between modes, it does not
go the action class but shows the content probably
from cache or already rendered content, Due to this
reason how can I check for the Window State in the
corresponding action class.





>
> However, there wasn't much information about the
> minimized window state in
> the spec. I couldn't find any description of the
> contract between the portal
> server's "window buttons" and the window states, so
> there might be different
> behaviour from server to server.

We have different portlet development strategies
working fine with uPortal, hence this is nothing to do
with the uPortal or any other portal container.



Please let me know if any way around for this.
This should be a common problem to anyone, Can we
enforce it to hit the action class for each switch
between windows states so that in the portet we can do
something.

Thanks







Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tiles exeption after upgrading from Struts 2.0.6 to 2.0.8

2007-06-26 Thread Roberto Nunnari

Solved.

The problem was with the new commons-beanutils shipped with
S2 that doesn't include org.apache.commons.beanutils.NestedNullException

Best regards.

--
Robi


Roberto Nunnari wrote:

Hello everybody.

I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8

I'm using the Tiles-plugin and with the new version
when I request a page it throws exeptions.
The stacktrace is too long to be
posted here but the exeptions start like this:

26-giu-2007 00:36:00 org.apache.tiles.jsp.context.JspTilesRequestContext 
include

GRAVE: JSPException while including path '/WEB-INF/tiles/content/home.jsp'.
javax.servlet.jsp.JspException: ServletException while including page.
at org.apache.tiles.jsp.context.JspUtil.doInclude(JspUtil.java:98)



26-giu-2007 00:36:02 org.apache.tiles.jsp.taglib.RoleSecurityTagSupport 
doEndTag
GRAVE: IO Error executing tag: JSPException while including path 
'/WEB-INF/tiles/content/home.jsp'. ServletException while including page.
java.io.IOException: JSPException while including path 
'/WEB-INF/tiles/content/home.jsp'. ServletException while including page.
at 
org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:91) 





26-giu-2007 00:36:02 org.apache.tiles.jsp.taglib.RenderTagSupport doCatch
GRAVE: Error during rendering
javax.servlet.jsp.JspException: IO Error executing tag: JSPException 
while including path '/WEB-INF/tiles/content/home.jsp'. ServletException 
while including page.
at 
org.apache.tiles.jsp.taglib.RoleSecurityTagSupport.doEndTag(RoleSecurityTagSupport.java:85) 




Also, I had to change my tiles.xml put tags to put-attribute, like
this:

before:





after:


value="/WEB-INF/tiles/content/userList.jsp" />




Any idea?
Thank you.

--
Robi





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: FormFile is not getting populated when using winhttp on Vista

2007-06-26 Thread Meindert
FYI, found a workaround for the struts/FormFile issue.

The issue(s)
a) Struts doesn't resolve the file when there is Charset information in the
Content-Type header for a multipart/form-data post.
b) Winhhtp on Vista (dll version 6) adds '; Charset=UTF-8' to the
Content-Type

The fix;
Add the text '; Charset=UTF-8' to the boundary

Example in VB6
'Construct the Multipart Message to Send
msg = ""
msg = msg & "--" & bndry & "; Charset=UTF-8" & vbCrLf
msg = msg & "Content-Disposition: form-data; name=""xmlFile"";
filename=""select.xml""" & vbCrLf
msg = msg & "Content-Type: text/xml" & vbCrLf & vbCrLf
msg = msg & xmlDocument.xml & vbCrLf
msg = msg & "--" & bndry & "; Charset=UTF-8" & "--" & vbCrLf



xmlhttp.SetRequestHeader "Content-Type", "multipart/form-data; boundary=" &
bndry & "; Charset=UTF-8"

...

-Original Message-
From: Meindert [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2007 05:56 PM
To: user@struts.apache.org
Subject: FormFile is not getting populated when using winhttp on Vista

Hi There,

I'm setting the header in my VB application without charset property in the
Content type; 
winhttp.SetRequestHeader "Content-Type", "multipart/form-data; boundary=xxx
This was using fine and the file was received by struts in the FormFile
object

But now I'm trying the same on Vista with a newer version of winhttp, I can
see in NetBeans that my content type has changed to

multipart/form-data; boundary=xxx; Charset=UTF-8

The FormFile object isn't receiving the file anymore! Probably because of
the added Charset

Is there a way in Struts to intercept and remove the Charset property or a
other way to make FormFile receive the file again?

I was thinking along the line of overriding CommonsMultipartRequestHandler
wit a controller but haven't got a clue what and how.. Also when I try to do
some of the control changes I found in the mail archive I get validation
errors (I'm using struts-config_1_2.dtd)

Kind Regards
 Meindert



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]