RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Sunil_Sahu
Sheetal, Did you check port number used by mail server. Thanks & Regards Sunil Sahu Sr. Software Engineer Ph. +91-124-4047100 Ext. 752 "Patil, Sheetal" <[EMAIL PROTECTED]> 06/16/2006 11:49 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject RE: urg

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Sunil_Sahu
Sheetal, I don't think there is any problem with network, because if you are able to ping it, then it should connect also by your program but for this you need the port number. You are also saying that smtp server is not on your network but it is clear from the ip address that both are using sam

Re: urgent- exception in sending e-mail from application

2006-06-15 Thread Sunil_Sahu
Sheetal, I think problem is with the port number only. Default port would always be 25 for the mail server and you are not specifying the any specific port number in your program it means it will pick the default port number but you should first check it with your network people that mail serve

Re: Action Forms in Session

2006-06-15 Thread Sunil_Sahu
Deepali, Following are the two methods of session object which you can use to get the all session attributes name and value: getAttributesName() : Return the Enumeration of String objects containing the name of all the objects bound in the session. getAttribute() :Return the o

Re: how to deal with request attributes and validation?

2006-05-12 Thread Sunil_Sahu
Dario, In this situation, in the "input" attribute of action-mapping, you should provide the action-mapping which you want to execute to populate your drop-down in jsp. Usually we provide the JSP page in "input" attribute, but when you have to forward to JSP through any action, you should provi

Re: Accessing List in JSP

2006-05-11 Thread Sunil_Sahu
Sonu, Make two changes in your code, it will definitely work.. 1. Add the following line in your Action Class: request.setAttribute("myForm",myForm); 2. Modify the JSP code Hope it helps. Thanks & Regards Sunil Sahu Sonu S <[EMAIL PROTECTED]

Re: problem while deployin

2006-05-11 Thread Sunil_Sahu
Anil, I think problem is with your validation.xml file. While doing the validation of a field (of form-bean) in validation.xml, we usually use the and element, and i think instead of writing element you have wrongly mentioned element somewhere in your validation.xml. Verify your validatio

Re: Problems fetching struts-config DTD

2006-05-11 Thread Sunil_Sahu
Niklas, I think there is nothing to do with any kind of validation. When you refer a doctype in your struts-config.xml file, it will verify it from DTD which is part of struts.jar, either you can put jar file in such a place that classloader can load it (web-inf/lib) or you can place DTD file i

RE: Developing and running Struts on Tomcat without an Internet Connection

2006-03-20 Thread Sunil_Sahu
Gurpreet, I have faced same problem and got the solution too. Actually I have taken struts-config.xml file from my old project and DOCTYPE in struts-config.xml was having old URL of apache given as bold in following doctype. http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> While

RE: simple struts example : HTTP 404

2006-01-05 Thread Sunil_Sahu
Rakesh, I think you should have following doctype in your struts-config.xml http://struts.apache.org/dtds/struts-config_1_2.dtd";> Currently you have following doctype: http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";> Please check this in your struts.jar file also. Doctype which i

RE: simple struts example : HTTP 404

2006-01-05 Thread Sunil_Sahu
Rakesh, Did you configure the mapping in "ActionServlet" and URL pattern "do". You should have following configuration in your web.xml: action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1

Re: how to display error messages from actions?

2005-11-21 Thread Sunil_Sahu
Add following entry in your resource bundle errors.header = errors.footer = errors.prefix= errors.suffix = Use in your jsp page, it will display error in separate row. hope it helps Sunil "Kanuri, Chand" <[EMAIL PROTECTED]> 11/21/2005 06:31 PM Please respond to "Struts Users Mailing List

Re: How to call a dispatch-Action from a link?

2005-11-21 Thread Sunil_Sahu
To specify the corresponding value of paramId, you can use only one of the following approaches: Specify only the paramName attribute - The named JSP bean (optionally scoped by the value of the paramScope attribute) must identify a value that can be converted to a String. Specify both the param

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Sunil_Sahu
ok , then you can access "abc" parameter in your action class from request object. "Nandakishore Nekkanti" <[EMAIL PROTECTED]> 11/21/2005 03:11 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: what is the use of parameter attribute in action

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Sunil_Sahu
"nanda" is method name in your Action class or you want to access "abc" parameter in your method of Action Class. "Nandakishore Nekkanti" <[EMAIL PROTECTED]> 11/21/2005 02:21 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: what is the use o

Re: what is the use of parameter attribute in action tag

2005-11-21 Thread Sunil_Sahu
Nandan, parameter attribute in action-mapping is used for method name. you can get the request parameters from request object itself in action class, no extra setting is required. Ex if you have any parameter in request as "type" then use String type = (String) request.getParameter("type"); H

Re: Can't build project because of unavailable dtd

2005-11-17 Thread Sunil_Sahu
Lionel, probably DOCTYPE which u have given in your xml file is not matching with the DOCTYPE in your struts.jar that why its trying to connect it to internet. check you DOCTYPE in xml and DTD in struts.jar. "Lionel" <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 11/17/2005 04:46 P

Re: Preventing users from resubmitting payment screen

2005-11-10 Thread Sunil_Sahu
Jadeler, If you are using struts, in your class you can use saveToken() method and isValidToken() method to revalidate the request. more detail you can get from struts site. hope it helps Sunil Jadeler <[EMAIL PROTECTED]> 11/10/2005 01:05 PM Please respond to "Struts Users Mailing List"

Re: Adding images to items in a drop down list

2005-10-19 Thread Sunil_Sahu
Faisal, Why you want to use image, you can use stylesheet. You may refer following code: New Document OPTION.mar{background-color:maroon; color:white} OPTION.red{background-color:red; color:maroon} OPTION.blue{background-color:blue; color:maroon} Select       Sunil Faisal Mah

Re: [ot]Date utilitiy to take date String, add a day, and return sql date?

2005-10-17 Thread Sunil_Sahu
noofDays is the Number of days which you want to add in the date. Laurie Harper <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 10/18/2005 10:33 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject Re: [ot]Date utilitiy to take date String, add a day,

Re: I am getting frustrated with LookupDispatchAction

2005-10-17 Thread Sunil_Sahu
Did you implement the getKeyMethodMap() method in the subclass of LookupDispatchAction. Sunil <[EMAIL PROTECTED]> 10/18/2005 03:48 AM Please respond to "Struts Users Mailing List" To cc Subject I am getting frustrated with LookupDispatchAction Hi. I am using struts 1.2.7. My strut

Re: [ot]Date utilitiy to take date String, add a day, and return sql date?

2005-10-17 Thread Sunil_Sahu
Mick, You can refer following code but still you have to convert the type in the last because this method returns string. public static String addDaysToDate( String strDate, String noofDays, String dateFormat ) throws Exception { Calendar calendar =

Re: Unit Testing of Action class which are using Spring - JDBCTemplate

2005-10-17 Thread Sunil_Sahu
Bakul, I am also facing same problem but mine is little bit different. I have written some code over spring(Wrapper class) so that might be creating problem for me but if you are using struts and spring directly then i think u can refer appfuse code(Matt Raiable), StrutsTestCase is being used

Re: problem with html:select / html:options

2005-10-13 Thread Sunil_Sahu
Troy, I think it should work like this Hope it helps Sunil Troy Bull <[EMAIL PROTECTED]> 10/13/2005 11:33 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject problem with html:select / html:options Hi I am trying to us

RE: action class not being called for repeat initial requests when using validation

2005-10-12 Thread Sunil_Sahu
John, Can you explain your problem little bit more, i am not getting your problem exactly. Sunil "John Andrews" <[EMAIL PROTECTED]> 10/12/2005 10:16 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" , "Martin Gainty" <[EMAIL PROTECTED]> cc Subject RE: actio

Re: Print out Bean value

2005-10-12 Thread Sunil_Sahu
Troy, You can use tag to display the value as text. Here is example show it like this : <%=(String)txtSecret%> Hope it helps. Sunil Troy Bull <[EMAIL PROTECTED]> 10/12/2005 08:25 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Print out Bean v

Re: html:text not interpreted :-(

2005-10-10 Thread Sunil_Sahu
Have u map it with form-bean. bib_lucene bib <[EMAIL PROTECTED]> 10/11/2005 11:54 AM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: html:text not interpreted :-( ok I attached files , I access this page using http://localhost:8090/rs/tiles

Re: Navigation menu help

2005-10-05 Thread Sunil_Sahu
Faisal, If you are using then you have to provide the path woth context name but better way is to use instead of . In your case, instead of using Home , you should use Home. It will definitely work. Sunil Faisal Mahmoud <[EMAIL PROTECTED]> 06/10/2005 04:51 Please respond to "Struts User

Re: encoding the session

2005-10-05 Thread Sunil_Sahu
are you using struts framework <[EMAIL PROTECTED]> 05/10/2005 18:12 Please respond to "Struts Users Mailing List" To cc Subject encoding the session Hi, Can anyone advise on how to encode the session Id so that a user cannot just type in the URL and get to the jsp? For example my

Re: Action mapping to a Tile

2005-10-05 Thread Sunil_Sahu
Greg, 1- create one layout.jsp: <%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles"; prefix="tiles" %> 2 - add following entry in struts-config.xml If you want you can use your own action, in that case you have to provide method and forward name

Re: chaining actions i think!!

2005-10-05 Thread Sunil_Sahu
Faisal, Why are you making different action classes for Search and Edit functionality. You can have these method in one Action class itself and then you can call the 'search action mapping' from 'edit action mapping' defined in struts-config.xml. If you want more detail that how to do it, let

Re: [OT] where to put the displaytag.properties file for i18n?

2005-09-30 Thread Sunil_Sahu
Hi leung, you can put displaytag.properties file under WEB-INF/classes folder and classloader will autmatically load it. There is no need to define that properties file in struts-config.xml because anyway you are not going to put this property file under any package structure. Keep this prope