RE: Locales and images

2001-03-19 Thread Ben Souther

Put the path to the images in the properties files

-Original Message-
From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 12:36 PM
To: Struts (E-mail)
Subject: Locales and images


I understand Struts has support for makeing web apps available in different
languages.  Does this include images?  If I have images with text on them in
English can I make images with text in French as well?  Do I name the image
files differently or do I have to include the paths to the images in the
property files?  Has anyone done this?  What's the best approach?

Kyle Robinson
Systems Consultant
Pangaea Systems Inc.
(250) 360-0111





Re: Why won't these tag's work?

2001-03-18 Thread Ben Souther

logic:iterate name="conditions" id="condition"   /









- Original Message -
From: "Anissina ." [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 18, 2001 2:43 AM
Subject: Why won't these tag's work?


 Could someone please point out what I am doing wrong here? This is my
code:

 struts-logic:iterate name="conditions" id="condition"
   struts-html:multibox name="condition"
  property="%= condition.getConditionId() %"/
 /struts-logic:iterate

 It complains that condition is a non-existent entity. Shouldn't struts
 recognise that it is wrapped by the iterate tag and retrive the value
 through the same id?

 Just to clarify, "conditions" is a collection of Condition objects, which
 have a conditionId property.

 If anyone can help out, that would be great!
 Thanks!
 Aaron.


 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.






Re: Please Help

2001-03-17 Thread Ben Souther

The company I'm working for is building a very large financial web app with
Struts. The production site will be on Solaris. All development is being
done on Windows NT and Windows 2000. We're using Orion. I've also got Orion
 Struts running on Windows ME at home


- Original Message -
From: "JOEL VOGT" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 17, 2001 6:47 AM
Subject: Re: Please Help


 Okay,
 After playing around a little, I am starting to get the impression that
 struts and windows together isn't going to go. Is this neccessarily the
 case? Anyone had problems and then worked it out?

 Thanks again, Joel







javax parser.jar

2001-03-17 Thread Ben Souther

The latest version of Javax doesn't have parser.jar in it.
Can anyone tell me where I can download  the older version OR can anyone
email parser.jar to me?

Thanks in advance
-Ben




Re: Cannot find message resources under key org.apache.struts.action.MESSAGE

2001-03-03 Thread Ben Souther

I just went through the same thing.  The workaround listed in the Struts
installation guide won't work either.
This is what I did to fix it:

Go to struts.jar (You may find more than one copy of this on your machine. The
one that you want will be in
$STRUTS_HOME/webapps/struts-example/WEB-INF/lib/providing that you are
trying to use the struts example)

Remove the file : struts-config_1_0.dtd.

Put this file in:  $STRUTS-HOME/webapps/struts-example/WEB-INF

NOTE: I also put it in $STRUTS-HOME/webapps/struts-example.  I'm not sure
which location is really working. You may want to put it in both places until
you get things up and running.

That should do it.

It is important that you remove the dtd file from the jar. Don't just copy
into the other directories.




"G.L. Grobe" wrote:

 Just started learning struts. I'm using orion server 1.4.5. I've got the
 struts.jar in my ~/WEB-INF/lib dir and have listed the taglibs in the
 ~/WEB-INF/web.xml file as well as included all the *.tld in this same dir.
   taglib
   taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
   taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib

taglib
   taglib-uri/WEB-INF/struts-html.tld/taglib-uri
   taglib-location/WEB-INF/struts-html.tld/taglib-location
/taglib
 ...

 When running the following page, I get the error list down below:
 I've also got a file called 'myProps.properties' packaged under the
 ~/WEB-INF/classes/com.mydir1/mydir2/resources dir.

  index.jsp ---
 %@ page language="java" %
 %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %
 %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %

 html:html
 head
 title
bean:message key="main.title" /
 /title
 /head

 body
 html:errors /

 This is a atest.
 /body
 /html:html

 --- error output -

 500 Internal Server Error
 javax.servlet.jsp.JspException: Cannot find message resources under key
 org.apache.struts.action.MESSAGE at
 org.apache.struts.util.RequestUtils.message(RequestUtils.java, Compiled
 Code) at
 org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
 Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled Code) at
 com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code) at
 com.evermind.server.http.HttpApplication.xj(JAX, Compiled Code) at
 com.evermind.server.http.JSPServlet.service(JAX, Compiled Code) at
 com.evermind.server.http.d3.sw(JAX, Compiled Code) at
 com.evermind.server.http.d3.su(JAX, Compiled Code) at
 com.evermind.server.http.ef.s1(JAX, Compiled Code) at
 com.evermind.server.http.ef.do(JAX, Compiled Code) at
 com.evermind.util.f.run(JAX, Compiled Code)

 Any help much appreciated.




RE: class notfound exception

2001-03-02 Thread Ben Souther

Check to make sure it's in the right package.

-Original Message-
From: soh syed [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 02, 2001 10:15 AM
To: [EMAIL PROTECTED]
Subject: class notfound exception



can anyone help with this
my classpath is all ok and i have the classes in right
folder but its still not visible to page


javax.servlet.ServletException: Exception creating
bean of class org.apache.struts.example.LogonForm:
java.lang.ClassNotFoundException:
org.apache.struts.example.LogonForm
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002flogon_0002ejsplogon_jsp_0._jspService(Compiled
Code)   at org.apache

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/