jsp:include problem

2001-11-15 Thread Roumen Ganeff

Sorry, this is not struts at all, but i trust this list :)...

I do a  and on JRun with IIS 5.0 on windows2000 it displays
correctly. On JRun with iPlanet on winnt, the included JSP displays at the
top of the page before any other content is displayed. I think I have seen
this before, but couldn't find anything on java.sun.com or in struts-user

Thanx
Ganeff


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Pool problem

2001-11-15 Thread Roumen Ganeff

check to see if you have the property of the datasource/connection
autocommit=true;
or you shoudl call after each update
connection.commit()

G.

-Original Message-
From: Inés Pederiva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: Pool problem


Hi everyone!
I have a problem with the pool of connectcions that struts provides.
I work with Microsoft SQL-Server and when I query my database (all
through stored procedures) everything works fine.
The problem is when I call a stored procedure to update or delete some
data. It does not update it neither delete tthe data!!!
It´s a problem of the connection because if I call that stored procedure
with a new connection that i create, everything works ok!
Thanks a lot!!
Bye!
Inés Pederiva


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: submit button internationalization.

2001-10-25 Thread Roumen Ganeff

the way is





G.

-Original Message-
From: Mark Gordon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 3:00 AM
To: [EMAIL PROTECTED]
Subject: submit button internationalization.



Has anyone come up with a cool way to internationalize a submit button 
using the  tag?

"
styleClass="formField"/>


I was thinking about extending the html:submit tag to include an 
attribute   valueKey  and have that  set the value.


-Mark





RE: Using ApplicationResources.properties for submit button

2001-10-25 Thread Roumen Ganeff

it would be





G.
-Original Message-
From: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 6:27 PM
To: Struts-User
Subject: Using ApplicationResources.properties for submit button



How is it possible to use a String defined in
ApplicationResources.properties for the value of a submit button?

I would need something like:

"
property="udmButton"/>

...but that doesn't work.





Problem: Tomcat 4.0 b7

2001-10-23 Thread Roumen Ganeff

Hi.
I haven't found this described anywhere in the list archives, so I decided
to ask here

I instaled tomcat 4.0-b7 on windows 2000 SP2

I added this to server.xml


and in the log file it produces the folllowing error:
javax.servlet.ServletException: Class org.apache.struts.action.ActionServlet
is not a Servlet

I have the usual web.xml, which works under Resin and Jrun 3.1
Am I missing something in the configuration?

Thanx,
Ganeff




dual server error

2001-10-18 Thread Roumen Ganeff

Hi
I've got the following setup:

the web server IPlanet 4 runs on a machine called web
the aplications server Jrun 3.1 runs on a machine called app

when I displaj show.jsp with the URL

http://web/show.jsp

it displays the JSP but all s are displayed as

http://app/list.jsp

and the images are all with
http://app/images/image.gif

this is really nuts..
Do you know of any such problem?

the html:base tag renders http://app/ tags

Thanx,
Ganeff

PS: and no, I can't use any other setup.. the client is set in stone on this
:(




struts-user@jakarta.apache.org

2001-10-03 Thread Roumen Ganeff

Hi

I am trying to display a ,  which will be for informational purposes
only, and thus is not connected to the form I am currently displaying. It
fills in the  correctly, but the  itself demands to have
"property='something'". When I write it, it tries to look it up against the
current ActionForm that is being displayed, and fails miserably. I move it
outside the  tag, it still complains.
now, I can write this with a simple , and generate the options with
a , or write e custom tag for this .. but.. Is there a
problem in Struts, or am being stupid?

Thanx
Ganeff




RE: Using the iterate tag

2001-09-05 Thread Roumen Ganeff

isn't there a bean:size tag, which is designed for this?

G.

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: Re: Using the iterate tag


Personally, I would wrap the ArrayList in a bean and expose the size (or
row count) with an accessor. Then you can do things like this:



... iterate the list




... explain that there is nothing to interate



The interate tag is designed for this strategy. You can specify the bean
with the name property, and the accessor for the ArrayList with the
property property (sic).

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/about/struts/


chiji nwankwo wrote:
>
> Hi,
>
> I am try to use the iterate tag to display a list of strings on a
> page.  The strings I am using have been initialized in an ArrayList.
> I want to be able to check how many strings are in the list so that I
> can display a certain amount on a number of pages.  This is because I
> do not know how many strings I will have in advance.  The example
> below is a simulation, but I seem to be getting an error when I try to
> use a jsp runtime expression such as <%= size %>.
>
> This is the example I am trying at the moment, please help if you can.
>
> <%
>   java.util.ArrayList testList = new java.util.ArrayList();
>   for( int i = 0; i < 30; i++ )
>   testList.add( new Integer( i ) );
>
>int size = testList.size();
>  %>
>
>offset="0" length="<%= size %>">
><%= playerStats %>
>  
>
> and this is the error I am getting.
>
> org.apache.jasper.JasperException: Unable to compile class for
>
JSPC:\jakarta-tomcat-3.2.1\work\localhost_8080%2FvideoLounge\_0002fsearchRes
ults_0002ejspsearchResults_jsp_47.java:646:
> Incompatible type for method. Can't convert int to java.lang.String.
> _jspx_th_logic_iterate_0.setLength( size );
> ^
> 1 error
>
> Thanks
>
> Chiji
>
> >From: "Robert Taylor"
> >Reply-To: [EMAIL PROTECTED]
> >To:
> >Subject: Persistence tier in web applications
> >Date: Wed, 5 Sep 2001 05:51:52 -0400
> >MIME-Version: 1.0
> >Received: from [64.125.133.20] by hotmail.com (3.2) with ESMTP id
> MHotMailBD5F41A100984004315B407D85140A910; Wed, 05 Sep 2001 02:55:45
> -0700
> >Received: (qmail 55442 invoked by uid 500); 5 Sep 2001 09:54:14 -
> >Received: (qmail 55432 invoked from network); 5 Sep 2001 09:54:13
> -
> >Received: from avocet.mail.pas.earthlink.net (207.217.121.50) by
> daedalus.apache.org with SMTP; 5 Sep 2001 09:54:13 -
> >Received: from dialup-209.246.189.57.dial1.atlanta1.level3.net
> ([209.246.189.57] helo=muleworkrt)by avocet.mail.pas.earthlink.net
> with smtp (Exim 3.32 #2)id 15eZO1-0001yH-00for
> [EMAIL PROTECTED]; Wed, 05 Sep 2001 02:54:21 -0700
> >From struts-user-return-16688-cn081 Wed, 05 Sep 2001 02:56:56 -0700
> >Mailing-List: contact [EMAIL PROTECTED]; run by
> ezmlm
> >Precedence: bulk
> >list-help: 
> >list-unsubscribe:
> >list-post:
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >Message-ID:
> >X-Priority: 3 (Normal)
> >X-MSMail-Priority: Normal
> >X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
> >Importance: Normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >
> >Greetings, I was wondering if anyone was implementing the DAO design
> pattern
> >using JDO. I am currently re-engineering a web application and plan
> to use
> >Struts for the web tier and am looking for a non-J2EE solution for
> the
> >business/persistence layer. I have done some cursory research on JDO
> and was
> >curious if anyone was using it. If so, which implementation, and how
> you are
> >using value objects with it.
> >
> >thanks,
> >
> >robert
> >
>
> --
> Get your FREE download of MSN Explorer at http://explorer.msn.com





RE: why bean:write converts < > & etc?

2001-08-31 Thread Roumen Ganeff

there is a property filter of the bean:write, which you have to say to false

G.

-Original Message-
From: Bar3omiej Paw3owski [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 6:05 PM
To: struts mail list
Subject: why bean:write converts < > & etc?


Hi
I have a problem
I put in the vector:
vector.addElement("ble ble");
vector.addElement("ble ble");
request.setAttribute("actList", result);

next in the jsp page:
   
   
  

in page source i revceive
ble ble
ble ble

How can I solve it?
Please help!!!
Bartek
Poland






RE: ApplicationResources.properties

2001-08-31 Thread Roumen Ganeff

this file must be in the classes directory, and it behaves like a regular
java file, that is, you need to put in the respective directory of your
project, for example
com.mycompany.myproject.resources. And then write the same name in the
web.xml

G.

-Original Message-
From: Stefan Faist [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 2:56 PM
To: Struts
Subject: ApplicationResources.properties


Must this file saved under the /WEB-INF/classes directory or can I save it
direkt under the /WEB-INF directory?
And how is then the entry in the web.xml?

Stefan

--
hmi-Informatik GmbH
Zettachring 6 - D-70567 Stuttgart
E-Mail: [EMAIL PROTECTED]
http://www.hmi-informatik.de





RE: I have menu.jsp

2001-08-31 Thread Roumen Ganeff

I would suggest you use an empty href (href="") and put the URL forwarding
in client-side JavaScript, like

onclick="javascript:window.location='menu9.jsp?msisdn='+document.ofrms[0].ms
isdn.value;"

the other, unnecessary heavy solution would be to submit this menu to a
Struts action, which decides where to forward to

Ganeff

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, August 31, 2001 11:10 AM
To: [EMAIL PROTECTED]
Subject: I have menu.jsp


Hi there,
I have an input field (msisdn) and Lots of links to other jsps. (This is
menu.jsp)
All the other jsps use this input field data on menu.jsp..How can I pass
this data to other jsps by using html:link.

Appreciate any help.

I use ;
.




.
.



Regards.
IT-CS Line
Baris Guzelordu
+90 212 449 2335
+90 532 210 1957


***

This e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not the intended recipient you are hereby notified that any
dissemination, forwarding, copying or use of any of the information is
prohibited.

The opinions expressed in this message belong to sender alone. There is no
implied endorsement by TURKCELL.

This e-mail has been scanned for all known computer viruses.

***


 winmail.dat


RE: Logic Tags

2001-08-29 Thread Roumen Ganeff

You should check with 

mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 6:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Logic Tags


I am passing the success (request.setAttribute("success","yes");) parameter
back to the jsp but in the jsp when I try this code: 

 
  
window.open("welcome.jsp", "popupPage", "top=0,left=0,resizable=yes,
status=yes" +   ",width=" + screen.width +
",height=" + screen.height);



the present tag doesn't fire.  I can print the success attribute on the jsp
page so I am getting the parameter back to the page.  

What am I doing wrong??





RE: How to catch the Session Time Out event ??

2001-08-29 Thread Roumen Ganeff

In order to see if the client has a valid session, you will need to save
some data in the session, and in the beginning of each page check for this
data, for example the session key, or the user name. If the check returns
"null" then there is no session, and the user has to start over. We usually
do a custom tag  which we call in our template.jsp, used by
struts. This way you won't have to copy/paste in all pages

Ganeff

-Original Message-
From: Xavier Brunel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 3:29 PM
To: 'Struts-User
Subject: How to catch the Session Time Out event ??


Hi all,

I am using Struts for an Intranet application (Linux,Sybase,Java) and it is
working very well.
The last thing I would like to do is forwarding automatically the current
client to the welcome page when his session is timeout, through a call to a
particular ActionForward of struts-config.xml

I built a JSP page (index.jsp) who calls the correct forward :

<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>


I have the correct struts-config.xml structure (when i call the jsp directly
i actually go to the welcome page who is a template).
-



-

But I have one last problem :
I would like to know how to catch the session time out event, in order to
call the index.jsp page.
As anybody an idea about this ???

Xavier





question

2001-08-29 Thread Roumen Ganeff

Hi

I am trying the following code:





and there are two problems with it.
1. the "accepts" key doesn't work
2. the label of the Browse... button doesn't change. I have the key in my
application.properties file, before you ask :) It doesn't work even if I
remove the  tag and put plain text in there

Thanx
Ganeff






RE: Workflow question

2001-08-29 Thread Roumen Ganeff

Use many s in your  definition in struts-config, like


  





then, in step3Action ActionClass decide which forward to use, based on user
input

Ganeff

-Original Message-
From: Glenn Kidd [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 8:42 PM
To: [EMAIL PROTECTED]
Subject: Workflow question


I am currently working on a wizrad like workflow.  The user will go through
several "views" in order to collect all of the data required.  After the
data is required the Action class will do the usual interactions with the
business API's, etc.  Ideally I would like to use one Action class for each
page.  The barrier that I have come against is, how does the Action class
know what the next view is?  I suppose I could use the "referer" header or
similarly request.getRequestURI() and forword on based on the value, but
this seems less than ideal.  Does anyone else have any suggestions on other
approaches I might take. Any help will be much appreciated.



Glenn Kidd





RE: Really need you to get me out of a jam!!!!

2001-08-28 Thread Roumen Ganeff

check to see if you have the file application.resources in your classpath,
or where the web server expects it to be

Ganeff

-Original Message-
From: Rakesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 3:24 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Really need you to get me out of a jam


check for struts.jar in the classpath or an error in your struts-config (may
be an unclosed tag or a missing parenthesis ).

good luck

 Rakesh

[EMAIL PROTECTED]


- Original Message -
From: "Alex Colic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 2:44 AM
Subject: Really need you to get me out of a jam


> Hi,
>
> Big problem. I have a major demo tommorow and I can't get my web apps to
work with struts. I am
> using Tomcat 3.2 + the latest nightly build of struts. I needed the
iterate tag. All my apps work
> within JBuilder but I cannot get them to work on there own. Every time I
access a page I get an
> error that the message keys cannot be found.
>
> eg:
>
> exception javax.servlet.jsp.JspException: Missing message for key
logon.title.bar
> Message Missing message for key logon.title.bar
>
> Localized Message Missing message for key logon.title.bar
>
> Stack trace javax.servlet.jsp.JspException: Missing message for
key logon.title.bar
> at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:298)
> at
>
_0002fpwEmpLogin_0002ejsppwEmpLogin_jsp_0._jspService(_0002fpwEmpLogin_0002e
jsppwEmpLogin_jsp_0.java:115)
> at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>
> In my web.xml file I have:
>
> 
>   
> action
>
com.popware.rd.action.genericActionServlet
> 
>   application
>   euApplicationResources
> 
>
> and the euApplicationResources file is in the class directory in web-inf.
I can read the struts
> documentation but the struts-example gives me the same error.
>
> I downloaded Tomcat 4 beta 7 and that did not help.
>
> Can someone tell me exactly how to get the latest version of struts to
work with tomcat?
>
> Any help is figuring this out is appreciated.
>
> Alex
>
>
>
>
>
>
>
>
> =
> Regards
>
> Alex Colic, HBA, B. Ed
> PopWare Inc. "Driving down the cost of conversions!"
> E-Mail: [EMAIL PROTECTED]
> Tel: 1-905-777-8171 ext. 104
> Fax: 1-905-777-0132
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>





HashMaps

2001-08-23 Thread Roumen Ganeff

Hi
I am new to the list, and intermediate in Struts, and still haven't found
how to use HashMaps with Struts tags. They are really handy, and save a lot
of "iterate"s.
Anyone has an idea?

Thanx
Ganeff