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
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
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
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
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
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]
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
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
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
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
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
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
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
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
"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
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
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
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"
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
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,
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
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 =
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
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
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
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
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
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
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
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
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
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
32 matches
Mail list logo