Hi
I have face the same prob but couldnot find any tags in jsp for that
In action class when u put bean in array just check out for the required
condition/repetation like if some division is repeated then keep blank
that field in bean and then put it to arraylist and session
And use mailto:[EMAIL
Hi,
I'm trying to run a simple Web application with Struts Menu (based on sample
struts-menu.war from Struts Menu release). Under Tomcat it works very nice
but under Websphere AS 5.1 I'm getting a following exception:
SRVE0180I: [ws-menu] [/ws-menu] [Servlet.LOG]: /main.jsp: init
SRVE0026E: [Se
Hi,
I have one problem in displaying value of form bean in jsp page. In my
action class i am getting collection of formbean from database. Form bean
contains division, heading, date as property. From database I can get same
division name several times , so i want to display unique on jsp page.
Thanks Craig.
You were right. I just tured off ZoneAlarm and url rewriting switched
off after the first page. I must not have checked past the first page,
when I first tried testing whether it was ZoneAlarm.
--- Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 6/15/06, Mon Cab <[EMAIL P
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
Oh my mistake
Actually Our network is 10.9.57.*
And
Smtp is on 10.9.55.29
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 11:53 AM
To: Struts Users Mailing List
Cc: Patil, Sheetal
Subject: RE: urgent- exception in sending e
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
No smtp server is not on our network
Our network is 10.9.57.*
And
Smtp is on 10.9.57.29
-Original Message-
From: Mon Cab [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 11:32 AM
To: Struts Users Mailing List
Subject: RE: urgent- exception in sending e-mail from application
Is
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
On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote:
Thanks Craig
Tomcat is not only doing this on the first page, but also on all the
subsequesnt pages. And theres no jsessionid cookie in the cookie
folder. I also disabled the firewall, to see if the cookie was being
blocked there. Do you know ho
Is it the same network?
--- "Patil, Sheetal" <[EMAIL PROTECTED]> wrote:
> Ye I can ping to host
>
> Pinging smtp-host-name [IP] with 32 bytes of data:
>
> Reply from IP: bytes=32 time=361ms TTL=125
> Reply from IP: bytes=32 time=323ms TTL=125
> Reply from IP: bytes=32 time=326ms TTL=125
> Rep
Thanks Craig
Tomcat is not only doing this on the first page, but also on all the
subsequesnt pages. And theres no jsessionid cookie in the cookie
folder. I also disabled the firewall, to see if the cookie was being
blocked there. Do you know how something like this might happen?
--- Craig
Ye I can ping to host
Pinging smtp-host-name [IP] with 32 bytes of data:
Reply from IP: bytes=32 time=361ms TTL=125
Reply from IP: bytes=32 time=323ms TTL=125
Reply from IP: bytes=32 time=326ms TTL=125
Reply from IP: bytes=32 time=252ms TTL=125
Ping statistics for IP:
Packets: Sent = 4, Rec
On 6/15/06, Mon Cab <[EMAIL PROTECTED]> wrote:
Hi
All of a sudden tomcat has stopped settign session cookies. I have
been developing on my local machine for approx 1yr. Now, When I goto my
webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting
the URL as
http://127.0.0.1:8080/w
Are you on the same network as the SMTP host? Can you ping the host?
--- "Patil, Sheetal" <[EMAIL PROTECTED]> wrote:
> Hi thx for reply
>
> I have tried to use the authentication, as u describe but still the
> exception is same
>
> Thanks
> Shital
>
> -Original Message-
> From: Mo
session. getAttributes () will give you a list
Thanks and regards,
Pazhanikanthan. P (Paz)
Consultant for AXA,
HCL Australia Services Pty. Ltd.
Off : +61-3-9618-4085
Mob : +61-0411-354-838
"deepali sharma" <[EMAIL PROTECTED]>
16/06/2006 03:28 PM
Please respond to "Struts Users Mailing List"
Hi again
I have made some change in code like
Transport tran=session.getTransport ();
tran.send (message);
now this change is giving me exception like
javax.mail.NoSuchProviderException: Invalid protocol: null
so please help me to resolve this
Shital
-O
Hi
Recently I deployed an application in Tomcat. I am also facing the same
problem. And is there any way that I can change the session name instead of
jsessionID? My application uses another another session name as resin server
has that flexibilty.
Can any one help in this regard? It would be
Hi
We are using struts.And in our application we are putting all forms in
session.
After completing the transaction we are clearing the form values.
Is that after the transaction the forms are in session or will be deleted??
If I want to get which objects are in session how we can get that???
Is t
Hi thx for reply
I have tried to use the authentication, as u describe but still the
exception is same
Thanks
Shital
-Original Message-
From: Mon Cab [mailto:[EMAIL PROTECTED]
Sent: Friday, June 16, 2006 10:48 AM
To: Struts Users Mailing List
Subject: Re: urgent- exception in sending e
Hi
All of a sudden tomcat has stopped settign session cookies. I have
been developing on my local machine for approx 1yr. Now, When I goto my
webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting
the URL as
http://127.0.0.1:8080/webapp/Welcome.do;jsessionid=DAF0604E76E234C157A9BF
Patil
Your smtp server may require authentication. Find out and, if so, Add
the following lines to your code.
class MyAuthenticator extends Authenticator
{
protected PasswordAuthentication getPasswordAuthentication()
{
PasswordAuthentication pa =
Hello friends
I am trying to send mail from my application
Here is the code
Properties properties = System.getProperties ();
properties.put ("mail.smtp.host","smtp host name");
Session session = Session.getDefaultInstance
(properties,null);
Hello friends
I am trying to send mail from my application
Here is the code
Properties properties = System.getProperties ();
properties.put ("mail.smtp.host","smtp host name");
Session session = Session.getDefaultInstance
(properties,null);
Yes, I can do the below but I was going to try to avoid having to use
javascript to get the selected values and do the setting etc. Actually
what I came up with works pretty well and others might want to use it.
So here it is (for when you want to submit your form from a different
link/button to a
>From: "Craig McClanahan" <[EMAIL PROTECTED]>
>
> On 6/15/06, Gary VanMatre wrote:
> >
> > >From: "Wendy Smoak"
> > >
> > > On 6/15/06, Gary VanMatre wrote:
> > >
> > > > My second attempt was to add the cargo.jvmarg to the /shale-apps
> > pom.xml:
> > > >
> > > >
> > >>
> > > > ${artif
Can you do it in Javascript? something like the following:
Parent window:
onclick="openPopup();" >
Popup window
// getting multiple selected values from opener
// set selected values (will be a list) to hidden form field
// document.forms[0].multiSel1.value=
setTimeout(submitF
On 6/15/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:
>From: "Wendy Smoak" <[EMAIL PROTECTED]>
>
> On 6/15/06, Gary VanMatre wrote:
>
> > My second attempt was to add the cargo.jvmarg to the /shale-apps
pom.xml:
> >
> >
>>
> > ${artifactId}
> >
> >
> > org
>From: "Wendy Smoak" <[EMAIL PROTECTED]>
>
> On 6/15/06, Gary VanMatre wrote:
>
> > My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml:
> >
> >
>>
> > ${artifactId}
> >
> >
> > org.codehaus.cargo
>>cargo-maven2-plu
Carl,
Which application is giving you the session overflow message? Apache, IIS,
etc?
Regards,
John Walker
On 6/15/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
well it depends a lot on your application.
in a specific case concurrent sessions are greater than concurrent
users, but if you can
On 6/15/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:
My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml:
${artifactId}
org.codehaus.cargo
cargo-maven2-plugin
...
well it depends a lot on your application.
in a specific case concurrent sessions are greater than concurrent
users, but if you can drive your webapp stateless, you could have more
users than sessions.
However, typically each visitor of your site will get a new session,
even without logging so, so
Our app has a session over flow issue and I am trying to find out a correct
maximum sessions that the server can live with and the configure it. I was
confused when people say concurrent user and concurrent sessions. From your
answers it seems all my under sanding were close to be right.
On 6/15/06, Carl Smith <[EMAIL PROTECTED]> wrote:
(2)simply put, when you open one browser and visit a website, the
server(Websphere for example) creates one session, then if you open another
browser in the same computer, the sever will create another session. Is this
understanding correct?
Folks, I am working on some issues related to session. I would like to know
if the following are true:
(1) the number of the concurrent online user may or may not be the same as
the number of sessions
(2)simply put, when you open one browser and visit a website, the
server(Webspher
Hi,
sounds pretty much like our architecture, except we are using CORBA
instead of RMI (corba is faster).
Since RMI is pretty tied to java I would strongly encourage you to
write a java-file generator, which generates a facade on top of the
rmi interfaces, hiding error handling and de/marshaling
Hello All,
we need to integrate our Struts application with an RMI server. But we
don't know whether tapping into this RMI server (not EJB) would be an easy
thing to achieve and we have limited time to investigate. Has any one faced
a similar situation to this? Do we need to provide a client
next problem is...
in zipCode is code like this
i cant find out where ajax$address is defined and what it links to...
at all:
the ajax sample means that
after starting the sample the zipCode.jsp is loaded by faces-config.xml...
then while using te
You could generate files named like event.log.2006-05-03 using the
DailyRollingFileAppender. See
http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFi
leAppender.html Or you could write your own appender.
> -Original Message-
> From: Darren Hall [mailto:[EMAIL PROTECTE
>From: "Wendy Smoak" <[EMAIL PROTECTED]>
>
> On 6/15/06, Gary VanMatre wrote:
>
> > This is a bit off topic but does anyone know how to configure cargo to
> > start
> tomcat 5.5.x in debug mode so that you can attach in eclipse for interactive
> debuging? I've messed with the cargo.jvmargs bu
I like to put any basic validations like required fields, field size,
and content (alphanumeric, date format) into the form.
Anything that requires a database call or extended business logic I do
in the action and delegate it off to a business/DAO class.
I find it is easier to manage things if th
I'm just use to using it with Strings I guess and when I went to use
it with a HashMap it didn't work like I though it was suppose to. I
thought it alway created a new instance of the class regardless of
type String or not.
I understand not duplicating something built into JSP.
Thanks for the h
On 6/15/06, Vishal Seth <[EMAIL PROTECTED]> wrote:
Can there be some thing which can be looked at or any ideas on what
could be the better way to implement this sort of condition?
Do you really 'have' to bother using validate='true'? Personally, I
still find it much more conveineint to validat
I'm looking for advice on how to best handle this situation.
I have a form with several multi-select drop downs. There is a typical
submit button that submits the form. What I also have is another
button within the form called "preview distribution" which needs to
take the data on the form and up
On 6/15/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:
This is a bit off topic but does anyone know how to configure cargo to start
tomcat 5.5.x in debug mode so that you can attach in eclipse for interactive
debuging? I've messed with the cargo.jvmargs but didn't have any luck.
Hmmm... bett
The bean:define tag can create new attributes and scripting variables of
type String or create a copy of an existing bean or property on an
existing bean. The standard jsp:useBean covers creating a new instance
of any class with a default constructor, so why duplicate that
functionality in a Struts
Even I think a wrapper on commons validation would be required in this
sort of situation. Where the validations are fired on basis of a certain
filter.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 15, 2006 9:58 PM
To: Struts Users Mailing List
Subjec
Scott Van Wart wrote:
> Can you give an example? I'm still not completely positive I know
> what the problem is, and if you really need this kind of complexity.
I think he was asking if there was a way to declaratively define
validations based on runtime dynamics, like the user name.
This strike
Dave Newton wrote:
Scott Van Wart wrote:
The only problem there is you can't rely on the "input" attribute of
the action to return to the form and would have to use an action
forward instead
Why's that? I've been using mapping.getInputForward (or whatever the
method is).
You cut
Vishal Seth wrote:
Yep I agree. But writing plugins would not help as plugin would be
loaded during the application load time.
Can there be some thing which can be looked at or any ideas on what
could be the better way to implement this sort of condition?
Thanks for your help.
Can you give
Thanks, this works.
Can you explain to me why I couldn't do the same thing with bean:define?
On 6/15/06, Samere, Adam J <[EMAIL PROTECTED]> wrote:
There are probably numerous ways to accomplish this, what I like to do
is define/instantiate the Map using the tag, then set the
key/value pairs usi
There are probably numerous ways to accomplish this, what I like to do
is define/instantiate the Map using the tag, then set the
key/value pairs using the tag from JSTL.
You MUST to use
a concrete implementation of java.util.Map, not the interface.
Some Where
-Adam
-Original Message-
I get a can not set null value form paramsMap.
How do I specify the key, value pairs?
This is to pass into html:link name="" for request parameters when
they click on the link.
Thanks.
Shawn
-
To unsubscribe, e-mail: [EMAIL
Yep I agree. But writing plugins would not help as plugin would be
loaded during the application load time.
Can there be some thing which can be looked at or any ideas on what
could be the better way to implement this sort of condition?
Thanks for your help.
-Original Message-
From: Sco
Scott Van Wart wrote:
> The only problem there is you can't rely on the "input" attribute of
> the action to return to the form and would have to use an action
> forward instead
Why's that? I've been using mapping.getInputForward (or whatever the
method is).
Dave
I was following this article (MS Powerpoint presentation by James Turner) here:
http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt
When, I tried to cobble this all into a working example, if I left out multiple
values (in a four record grid), I'd get one struts validation error bac
Jennifer Jacobs wrote:
> How to do I turn OFF the validation for the subtotal calculation, etc.
> buttons?
That depends on how you turned it on.
I usually just talk real sweet to it with the lights low and some soft
jazz in the background.
If you're using automagic validation (validate='true')
Jennifer Jacobs wrote:
Hello,
I have a number of Struts forms that are using the Validator. This works
great except for on a couple of the forms. The ones in question have two
submit buttons on them. One updates the form somehow - calculates a
subtotal, or adds an attachment to a list of att
Abhimanyu Koul wrote:
hi all!
is there a way where we can access an attribute of actionform (in request scope) inside a jsp.
actually, i want to do some operations in jsp based on the value of a variable of the actionform.
Regards,
Abhimanyu Koul
FinEng Solutions (P) Ltd.
Mobile : +91 9819510
Vishal Seth wrote:
I got the first point mentioned where I would need to override the
validationKey method and not the second one.
Problem here is it is not only required during login time but throughout
the application there can be different validations for each form or some
of the forms. Hen
Hi All,
I am using the following i my struts-config. The problem is that when
the validations fail the application is not able to forward to the input
form as the contextRelative param is not false for it(I have no idea how
it can be done). Please suggest what should be done.
type=
Hello,
I have a number of Struts forms that are using the Validator. This works
great except for on a couple of the forms. The ones in question have two
submit buttons on them. One updates the form somehow - calculates a
subtotal, or adds an attachment to a list of attachments, etc. And the
I got the first point mentioned where I would need to override the
validationKey method and not the second one.
Problem here is it is not only required during login time but throughout
the application there can be different validations for each form or some
of the forms. Hence if I follow the fir
>From: "stephan opitz" <[EMAIL PROTECTED]>
>
> hello,
>
> it is ok...
>
> one can develop with eclipse & view it via
> mvn package cargo:start (start from console)
>
This is a bit off topic but does anyone know how to configure cargo to start
tomcat 5.5.x in debug mode so that you can att
hi all!
is there a way where we can access an attribute of actionform (in request
scope) inside a jsp.
actually, i want to do some operations in jsp based on the value of a variable
of the actionform.
Regards,
Abhimanyu Koul
FinEng Solutions (P) Ltd.
Mobile : +91 9819510090
thx...
unbelievable...
i searched with windows for 80632 (file containing)...
in Domains.java it is...
stephan
2006/6/15, Wendy Smoak <[EMAIL PROTECTED]>:
On 6/15/06, stephan opitz <[EMAIL PROTECTED]> wrote:
> i almost understood how it works, but where "the ajax form" get its
> information.
Fair enough Dave, my apologies.
For those interested -
The Log4j documentation doesn't appear to say anything about handling
dynamic log names as I've described. The closest thing seems to be the
DailyRollingAppender - however it appends the date after the '.log' (i.e.
"error.log.06-15-2006").
I
Vishal Seth wrote:
Hi,
Can I do validation for same form on basis of some session key.
Currently all the validations are stored in application scope.
I want depending upon user logged the validation fired should be
different on same form. I would be having different validation files for
On 6/15/06, stephan opitz <[EMAIL PROTECTED]> wrote:
i almost understood how it works, but where "the ajax form" get its
information...
e.g.:
80632
Greeley
Colorado
there exist no obviously dao or source...
It has to be in there somewhere, right?. :)
$ grep -R "Greeley" *
src/main/java/org/ap
Darren Hall wrote:
> I have a question about naming log files for my web application.
> I'd like to append the date into the name of my log files. Is there a way
> that I can generate daily logs with a filename along the lines of
> "event.2006-05-03.log" and "error.2006-05-03.log"?
>
You might
Samere, Adam J <[EMAIL PROTECTED]> [060615 15:20]:
> Browsers do not send a request parameter for check boxes that are not
> checked. Input of type text is always sent. I'm guessing what you see is
> the box not being "unchecked"... You need to set it in the reset method.
Great, this was already t
Hi,
Can I do validation for same form on basis of some session key.
Currently all the validations are stored in application scope.
I want depending upon user logged the validation fired should be
different on same form. I would be having different validation files for
different users. It
Browsers do not send a request parameter for check boxes that are not
checked. Input of type text is always sent. I'm guessing what you see is
the box not being "unchecked"... You need to set it in the reset method.
-Original Message-
From: Sebastian Stein [mailto:[EMAIL PROTECTED]
Sent:
i almost understood how it works, but where "the ajax form" get its
information...
e.g.:
80632
Greeley
Colorado
there exist no obviously dao or source...
stephan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
Hi folks,
I have a jsp page with a struts html:checkbox looking as follows:
The backupform is defined in struts-config.xml as:
If I enter the page, the state of the checkbox is correctly set. However,
when I leave the page, the value of the checkbox is not preserved. I
debugged this a littl
Hello again all,
I'm using Log4j 1.2.13 with Struts 1.2.9 on Tomcat 5.5.
I have the logging with Log4j now working properly and outputting log
messages properly.
I have a question about naming log files for my web application.
I'd like to append the date into the name of my log files. Is there a
I've got it working now.
Thanks for the help everyone.
Darren
-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 5:45 PM
To: Struts Users Mailing List
Subject: Re: [newb question] Turning on DEBUG level logging
George/Darren
public class S
Krishnakanth wrote:
> I want to compare each of the key values with the previous XML(ie,
> from the DB) and if particular node is already existing in the
> PreviousXML remove that node and create a new node with the new values
> and insert in to the PreviousXML.If the hashtable key values are not
>
Robin Curts wrote:
>
>
>
>
>
>
>
> [...]
> DEBUG - 06/14/2006 14:24:45.823 -
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Start
> expire sessions StandardManager at 1150309485823 sessioncount 1
> DEBUG - 06/14/2006 14:24:45.823 -
> [ContainerBackgroundProcessor[StandardE
Ed Griebel wrote:
> Also, to my knowledge there is no way to just include some jar file to
> enable EL exprs.
That's what the struts-el tags do, like we said before. You have to
change your taglib references, too.
http://struts.apache.org/struts-action/struts-el/index.html
Dave
--
Hi there, here is my implementation on the client side, it's validate
time against the pattern HH:mm, you can customize against HH:mm:ss with
ease:
Here is the Server side: this method is in the MyValidatorClass
public static boolean validateTim
Is there a validation-rule for time(hh:mm:ss format) as it exists for
date in struts validator framework? If not, has anyone implemented it? I
dont want to reinvent the wheel.
regards,
Pankaj
-
To unsubscribe, e-mail: [EMAIL P
Hi
How many nested level of form we should have.
Is there any limit or specification???
--
Thanks and Regards
Hanmayya Udgiri
El jue, 15 de 06 de 2006 a las 01:52, Ceena Bose escribió:
> hi,
>
> pls help me solve the following.
>
> 1)paging using struts
you can use displaytag
http://displaytag.sourceforge.net/11/
in your action:
List data = new ArrayList();
data.add("1");
data.add("2");
data.add("3");
d
Dear all,
What s the difference between giving role based access with struts
framework.
In other way through JAAS.
Which s should be taken if optional?
regards,
Mansoor
86 matches
Mail list logo