Re: Need advice for Struts latest book + CD

2024-07-09 Thread Deepak Lalchandani
Hi Dave,
 Could you please mention the name of the below books ?

IIRC one had an accompanying DVD (which… surprising).

It’s possible mine was the last “sponsored” one, and that was in 2009-2010.

Regards,
Deepak Lalchandani


On Tue, 9 Jul 2024, 3:25 pm Dave Newton,  wrote:

> The books found on Amazon/etc are the latest. The latest are mostly free
> Kindle “books”; I’d be wary, but that’s just me.
>
> IIRC one had an accompanying DVD (which… surprising).
>
> It’s possible mine was the last “sponsored” one, and that was in 2009-2010.
>
> d
>
> em: davelnew...@gmail.com
> mo: 908-380-8699
> gh: davelnewton <https://github.com/davelnewton>
> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
>
>
>
> On Fri, Jul 5, 2024 at 03:27 Deepak Lalchandani 
> wrote:
>
>> Hi community,
>>I need advice for Struts latest book + CD which can help me to
>> learn
>> and apply the concepts of Struts.
>>
>> Please advice
>>
>> Thanks,
>> Deepak
>>
>


Re: Need advice for Struts latest book + CD

2024-07-09 Thread Deepak Lalchandani
Hi community,
   I need advice for Struts latest book + CD which can help me to learn
and apply the concepts of Struts.

Please advice

Thanks,
Deepak

On Fri, 5 Jul 2024, 12:45 pm Deepak Lalchandani, 
wrote:

> Hi community,
>I need advice for Struts latest book + CD which can help me to
> learn and apply the concepts of Struts.
>
> Please advice
>
> Thanks,
> Deepak
>


Need advice for Struts latest book + CD

2024-07-05 Thread Deepak Lalchandani
Hi community,
   I need advice for Struts latest book + CD which can help me to learn
and apply the concepts of Struts.

Please advice

Thanks,
Deepak


Re: Issue in Struts (login.jsp)

2022-07-28 Thread Deepak Lalchandani
Hi Lukaz,
   i did all the steps which was required but still facing
issue as below,please help..

 org.apache.jasper.JasperException: Unable to find taglib [bean] for URI:
[/tags/struts-bean]
> >
 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
> >
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
> >
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
> >
 
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
> >
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
> >   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
> >   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
> >   org.apache.jasper.compiler.Parser.parse(Parser.java:138)
> >
 org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
> >
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
> >
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
> >   org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
> >
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
> >
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
> >
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
> >   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
> >   jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
> >
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
> >
> > *Note* The full stack trace of the root cause is available in the server
> > logs.
> >
> > My web.xml has been added as  below
> >
> >   
> > index.html
> > index.htm
> > login.jsp
> > 
> >
> > Login.jsp has below entries
> >
> >  <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> > <%@ taglib uri="/tags/struts-html" prefix="html" %>
> >
> > All the tlds are under WEB-INF folder.
> >
> > Further i am accessing the url as
> > http://127.0.0.1:8080/MyProjectTool/pages/login.jsp
> >
> > HTTP Status 404 – Not Found
> > --
> >
> > *Type* Status Report
> >
> > *Message* JSP file [/pages/login.jsp] not found
> >
> > *Description* The origin server did not find a current representation
for

On Thu, Jul 28, 2022 at 12:28 AM Lukasz Lenart 
wrote:

> Posting the same question three times won't help, please stop doing it!
>
> Apache Struts 1 is EOF [1] and you shouldn't use it for a new kind of
> development and expect any kind of support. Searching internet can
> help [2]
>
> [1] https://struts.apache.org/struts1eol-announcement.html
> [2] https://mkyong.com/struts/configure-the-struts-tag-libraries/
>
>
> Regards
> Łukasz
>
> śr., 27 lip 2022 o 08:55 Deepak Lalchandani 
> napisał(a):
> >
> > Hi Struts users ,
> > I am facing error as below .Please help me to fix this issue
> >
> >
> > Im Getting error.as below
> >
> > Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
> > threw exception [Unable to find taglib [bean] for URI:
> [/tags/struts-bean]]
> > with root cause
> >
> > HTTP Status 500 – Internal Server Error
> > Type Exception Report
> >
> > Message Unable to find taglib [bean] for URI: [/tags/struts-bean]
> >
> > Description The server encountered an unexpected condition that prevented
> > it from fulfilling the request.
> >
> > Exception
> >
> > org.apache.jasper.JasperException: Unable to find taglib [bean] for URI:
> > [/tags/struts-bean]
> >
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
> >
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
> >
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
> >
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
> >  org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
> >  org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
> >  org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
> >  org.apache.jasper.compiler.Parser.parse(Parser.java:138)
> &g

Issue in Struts (login.jsp)

2022-07-26 Thread Deepak Lalchandani
Hi Struts users ,
I am facing error as below .Please help me to fix this issue


Im Getting error.as below

Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
with root cause

HTTP Status 500 – Internal Server Error
Type Exception Report

Message Unable to find taglib [bean] for URI: [/tags/struts-bean]

Description The server encountered an unexpected condition that prevented
it from fulfilling the request.

Exception

org.apache.jasper.JasperException: Unable to find taglib [bean] for URI:
[/tags/struts-bean]
 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
 org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
 org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
 
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
 org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
 org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
 org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
 org.apache.jasper.compiler.Parser.parse(Parser.java:138)
 org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
 jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
Note The full stack trace of the root cause is available in the server logs.


My web.xml has been added as below

  
index.html
index.htm
login.jsp


Login.jsp has below entries

 <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>

All the tlds are under WEB-INF folder.

Further i am accessing the url as
http://127.0.0.1:8080/MyProjectTool/pages/login.jsp



On Wed, 27 Jul 2022, 12:28 am Deepak Lalchandani, 
wrote:

> Hi Struts users ,
> I am facing error as below .Please help me to fix this issue
>
>
> Im Getting error.as below
>
> Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
> threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
> with root cause
>
> HTTP Status 500 – Internal Server Error
> --
>
> *Type* Exception Report
>
> *Message* Unable to find taglib [bean] for URI: [/tags/struts-bean]
>
> *Description* The server encountered an unexpected condition that
> prevented it from fulfilling the request.
>
> *Exception*
>
> org.apache.jasper.JasperException: Unable to find taglib [bean] for URI: 
> [/tags/struts-bean]
>   
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
>   
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
>   
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
>   
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
>   org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
>   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
>   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
>   org.apache.jasper.compiler.Parser.parse(Parser.java:138)
>   
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
>   
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
>   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
>   
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
>   jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777

Re: Issue in Struts (login.jsp)

2022-07-26 Thread Deepak Lalchandani
Please help me with below issue ?

On Wed, 27 Jul 2022, 12:28 am Deepak Lalchandani, 
wrote:

> Hi Struts users ,
> I am facing error as below .Please help me to fix this issue
>
>
> Im Getting error.as below
>
> Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
> threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
> with root cause
>
> HTTP Status 500 – Internal Server Error
> --
>
> *Type* Exception Report
>
> *Message* Unable to find taglib [bean] for URI: [/tags/struts-bean]
>
> *Description* The server encountered an unexpected condition that
> prevented it from fulfilling the request.
>
> *Exception*
>
> org.apache.jasper.JasperException: Unable to find taglib [bean] for URI: 
> [/tags/struts-bean]
>   
> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)
>   
> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)
>   
> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)
>   
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
>   org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
>   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
>   org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
>   org.apache.jasper.compiler.Parser.parse(Parser.java:138)
>   
> org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)
>   
> org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
>   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
>   org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
>   
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)
>   
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
>   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
>   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
>   jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
>   org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
>
> *Note* The full stack trace of the root cause is available in the server
> logs.
>
> My web.xml has been added as  below
>
>   
> index.html
> index.htm
> login.jsp
> 
>
> Login.jsp has below entries
>
>  <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
> <%@ taglib uri="/tags/struts-html" prefix="html" %>
>
> All the tlds are under WEB-INF folder.
>
> Further i am accessing the url as
> http://127.0.0.1:8080/MyProjectTool/pages/login.jsp
>
> HTTP Status 404 – Not Found
> --
>
> *Type* Status Report
>
> *Message* JSP file [/pages/login.jsp] not found
>
> *Description* The origin server did not find a current representation for
> the target resource or is not willing to disclose that one exists
>
>
> Please help me to resolve this issue !!!
>
> Regards,
> Deepak
>
>
>
>


Issue in Struts (login.jsp)

2022-07-26 Thread Deepak Lalchandani
Hi Struts users ,
I am facing error as below .Please help me to fix this issue


Im Getting error.as below

Servlet.service() for servlet [jsp] in context with path [/MyProjectTool]
threw exception [Unable to find taglib [bean] for URI: [/tags/struts-bean]]
with root cause

HTTP Status 500 – Internal Server Error
--

*Type* Exception Report

*Message* Unable to find taglib [bean] for URI: [/tags/struts-bean]

*Description* The server encountered an unexpected condition that prevented
it from fulfilling the request.

*Exception*

org.apache.jasper.JasperException: Unable to find taglib [bean] for
URI: [/tags/struts-bean]

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:54)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:294)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:81)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:176)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:487)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:244)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:105)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:206)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:391)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:367)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:603)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:399)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:380)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:328)
jakarta.servlet.http.HttpServlet.service(HttpServlet.java:777)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

*Note* The full stack trace of the root cause is available in the server
logs.

My web.xml has been added as  below

  
index.html
index.htm
login.jsp


Login.jsp has below entries

 <%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>

All the tlds are under WEB-INF folder.

Further i am accessing the url as
http://127.0.0.1:8080/MyProjectTool/pages/login.jsp

HTTP Status 404 – Not Found
--

*Type* Status Report

*Message* JSP file [/pages/login.jsp] not found

*Description* The origin server did not find a current representation for
the target resource or is not willing to disclose that one exists


Please help me to resolve this issue !!!

Regards,
Deepak


RE: Struts zero-day vulnerability

2014-05-16 Thread Deepak Subbanarasimha
Lukasz,

Thank you for responding. This is very helpful. 

Do you have information on what kind of attacks this vulnerability would expose 
systems to? Ex. Cross-Site scripting. Is there anything else?

Do you have any suggestions on how to test this fix?

Thanks,
Deepak

-Original Message-
From: Lukasz Lenart [mailto:lukaszlen...@apache.org] 
Sent: Monday, May 05, 2014 8:00 AM
To: Struts Users Mailing List
Subject: Re: Struts zero-day vulnerability

Here you have more details [1] and just to point it out - Struts 1 reached EOL 
[2] and no further development is expected! Consider migration to Struts2 or 
any other modern framework.

[1] 
http://h30499.www3.hp.com/t5/HP-Security-Research-Blog/Protect-your-Struts1-applications/ba-p/6463188#.U2d8va2wlzt
[2] http://struts.apache.org/struts1eol-announcement.html

2014-05-05 13:53 GMT+02:00 Deepak Subbanarasimha :
> Hello,
>
> We use struts version 1.2.2 and commons-file upload version 1.1.1.  It is not 
> clear from this notification if these versions are impacted.
>
>
> 1.   Can anyone confirm if these versions or affected?
>
> 2.   If they are affected, what can be done? Should we upgrade to Struts 
> 2.x?
>
> The notification below only talks about struts 2.x version.
>
> -Deepak
>
>
>
> PURPOSE
>
> -
>
> The purpose of this Alert is to bring attention to a recently announced 
> security vulnerability for Apache Struts.
>
>
>
> ASSESSMENT
>
> --
>
> Apache Struts up to 2.3.16.1 is being reported as having a zero-day 
> vulnerability. In particular, Struts 2.3.16.1 has an issue with ClassLoader 
> manipulation via request parameters which was supposed to be resolved on 2 
> March 2014 through a security fix. Unfortunately, it was confirmed that the 
> correction wasn't sufficient.
>
>
>
> According to the Apache Struts Team, a security fix release fully addressing 
> all these issues is in preparation and will be released as soon as possible. 
> Once the release is available, all Struts 2 users are strongly encouraged to 
> update their installations.
>
>
>
> SUGGESTED ACTION
>
> 
>
> The Apache Struts Team has published the following mitigation information:
>
>
>
> In the struts.xml, replace all custom references to params-interceptor with 
> the following code, especially regarding the class-pattern found at the 
> beginning of the excludeParams list:
>
>
>
> 
>
>
> name="excludeParams">(.*\.|^|.*|\[('|"))(c|C)lass(\.|('|")]|\[).*,^doj
> o\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(
> Request|Response)\..*,^parameters\..*,^action:.*,^method:.*
>
> 
>
>
>
> If you are using default interceptor stacks packaged in 
> struts-default.xml, change your parent packages to a customized 
> secured configuration as in the following example. Given you are using 
> defaultStack so far, change your packages from
>
>
>
> 
>
> 
>
> ...
>
> ...
>
> 
>
> to
>
>
>
> 
>
> 
>
> 
>
> 
>
> 
> name="params.excludeParams">(.*\.|^|.*|\[('|"))(c|C)lass(\.|('|")]|\[)
> .*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^s
> ervlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.* ram>
>
> 
>
> 
>
> 
>
>
>
> 
>
> ...
>
> 
>
>
>
> References:
>
> =
>
> http://struts.apache.org/announce.html#a20140302
>
> IMPORTANT NOTICE: This email is intended solely for the use of the individual 
> to whom it is addressed and may contain information that is privileged, 
> confidential or otherwise exempt from disclosure under applicable law. If the 
> reader of this email is not the intended recipient or the employee or agent 
> responsible for delivering the message to the intended recipient, you are 
> hereby notified that any dissemination, distribution, or copying of this 
> communication is strictly prohibited. If you have received this communication 
> in error, please immediately return the original message to the sender at the 
> listed email address. In accordance with Kewill policy, emails sent and 
> received may be monitored. Although Kewill takes reasonable precautions to 
> minimize the risk, Kewill accepts no responsibility for any loss or damage 
> should this email contain any virus, or similar destructive or mischievous 
> code.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts zero-day vulnerability

2014-05-05 Thread Deepak Subbanarasimha
Hello,

We use struts version 1.2.2 and commons-file upload version 1.1.1.  It is not 
clear from this notification if these versions are impacted.


1.   Can anyone confirm if these versions or affected?

2.   If they are affected, what can be done? Should we upgrade to Struts 
2.x?

The notification below only talks about struts 2.x version.

-Deepak



PURPOSE

-

The purpose of this Alert is to bring attention to a recently announced 
security vulnerability for Apache Struts.



ASSESSMENT

--

Apache Struts up to 2.3.16.1 is being reported as having a zero-day 
vulnerability. In particular, Struts 2.3.16.1 has an issue with ClassLoader 
manipulation via request parameters which was supposed to be resolved on 2 
March 2014 through a security fix. Unfortunately, it was confirmed that the 
correction wasn't sufficient.



According to the Apache Struts Team, a security fix release fully addressing 
all these issues is in preparation and will be released as soon as possible. 
Once the release is available, all Struts 2 users are strongly encouraged to 
update their installations.



SUGGESTED ACTION



The Apache Struts Team has published the following mitigation information:



In the struts.xml, replace all custom references to params-interceptor with the 
following code, especially regarding the class-pattern found at the beginning 
of the excludeParams list:





   (.*\.|^|.*|\[('|"))(c|C)lass(\.|('|")]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*





If you are using default interceptor stacks packaged in struts-default.xml, 
change your parent packages to a customized secured configuration as in the 
following example. Given you are using defaultStack so far, change your 
packages from







...

...



to











(.*\.|^|.*|\[('|"))(c|C)lass(\.|('|")]|\[).*,^dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,^parameters\..*,^action:.*,^method:.*











...





References:

=

http://struts.apache.org/announce.html#a20140302

IMPORTANT NOTICE: This email is intended solely for the use of the individual 
to whom it is addressed and may contain information that is privileged, 
confidential or otherwise exempt from disclosure under applicable law. If the 
reader of this email is not the intended recipient or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, or copying of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately return the original message to the sender at the 
listed email address. In accordance with Kewill policy, emails sent and 
received may be monitored. Although Kewill takes reasonable precautions to 
minimize the risk, Kewill accepts no responsibility for any loss or damage 
should this email contain any virus, or similar destructive or mischievous code.


RE: Struts 2 session problem

2009-01-17 Thread Deepak Kumar
Please check http://www.roseindia.net/struts/struts2/struts2-login.shtml

Thanks

-Original Message-
From: RajibJana [mailto:rajibj...@gmail.com]
Sent: Saturday, January 17, 2009 4:35 PM
To: user@struts.apache.org
Subject: Re: Struts 2 session problem



Seems to me S2 can not give better solution than you have mentioned.

I checked relevent codes in S2 ( e.g. scope interceptor) and IMO, struts 2
can not have feature like user session/conversation as it depends on http
session for session mgmt.



Thanks

Rajib


abhishek reddy wrote:
>
> OK, If you find better solution, please let me know
>
> On Sat, Jan 17, 2009 at 2:58 PM, RajibJana  wrote:
>
>>
>> OK, I may try this if no other solution emerges.
>>
>> My question this is typical requirement for any enterprise level web app,
>> how Struts2 handles it?
>>
>> If it does not able to, then there is no other option but to leave S2 and
>> look for other server frameworks. There is a need of looking beyond http
>> session.
>>
>> I guess S2 is positioning itself as a server framework, I hope it
>> addresses
>> basic requirements for a enterprise application.
>>
>> Thanks
>>
>> Rajib
>>
>>
>>
>> abhishek reddy wrote:
>> >
>> > *If the user opens a new browser instance, then a new session is
>> created
>> > and both the windows have their own user id info( i.e. userid doesnt
>> > override)*
>> >
>> > Taking the above point into consideration...you can try this way
>> >
>> > 1.When User X logged in successfully, you are storing the id in the
>> > session.
>> > 2.Now, If User Y logged in from the same broswer instance, session will
>> be
>> > old...so check for the attribute value set by the User X.
>> > If attribute value is null, proceed asusual, else tell the user to open
>> a
>> > new browser window..
>> >
>> > hope this is helpfull..
>> >
>> >> transactions also get userid info as X.
>> >
>> > On Sat, Jan 17, 2009 at 1:46 PM, RajibJana  wrote:
>> >
>> >>
>> >> Thanks Wes  for your reply.
>> >>
>> >> The application requires userid info for various reasons like
>> >> authorization,
>> >> auditing etc.  Hidden key (security reason)  or cookies ( may be
>> >> disabled)
>> >> are not the good way to handle this situation. I am wondering whether
>> >> this
>> >> is not a common requirement for any web app where we  need to keep
>> some
>> >> information that can be accessed for a particular user session. I
>> hoped
>> >> that
>> >> Struts 2 is capable to handle user session.
>> >>
>> >> I am in a fix,  may I need to look other frameworks like Seam?
>> >>
>> >> Thanks
>> >>
>> >> Rajib
>> >>
>> >>
>> >>
>> >>
>> >> Wes Wannemacher wrote:
>> >> >
>> >> > On Saturday 17 January 2009 00:23:49 RajibJana wrote:
>> >> >>
>> >> >> 1) A User opens a browser window( IE 7/Firfox) and logs in the
>> >> >> application
>> >> >> as User X and the application shows the logged in userid as X and
>> DB
>> >> >> transactions also get userid info as X.
>> >> >> 2) The same user opens a bowser tab or new window from the opened
>> >> window
>> >> >> (
>> >> >> from where he logged in as X), and logs in the application as User
>> Y.
>> >> Now
>> >> >> userid Y overrides the userid X in session map( as no new session
>> is
>> >> not
>> >> >> opened, I guess) and I get userid as Y in both the browser tabs. My
>> >> >> application breaks.
>> >> >> 3) If the user opens a new browser instance, then a new session is
>> >> >> created
>> >> >> and both the windows have their own user id info( i.e. userid
>> doesnt
>> >> >> override)
>> >> >>
>> >> >
>> >> > I don't know if you will be able to fix your problem as long as you
>> use
>> >> a
>> >> > form
>> >> > of authorization that relies on the session. Each browser tab will
>> >> > continue
>> >> > using the session that is already established.
>> >> >
>> >> > Although I would not suggest this for a production application, but
>> if
>> >> > this
>> >> > behavior is a requirement for your application, then you could try
>> >> hiding
>> >> > a
>> >> > key within the page (a hidden input field) and also appending the
>> key
>> >> to
>> >> > each
>> >> > request URL. This is a very bad way to do it because it will be easy
>> to
>> >> > hijack
>> >> > a session. Especially in cases where the user is clicking a link and
>> >> the
>> >> > key
>> >> > will be visible in the GET request.
>> >> >
>> >> > I would consider whether your requirement is a development-time
>> >> > requirement...
>> >> > Meaning, is this something you need for testing your app? Or is this
>> >> > something
>> >> > the users will need? If it is something that the users need,
>> consider
>> >> re-
>> >> > factoring before you hide key fields as I suggest above. If this is
>> >> > something
>> >> > you need for testing and development, then try to find a browser
>> plugin
>> >> > that
>> >> > allows you to gain finer control over your cookies so that you can
>> >> control
>> >> > the
>> >> > sessions while you work.
>> >> >
>> >> > -Wes
>> >> >
>> >> > --
>> >> >
>> >>

RE: Java Mail errors

2008-09-23 Thread Deepak Kumar
HI,

Here is the lot of examples and tutorials on Java mail api. Read at
http://www.roseindia.net/javamail/

Enjoy.


-Original Message-
From: Jishnu Viswanath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 5:38 PM
To: Struts Users Mailing List
Subject: RE: Java Mail errors


LOL
Well from the last reply you need to learn java, but if you know or some
of your friends know Java refer to
http://java.sun.com/products/javamail/javadocs/javax/mail/package-summar
y.html for mailing things.

Regards,

Jishnu Viswanath

Software Engineer

*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll

Tavant Technologies Inc.,

www.tavant.com

PEOPLE :: PASSION :: EXCELLENCE


-Original Message-
From: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 5:15 PM
To: Struts Users Mailing List
Subject: Re: Java Mail errors

Here's a starting point for you: http://java.sun.com/new2java/

Nils-H

On Tue, Sep 23, 2008 at 1:36 PM, Narasimha Raju Naidu
<[EMAIL PROTECTED]> wrote:
> thanks for your reply,
>
>is it public static void main() what you are saying. is
it
> required for every class?
>
> On Tue, Sep 23, 2008 at 4:55 PM, Lukasz Lenart
<[EMAIL PROTECTED]
>> wrote:
>
>> Hi,
>>
>> I think you should first read some Java tutorial how to write Java
>> classes (you are missing class declaration),
>> next try to find some Java Mail Tutorial with Google
>> and the least and the most important is that this group is to support
>> Struts users, not to solve any kind of Java problem you can have.
>>
>>
>> Kind regards
>> --
>> Lukasz
>> http://www.lenart.org.pl/
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Regards,
> Narasimha Raju.Naidu
>
>
>
> uni...
>

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

Any comments or statements made in this email are not necessarily those of
Tavant Technologies.
The information transmitted is intended only for the person or entity to
which it is addressed and may
contain confidential and/or privileged material. If you have received this
in error, please contact the
sender and delete the material from any computer. All e-mails sent from or
to Tavant Technologies
may be subject to our monitoring procedures.


-
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: Getting acknowledgment for an AJAX request

2008-09-23 Thread Deepak Kumar
hi,

Please check http://www.roseindia.net/ajax

Thanks

-Original Message-
From: ManiKanta G [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2008 3:41 PM
To: Struts-User
Subject: Getting acknowledgment for an AJAX request


Hi,

I m practicing AJAX in S2. And in response to my previous mail, Dave replied


> That's what Ajax does (loosely speaking): returns HTML fragments (or data
as JSON, XML, etc.). That's the point of it--so you don't have to return
entire pages and refresh the entire window.
>
> So, If I want to acknowledge some AJAX request (say, '2 new records has
been added') I just needed the count of how many rows got inserted/updated
successfully or a flag indicating the success or failure of the request.

And for this I m sure I don't need to return a jsp. How can be this done?
through JSON? if yes, can some one point me to some resource to learn using
JSON in S2?

Thanks in advance

ManiKanta


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



RE: new to Struts

2008-09-08 Thread Deepak Kumar
Hi,

Please check http://www.roseindia.net/struts/struts2

Here you will step by step tutorials on struts 2.

Thanks
Deepak Kumar


-Original Message-
From: gbattine [mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2008 5:55 PM
To: user@struts.apache.org
Subject: new to Struts



Hello guys,
I need an information.
I'm going to learn struts..
I need some info, please help me:

1) what do you hint to me, to start from Struts 1.1 and later move to Struts
2.0, or starting from Struts 2.0?
2) I usually use Netbeans. Is there an editor WYSIWHG for Netbeans, to use
Struts?
3) I know ASP.NET technology and I used lot of already developed components,
like editable grid, dropdown list and so on...does exists such component for
struts?where I can download them?

Thanks,
Regards
--
View this message in context:
http://www.nabble.com/new-to-Struts-tp19370925p19370925.html
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: Struts 2 & Hibernate Examples?

2008-09-02 Thread Deepak Kumar
Hi

Please check
http://www.roseindia.net/hibernate
http://www.roseindia.net/struts/struts2

Thanks


-Original Message-
From: Hardik Shah [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2008 3:33 PM
To: user@struts.apache.org
Subject: Re: Struts 2 & Hibernate Examples?



you can get war of s2-h3

from
http://www.learntechnology.net/content/struts2/struts2_hibernate.jsp

another my blog from now

http://hardik4u.wordpress.com/category/j2ee/

hope this will help



-


Java/J2EE developer
India

blogs
http://hardik4u.wordpress.com wordpress blog

--
View this message in context:
http://www.nabble.com/Struts-2---Hibernate-Examples--tp19232693p19267363.htm
l
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: Struts 2 & Hibernate Examples?

2008-08-30 Thread Deepak Kumar
HI,

Please check http://www.roseindia.net/struts/struts2

Thanks


-Original Message-
From: Andrew Myers [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 30, 2008 5:23 PM
To: user@struts.apache.org
Subject: Struts 2 & Hibernate Examples?


Hi,

I was hoping someone may be able to send me some links to some useful
tutorials or sample apps using Struts 2 and Hibernate, or failing that
any good books that might guide me through this.

Any advice would be greatly appreciated.

Thanks!
Andrew.

-
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: RE: Struts2 with JPA/Hibernate using Spring

2008-08-27 Thread Deepak Kumar
Hi,

Please check the complete example at
http://www.roseindia.net/struts/hibernate-spring/

Thanks


-Original Message-
From: Håkan Jacobsson [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2008 1:25 AM
To: user@struts.apache.org
Subject: Ang: RE: Struts2 with JPA/Hibernate using Spring


Martin,

Big thanx for a quick answer!

If I understand you correctly - both persistence.xml and applicationContext.
xml can be placed
together with the JPA/Hibernate classes in a jarfile located in WEB-INF/lib
in
the web app?

/regards, Håkan

>Ursprungligt meddelande
>Från: [EMAIL PROTECTED]
>Datum: 2008/08/27 21:34
>Till: "Struts Users Mailing List"
>Ärende: RE: Struts2 with JPA/Hibernate using Spring
>
>
>the JPA package structure would look like:
>WEB-INF/classes/package/persistence/*.class
>WEB-INF/classes/META-INF/persistence.xml
>WEB-INF/classes/META-INF/orm.xml (optional)
>
>OR you could jar everything into one jar and place in lib folder
>WEB-INF/lib/*.jar
>
>documentation located at
>http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
>
>example hibernate data-source configured would be petclinic sample ./META-
INF/application-context.xml
>
>
>org.hsqldb.
jdbcDriver
>jdbc:hsqldb:hsql://localhost:
9001
>root
>root
>
>
>and of course the Spring servlets from web.xml
>
>context
>org.springframework.web.context.
ContextLoaderServlet
>1
>
>
>
>petclinic
>org.springframework.web.servlet.
DispatcherServlet
>2
>
>
>suggest starting with spring petclinic as your model..
>http://www.java2s.com/Code/Java/Spring/SpringJPetStoresampleapplication.htm
>
>another good example if using struts with sprint is the JPetStore app
>http://www.java2s.com/Code/Java/Spring/SpringJPetStoresampleapplication.htm
>
>anyone else?
>Martin
>__
>Disclaimer and confidentiality note
>Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.
>
>
>> Date: Wed, 27 Aug 2008 20:29:59 +0200
>> From: [EMAIL PROTECTED]
>> To: user@struts.apache.org
>> Subject: Struts2 with JPA/Hibernate using Spring
>>
>> Hi,
>>
>> I have a Struts2 web application. I'm using Spring (for autowiring of
>> dependency injection) to integrate JPA and Hibernate in the web app.
>> It's working fine.
>> Now I need to separate the JPA/Hibernate classes into a
>> separate jar file (the web app will have this jar file as a dependency).
>> How should I configure this? So far, I have my applicationContext.xml and
>> persistence.xml files in the web app. Should those files now be put in
the
>> separate jarfile? Do I need to make other configuration changes to the
web
app?
>>
>> I'm a newbie to both Spring and web app configuration. Any help much
>> appreciated!
>>
>> /best regards, Hakan Jacobsson - System developer in Sweden
>>
>>
>> /MVH, Håkan Jacobsson
>>
>> 
>>
>> Torsvikssvängen 52, 1/2 tr.
>> 181 34 Lidingö
>> tel:08-765 84 37
>> mob: 076-272 53 85
>>
>> 
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>_
>Get thousands of games on your PC, your mobile phone, and the web with
Windows®.
>http://clk.atdmt.com/MRT/go/108588800/direct/01/



-
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: Dojo With Struts2.

2008-07-29 Thread Deepak Kumar
Hi,

Check the url
http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml

thanks


-Original Message-
From: sharath karnati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2008 4:05 AM
To: user@struts.apache.org
Subject: Dojo With Struts2.


Hi All,
 
    Struts2 included with Dojo. Can you please provide me how to use Ajax
using dojo in struts2. If possible can you please send some links for this
implementation.
 
Thanks,
Sharath.





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



How to popup a new window having detailed data on click of textbox

2008-04-23 Thread Rishi Deepak
I am working on Human Resource system with STRUTS1. I
have a case that  user have already entered the
employee number and its personel details in a form. 
In second form user want to  select the employee
number and employee name already entered and donot
want to type again the employee number and name. 
Kindly suggest me the way how to implement the logic
that when user click on the textbox a new window opens
and user selects the employee detail from that window
and passes the data to parent window.

Please reply urgently,
Thanks in advance.
regards
Deepak.


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



RE: How to reflect table row data in the text boxes

2008-04-17 Thread Rishi Deepak
Thanks Sir, I will apply..

--- Lalchandra Rampersad
<[EMAIL PROTECTED]> wrote:

> You can simply create a javascript function that is
> called when the onClick
> or onSelect event of the table triggered.
> 
> Saludos
> Lalchandra
> 
> -Original Message-
> From: Rishi Deepak [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, April 17, 2008 5:05 AM
> To: user@struts.apache.org
> Subject: How to reflect table row data in the text
> boxes
> 
> Hi,
> My project has the requirement to display the
> records
> in table and when i click on a particular row, the
> data would be displayed in the text boxes.
> 
> I have applied Struts frame work and data is
> displayed
> in table, now any body can help how to show that
> data
> in textboxes on click to a record in table.
> 
> Is there ready made tool or sample code for that.
> 
> thanks in advance..
> Deepak.
> 
> 
>
-
> 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]
> 
> 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



How to reflect table row data in the text boxes

2008-04-17 Thread Rishi Deepak
Hi,
My project has the requirement to display the records
in table and when i click on a particular row, the
data would be displayed in the text boxes.

I have applied Struts frame work and data is displayed
in table, now any body can help how to show that data
in textboxes on click to a record in table.

Is there ready made tool or sample code for that.

thanks in advance..
Deepak.
--- temp temp <[EMAIL PROTECTED]> wrote:

> my application uses container managed security ,
> j_security_check,
> we  create session before user  login  so i dont
> want to call session.invalidate 
> if users wants to logout is there anything i can do
> to logout user ?
> 
>
> -
> Be a better friend, newshound, and know-it-all with
> Yahoo! Mobile.  Try it now.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



Re: logout when using j_security_check

2008-04-17 Thread Rishi Deepak
Hi,
My project has the requirement to display the records
in table and when i click on a particular row, the
data would be displayed in the text boxes.

I have applied Struts frame work and data is displayed
in table, now any body can help how to show that data
in textboxes on click to a record in table.

Is there ready made tool or sample code for that.

thanks in advance..
Deepak.
--- temp temp <[EMAIL PROTECTED]> wrote:

> my application uses container managed security ,
> j_security_check,
> we  create session before user  login  so i dont
> want to call session.invalidate 
> if users wants to logout is there anything i can do
> to logout user ?
> 
>
> -
> Be a better friend, newshound, and know-it-all with
> Yahoo! Mobile.  Try it now.



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

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



RE: struts 2 ajax how to

2008-03-26 Thread Deepak Kumar
HI,

Dojo comes with struts 2. You can use dojo in your struts 2 applications.

Please learn it from
http://www.roseindia.net/struts/struts2/struts2ajax/index.shtml

Thanks


-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2008 7:05 PM
To: user@struts.apache.org
Subject: struts 2 ajax how to


Hello,
What is the best solution to integrate struts 2 and ajax? What libraries?


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



RE: s2 : assigning a variable to jsp

2008-03-21 Thread Deepak Kumar
Hi,

In Struts 2 you can use http://www.roseindia.net/struts/struts2/struts2controltags/set-tag.shtml

Thanks


-Original Message-
From: niels [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2008 4:35 PM
To: user@struts.apache.org
Subject: s2 : assigning a variable to jsp


Hello,

I want to assign a property to a value in jsp.

in struts 1.3 i could do it like:



Now I can access the variable via:  <%=assign%>

How can i accomplish this in struts2 for a property:



thanks
in advance.

Niels


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



RE: expression validator

2008-02-29 Thread Deepak Kumar
Hi,

Here is very good example with running source code.
http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam
ple.shtml

Thanks


-Original Message-
From: Sanjeewa Saman [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 4:36 PM
To: 'Struts Users Mailing List'
Subject: RE: expression validator


Hi,
You can override the default functionality and use , create the
validator.xml such that is can compare strings.

Refer the following site ,
http://struts2issues.blogspot.com/

this will give a complete idea of doing it.

Thanks .

-Original Message-
From: mojoRising [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 4:16 AM
To: user@struts.apache.org
Subject: Re: expression validator


Thanks, I confirmed my syntax, and now it does not do any client side
validation. Do I have this validator in the right place? Here is the
relevant code from my xml file:


http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";>














  password2.equals(password)
  Password not the same as
Confirmed







>From the validator documentation.

  
  email.equals(email2)
  Email not the same as email2
  

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications


--
View this message in context:
http://www.nabble.com/expression-validator-tp15746472p15747878.html
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]




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



RE: good tutorial recommendation

2008-02-29 Thread Deepak Kumar
Hello,

Please check http://www.roseindia.net/struts and
http://www.roseindia.net/struts/struts2

Thanks


-Original Message-
From: Rilawich Ango [mailto:[EMAIL PROTECTED]
Sent: Friday, February 29, 2008 4:23 PM
To: user@struts.apache.org
Subject: good tutorial recommendation


Hi all,
  Anyone can recommend a good tutorial to develop web application
using struts and eclipse as a GUI?
thanks, ango

-
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: Struts 2 Client-side Validation

2008-02-27 Thread Deepak Kumar
Hello Thaminda,

In strus 2 you can validate the forms using javascript. The good thing in
strus 2 is that you don't have to write
the code for validating the form.

Code is automatically generated pease check
http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam
ple.shtml

Thanks


-Original Message-
From: Thaminda Karunanayake [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 27, 2008 3:51 PM
To: user@struts.apache.org
Subject: Struts 2 Client-side Validation


Hi all,


Can password confirmation be validated using client side validators in
Struts 2 ...?



Thanks

Thaminda


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



RE: datetimepicker version 2.0.11 issue

2008-02-21 Thread Deepak Kumar
Hi,

Please note the attribute onchange="false" of  http://www.roseindia.net)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 8:54 PM
To: Struts Users Mailing List
Subject: RE: datetimepicker version 2.0.11 issue


Hi

A small change is required to get the desired output.
You can find answer here at
http://www.roseindia.net/answers/viewanswers/29.html with source code.

Good Luck!

Best Regards


-Original Message-
From: akash agrawal [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 8:23 AM
To: Struts Users Mailing List
Subject: s:datetimepicker version 2.0.11 issue


Hi,

My code is:


Issue:
1. Time cannot be edited by going straight to the text field and entering
using keyboard. It only allows to pick up the time from the popup. However
popup only gives minutes granularity in 5 minutes interval.

Any workaround? Is there a better mailing list to post this question.

Thanks,

-Akash




-
Never miss a thing.   Make Yahoo your homepage.


-
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: struts2+Spring+Hibernate Integration

2008-02-21 Thread Deepak Kumar
Hi,

Here is and application with example code
http://www.roseindia.net/struts/hibernate-spring/index.shtml

Thanks


-Original Message-
From: RajiR [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 21, 2008 4:04 PM
To: user@struts.apache.org
Subject: struts2+Spring+Hibernate Integration



Hi,

As struts2 comes along with spring integration with
struts2-spring-plugin-2.0.11.jar,after starting the tomcat server its unable
to load that jar and getting an exception as:

SEVERE: Exception starting filter struts2
Unable to load bean: type:com.opensymphony.xwork2.ObjectFactory
class:org.apache.struts2.spring.StrutsSpringObjectFactory - bean -
jar:file:/E:/Struts2WorkSpace/.metadata/.plugins/org.eclipse.wst.server.core
/tmp0/wtpwebapps/SampleStruts2/WEB-INF/lib/struts2-spring-plugin-2.0.11.jar!
/struts-plugin.xml:30:132
  .
Caused by: java.lang.NoClassDefFoundError:
org/springframework/context/ApplicationContextAware
at java.lang.ClassLoader.defineClass1(Native Method)

..com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regi
ster(XmlConfigurationProvider.java:180)
... 24 more


What is the reason for this?I have checked whether I have loaded same jar
double times,but tht's not tht problem.what might b the reason?Does any body
came across this one?

Also,the link:
http://www.roseindia.net/struts/hibernate-spring/integrate.shtml helps in
integrating struts1+hibernate+springs.But, since I would like to work with
struts2+Hibernate+Spring,what modifications I have to do to satisfy my
requirement?Since action forms concept is not there in struts2...!!!

Thanks.

--
View this message in context:
http://www.nabble.com/struts2%2BSpring%2BHibernate-Integration-tp15607260p15
607260.html
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]



Cos Multipart Plugin - Feature enhancement

2008-01-19 Thread deepak aggarwal
I am toying with the idea of using cos multipart plugin in my app. Of
course, based on Don's replies in another thread, I'll have to make
some code changes to make it compatible with JDK 1.5 and I can also
probably register with struts2 plugin registry.

There is one feature that I want to add to cos file upload - make the
file upload interruptible. Large file uploads can sometime take a lot
of time  and you want transaction to timeout gracefully in such a case
(by setting a timeout on transactioninterceptor that starts the
transaction as soon as the request arrives in). When the transaction
times out, transactionmanager issues an interrupt on the thread
handling the request but in our case, this will go ignored as blocking
i/o calls are not interruptible (unless using a nio channel). So there
is a potential for this thread to get hosed up.

In general, i believe that any operation that takes potentially large
time should add hooks to get interrupted gracefully.

Any takers for this idea? Or am I missing something?

Deepak

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



Re: Cos multipart plugin, where is it?

2008-01-19 Thread deepak aggarwal
That sounds good. I will make the necessary code changes and try to
register with Struts2 repository.

There is one feature that I want to add to cos file upload - make the
file upload interruptible. Large file uploads can sometime take a lot
of time  and you want transaction to timeout gracefully in such a case
(by setting a timeout on transactioninterceptor that starts the
transaction as soon as the request arrives in). When the transaction
times out, transactionmanager issues an interrupt on the thread
handling the request but in our case, this will go ignored as blocking
i/o calls are not interruptible (unless using a nio channel). So there
is a potential for this thread to get hosed up.

In general, i believe that any operation that takes potentially large
time should add hooks to get interrupted gracefully.

Any takers for this idea?

Deepak

On Jan 19, 2008 5:10 PM, Don Brown <[EMAIL PROTECTED]> wrote:
> Yep, we can't have any code that depends on that library in any
> ASF-sponsored release.  You should be able to take the code as it
> existed in WebWork 2.2 and port it to Struts 2, using the pell file
> upload plugin as an example.  Then, put the code up somewhere like
> Google Code and register your plugin with our Plugin Repository to
> share it with the community (if you so choose).
>
> Don
>
>
> On Jan 19, 2008 10:34 PM, deepak aggarwal <[EMAIL PROTECTED]> wrote:
> > Thanks Don. I am willing to buy his book but still there seems to be
> > an issue. cos.jar distribution on Jason's website is from Nov.2002 and
> > when I downloaded the source, it didn't compile with JDK 1.5 ( because
> > it used classes like Enumeration and Servlet 2.3 api and we are using
> > servlet api 2.4). Does it mean that if I want to use it in my app, I
> > would have to make the necessary changes to make it work and maintain
> > the source code?
> >
> > Deepak
> >
> >
> > On Jan 19, 2008 4:49 PM, Don Brown <[EMAIL PROTECTED]> wrote:
> > > It was pulled due to lack of license compatibility.  It had a special
> > > license that required every member of your development team to buy a
> > > copy of Jason Hunter's Servlets book if you used it in a production
> > > system.
> > >
> > > Don
> > >
> > >
> > > On Jan 19, 2008 10:11 PM, deepak aggarwal <[EMAIL PROTECTED]> wrote:
> > > > I have been trying out various file upload plugins that struts2
> > > > supports. I could find jakarta (included with struts distribution) and
> > > > pell (included in struts2-pell-multipart-plugin-2.0.9.jar) plugins,
> > > > but nowhere could I find cos plugin. I was browsing through various
> > > > sites and saw on one of the pages that these three plugins were once
> > > > in struts2.dispatcher.multipart package. But now only jakarta remains
> > > > there and pell has been bundled into a separate jar.
> > > >
> > > > But, the original question remains, whatever happened to cos?
> > > >
> > > > -
> > > > 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]
> >
> >
>
> -
> 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: Cos multipart plugin, where is it?

2008-01-19 Thread deepak aggarwal
Thanks Don. I am willing to buy his book but still there seems to be
an issue. cos.jar distribution on Jason's website is from Nov.2002 and
when I downloaded the source, it didn't compile with JDK 1.5 ( because
it used classes like Enumeration and Servlet 2.3 api and we are using
servlet api 2.4). Does it mean that if I want to use it in my app, I
would have to make the necessary changes to make it work and maintain
the source code?

Deepak

On Jan 19, 2008 4:49 PM, Don Brown <[EMAIL PROTECTED]> wrote:
> It was pulled due to lack of license compatibility.  It had a special
> license that required every member of your development team to buy a
> copy of Jason Hunter's Servlets book if you used it in a production
> system.
>
> Don
>
>
> On Jan 19, 2008 10:11 PM, deepak aggarwal <[EMAIL PROTECTED]> wrote:
> > I have been trying out various file upload plugins that struts2
> > supports. I could find jakarta (included with struts distribution) and
> > pell (included in struts2-pell-multipart-plugin-2.0.9.jar) plugins,
> > but nowhere could I find cos plugin. I was browsing through various
> > sites and saw on one of the pages that these three plugins were once
> > in struts2.dispatcher.multipart package. But now only jakarta remains
> > there and pell has been bundled into a separate jar.
> >
> > But, the original question remains, whatever happened to cos?
> >
> > -
> > 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]



Cos multipart plugin, where is it?

2008-01-19 Thread deepak aggarwal
I have been trying out various file upload plugins that struts2
supports. I could find jakarta (included with struts distribution) and
pell (included in struts2-pell-multipart-plugin-2.0.9.jar) plugins,
but nowhere could I find cos plugin. I was browsing through various
sites and saw on one of the pages that these three plugins were once
in struts2.dispatcher.multipart package. But now only jakarta remains
there and pell has been bundled into a separate jar.

But, the original question remains, whatever happened to cos?

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



RE: learning struts/spring?

2008-01-09 Thread Deepak Kumar
Hi,

Good step by step examples are available at:

Struts 2: http://www.roseindia.net/struts/struts2/

Struts 1: http://www.roseindia.net/struts/

Thanks


-Original Message-
From: mah bub [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 6:35 PM
To: Struts Users Mailing List
Subject: Re: learning struts/spring?


thanks a lot guys

On Jan 8, 2008 3:15 PM, Rick Reumann <[EMAIL PROTECTED]> wrote:

> On Jan 7, 2008 9:15 PM, mah bub <[EMAIL PROTECTED]> wrote:
>
> >
> > is there any nice tutorial which covers the basic with step by step
> > examples
> > so that i can catch up.
> >
>
>
> I have several step by step Struts  lessons here:
> http://www.learntechnology.net  Most are for Struts1 but someone provided
> some Struts2 ones as well.
>
> (Personally, at the moment, I'm a fan of Stripes for new web applications.
> It's simplicity and ease of use really appeals to me.)
>
> --
> Rick
>


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



RE: Struts training...

2008-01-09 Thread Deepak Kumar
HI,

We are providing Struts training all over India. Please check
http://www.roseindia.net/ittraining/Struts2Training.shtml

Thanks


-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 09, 2008 6:09 PM
To: Struts Users Mailing List
Subject: Re: Struts training...


I provide on-site training in NYC; feel free to contact me off-list.

Dave

--- Antoine Solomon <[EMAIL PROTECTED]> wrote:

> Anyone know of struts training in New York city?
>
> On Jan 8, 2008 8:47 PM, Jack Haynes <[EMAIL PROTECTED]> wrote:
>
> >
> > Thanks for the feedback Dave.
> >
> > Jack> Date: Tue, 8 Jan 2008 16:14:43 -0800> From: [EMAIL PROTECTED]>
> > Subject: RE: Struts training...> To: user@struts.apache.org> > --- Jack
> > Haynes <[EMAIL PROTECTED]> wrote:> > I'm new to struts. I have very
> > limited knowledge of both struts 1 and 2. > > I would like to learn one
> of
> > them in detail. Which is most common? Which> > would be most beneficial
> to
> > have?> > Not sure how to answer that.> > *I* wouldn't learn S1 now, but
> > there are still a lot more S1 jobs than S2> jobs. S2 is a lot nicer to
> > develop with, S1 has many more deployed apps.> > It just depends on your
> > goals and interests, I think.> > d.> >
> > ->
To
> > unsubscribe, e-mail: [EMAIL PROTECTED]> For additional
> > commands, e-mail: [EMAIL PROTECTED]>
> > _
> > Read what Santa`s been up to! For all the latest, visit
> > asksantaclaus.spaces.live.com!
> > http://asksantaclaus.spaces.live.com/
>
>
>
>
> --
> Antoine W. Solomon Jr.
>


-
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: New to Struts

2007-12-13 Thread Deepak Kumar
HI,

Please check http://www.roseindia.net/stuts and
http://www.roseindia.net/struts/struts2

Thanks


-Original Message-
From: aum strut [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 13, 2007 3:53 PM
To: Struts Users Mailing List
Subject: New to Struts


Hi All,

I am new to struts and wana to learn it.Please suggest me can i start
directly to learn Struts2 or do i need to have prior knowledge of
Struts1.Any help or suggestion in this regard is much appriciated.




Thanks,
Aum


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



RE: what abt actions in struts2.

2007-11-19 Thread Deepak Kumar
Please check tutorial at http://www.roseindia.net/struts/struts2

Thanks

-Original Message-
From: vijay vijay [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 5:58 PM
To: Struts Users Mailing List
Subject: what abt actions in struts2.


Hi
   what about actions in struts 2, earlier we have actios like dispatch
action,lookup action,forward actions,includeactions  can i use them here
too.

what about action cahing?where do we use this concept.how far this usefull?

can any one tell me.plz don't say look in to docs i have seen it there, but
i could not undesstand it better way.

thank you
vijay


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



RE: structs user tutorial

2007-11-05 Thread Deepak Kumar
Hi,

Are you looking for Strus 1 or Struts 2 tutorials?

Thanks


-Original Message-
From: chamath [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 4:35 PM
To: user@struts.apache.org
Subject: RE: structs user tutorial



Hi Deepak-Kumar,

I went through this. I learned about structs from that.
but I could not do it in practically.



Deepak Kumar wrote:
>
> Hi,
>
> Please visit http://www.roseindia.net/struts Its one of the best tutorial.
>
> Thanks
>
>
> -Original Message-
> From: chamath [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 05, 2007 4:11 PM
> To: user@struts.apache.org
> Subject: structs user tutorial
>
>
>
> Hi all,
>
> I'm new user to struct framework. I want good tutorial to familiar with
> structs. I did some tutorials.
>
> But those not good.
>
> can you give good tutorial for me.
>
> thanks..
> --
> View this message in context:
> http://www.nabble.com/structs-user-tutorial-tf4750752.html#a13584532
> 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/structs-user-tutorial-tf4750752.html#a13584846
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: structs user tutorial

2007-11-05 Thread Deepak Kumar
Hi,

Please visit http://www.roseindia.net/struts Its one of the best tutorial.

Thanks


-Original Message-
From: chamath [mailto:[EMAIL PROTECTED]
Sent: Monday, November 05, 2007 4:11 PM
To: user@struts.apache.org
Subject: structs user tutorial



Hi all,

I'm new user to struct framework. I want good tutorial to familiar with
structs. I did some tutorials.

But those not good.

can you give good tutorial for me.

thanks..
--
View this message in context:
http://www.nabble.com/structs-user-tutorial-tf4750752.html#a13584532
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: conditional statement in struts2

2007-10-24 Thread Deepak Kumar
Please check http://www.roseindia.net/struts/struts2/struts-2-tags.shtml

Thanks


-Original Message-
From: carmi_cd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 24, 2007 2:47 PM
To: user@struts.apache.org
Subject: Re: conditional statement in struts2



would this code function correctly..that if pdfValue==1 it will display an
iframe containing a pdf generated from jasperreports else a strut div will
be displayed containing an html format report?






Loading report... Please wait.



thanks again.


jignesh(india) wrote:
>
> It's simple dude use s:if and s:else like mentioned below
> 
>   if part
> 
> 
>   else part
> 
>
> hope it will help u.!
> Regards,
> Jignesh
>
>
>
>
> carmi_cd wrote:
>>
>> hi i'm new in struts 2..my question is how can i get a value from  a
>> member variable of my action class and
>> evaluate it in my if-else-if statemet?
>>
>> i try to code it but it doesn't evaluate properly..here is my exisiting
>> code.
>>
>> 
>> > href="%{getReportNumber()}.action?reportId=%{getReportId()}"
>>cssStyle="componentHolder"
>>loadingText="Loading report... Please wait."
>>errorText="Unable to load report."
>>listenTopics="load_report_preview"
>>executeScripts="true">
>> Loading report... Please wait.
>> 
>> 
>> 
>> > cssStyle="componentHolder"
>>loadingText="Loading PDF"
>>errorText="Unable to load report."
>>listenTopics="load_report_preview"
>>executeScripts="true">
>> > src="%{getReportNumber()}.action?reportId=%{getReportId()}"
>> width="800" height="600"/>
>> 
>> 
>>
>> it supposed to display the genereated pdf inside the iframe if the
>> getPdfValue() method return
>> are not equal to 0. please help me its not evaluating properly..thanks in
>> advance.
>>
>
>

--
View this message in context:
http://www.nabble.com/conditional-statement-in-struts2-tf4682064.html#a13382
105
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: Struts Getting Started Help

2007-10-19 Thread Deepak Kumar
Hi,
Please try http://www.roseindia.net/struts/struts2

Thanks


-Original Message-
From: radhika bondada [mailto:[EMAIL PROTECTED]
Sent: Friday, October 19, 2007 12:45 PM
To: user@struts.apache.org
Subject: Struts Getting Started Help


Hi...
I am new to Struts2

hope some help

Thanks and Regards
Radha


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



RE: Animated Tutorial for Struts2

2007-09-01 Thread Deepak Kumar
Hi,

Please check http://www.roseindia.net/struts/struts2

Thanks;


-Original Message-
From: André Faria [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 01, 2007 9:32 PM
To: Struts Users Mailing List
Subject: Re: Animated Tutorial for Struts2


Good Work!!! I'll show it to my staff, they are learning Struts 2...

Regards,
André Faria from Brazil

msalavi escreveu:
> Dear all,
>
>   In order to better understanding and using of Struts2, I have
created
>   the Animated Tutorial for Struts2 that shows how does struts work.
>
>   My goal for creating this document was to show basic primitives such
> as
>   request scope value stack, action classes and objects to someone who
wants
>   to select between web frameworks such as Struts, JSF, Tapestry and etc.
>
>  I want you all to inform me about usefulness of this tutorial.
>
>   http://khorshid.ut.ac.ir/~s.pourtavakoli/Tutorial.zip
>
>  First of all you must read the readme.pdf and then start with first
> scenario.
>
> --kind regards
> Mohammad SeyedAlavi
>



-
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: Beginner

2007-08-26 Thread Deepak Kumar
Hi,

Please check http://www.roseindia.net/struts 
and http://www.roseindia.net/struts/struts2

Thanks
Deepak Kumar


-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Cenk
Sent: Sunday, August 26, 2007 9:09 PM
To: user@struts.apache.org
Subject: Beginner


Hi,

I m new to Struts and i wonder if you can help to start with some simple 
tutorials?

thanks


-
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: Struts 2 Spring plug-in

2007-07-26 Thread Deepak Kumar
Hi

Try http://www.roseindia.net/struts/hibernate-spring/

Thanks

-Original Message-
From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 26, 2007 3:19 AM
To: user@struts.apache.org
Subject: Struts 2 Spring plug-in


Hi,

Has anyone got Struts Spring plug-in to work?  I am getting this error
starting the application.  I removed all the beans except the dataSource and
sessionFactory.  Please see attached.  I'd really appreciate any help you
can offer.

Thanks,

Jane

ERROR http-8080-Processor24
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/acr] -
Exception sending context initialized event to listener instance of class
org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean
'dataSource' while setting bean property 'dataSource'; nested exception is
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
Caused by:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'dataSource': FactoryBean which is currently in
creation returned null from getObject
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromF
actoryBean(AbstractBeanFactory.java:1238)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBe
anInstance(AbstractBeanFactory.java:1191)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:211)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv
eReference(BeanDefinitionValueResolver.java:271)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolv
eValueIfNecessary(BeanDefinitionValueResolver.java:128)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1047)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:843)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAut
owireCandidates(DefaultListableBeanFactory.java:362)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.autowireByType(AbstractAutowireCapableBeanFactory.java:900)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.populateBean(AbstractAutowireCapableBeanFactory.java:815)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
.createBean(AbstractAutowireCapableBeanFactory.java:427)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(Ab
stractBeanFactory.java:254)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSi
ngleton(DefaultSingletonBeanRegistry.java:144)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:251)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:163)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:281)
at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:352)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(Co
ntextLoader.java:241)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(Cont
extLoader.java:184)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(Con
textLoaderListener.java:49)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java

Struts 2 Tags Tutorials and Examples Released.

2007-07-24 Thread Deepak Kumar
Hi,

We are pleased to announce the release of Struts 2 Tags tutorials and
examples.

We have covered
a) Struts Generic Tags
  --Control Tags
  --Data Tags

b) Struts UI Tags
  -- Form Tags
  -- Non-Form UI Tags

These tutorials are supported with examples. We have spent huge time in
writing these tutorials.

Example codes provided are free and fully tested.

Read these tutorials at
http://www.roseindia.net/struts/struts2/struts-2-tags.shtml

Thanks
Rose India Team


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



RE: [ANN] Struts 2.0.9 General Availability Release with Important Security Fix

2007-07-24 Thread Deepak Kumar
Hi,

Discuss the new features and how to use these new features in your
application at
http://www.roseindia.net/struts/struts2/struts2download/struts2.0.9.shtml

Thanks


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ted
Husted
Sent: Wednesday, July 25, 2007 10:35 AM
To: Struts Users Mailing List
Subject: Re: [ANN] Struts 2.0.9 General Availability Release with
Important Security Fix


To help get the word out, I'd ask that anyone with a blog please post
this announcement (if you haven't already), or link back to my blog on
JRoller.

 * http://www.jroller.com/TedHusted/entry/struts_2_0_9

-Ted.

On 7/24/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> Apache Struts 2.0.9 is now available from
> .
>
> This release includes an important security fix regarding a remote
> code exploit.  For more information about the exploit, visit our
> security bulletins page at
> .
>
> * ALL DEVELOPERS ARE STRONGLY ADVISED TO UPDATE TO STRUTS 2.0.9 OR
> XWORK 2.0.4 IMMEDIATELY!
>
> For other changes included in Struts 2.0.9, see the release notes
> .
>
> -Ted.

-
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: Struts Help

2007-07-24 Thread Deepak Kumar
Hi
Just try http://www.roseindia.net/struts

thanks

-Original Message-
From: sharad singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 24, 2007 1:51 PM
To: user@struts.apache.org
Subject: Struts Help


Hello All,

 Today is first day when I am going to use struts , I dont know any
thing about this, I have read some docs on strts ,But no implementation idea
...I have downloaded
struts-1.3.8-all.zip and  struts-1.3.8-src.zip.

Which is better to use for development own application.



Regards
Sharad


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



RE: File upload messages problem

2007-07-14 Thread Deepak Kumar
HI,

Please have a look at struts 2 file upload example at
http://www.roseindia.net/struts/struts2/struts-2-file-upload.shtml.

Hope this will help you.

Can you please tell me what error you are facing.

Regards
Deepak Kumar
http://www.roseindia.net


-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: Friday, July 13, 2007 9:16 PM
To: user@struts.apache.org
Subject: File upload messages problem


I have a similar problem to a previous post that didn't get any replies.



I'll relist it for quick reference:



The documentation on the page File Upload Interceptor
(http://struts.apache.org/2.x/docs/file-upload-interceptor.html)
indicates that the error messages are currently set to defaults in the
struts-messages.properties file.  However, when I look at the file the
messages I am getting are different than those specified.  The page goes
on to indicate that these properties can be overridden by setting them
in your properties file for the following keys:

- struts.messages.error.uploading - a general error that occurs when the
file could not be uploaded
- struts.messages.error.file.too.large - occurs when the uploaded file
is too large
- struts.messages.error.content.type.not.allowed - occurs when the
uploaded file does not match the expected content types specified





I over-ride these in struts.properties and struts-messages.properties
and neither works.



What is the correct method?



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



RE: Struts 2 Client Side Validation

2007-07-12 Thread Deepak Kumar
HI,

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

Thanks


-Original Message-
From: Néstor Boscán [mailto:[EMAIL PROTECTED]
Sent: Friday, July 13, 2007 1:05 AM
To: user@struts.apache.org
Subject: Struts 2 Client Side Validation


Hi

I'm trying to use Struts 2 with client side validation. I would like to use
a theme that does not add any HTML to the form, fields and error messages.
I'm working with simple theme but it's not generating the JavaScript code to
do the validation and the  tag is generation 
elements.

Any ideas?

Regards,

Néstor Boscán


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



Free Java Magazine

2007-07-12 Thread Deepak Kumar
Hi,

We have just released free magazine on java technology. Visit
http://javajazzup.com/issue1/ to grab a free copy.

Regards
Rose India Team
http://www.roseindia.net


-
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]



Struts Project Examples

2007-06-22 Thread Deepak Kumar
HI,

Visit http://www.roseindia.net/struts/struts-projects.shtml to download
struts, spring and hibernate example projects and desctiption

Thanks


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



RE: get real path of a file from action class

2007-06-14 Thread Deepak Kumar
Hi,

You can get it by using the code:

 //Get the servers upload directory real path name
String filePath = getServlet().getServletContext().getRealPath("/")
+"upload";

Have a look at
http://www.roseindia.net/struts/strutsfileuploadandsave.shtml.

Here you will find the code to save the file on the server also

Thanks
Deepak Kumar

-Original Message-
From: Ambaris Mohanty [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 11:10 AM
To: 'Struts Users Mailing List'
Subject: get real path of a file from action class


Hi all,

Can anybody tell me how to get the real path of a file from an action class?
I'm using struts 1.2.9.

Thank you,

AM



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



RE: [S2.0.8] datetimepicker.... is it a train wreck?

2007-06-13 Thread Deepak Kumar
Hi,

Just read Datetime picker example at
http://www.roseindia.net/struts/struts2/date/struts-2-datetimepicker.shtml.



Thanks


-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 4:11 PM
To: 'Struts Users Mailing List'
Subject: [S2.0.8] datetimepicker is it a train wreck?


I've been trying to do some work with datetime picker in 2.0.8 and it seems
to me it's a real mess.

In my action I have;

public Date getReportStartDate() {
return reportStartDate;
}

public void setReportStartDate(Date reportStartDate) {
this.reportStartDate = reportStartDate;
}

Now, here comes the fun part, If I put the following in the JSP things kind
of work;



The reason I say kind of is because the date is shown in US format
(mm/dd/), which is confusing for european users, so I switched to;



Which then generates the error "Invalid field value for field
"reportStartDate".", and yes, this is the ONLY change made.

I though about trying a custom date format and saw
https://issues.apache.org/struts/browse/WW-1917 which basically makes it not
an option.


So, my question is, am I doing something dumb, or does it really break so
easily?, and if so is it of any real use to non-US users to whom the
mm/dd/ date format is just wrong?


-
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 format the decimal

2007-06-10 Thread Deepak Kumar
Hi

visit http://www.roseindia.net/struts/struts2/struts-2-format.shtml this is
good example.

thanks


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Josh
Vickery
Sent: Saturday, June 09, 2007 6:36 PM
To: Struts Users Mailing List
Subject: Re: How to format the decimal


Or, you can use the s:text tag (assuming you are using struts 2) and:


  


where format.decimal is defined in a resource bundle somewhere (see
http://cwiki.apache.org/confluence/display/WW/Localization for
details) as:

format.decimal={0,number,###.##}

The text tag reference
(http://cwiki.apache.org/confluence/display/WW/text) has some links to
more information about using MessageFormat.

Josh



On 6/9/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote:
> 2007/6/9, Shuai Zheng <[EMAIL PROTECTED]>:
> > Dear All,
> >
> > I want to keep all the numeric in my system with 2 decimal places only.
What
> > is the best way to do it?
>
> Use fmt:formatNumber contained in JSTL:
>
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/formatNumber.html
>
> HTH
> Antonio
>
> -
> 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: running the test in the HelloWorld tutorial

2007-06-09 Thread Deepak Kumar
Please chekck
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml

Thanks

-Original Message-
From: Session A Mwamufiya [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 09, 2007 11:37 PM
To: Struts Users Mailing List
Subject: Re: running the test in the HelloWorld tutorial


That's exactly the one Wendy!  I wasn't using an IDE to code the java pages
for the HelloWorld tutorial, but my IDE of choice, if one is needed for the
test, is Eclipse 3.2.

Thanks a bunch
Session


> On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
>
>> I've been able to set up struts 2 after a long review of everything
>> needed, and am now looking to run the test that was given in the
>> HelloWorld tutorial to test the HelloWorld action.  I understand what
>> the code does, but what do I need to do to run the test and get its
>> results from within a web page or command line?  Could someone give me a
>> simple step by step method that I could reproduce?
>
> Do you mean the HelloWorld test described here?
> http://struts.apache.org/2.x/docs/hello-world.html
>
> How to run it depends on what build tool or IDE you're using, so we'll
> need that information in order to help.
>
> -- Wendy
>
> - 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]



Struts 2 Tutorials

2007-06-09 Thread Deepak Kumar
HI,

Here is good collection of Struts 2 Tutorials
http://www.roseindia.net/struts/struts2/index.shtml


Thanks


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



Re: Cannot find examples.war

2006-07-06 Thread Kumar deepak
Hi,
   
  Please download working stuts example from http://www.roseindia.net/struts
   
  Regards
  deepak

Jim Reynolds <[EMAIL PROTECTED]> wrote:
  Ever since the web site redesign, I cannot find the to
get started with. Anyone know where it is? Been searching struts site
for a bit. No luck.

Thanks,

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




-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better. 

Re: seeking quick start struts tutorial

2006-06-26 Thread Kumar deepak
hi,
   
  Try http://www.roseindia.net/struts
   
  Regards
  

hicham <[EMAIL PROTECTED]> wrote:
  hello
I'm a newbie to struts framework
if anybody knows of a quick start easy tutorial that can get me on the road
links ? pdf ?

Thank you
hicham

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




-
Want to be your own boss? Learn how on  Yahoo! Small Business. 

Re: hibernate

2006-05-08 Thread Kumar deepak
Hi,
   
  Please have a look at http://www.roseindia.net/hibernate.
   
  Regards
  Deepak Kumar

"Manopriya Jagadeesan , Tidel Park - Chennai" <[EMAIL PROTECTED]> wrote:
  Hi all,
I need a good start for hibernate.Can anyone suggest some good links?




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

Re: Regards ajax

2006-03-23 Thread deepak
http://www.omnytex.com/articles/xhrstruts/

- Original Message - 
From: "gomathi" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, March 23, 2006 1:31 PM
Subject: Regards ajax


> 
> 
> Hi 
> I want to use ajax in my java application.How to use it.
> Any samples for one  jsp page that contains some fields.
> Kindly Regards
> gomes
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.

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



Re: About Struts

2006-01-30 Thread Kumar deepak
Hi Naveen,
   
  Please visit http://www.roseindia.net/struts
  Its very good tutorial for begineners
   
  Regards
  Deepak Kumar
  

Naveen Sharma <[EMAIL PROTECTED]> wrote:
  I am a beginner at struts.
Can u plz tell me the basics of Struts
  



-
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.

Re: Authentication crisis

2006-01-30 Thread deepak
It seems that the request.getUserPrincipal() will return non-null value only
when you request the protected resource secured by  in
web.xml even if the user sent the request has been authenticated.

- Original Message - 
From: "Luis Gervaso" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" ; "Tomcat Users
List" 
Sent: Saturday, January 28, 2006 2:18 AM
Subject: Authentication crisis


Hello

I need how to put subject information returned of lc.login() in webapp
context
int order to invoke getUserPrincipal and not retur null

LoginServlet.java

protected void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

String username = req.getParameter("j_username");
String password = req.getParameter("j_password");
String host  = req.getHeader("Host");
MyCallbackHandler cbh = new
MyCallbackHandler(username,password,host);
try {
LoginContext lc = new LoginContext("websecure",cbh);
lc.login();
Subject s = lc.getSubject();
log.info(s.getPrincipals().toString());
ses.setAttribute("authcs.subject",lc.getSubject());
//log.info(req.getUserPrincipal().getName());
RequestDispatcher rd = req.getRequestDispatcher("test.jsp");
rd.forward(req,res);

} catch (LoginException e) {
e.printStackTrace();
//log.warning(e.getMessage());
}
}


source: test.jsp
<%
out.println("User: " + request.getParameter("user") + "");
out.println("Pass (clear): " + request.getParameter("pass") + "");
out.println("User Principal: " + request.getUserPrincipal() + "");
out.println("Remote User: " + request.getRemoteUser());
%>

output : test.jsp
User: null
Pass (clear): null
User Principal: null
Remote User: null

--
Un saludo


--DISCLAIMER--
This message is for the named person's use only. It may contain 
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission. 

If you receive this message in error, please immediately delete it and 
all copies of it from your system, destroy any hard copies of it and 
notify the sender. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the 
intended recipient. 

Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each 
reserve the right to monitor all e-mail communications through its 
networks. 

Any views expressed in this message are those of the 
individual sender, except where the message states otherwise and the 
sender is authorized to state them to be the views of any such entity.

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



Tomcat 4.1 vs DynaAddressForm

2006-01-23 Thread Deepak
Hi Guys,

Am getting an exception in tomcat console when try to
install DynaActionForm using below nodes in
struts-config.xml :

 
 
 
 
   

Error is :

SEVERE: Parse Error at line 40 column 13: The content
of element type "form-bean
" must match
"(icon?,display-name?,description?,set-property*)".
org.xml.sax.SAXParseException: The content of element
type "form-bean" must matc
h "(icon?,display-name?,description?,set-property*)".
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException

Any idea ?

Thanks ,Deepak

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: About SOA

2006-01-13 Thread Kumar deepak
Hi,

Please visit: http://www.roseindia.net/webservices/ 
SOA & Web Services Tutorials in this site helps  you learn more about 
service-oriented architecture (SOA) and web  services. So you will learn SOA & 
Web Services from http://www.roseindia.net/webservices/. 

Regards


[EMAIL PROTECTED] wrote: 

Hi guys,
I want to use SOA in my project.i have idea little bit. I want clear about this 
also i need sample programs and what are the requierments and how to implement 
this.Please Its very urgent,anybody help me

 Thank u

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





-
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

Re: Any step by step tutorial for internationalization of application

2005-12-20 Thread Kumar deepak
Hi,

Please visit http://www.roseindia.net/struts/strutsinternationalization.shtml 
This will help you.

Regards
Deepak Kumar


sma3har <[EMAIL PROTECTED]> wrote: We are planning to internationalize our 
application.
Any step by step tutorial for internationalization of
application?

Thanks
Harita

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Help Me out!!

2005-11-10 Thread Kumar deepak
Hi,

You want to set it in runtime?

Regards
Deepak Kumar


--- Shailesh Barde <[EMAIL PROTECTED]> wrote:

>  Hello,
>I have to set the value in the Struts
> Resource Bundle .Can anyone help me out to know how
> to set the value for particular key in Resource
> Bundle either using java.util.*(Resource Bundle) or
> Struts Util API?There is no method to set the value
> for a key in both of these API's?
> 
> Regards,
> 
> Shailesh J.Barde
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: (HELP) Struts - Oracle Database Connectivity Using DBCP connection Pooling

2005-11-08 Thread Kumar deepak
Hi Mohan,
 
Following url will definetly solve your problem.
 
http://www.roseindia.net/struts/strutsdatasourcemanagerontomcat5.shtml
 
Regards
Deepak Kumar


"A.Mohan" <[EMAIL PROTECTED]> wrote:
Hi, 
I want to connect Oracle thro DBCP - connection pooling by 
configuring the datasource in the WEB.XML file , 
Im using Apache tomcat Server 


How can i acheive that - help me out ,

I want the following information 
1. Configuration in web.xml file i.e the entries
2. Code in action class to acess the datasource 

I have been trying for long time , but i cant get any working solution 

help me out 

Thanks in advance 
Mohan



-
Yahoo! FareChase - Search multiple travel sites in one click. 

-
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: No suitable driver error

2005-10-04 Thread Deepak Gupta
No, I had the msql driver in the common/lib directory but the problem
got fixed after I changed the data-source type attribute from
"org.apache.commons.dbcp.BasicDataSource" to
"org.apache.struts.util.GenericDataSource".

Any ideas why?

On 10/4/05, Manfred Wolff <[EMAIL PROTECTED]> wrote:
>
> Hi.
>
> Thats nothing to do with struts. You haven't placed your mysql driver in
> the tomcat directory e.g. $CATALINA_BASE/shared/lib. So Struts cannot
> initializing the datasource object.
>
> Manfred
>
> Deep Chand schrieb:
>
> >Hi,
> >I'm kind of new to struts and/or web technologies. I'm trying to
> >configure mysql database for my struts appln using Tomcat. I'm getting
> >the following exception:
> >
> >Initializing application data source org.apache.struts.action.DATA_SOURCE
> >org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
> >of class '' for connect URL
> >'jdbc:mysql://localhost:3306/javatest?autoReconnect=true', cause:
> >java.sql.SQLException: No suitable driver
> >   at java.sql.DriverManager.getDriver(DriverManager.java:243)
> >   at 
> > org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743)
> >   at 
> > org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:576)
> >   at 
> > org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1087)
> >   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
> >   at javax.servlet.GenericServlet.init(GenericServlet.java:256)
> >   at 
> > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
> >   at 
> > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
> >   at 
> > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3427)
> >   at 
> > org.apache.catalina.core.StandardContext.start(StandardContext.java:3628)
> >   at 
> > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
> >   at 
> > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
> >   at 
> > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
> >   at 
> > org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
> >   at 
> > org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
> >   at 
> > org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
> >   at 
> > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
> >   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
> >   at 
> > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
> >   at 
> > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
> >   at 
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
> >   at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
> >   at 
> > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
> >   at 
> > org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
> >   at 
> > org.apache.catalina.core.StandardService.start(StandardService.java:497)
> >   at 
> > org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
> >   at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
> >   at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
> >   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> >   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >   at 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >   at 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >   at java.lang.reflect.Method.invoke(Method.java:324)
> >   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> >
> >I've put the following in struts-config.xml. Do I need to add
> >something to server.xml and web.xml too?
> >
> >
> >
> >
> >
> >
> > >value="jdbc:mysql://localhost:3306/javatest?autoReconnect=true" />
> >
> >
> > >/>
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> ===
> Dipl.-Inf. Manfred Wolff
> Software Engineer
> ---
> http://www.manfred-wolff.de
> http://www.struts-it.org
> http://www.unartigen.de
> ---
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Re: Structs

2005-10-03 Thread Kumar deepak
Please visit http://www.roseindia.net/struts

"Pentareddy, Marreddy (US - Hyderabad)" <[EMAIL PROTECTED]> wrote:I am new to 
struts ..


Please give idea abt setting paths and war files to copy.

Marreddy.p

-Original Message-
From: Tamas Szabo [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 5:36 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Serializable

Hi,


But (this is OT): how do you stop Tomcat from doing so? I looked in the
> Tomcat 5.0.x doc and just found nothing really helpful.



http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/manager.html

If you want to stop Tomcat doing this for a webapp only
put a META-INF/context.xml in your WAR with the following content:







If you want to stop Tomcat doing this for all webapps you can do the
same in
${CATALINA_HOME}/conf/context.xml
In this file you even have a comment:


 Uncomment this to disable session persistence across Tomcat restarts

 -->
- 


-->

Tamas 


This message (including any attachments) contains confidential information 
intended for a specific individual and purpose, and is protected by law. If you 
are not the intended recipient, you should delete this message. 


Any disclosure, copying, or distribution of this message, or the taking of any 
action based on it, is strictly prohibited. [v.E.1]

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




-
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Re: New to Struts

2005-07-13 Thread Kumar deepak
Hello,
 
This is also a good tutorial http://www.roseindia.net/struts/
 
Deepak Kumar


"[Gmail] LunLun" <[EMAIL PROTECTED]> wrote:
Hello,


1) can someone recommend me a good struts book and/or online tutorial to help 
me get started quickly.
I found these two books interesting:

Struts in Action
http://www.manning.com/books/husted
(the source code is available here:
http://www.manning.com/books/husted/source )


Jakarta Struts for Dummies
http://www.amazon.com/exec/obidos/tg/detail/-/0764559575/ref=pd_sxp_f/102-8775537-9281749?v=glance&s=books


Hope it helps,
LunLun
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: validwhen question, I'm getting crazy :'((

2005-06-21 Thread Kumar deepak
Hi,
 
There is a nice tutorial at 
http://www.roseindia.net/struts/address_struts_validator.shtml
 
This will help you
 
Regards


Andrey Grishin <[EMAIL PROTECTED]> wrote:
Good morning/day/evening, All!
I use Struts 1.2.6.
1. I took struts-blank.war application, deploy it under the Tomcat 4.1.29
2. Created login.jsp








validateLogonForm(this);" focus="login" action="/Welcome">


Username



Password












3. I used logonForm definition and validations from struts-blank.war
--- excerpt from struts-config.xml ---
type="org.apache.struts.action.DynaActionForm">



-
--- excerpt from validation.xml ---








-
All javascript validations worked!!!
But when I changed the validation.xml to
--- excerpt from NEW validation.xml ---







test
(*this* == username))



-
There was NO validation for password field. No javascript code was generated 
for validwhen. No exceptions in log. NOTHING...
The only difference I made from working example is change of "required" 
validator to "validwhen" validator in validation.xml. So, all 
field/form/other names are correct.

What's wrong with me/validwhen/the way I use validwhen/anything else?!?!?!?!
Any ideas will be appreciated.

P.S. Can anyone send me a minimal example application with working validwhen 
to andryxagmail.com?

Regards, Andrey Grishin.




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



-
Yahoo! Mail
 Stay connected, organized, and protected. Take the tour

RE: Problem with logic:iterate Tag

2005-06-09 Thread Deepak Srivatava
Any guess whats happening wrong here?,

the output is as follows

 4thCol 4thCol 4thCol 4thCol
 4thCol 4thCol 4thCol 4thCol

But the correct output should be as follows

 1stCol 2ndCol 3rdCol 4thCol
 1stCol 2ndCol 3rdCol 4thCol


Deepak

-Original Message-
From: Deepak Srivatava [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 6:57 PM
To: user@struts.apache.org
Subject: Problem with logic:iterate Tag


I am populating following simple List in action class and putting that in form 
class.
 
private List getSystemTableList(ConfWizardBean confwizbean, HttpSession 
session){
ArrayList outerList = new ArrayList();
for (int i = 0; i < 2; i++)
{
ArrayList innerList = new ArrayList();
 
innerList.add(0,"Ist Column");
innerList.add(1,"2nd Column");
innerList.add(2,"3rd column");
innerList.add(3,"4th Column");
outerList.add(innerList);
}
return outerList;
}
 
relevant JSP code is as follows
 

  <%-- Iterate through the system list --%>
  
  
  
  

  
  
  
  

   
   
   
   
  
  
  
 
I am trying to print the above list in Jsp page but it always print the value 
"4th Column" in all the four columns of HTML. Somehow it always uses the 
offset=3. What I am doing wrong here?.
 
Deepak


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



Problem with logic:iterate Tag

2005-06-08 Thread Deepak Srivatava
I am populating following simple List in action class and putting that in form 
class.
 
private List getSystemTableList(ConfWizardBean confwizbean, HttpSession 
session){
ArrayList outerList = new ArrayList();
for (int i = 0; i < 2; i++)
{
ArrayList innerList = new ArrayList();
 
innerList.add(0,"Ist Column");
innerList.add(1,"2nd Column");
innerList.add(2,"3rd column");
innerList.add(3,"4th Column");
outerList.add(innerList);
}
return outerList;
}
 
relevant JSP code is as follows
 

  <%-- Iterate through the system list --%>
  
  
  
  

  
  
  
  

   
   
   
   
  
  
  
 
I am trying to print the above list in Jsp page but it always print the value 
"4th Column" in all the four columns of HTML. Somehow it always uses the 
offset=3. What I am doing wrong here?.
 
Deepak



Re: Regarding All

2005-06-04 Thread Kumar deepak
Hi, 
 
You can add the Resultset data into a java bean and then set the Bean in the 
request object and then use in jsp page.
 
Regards
Deepak Kumar


raja buddha <[EMAIL PROTECTED]> wrote:
Hi all
I am new to struts. Can any body know how to get the ResultSet 
Objcet that is there in the Action Calls in to the View JSP.
My Question is i have write the DB aceess in the Action class in that class 
my query returns a result set i need to loop the result set and display the 
results in the view jsp

Thanks in advance

Raj

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


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



-
Discover Yahoo!
 Find restaurants, movies, travel & more fun for the weekend. Check it out!

Re: Validators

2005-05-09 Thread Kumar deepak
Please visit

http://www.roseindia.net/struts/address_struts_validator.shtml


its good tutorial.

Regards

--- Metal KoRn <[EMAIL PROTECTED]> wrote:
> Hi guys I would like to validate a password and a
> confirm_passwrod
> fields to match, how can i do this validation with
> the struts
> validator.
> 
> The other is to VALIDATE if a  field
> value is > 0
> 
> Someone could help me with this??
> 
> thanx.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



RE: html:cancel

2005-05-04 Thread deepak
You can specify the "value" attribute with 

>> Try using
>>
>> 
>
> Hmm, I'll have to look at this.  My reason for not using 
> is that I need to specify the "value" as a message resources property.
>
>> " onclick="bCancel=true;" type="submit">
>
> Thanks.
>
> - Dave
>
> - 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: html:cancel

2005-05-04 Thread deepak
Try using



or

" onclick="bCancel=true;" type="submit">


> I've got a jsp chunk like this:
>
> value="">
>
>
> And this code in an action:
>
> if (isCancelled(request)) {
> // do something
> }
>
> When I click cancel, isCancelled(request) returns false.  Checking the
> Action.isCancelled() method reveals that it looks for a request
> attribute not a request parameter.  That doesn't seem right to me.
> Anyone care to shed some light on this.  Maybe I'm missing something
> obvious.
>
> Thanks,
>
> DAve
>
> - 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: [Struts Validator] JavaScript Validations

2005-04-13 Thread Kumar deepak
Have a look at
http://www.roseindia.net/struts/address_struts_validator.shtml

Regards
Deepak Kumar

--- "Rosario, Blossom"
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am trying to use client as well as server-side
> validations using the
> Struts Validator.
> 
> The mapping in the Struts config file is
>  
>
type="com.pampers.registration.action.RegisterAction"
>   name="registerForm"
>   scope="session"
>   validate="true"
>   input="/registration/reg_login.jsp"
>   parameter="method">
>   
> 
> 
> 
> The corresponding reg_login.jsp page has the
> following lines to enable the
> client-side validations for the login page:
> 
>  onsubmit="return
> validateRegisterForm(this);"> 
> and
> 
> 
> 
> Now, when I submit the login page, the client-side
> validations are not
> performed. When I do a view source, the dynamically
> generated
> validateRegisterForm function has the following code
> in it:
> 
>  language="Javascript1.1"> 
> 
> <!-- Begin 
> 
>  var bCancel = false; 
> 
> function validateRegisterForm(form) {
> 
> if (bCancel) 
>   return true; 
> else 
>return true; 
>} 
> 
> //End --> 
> 
> 
> 
> 
> This is a snippet of validation.xml
>
>  
>
>   
>
>
>
>
> 
> 
> Would appreciate if somebody could throw light as to
> why the client side
> validations are not being invoked.
> 
> Thanks and Regards,
> Blossom
> 
>   
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

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



Re: Beginner Question: Which is the Best place to start

2005-04-12 Thread Kumar deepak
Hi Balaji,
 
Please visit http://www.roseindia.net/struts/
tutorial is with running example.
 
Following topics are covered:

Many advance topics like Tiles, Struts Validation Framework, Java Script 
validations are covered in this tutorial. 

   Introduction to the Apache Struts
This lesson is an introduction to the Struts and its architecture.
 
   Introduction to the Struts Controller
This lesson is an introduction to Controller part of the Struts Framework.
 
   Introduction to the Struts Action Class
This lesson is an introduction to Action Class of the Struts Framework.
 
   Using Struts ActionFrom Class
This shows how to create user interface form using struts ActionFrom class and 
jsp page.
 
   Using Struts HTML Tags
Section shows you the different types of Struts HTML Tags available for the 
development of views in JSP.
 
   Introduction to Struts Validator Framework
Struts Framework provides the functionality to validate the form data. It can 
be use to validate the data on the users browser as well as on the server side. 
 
   Client Side Address Validation in Struts
In this lesson we will create JSP page for entering the address and use the 
functionality provided by Validator Framework to validate the user data on the 
browser. 
 
   Developing Application with Struts Tiles
In this lesson we will create Struts Tiles Applications. 
 
   Using tiles-defs.xml in Tiles Application
In this lesson you will learn how to define and use the "plugin" definitation 
in tiles-defs.xml file. 
 
Regards
Deepak Kumar

"Balaji H. Kasal" <[EMAIL PROTECTED]> wrote:

Hi,

I am quite new to Struts. Please let me know which is the best place to 
start with. I am interested to start learning from examples.

Thanks in advance.

--Balaji

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



-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

RE: New to Struts

2005-04-06 Thread Kumar deepak
Please to to http://www.roseindia.net/struts
its nice tutorial

--- Ruben Cepeda <[EMAIL PROTECTED]> wrote:
> Balajj,
> 
> I would go to the struts home page and start looking
> thru the documentation 
> and tutorial.  Here is a link:  
> http://struts.apache.org/userGuide/index.html to the
> user guide it come in 
> handy.
> 
> *
> Ruben Cepeda
> [EMAIL PROTECTED]
> *
> 
> 
> 
> Original Message Follows
> From: "Balaji H. Kasal" <[EMAIL PROTECTED]>
> Reply-To: "Struts Users Mailing List"
> 
> To: user@struts.apache.org
> Subject: New to Struts
> Date: Mon, 4 Apr 2005 17:27:26 +0530 (IST)
> 
> 
> Hi,
> 
> I am quite new to struts. Please guide me which is
> the best place to start. 
> I will prefer to start with Struts example ()src
> code).
> 
> 
> Thanks in advance.
> 
> --Balaji
> 
>
-
> 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]
> 
> 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: New to Struts

2005-04-04 Thread Kumar deepak
Hi,

Please visit http://www.roseindia.net/struts/

They provide example with running code.

Many advance topics like Tiles, Struts Validation
Framework, Java Script validations are covered in this
tutorial. 

Introduction to the Apache Struts
This lesson is an introduction to the Struts and its
architecture.
 
Introduction to the Struts Controller
This lesson is an introduction to Controller part of
the Struts Framework.
 
Introduction to the Struts Action Class
This lesson is an introduction to Action Class of the
Struts Framework.
 
Using Struts ActionFrom Class
This shows how to create user interface form using
struts ActionFrom class and jsp page.
 
Using Struts HTML Tags
Section shows you the different types of Struts HTML
Tags available for the development of views in JSP.
 
Introduction to Struts Validator Framework
Struts Framework provides the functionality to
validate the form data. It can be use to validate the
data on the users browser as well as on the server
side. 
 
Client Side Address Validation in Struts
In this lesson we will create JSP page for entering
the address and use the functionality provided by
Validator Framework to validate the user data on the
browser. 
 
Developing Application with Struts Tiles
In this lesson we will create Struts Tiles
Applications. 
 
Using tiles-defs.xml in Tiles Application
In this lesson you will learn how to define and use
the "plugin" definitation in tiles-defs.xml file. 
 

Good Luck
--- Jan-Jaap Endenburg - Vera <[EMAIL PROTECTED]> wrote:
> I have had a lot of help from:
> 
> www.sourcebeat.com: sample chapter of book
> 'Jakarta Struts Live'
> 
> Good luck,
> Jan-Jaap
> 
> Balaji H. Kasal wrote:
> 
> >
> > Hi,
> >
> > I am quite new to struts. Please guide me which is
> the best place to 
> > start. I will prefer to start with Struts example
> ()src code).
> >
> >
> > Thanks in advance.
> >
> > --Balaji
> >
> >
>
-
> > 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]
> 
> 



__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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



Re: a *simple* tiles tutorial

2005-02-21 Thread Kumar deepak
HI,
 
Another good simple title tutorial is available at:

http://www.roseindia.net/struts/struts_tiles.shtml
 
In this section shows you how to develop simple Struts Tiles Application. You 
will learn how to setup the Struts Tiles and create example page with it.
 
 
Regards
Deepak Kumar
 

Tim Christopher <[EMAIL PROTECTED]> wrote:
I have two tiles related links in my favourites - one is the link you
already have and the other is
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html .

I found it to be a good introduction to Tiles when I was first looking
in to it. Note that the source code for all of the ideas it mentions
are available to download at the bottom of the page.

Tim Christopher

On Mon, 21 Feb 2005 15:32:15 -0500, David Johnson wrote:
> All
> 
> I'm searching for (as the title suggests) a simple Tiles tutorial.
> 
> I have found the one by Cedric D, but I think it's assuming more
> knowledge than I have
> (http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf)
> 
> Can anyone point me?
> 
> --
> -Dave
> [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]


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: javascript validation in struts

2005-02-15 Thread Kumar deepak
Hi,
 
Please visit http://www.roseindia.net/struts/struts_validator_framework.shtml
 
Regards
Deepak kumar

Jonathan M Z <[EMAIL PROTECTED]> wrote:
Hi folks,
I am trying to understand struts validation from some
example code, it has something like this:

action="signin" method="post">

validateSigninForm is a javascript validation. I
looked up in validation.xml and validator-rules,
neither this javascript function nor anything contain
the word "signin" is to be found, so how does struts
do its magic clientside validation? (the jsp itself
obviously does not have this javasription function
either.
thanks!



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 



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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Struts 1.2.6 release??

2005-02-06 Thread Kumar deepak
Can anyone explains the new features in struts 1.2.6.

Regards
Deepak Kumar

--- Jason Long <[EMAIL PROTECTED]>
wrote:

> Yes it is the word beta.  I am building a new app
> which is much larger than
> anything my company has previously produced.  I just
> do not need any more
> complications than I already have.  More than likely
> there will be a new
> production version available by the time we reach
> production.  Also, can
> anyone point me to the most current information on
> Shale?  I have seen it
> has been accepted, but that is all I have seen.  
> 
> -Original Message-
> From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
> Sent: Monday, February 07, 2005 12:29 AM
> To: Struts Users Mailing List
> Subject: Re: Struts 1.2.6 release??
> 
> From: "Jason Long"
> <[EMAIL PROTECTED]>
> > I see some features that I would like to use in
> the taglibs that are after
> > 1.2.5.  I only see 1.2.6 beta available for
> download.  What is the 
> > timeframe
> > for a final release for 1.2.6 and was 1.2.5
> skipped?
> 
> What's stopping you from using 1.2.6?  (And I don't
> mean to be flip-- is it 
> just the word "beta" next to it that's making you
> hesitate?)  Someone will 
> correct me if I'm wrong, but I think the 1.2.6
> release is what it is-- there
> 
> won't be a "final" release with the same number. 
> This one may get voted to 
> be 'production release' quality, or it may not.
> 
> The best way to get it 'promoted' is to use it and
> report back that it works
> 
> (or file some bugs if it doesn't.)  If that's not an
> option, waiting works 
> too. :)
> 
> Here's a thread from December about much the same
> thing:
>
http://www.mail-archive.com/user@struts.apache.org/msg17576.html
> 
> The 1.2.5 release must not have gotten very far, I
> don't remember it.  But 
> the release notes are on the same page with 1.2.6: 
>
http://struts.apache.org/userGuide/release-notes.html
> 
> -- 
> Wendy Smoak 
> 
> 
> 
>
-
> 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]
> 
> 




__ 
Do you Yahoo!? 
Yahoo! Mail - 250MB free storage. Do more. Manage less. 
http://info.mail.yahoo.com/mail_250

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



Re: struts and java script and jsp

2005-02-01 Thread Kumar deepak
Hi,

Please have a look at:
http://roseindia.net/struts/address_struts_validator.shtml

Tutorial shows you how to validate using sturts
generated java scripts. 

Regards
Deepak Kumar

--- Hanson Char <[EMAIL PROTECTED]> wrote:

> > Then, where does it come up with "username"?
> 
> Could it be that you have "username" specified in
> validator.xml ?
> 
> H
> 
> On Tue, 1 Feb 2005 11:22:48 +0100, Cedric Levieux
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > 
> > You have this JavaScript code cause you ask into
> the  tag the
> > ability to focus on a form field.
> > 
> > But btw I don't understand why the javascript code
> didn't work :p
> > 
> > Regards,
> > 
> > Cedric
> > - Original Message -
> > From: "Nadia Kunkov" <[EMAIL PROTECTED]>
> > To: "Struts help (E-mail)"
> 
> > Sent: Tuesday, January 25, 2005 5:20 PM
> > Subject: struts and java script and jsp
> > 
> > Hi,
> > 
> > I'm not sure if this question is really about
> struts even though it occures
> > in my struts application.  My apologies if this is
> a bit off topic.
> > I have a jsp logon page with two input fields
> "userId' and "password"
> > I of course have a corresponding ActionForm with
> the same attributes.
> > When I open my Logon page in Mozilla I have no
> problem whatosever.
> > When I open it in IE it's done with errors on page
> and  I have the following
> > message:
> >
>
document.forms["logonForm"].elements["username"].type
> is null or not an
> > object
> > 
> > When I looked at the page source I saw the
> following javascript added:
> > 
> > <!--
> > if
>
(document.forms["logonForm"].elements["username"].type
>  != "hidden"
> >
>
document.forms["logonForm"].elements["username"].focus()
> > //-->
> > 
> > 
> > I'm wondering why this javascript is being added
> and does it have anything
> > to do with struts?
> > Also, could the problem be that it refers to
> element["username"] that does
> > not exist in my jsp, since I have "userId"?
> > Then, where does it come up with "username"?
> > How do I get around it?
> > Should I change my form to have "username"?
> > 
> >
>
-
> > 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]
> 
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Tomcat in Virtual hosting environment

2005-01-26 Thread Kumar deepak
How to intall tomcat in virtual hosting environment.

Regards
Deepak Kumar




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: XML date validation

2005-01-13 Thread deepak
Thanks Joe.

- Original Message - 
From: "Joe Germuska" <[EMAIL PROTECTED]>
To: "deepak" <[EMAIL PROTECTED]>; "Struts Users Mailing List"

Sent: Wednesday, January 12, 2005 7:41 PM
Subject: Re: XML date validation


> At 5:04 PM +0530 1/12/05, deepak wrote:
> >Hi,
> > Using XML date validation, how do I check if the entered date is
> >in the future or not ?
>
> If by "XML date validation", you mean the commons-validator framework
> and ValidatorForm or a class derived from it, there is no built-in
> support for this.  On the other hand, it is possible to write custom
> validator classes, register them by name in the config file, and then
> use the name as one of the values in the "depends" attribute of your
> per-form validation.
>
> Have a look at the validator-rules.xml file and the
> org.apache.struts.validator.FieldChecks class for some idea of how
> this is done.  I'll admit that I don't find it extremely
> straightforward, but you can get pretty far by copying what comes
> built in to Struts.
>
> Joe
>
>
> >Thanks
> >
> >--Deepak
>
>
> -- 
> Joe Germuska
> [EMAIL PROTECTED]
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

***
This email (which includes any files transmitted with it) is intended
for the above named only. It may contain privileged, confidential or
price sensitive information. If you are not the intended recipient,
please notify the sender immediately and destroy all copies of this
email, as well as deleting the email from your computer system. This
email is protected by copyright. If you are not the intended recipient,
you are not entitled to use, disclose or copy the email or rely on it
in any way whatsoever.
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: XML date validation

2005-01-12 Thread deepak
Thanks Erik.

- Original Message - 
From: "Erik Weber" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, January 12, 2005 5:08 PM
Subject: Re: XML date validation


> Author your own pluggable validator. See the Struts doc on this. I
> recently posted an example that you can probably use as a place to start
> (pasted below).
>
> Erik
>
>
>
> deepak wrote:
>
> Hi,
> Using XML date validation, how do I check if the entered date is in
the future or not ?
>
> Thanks
>
> --Deepak
>
>
>
>  Original Message 
> Subject: Re: Hmm... i will go crazy due to validation
> Date: Wed, 05 Jan 2005 05:40:26 -0500
> From: Erik Weber <[EMAIL PROTECTED]>
> To: Struts Users Mailing List 
> References: <[EMAIL PROTECTED]>
>
>
>
> This is not a direct answer to any of your questions but perhaps it will
> spur your thinking.
>
> This is an example of using a custom ("pluggable") validator that makes
> sure a date entry is not only a real date, but that the date is within a
> desired range (seemingly you are wanting to do something similar to
> this). I wrote this for Struts 1.1. I don't know if there is something
> new and improved that would be better, but it works.
>
> >From validation.xml (you'll see the use of the "date" rule -- which
> uses the "datePattern" variable, as well as my custom "dateRange" rule
> -- which uses the "minDate" and "maxDate" variables):
>
> 
>  
>
>  datePattern
>MM/dd/
>
>
>  minDate
>01/01/1900
>
>
>  maxDate
>12/31/2030
>
>
>
>
>
> >From validator-rules.xml:
>
>classname="ValidationUtil"
> method="validateDateRange"
> methodParams="java.lang.Object,
>
> org.apache.commons.validator.ValidatorAction,
>
> org.apache.commons.validator.Field,
>
> org.apache.struts.action.ActionErrors,
>
> javax.servlet.http.HttpServletRequest"
>depends="required"
>msg="errors.dateRange"/>
>
>
> And finally the source of ValidationUtil:
>
>
> import javax.servlet.http.HttpServletRequest;
>
> import java.util.Date;
> import java.text.SimpleDateFormat;
>
> import org.apache.struts.action.ActionErrors;
> import org.apache.struts.validator.Resources;
> import org.apache.commons.validator.Field;
> import org.apache.commons.validator.ValidatorAction;
> import org.apache.commons.validator.ValidatorUtil;
> import org.apache.commons.validator.GenericValidator;
>
> public class ValidationUtil {
>
>  public static final String DEFAULT_FORM_DATE_PATTERN = "M/dd/";
>  public static final Date DEFAULT_MIN_DATE = getDefaultMinDate();
>  public static final Date DEFAULT_MAX_DATE = getDefaultMaxDate();
>
>  public static boolean validateDateRange(Object bean, ValidatorAction
> va, Field field, ActionErrors errors, HttpServletRequest request) {
>//if we're not properly configured to parse dates,
>//all date validation will fail
>if (DEFAULT_MIN_DATE == null || DEFAULT_MAX_DATE == null) return false;
>try {
>  String value = ValidatorUtil.getValueAsString(bean,
> field.getProperty());
>  Date date = getDate(value, DEFAULT_FORM_DATE_PATTERN);
>  Date minDate = getDate(field.getVarValue("minDate"),
> DEFAULT_FORM_DATE_PATTERN);
>  Date maxDate = getDate(field.getVarValue("maxDate"),
> DEFAULT_FORM_DATE_PATTERN);
>  if (date.compareTo(minDate) < 0 || date.compareTo(maxDate) > 0) {
>errors.add(field.getKey(), Resources.getActionError(request, va,
> field));
>return false;
>  }
>  return true;
>}
>catch (Exception e) {
>  e.printStackTrace();
>  errors.add(field.getKey(), Resources.getActionError(request, va,
> field));
>  return false;
>}
>  }
>
>  protected static Date getDate(String dateString, String pattern) {
>Date date = null;
>try {
>  SimpleDateFormat df = new SimpleDateFormat(pattern);
>  date = df.parse(dateString);
>}
>catch (Exception e) {
>  e.printStackTrace();
>}
>return date;
>  }
>
>  protected static Date getDefaultMinDate()

XML date validation

2005-01-12 Thread deepak
Hi,
Using XML date validation, how do I check if the entered date is in the 
future or not ?

Thanks

--Deepak

Could not deserialize the context attribute "org.apache.struts.action.REQUEST_PROCESSOR"

2004-12-27 Thread deepak



Hi,
Has anyone got 
this error :
could not deserialize the context attribute 
"org.apache.struts.action.REQUEST_PROCESSOR"
java.io.NotSerializableException: 
org.apache.struts.tiles.TilesRequestProcessor    
at 
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
 
    at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)    
at 
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:95)    
at 
weblogic.servlet.internal.AttributeWrapper.getObject(AttributeWrapper.java:67)    
at 
weblogic.servlet.internal.WebAppServletContext.getAttribute(WebAppServletContext.java:637)    
at 
org.apache.struts.action.ActionServlet.getProcessorForModule(ActionServlet.java:605)    
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1160)    
at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)    
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)    
at 
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)    
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)    
at 
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)    
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)    
at 
com.wagerworks.poker.common.standard.web.util.AuthenticationFilter.doFilter(AuthenticationFilter.java:76)    
at 
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)    
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)    
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)    
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)    
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)    
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)    
at 
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)    
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)>Dec 27, 
2004 7:00:33 PM org.apache.struts.tiles.TilesRequestProcessor 
initDefinitionsMapping
 
We are using Struts 2.4.
 
Thanks
 
Deepak
***
Our company accepts no liability for the content of this email, or for
the consequences of any actions taken on the basis of the information
provided, unless that information is subsequently confirmed in writing. 
If you are not the intended recipient you are notified that
disclosing, copying, distributing or taking any action in reliance on
the contents of this information is strictly prohibited.
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Offtopic: Best book J2EE Design patterns

2004-09-09 Thread Deepak
http://www.corej2eepatterns.com/Patterns2ndEd/index.htm

- Original Message - 
From: "Janarthan Sathiamurthy" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, September 09, 2004 1:52 PM
Subject: Offtopic: Best book J2EE Design patterns


Hi,

 

Can any one suggest a good book for Design patterns in J2EE?

 

Regards,

Janarthan S





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



Re: Antwort: Re: problem with multibox

2004-09-07 Thread Deepak
 Form:
--- 
 public ArrayList getTest() {
return mTest;
  }

  public void setTest(ArrayList test) {
mTest = test;
  }

  public Item getItem(int i) {
return (Item)mTest.get(i);
  }

  private ArrayList mTest;
  
JSP:
-







- Original Message - 
From: "Claudia Woestheinrich" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 07, 2004 4:29 PM
Subject: Antwort: Re: problem with multibox


> 
> ..Thanks that works.
> 
> Now I have  in the JSP-Page checkboxes and textfields. I want to
> write
> the two values (test,info) in an Map or Array[][]. How must I do
> this
> in the ActionForm?
> 
> Thanks
> Claudia
> 
> My 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]



Re: problem with multibox

2004-09-07 Thread Deepak
Try,





   

   
 

- Original Message - 
From: "Claudia Woestheinrich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 07, 2004 1:21 PM
Subject: problem with multibox


> Hi,
> 
> I have a Problem with using multiboxes. I want to generate following
> HTML-Code:
> 
> Ronja
> Petra
> Heini
> 
> But I became:
> 2002 Ronja
> 2003 Petra
> 2004 Heini
> 
> What must I do???
> Thanks
> Claudia
> 
> My JSP-Code:
> 
>  
> 
> 
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> And my ActionForm:
> 
> public class MyForm extends ActionForm{
> 
> /** Creates a new instance of MyForm */
> public MyForm() {
> MyBean eins=new MyBean();
> eins.setJahr("2002");
> eins.setName("Ronja");
> 
> MyBean zwei=new MyBean();
> zwei.setJahr("2003");
> zwei.setName("Petra");
> 
> MyBean drei=new MyBean();
> drei.setJahr("2004");
> drei.setName("Heini");
> 
> init=new Object[3];
> init[0]=eins;
> init[1]=zwei;
> init[2]=drei;
> 
> 
> }
> 
> private Object[] items, init,sel;
> 
> 
> public Object[] getItems(){
> return items;
> }
> 
> public void setItems(Object[] v){
> items=v;
> }
> 
> public Object[] getSel(){
> return sel;
> }
> 
> public void setSel(Object[] selected){
> sel=selected;
> }
> 
> 
> 
> public void reset(ActionMapping mapping,HttpServletRequest req){
> System.out.println("bin in reset");
> 
> items=new Object[3];
> items=init;
> 
> }
> 
> }
> 
> 
> -
> 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: ActionForm and Transfer Object

2004-08-26 Thread Deepak
By having a TO in my form bean , I still use validate and reset methods.

e.g.

Check validity of user.getName() in validate method

Where my jsp field is


UserForm has

getUser() and setUser() methods

And as far as TOs are concerned they are auto-generated during build process

- Original Message -
From: "Yves Sy" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, August 26, 2004 1:16 PM
Subject: RE: ActionForm and Transfer Object


The problem with that approach is you'll end up putting your validation
code in your TO and you'll have to write your own error handling routine
too. If you use ActionForms, you can save time by taking advantage of
Struts' error handling mechanism via the validate() method and checkbox
handling via the reset() method.

Regards,
-Yves-

> -Original Message-
> From: Deepak [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 3:23 PM
> To: Struts Users Mailing List
> Subject: Re: ActionForm and Transfer Object
>
>  I like passing a TO into the ActionForm so it gets updated by the jsp
> submission and is ready for being sent back over to the business tier.
>
> - Original Message -
> From: "Leandro Melo" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 25, 2004 11:26 PM
> Subject: Re: ActionForm and Transfer Object
>
>
> > Sure Rick, and "where should me do it" might be a good
> > discussion (like the one that we`re all going on right
> > now).
> >
> > A few months ago i had a similar discussion in a
> > forum.
> > Is someone is interested to hear more opinions, here
> > it is
> >
>
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=5
8&t=
> 002880
> >
> >
> >
> >  --- Rick Reumann <[EMAIL PROTECTED]> escreveu:
> > > Leandro Melo wrote:
> > > > Rick,
> > > > i agree with you, i also use BeanUtils to populate
> > > my
> > > > forms.
> > > > But, this doesn't go far way from having your
> > > > ActionForms dependent on your TOs (or CustomTOs,
> > > > doesn' t matter).
> > >
> > > Well I wouldn't say they are 'dependent' on each
> > > other except that it
> > > makes it easier if the property names match. Think
> > > about it, at some
> > > point you are always going to have some sort of
> > > binding match up going
> > > on. Something somewhere along the line has to bind a
> > > request parameter
> > > name (which is just a key in a Map) to the real
> > > business object
> > > property. You can devise different ways to do this
> > > and look at how other
> > > frameworks handle it, but somewhere this has to be
> > > done.
> > >
> > > --
> > > Rick
> > >
> > >
> >
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> >
> > ___
> > Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!
> > http://br.acesso.yahoo.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]


-
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: ActionForm and Transfer Object

2004-08-26 Thread Deepak
 I like passing a TO into the ActionForm so it gets updated by the jsp
submission and is ready for being sent back over to the business tier.

- Original Message -
From: "Leandro Melo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 2004 11:26 PM
Subject: Re: ActionForm and Transfer Object


> Sure Rick, and "where should me do it" might be a good
> discussion (like the one that we`re all going on right
> now).
>
> A few months ago i had a similar discussion in a
> forum.
> Is someone is interested to hear more opinions, here
> it is
>
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=
002880
>
>
>
>  --- Rick Reumann <[EMAIL PROTECTED]> escreveu:
> > Leandro Melo wrote:
> > > Rick,
> > > i agree with you, i also use BeanUtils to populate
> > my
> > > forms.
> > > But, this doesn't go far way from having your
> > > ActionForms dependent on your TOs (or CustomTOs,
> > > doesn' t matter).
> >
> > Well I wouldn't say they are 'dependent' on each
> > other except that it
> > makes it easier if the property names match. Think
> > about it, at some
> > point you are always going to have some sort of
> > binding match up going
> > on. Something somewhere along the line has to bind a
> > request parameter
> > name (which is just a key in a Map) to the real
> > business object
> > property. You can devise different ways to do this
> > and look at how other
> > frameworks handle it, but somewhere this has to be
> > done.
> >
> > --
> > Rick
> >
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
>
>
>
> ___
> Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade!
> http://br.acesso.yahoo.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: ActionForm and Transfer Object

2004-08-25 Thread Deepak
If you make TO part of your form, life will be much easier.

e.g.

public class PlayerDetailsForm extends ValidatorForm {
  private PlayerDetailsTO mPlayer;
  public void setPlayerDetails(PlayerDetailsTO player) {
mPlayer = player;
  }

  public PlayerDetailsTO getPlayerDetails() {
return mPlayer;
  }
}

- Original Message - 
From: "Sebastian Ho" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 25, 2004 11:52 AM
Subject: ActionForm and Transfer Object


> Hi
> 
> People have been telling me that ActionForm should not be dependent on
> your TO. Simple because actionForm is for presentation and TO for your
> business requirement. Sounds logical and right way to go.
> 
> Now that I started developing using struts, it is actually not that
> simple. 
> 
> Say I retrieve a TO from database and convert it into a actionForm for
> display. In this case I have 4 fields for my actionForm but 10 in my TO.
> (6 are not needed for display). A user updates the 4 fields and the
> action convert those into TO. In this case, the other 6 fields will be
> reset to null(or empty) in my database!
> 
> To prevent this, I actually need to use hidden fields in my JSP or some
> other ugly solutions in my Action class. They are still dependent on
> each others afterall.
> 
> Is there a solution to this or I am missing something here?
> 
> Thanks
> 
> Sebastian Ho
> 
> 
> -
> 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: Refresh problem.

2004-08-18 Thread Deepak
Either redirect to the LIST page or use token for the Add page

- Original Message - 
From: "nitin dubey" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 5:40 PM
Subject: Re: Refresh problem.


> The user is refreshing on the LIST page. :)
> --- nitin dubey <[EMAIL PROTECTED]> wrote:
> 
> > Hello,
> > 
> > I have a page wherein I am listing a set of records.
> > 
> > This page also has a button for adding new record. 
> > Now if the user clicks the [Add New] button, adds
> > the
> > record(after which he is directed to the same
> > listing
> > page) and refreshes the same record is added once
> > more.  Here onwards every refresh ends up adding 1
> > more record to database.  Any suggesstions to get
> > rid
> > of this problem ?
> > 
> > I have tried  but no
> > success :(
> > 
> > 
> > nitin
> > 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
> 
> 
> __
> Do you Yahoo!?
> New and Improved Yahoo! Mail - 100MB free storage!
> http://promotions.yahoo.com/new_mail 
> 
> -
> 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]



Insert a SimpleMenuItem with a tiles tag

2004-08-18 Thread Deepak
Hi All,
Is it possible to insert a SimpleMenuItem with a tiles tag instead of using html 
tags ?

For ex.

If I have items defined as 


  


  


Now to display these items I can use
  

" >



Is there a "tiles way" to insert this tab ?

thanks n regards

Deepak






Re: logic:present jstl equivalent?

2004-08-18 Thread Deepak
Try 

--Do Something

--Deepak
- Original Message - 
From: "Dean A. Hoover" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 1:37 PM
Subject: logic:present jstl equivalent?


> I am attempting to change my application to
> use jstl wherever possible. Is there an equivalent
> in jstl for the logic:present tag?
> 
> For example, I use:
> 
> 
> 
> is there some way to do this in jstl?
> 
> Thanks.
> Dean Hoover
> 
> 
> -
> 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: Login and authentication

2004-08-17 Thread Deepak
Try

http://www.mooreds.com/jaas.html

thanks

Deepak

- Original Message -
From: "Leandro Melo" <[EMAIL PROTECTED]>
To: "struts jakarta" <[EMAIL PROTECTED]>
Sent: Tuesday, August 17, 2004 5:30 PM
Subject: Login and authentication


> Hi,
> i'm building a b2b application that must be released
> for testing in a few days.
>
> I got 1 very basic problem:
> - I don't know jaas
>
> The good point is that i need only a login module to
> go with Struts and jboss. It doesn't need to be
> definitie, but it must work.
>
> I don't know if by the fact i'm using struts, things
> should be implemented diferent (as i said, i don't how
> jaas works), that's why i'm sendind this e-mail.
>
> Does anyone know a short tutorial i can use?
>
>
>
>
>
> ___
> Yahoo! Acesso Grátis - navegue de graça com conexão de qualidade! Acesse:
http://br.acesso.yahoo.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]



  1   2   >