Re: Submitting unicode characters from form fields

2001-06-26 Thread Jonathan Asbell

You must configure your web application to DECODE the utf8 encoded stuff.
In weblogic I make this entry in the web.xml file:



weblogic.httpd.inputCharset./*
UTF-8



I'm not sure what you need for tomcat configuration

QUOTING AN E-MAIL FROM HANS BERGSTEN

8859-1 is [currently] the default
encoding of HTTP. When a browser sends a parameter in some encoding, such
as UTF-8, it encodes each character byte value as a hexadecimal string using
the encoding for the page (e.g. UTF-8). At the server, however, the part of
the container that interprets these character values always assumes they
are 8859-1 byte values. So it created a Unicode string based on the byte
values interpreted as 8859-1. In the Servlet 2.3 spec it will be possible to
tell the container to use
another encoding that 8859-1 to interpret the parameter value bytes, but
for now we're stuck with this "hack".



- Original Message -
From: "Hartmut Bernecker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 10:00 AM
Subject: Submitting unicode characters from form fields


> Guten Tag,
>
> my problem is:
> How can unicode be submitted from form fields in an adequate way to the
> server?
>
> I'm using the struts framework and trying to submit some unicode text in
> a HTML form to the server. My Target is, to use that unicode characters
> on the server (as parameter for a RPC to a lecacy application).
>
> It is not a problem for me to display that unicode characters in the
> browser by declaring:
>
><%@ page language="java" contentType="text/html;charset=UTF-8" %>
>
>and in the head:
>
>
>
> But it is a problem to go the way in the other direction:
>
> 1. The IE5.5 (much better: Netscape 6) does not display the unicode
> characters in the form field correctly (i. e. he shows something like
> |||). BTW: I cut & paste the Unicode from the browser from a page
> that displays unicode characters (s.a.).
>
> 2. When I submit the form, then I ask in the Action-Class for
> request.getCharacterEncoding(), but the resulting String is null, even
> though I specified in my JSP something like:
>  enctype="text/plain;charset=UTF-8">. Why is getCharacterEncoding() ==
> null??
>
> 3. When I read the form-field with the unicode data, I get:
> Ë?ãúã?ã?ã¦ã©ã©. I think, this is UTF-8, isn't it (I'm not sure)?
>
> 4. When I take exactly that string and display it again with a JSP-Page,
> I get somthing other (ӁƣÆ?Æ?ƱƸƸ) than the original, from where I
> cutted & pasted the characters (s. a.). Why?
>
> Question: Must I convert the POSTed data before processing with it? Must
> I implement some mechanism for converting UTF-8[??] to Unicode?
>
> I greatly appreciate your help!
>
> Chiao
> Hartmut
>




RE: HTML:link tag

2001-06-26 Thread Matt Raible

Does anyone know how to extract the link url using
struts, rather than the full  tag?  I would
like to get a URL from a global-forward for use in a
javascript function.

Thanks,

Matt

--- Michael Skariah <[EMAIL PROTECTED]> wrote:
> Thanks a million Spencer.
> -Michael.
> 
> 
> -Original Message-
> From: Spencer Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:37 PM
> To: [EMAIL PROTECTED];
> [EMAIL PROTECTED]
> Subject: Re: HTML:link tag
> 
> 
> <%@ taglib uri="/WEB-INF/struts-html.tld"
> prefix="html" %>
> 
> *make sure above line is in your jsp page
> 
> Click
> Here
> 
> *in order for above line to work you need to set up
> an action in
> struts-config.xml
> 
> ie:
> 
>  
>  type="com.pfizer.ecms.ws.TestAction">
> 
> 
> 
> - Original Message -
> From: "Michael Skariah" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 3:23 PM
> Subject: HTML:link tag
> 
> 
> > Hello all,
> > I am trying to replace the following with the
> Struts HTML link tag.
> > Test
> >
> > Could anyone help me out here\.
> >
> > Thanks,
> > Michael.
> >
> >
> 
> 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: HTML:link tag

2001-06-26 Thread Michael Skariah

Thanks a million Spencer.
-Michael.


-Original Message-
From: Spencer Smith [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:37 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: HTML:link tag


<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

*make sure above line is in your jsp page

Click Here

*in order for above line to work you need to set up an action in
struts-config.xml

ie:

 




- Original Message -
From: "Michael Skariah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:23 PM
Subject: HTML:link tag


> Hello all,
> I am trying to replace the following with the Struts HTML link tag.
> Test
>
> Could anyone help me out here\.
>
> Thanks,
> Michael.
>
>





Revision to html:link tag

2001-06-26 Thread Mindaugas Idzelis

Someone posted a while back a revision to the link tag
(http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg01185.html)

I was wondering the same thing myself about the link tag. Why create a Map
just to use it in the url. This also adds pain since you need to use a
scriptlet to create the map in the jsp page.

Please comment on Andre Beskrowni's proposal of the inclusion of this
modification in the next version of struts! :-)


--min




THANK YOU PRATIMA

2001-06-26 Thread Wes Bramhall

Umm... ok... you are my newest and bestest friend.  It works, it really
works!  Sure, I'm getting an error message deeper into the example, not
finding struts-config.xml, but at least it's a NEW error!  I'll figure it
out or cry for help again!

THANK YOU!

-Original Message-
From: Gogineni, Pratima [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 11:55 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Frustrated, can anyone help?


Can you try moving the application.properties file under web-inf/classes.

Also I remember reading that the strut.jar file should be under struts
example\web-inf\lib
and there were errors when you try to put it into the appserver classpath
...

-Original Message-
From: Wes Bramhall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 9:31 AM
To: '[EMAIL PROTECTED]'
Subject: Frustrated, can anyone help?


Ok... I've tried and tried to figure this out, with some help from this
group, to no avail.  I'm just trying to get the example to run.  I'm going
to try some more.
I'm running JRUN on a Win2k box, so any help either needs to be specific to
JRUN so I can use it, or totally generalized, so I can hopefully figure out
how things relate and go from there.
Attached are my web.xml, struts-config.xml, and
ApplicationResources.properties.  They are all located in C:\Program
Files\Allaire\JRun\servers\default\Struts Example\WEB-INF\
Struts.jar is in C:\Program Files\Allaire\JRun\servers\lib, which is in the
classpath of the JRUN server.


This is the error I get:

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at
allaire.jrun.file.FileServlet.service(../file/FileServlet.java:159)
at
allaire.jrun.servlet.JRunServletPool.service(../servlet/JRunServletPool.java
:90)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)



Help: Problems deploying to domain name.

2001-06-26 Thread Rod Schmidt



I have a web app and everything works fine under a 
URL like www.webappcabaret.com/mycontext. 
As soon as I got a domain name and tried to run things under http://www.mydomain.com things don't 
work. I see the following symptons.
 
- html:link href works but html:link page does 
not
- The html:form tags are rendered with the action = 
"/mycontext/action". This results in the action not being found.
 
These seem to be my two main culprits so far. Does 
anybody know what's happening?
 
Thanks,
 
Rod Schmidt


PLEASE HELP: Why is this drop-down list not working?

2001-06-26 Thread Shamdasani Nimmi-ANS004

I have a bean in application scope and I want to use one of its collection 
property(responseIndicatorList) in a drop-down but I keep getting an error:

"No getter method for property responseIndicatorList of bean common_lists"


This is how I have in my jsp:









-Nimmi



RE: HTML:link tag

2001-06-26 Thread Steve Taylor

I found this message to be quite helpful for integrating struts with
Tomcat/Apache 

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg00476.html 

-Original Message-
From: Mustapha Essalihe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:47 PM
To: [EMAIL PROTECTED]
Subject: RE: HTML:link tag


this day I installed tomcat with apache using mod_jk. To use struts, the
"*.do" URIs that go to the controller servlet will not be recognized until I
add the appropriate handler. To fix this, I must add the following line to
the httpd.conf (in my own configuration) file:
AddHandler jserv-servlet .do
Is this will work with mod_jk or there is another syntax for mod_jk to add a
handler ?
Thanks
Mustapha



RE: HTML:link tag

2001-06-26 Thread Mustapha Essalihe

this day I installed tomcat with apache using mod_jk. To use struts, the
"*.do" URIs that go to the controller servlet will not be recognized until I
add the appropriate handler. To fix this, I must add the following line to
the httpd.conf (in my own configuration) file:
AddHandler jserv-servlet .do
Is this will work with mod_jk or there is another syntax for mod_jk to add a
handler ?
Thanks
Mustapha




Re: HTML:link tag

2001-06-26 Thread Spencer Smith

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

*make sure above line is in your jsp page

Click Here

*in order for above line to work you need to set up an action in
struts-config.xml

ie:

 




- Original Message -
From: "Michael Skariah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 3:23 PM
Subject: HTML:link tag


> Hello all,
> I am trying to replace the following with the Struts HTML link tag.
> Test
>
> Could anyone help me out here\.
>
> Thanks,
> Michael.
>
>




HTML:link tag

2001-06-26 Thread Michael Skariah

Hello all,
I am trying to replace the following with the Struts HTML link tag.
Test

Could anyone help me out here\.

Thanks,
Michael.




Re: Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread Roland Huss


Assuming your List is a bean named "list", use


Please read the Tag Library Reference for  on
http://jakarta.apache.org/struts/struts-html.html#options for details

-- 
...roland huss
 consol.de



RE: Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread Michael Skariah

Thanks Dave,
I will try it out.
-Michael.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 2:33 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Minimizing the code in JSP file..by removing the for
loop




Michael,

I just use the collection and property value on my html:options, and Struts
does
the rest!

ie  (and you can use the
labelProperty if you want too)

Check out the documentation on it...

Dave





"Michael Skariah" <[EMAIL PROTECTED]> on
06/26/2001
12:50:35 PM

Please respond to [EMAIL PROTECTED];
Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Minimizing the code in JSP file..by removing the for loop



Hello all,
I am new to Struts and was experimenting the various HTML tags. I was trying
to improve the code below. Could anyone tell me how I can achieve the same
functionality of filling the select block, but by removing the "for" loop
from this code(I mean just by filling values with a list).
Thanks to all for the help.
-Mike.

-


<%
 Hashtable ht = codes.getCodes();
%>




<%
 List myList = (List)ht.get("AccountNo");
 if(myList != null)
 {
  for(ListIterator li=myList.listIterator(); li.hasNext();)
  {
%>

<%= (String)li.next() %>
<%
  } // for
 }
 else
 {
%>

<%= "No matching data" %>
<%
 }
%>


-











RE: Struts iterate tag

2001-06-26 Thread dhay



In case any of you are interested in these examples...

Dave
-- Forwarded by David Hay/Lex/Lexmark on 06/26/2001 05:52 PM
---


David Hay
06/26/2001 05:37 PM

To:   Jason Rosenblum <[EMAIL PROTECTED]> @ LEXMTA
cc:

Subject:  RE: Struts iterate tag  (Document link: David Hay)

Sure...


 produces




produces



   
produces
   



produces

 (note index added as querystring parameter here)

Hope that helps,

Dave







Jason Rosenblum <[EMAIL PROTECTED]> on 06/26/2001
05:31:10 PM

To:   "'[EMAIL PROTECTED]'"
  <"David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  RE: Struts iterate tag



could you possibly send a couple more examples if you have any?

~Jason

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 2:30 PM
To: Jason Rosenblum
Subject: Re: Struts iterate tag




No problem.  It works great for me, by the way!!

Let me know if you have any problems with it...

Dave





Jason Rosenblum <[EMAIL PROTECTED]> on 06/26/2001
05:21:58 PM

To:   "'[EMAIL PROTECTED]'"
  <"David_Hay/Lex/Lexmark.LEXMARK"@sweeper.lex.lexmark.com>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Struts iterate tag



David,

I found the code! sorry to bother you.

~Jason












Re: Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread dhay



Michael,

I just use the collection and property value on my html:options, and Struts does
the rest!

ie  (and you can use the
labelProperty if you want too)

Check out the documentation on it...

Dave





"Michael Skariah" <[EMAIL PROTECTED]> on 06/26/2001
12:50:35 PM

Please respond to [EMAIL PROTECTED]; Please
  respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Minimizing the code in JSP file..by removing the for loop



Hello all,
I am new to Struts and was experimenting the various HTML tags. I was trying
to improve the code below. Could anyone tell me how I can achieve the same
functionality of filling the select block, but by removing the "for" loop
from this code(I mean just by filling values with a list).
Thanks to all for the help.
-Mike.

-


<%
 Hashtable ht = codes.getCodes();
%>




<%
 List myList = (List)ht.get("AccountNo");
 if(myList != null)
 {
  for(ListIterator li=myList.listIterator(); li.hasNext();)
  {
%>

<%= (String)li.next() %>
<%
  } // for
 }
 else
 {
%>

<%= "No matching data" %>
<%
 }
%>


-










Can I Use logical name for path of local forwards?

2001-06-26 Thread Ellen Kraffmiller

Hi,
I have a question regarding local forwards.
It seems that a popular way to avoid hardcoding navigation in your action 
class is to have a local forward named "success", that can be updated in 
your struts-config.xml:


  


What if I have multiple actions, and each one should go to /myapp/apage.jsp 
in case of "success" - do I have to hard code the path for each local 
forward?

It would be nice to be able to define a global forward, and use its logical 
name in my local forwards:






  


I haven't seen anything in the docs that says this is allowed. Maybe there's 
some other way of using a logical name for the success forward, rather than 
hard coding it?

Thanks,
Ellen



_
Get your FREE download of MSN Explorer at http://explorer.msn.com




RE: How do I use application scope bean in JSP?

2001-06-26 Thread Shamdasani Nimmi-ANS004

I did try this:








But I still get the same error:

javax.servlet.ServletException: No getter method for property responseIndicatorList of 
bean common_lists

-Nimmi

-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:14 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I use application scope bean in JSP?


use   

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:53 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: How do I use application scope bean in JSP?


Hi,

I have a bean stored in application scope in a startup servlet using:

getServletContext().setAttribute(Constants.COMMON_DROP_DOWN_KEY,
commonDropDownListBean);

This bean of type CommonDropDownList has a property getResponseIndicatorList
which returns a HashMap. 

I want to use this HashMap for the  in my JSP like this:



 


(Constants.COMMON_DROP_DOWN_KEY is defined as "common_lists" )

But I get this error listed below. 
 

javax.servlet.ServletException: No getter method for property
responseIndicatorList of bean common_lists
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002fSubmitQuotes_0002ejspSubmitQuotes_jsp_4._jspService(_0002fSubmitQuotes
_0002ejspSubmitQuotes_jsp_4.java:1265)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1727)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1727)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



Could someone please tell me what am I doing wrong.

TIA.

-Nimmi



255.255.255.255 error

2001-06-26 Thread Wes Bramhall

Any ideas why someimtes, but not all the time, the HTML the example creates
has

http://255.255.255.255:8100/struts-example/registration.jsp";>

instead of 

http://127.0.0.1:8100/struts-example/registration.jsp";>??

I can refresh the page, and usually get the latter.

Thanks,
-Wes



RE: How do I use application scope bean in JSP?

2001-06-26 Thread Nanduri, Amarnath

use   

-Original Message-
From: Shamdasani Nimmi-ANS004 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:53 PM
To: struts-user@jakarta. apache. org (E-mail)
Subject: How do I use application scope bean in JSP?


Hi,

I have a bean stored in application scope in a startup servlet using:

getServletContext().setAttribute(Constants.COMMON_DROP_DOWN_KEY,
commonDropDownListBean);

This bean of type CommonDropDownList has a property getResponseIndicatorList
which returns a HashMap. 

I want to use this HashMap for the  in my JSP like this:



 


(Constants.COMMON_DROP_DOWN_KEY is defined as "common_lists" )

But I get this error listed below. 
 

javax.servlet.ServletException: No getter method for property
responseIndicatorList of bean common_lists
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:459)
at
_0002fSubmitQuotes_0002ejspSubmitQuotes_jsp_4._jspService(_0002fSubmitQuotes
_0002ejspSubmitQuotes_jsp_4.java:1265)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1727)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194)
at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1727)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



Could someone please tell me what am I doing wrong.

TIA.

-Nimmi



getServletInfo

2001-06-26 Thread Matt Raible

I am trying to change background colors of table cells (and whether a link
exists or not) in my menu based on when the user is in a particular page.
Does anyone know how to do the following with logic:equals tags?

<%
  if (getServletInfo().equals("myServletName")) {
%>
Link to Page
 
<%
  }
  else
  {
%>

Link to
Page

 
<%
  }
%>




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




How do I use application scope bean in JSP?

2001-06-26 Thread Shamdasani Nimmi-ANS004

Hi,

I have a bean stored in application scope in a startup servlet using:

getServletContext().setAttribute(Constants.COMMON_DROP_DOWN_KEY, 
commonDropDownListBean);

This bean of type CommonDropDownList has a property getResponseIndicatorList which 
returns a HashMap. 

I want to use this HashMap for the  in my JSP like this:



 


(Constants.COMMON_DROP_DOWN_KEY is defined as "common_lists" )

But I get this error listed below. 
 

javax.servlet.ServletException: No getter method for property responseIndicatorList of 
bean common_lists
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
at 
_0002fSubmitQuotes_0002ejspSubmitQuotes_jsp_4._jspService(_0002fSubmitQuotes_0002ejspSubmitQuotes_jsp_4.java:1265)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1727)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1727)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1564)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)



Could someone please tell me what am I doing wrong.

TIA.

-Nimmi




RE: iterate over a HashMap

2001-06-26 Thread Nanduri, Amarnath

Tried it. Got a runtime (or is it compile time ? ) exception. Thanks.

cheers,
Amar..

-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:19 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap













should work.
--m

- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:17 PM
Subject: RE: iterate over a HashMap


> Mike,
>Thanks a lot for your help. I am trying to figure out how to typecast
the
> 'value' object into type DataBean so that i can call one of its methods.
> Maybe i need to do something fancy to satisfy the compiler and the JVM.
>
> cheers,
> Amar..
>
> -Original Message-
> From: Mike Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: iterate over a HashMap
>
>
> Normally, each object exposed by the iterate tag is an element of the
> underlying collection you are iterating over. However, if you iterate over
a
> Map, the exposed object is of type Map.Entry that has two properties:
>
>
>   a.. key - The key under which this item is stored in the underlying Map.
>   b.. value - The value that corresponds to this key.
> So
> >  > scope="session" >
>
> the property itemEntry.key is the key in the hashmap.
> the property itemEntry.value is your bean, which you may do something like
> itemEntry.value.name
>
> Hope this helps.
> --m
>
>
>
> - Original Message -
> From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 2:01 PM
> Subject: iterate over a HashMap
>
>
> >
> > How do i iterate over a HashMap ? The key is a String but the value is
an
> > Object of a certain type (example .. com.agilquest.bean.DataBean ).
> >
> > I need to call a getter in the 'value  i.e  dataBean.getName() ;
> >
> > Below is the code i use...The value is calling the toString() of
DataBean.
> I
> > need to call the getName() of DataBean. thanks a lot.
> >
> > cheers,
> > Amar..
> >
> >  > scope="session" >
> >
> >
> >   <%-- show the key in the HashMap
> > --%>
> >  > property="key"/>
> >
> > 
> >
> >   <%-- show the value i.e DataBean
> > and call its getName() --%>
> >  > property="value" />
> > 
> >
> >
> >   



Re: iterate over a HashMap

2001-06-26 Thread Mike Thompson












should work.
--m

- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:17 PM
Subject: RE: iterate over a HashMap


> Mike,
>Thanks a lot for your help. I am trying to figure out how to typecast
the
> 'value' object into type DataBean so that i can call one of its methods.
> Maybe i need to do something fancy to satisfy the compiler and the JVM.
>
> cheers,
> Amar..
>
> -Original Message-
> From: Mike Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 3:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: iterate over a HashMap
>
>
> Normally, each object exposed by the iterate tag is an element of the
> underlying collection you are iterating over. However, if you iterate over
a
> Map, the exposed object is of type Map.Entry that has two properties:
>
>
>   a.. key - The key under which this item is stored in the underlying Map.
>   b.. value - The value that corresponds to this key.
> So
> >  > scope="session" >
>
> the property itemEntry.key is the key in the hashmap.
> the property itemEntry.value is your bean, which you may do something like
> itemEntry.value.name
>
> Hope this helps.
> --m
>
>
>
> - Original Message -
> From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 2:01 PM
> Subject: iterate over a HashMap
>
>
> >
> > How do i iterate over a HashMap ? The key is a String but the value is
an
> > Object of a certain type (example .. com.agilquest.bean.DataBean ).
> >
> > I need to call a getter in the 'value  i.e  dataBean.getName() ;
> >
> > Below is the code i use...The value is calling the toString() of
DataBean.
> I
> > need to call the getName() of DataBean. thanks a lot.
> >
> > cheers,
> > Amar..
> >
> >  > scope="session" >
> >
> >
> >   <%-- show the key in the HashMap
> > --%>
> >  > property="key"/>
> >
> > 
> >
> >   <%-- show the value i.e DataBean
> > and call its getName() --%>
> >  > property="value" />
> > 
> >
> >
> >   




RE: iterate over a HashMap

2001-06-26 Thread Nanduri, Amarnath

I figured it out. I changed my HashMap into a collection and started
iterating over the collection. Since the value object in the HashMap
contains the key also ( the business side is returning a HashMap instead of
a collection btw) , i was able to iterate through the collection and so
typecast each object to its exact data type. Thanks everybody for your help.

cheers,
Amar..

-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: iterate over a HashMap


Mike,
   Thanks a lot for your help. I am trying to figure out how to typecast the
'value' object into type DataBean so that i can call one of its methods.
Maybe i need to do something fancy to satisfy the compiler and the JVM.

cheers,
Amar..

-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:09 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap


Normally, each object exposed by the iterate tag is an element of the
underlying collection you are iterating over. However, if you iterate over a
Map, the exposed object is of type Map.Entry that has two properties:


  a.. key - The key under which this item is stored in the underlying Map.
  b.. value - The value that corresponds to this key.
So
>  scope="session" >

the property itemEntry.key is the key in the hashmap.
the property itemEntry.value is your bean, which you may do something like
itemEntry.value.name

Hope this helps.
--m



- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap


>
> How do i iterate over a HashMap ? The key is a String but the value is an
> Object of a certain type (example .. com.agilquest.bean.DataBean ).
>
> I need to call a getter in the 'value  i.e  dataBean.getName() ;
>
> Below is the code i use...The value is calling the toString() of DataBean.
I
> need to call the getName() of DataBean. thanks a lot.
>
> cheers,
> Amar..
>
>  scope="session" >
>
>
>   <%-- show the key in the HashMap
> --%>
>  property="key"/>
>
> 
>
>   <%-- show the value i.e DataBean
> and call its getName() --%>
>  property="value" />
> 
>
>
>   



RE: iterate over a HashMap

2001-06-26 Thread Nanduri, Amarnath

Mike,
   Thanks a lot for your help. I am trying to figure out how to typecast the
'value' object into type DataBean so that i can call one of its methods.
Maybe i need to do something fancy to satisfy the compiler and the JVM.

cheers,
Amar..

-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:09 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap


Normally, each object exposed by the iterate tag is an element of the
underlying collection you are iterating over. However, if you iterate over a
Map, the exposed object is of type Map.Entry that has two properties:


  a.. key - The key under which this item is stored in the underlying Map.
  b.. value - The value that corresponds to this key.
So
>  scope="session" >

the property itemEntry.key is the key in the hashmap.
the property itemEntry.value is your bean, which you may do something like
itemEntry.value.name

Hope this helps.
--m



- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap


>
> How do i iterate over a HashMap ? The key is a String but the value is an
> Object of a certain type (example .. com.agilquest.bean.DataBean ).
>
> I need to call a getter in the 'value  i.e  dataBean.getName() ;
>
> Below is the code i use...The value is calling the toString() of DataBean.
I
> need to call the getName() of DataBean. thanks a lot.
>
> cheers,
> Amar..
>
>  scope="session" >
>
>
>   <%-- show the key in the HashMap
> --%>
>  property="key"/>
>
> 
>
>   <%-- show the value i.e DataBean
> and call its getName() --%>
>  property="value" />
> 
>
>
>   



Error to run Struts in J2EE server

2001-06-26 Thread ihin


in J2EE tutorial there are some of example about struts and J2EE
http://ioctl.org/doc/j2ee-tutorial/doc/JSPTags3.html

i tray develop of login aplication and used struts with J2EE 1.3 beta 2 Server
after i deploy my login aplication with deploytool that include in J2EE
i run it, but always get error like that

A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: Cannot find ActionMappings or 
ActionFormBeans collection
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:442)
at org.apache.jsp._0002findex_jsp._jspService(_0002findex_jsp.java:357)

is there any one that have experience to running struts in J2EE server...?
would you like to give me solution about that..

thank's in advance for all of attantion
regards

gohin




Re: iterate over a HashMap

2001-06-26 Thread Mike Thompson

Normally, each object exposed by the iterate tag is an element of the
underlying collection you are iterating over. However, if you iterate over a
Map, the exposed object is of type Map.Entry that has two properties:


  a.. key - The key under which this item is stored in the underlying Map.
  b.. value - The value that corresponds to this key.
So
>  scope="session" >

the property itemEntry.key is the key in the hashmap.
the property itemEntry.value is your bean, which you may do something like
itemEntry.value.name

Hope this helps.
--m



- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap


>
> How do i iterate over a HashMap ? The key is a String but the value is an
> Object of a certain type (example .. com.agilquest.bean.DataBean ).
>
> I need to call a getter in the 'value  i.e  dataBean.getName() ;
>
> Below is the code i use...The value is calling the toString() of DataBean.
I
> need to call the getName() of DataBean. thanks a lot.
>
> cheers,
> Amar..
>
>  scope="session" >
>
>
>   <%-- show the key in the HashMap
> --%>
>  property="key"/>
>
> 
>
>   <%-- show the value i.e DataBean
> and call its getName() --%>
>  property="value" />
> 
>
>
>   




RE: iterate over a HashMap

2001-06-26 Thread Nanduri, Amarnath

Thanks. This did not help me though..

cheers,
Amar..

-Original Message-
From: Mike Thompson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:01 PM
To: [EMAIL PROTECTED]
Subject: Re: iterate over a HashMap


Goto http://jakarta.apache.org/struts/struts-logic.html#iterate
--m

- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap


>
> How do i iterate over a HashMap ? The key is a String but the value is an
> Object of a certain type (example .. com.agilquest.bean.DataBean ).
>
> I need to call a getter in the 'value  i.e  dataBean.getName() ;
>
> Below is the code i use...The value is calling the toString() of DataBean.
I
> need to call the getName() of DataBean. thanks a lot.
>
> cheers,
> Amar..
>
>  scope="session" >
>
>
>   <%-- show the key in the HashMap
> --%>
>  property="key"/>
>
> 
>
>   <%-- show the value i.e DataBean
> and call its getName() --%>
>  property="value" />
> 
>
>
>   



Re: iterate over a HashMap

2001-06-26 Thread Mike Thompson

Goto http://jakarta.apache.org/struts/struts-logic.html#iterate
--m

- Original Message -
From: "Nanduri, Amarnath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 2:01 PM
Subject: iterate over a HashMap


>
> How do i iterate over a HashMap ? The key is a String but the value is an
> Object of a certain type (example .. com.agilquest.bean.DataBean ).
>
> I need to call a getter in the 'value  i.e  dataBean.getName() ;
>
> Below is the code i use...The value is calling the toString() of DataBean.
I
> need to call the getName() of DataBean. thanks a lot.
>
> cheers,
> Amar..
>
>  scope="session" >
>
>
>   <%-- show the key in the HashMap
> --%>
>  property="key"/>
>
> 
>
>   <%-- show the value i.e DataBean
> and call its getName() --%>
>  property="value" />
> 
>
>
>   




iterate over a HashMap

2001-06-26 Thread Nanduri, Amarnath


How do i iterate over a HashMap ? The key is a String but the value is an
Object of a certain type (example .. com.agilquest.bean.DataBean ). 

I need to call a getter in the 'value  i.e  dataBean.getName() ;

Below is the code i use...The value is calling the toString() of DataBean. I
need to call the getName() of DataBean. thanks a lot.

cheers,
Amar..




  <%-- show the key in the HashMap
--%>




  <%-- show the value i.e DataBean
and call its getName() --%>
 



  



RE: iterate collection

2001-06-26 Thread Shoulico

you need to add the collection to the request object

java.util.Collection roles = client.getUserRoles("admin");

request.setAttribute("roles");

then

   logic:iterate id="element" name="roles">

 this will work


--- Simon Liang <[EMAIL PROTECTED]> wrote:
> hi:
> 
> I tried the suggestion, but still didn't work. This seem to work.
> 
>  From: Shoulico [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: iterate collection
> 
> 
> 
>  
> should be 
>   
>  
> 
> 
> 
> 
> --- Simon Liang <[EMAIL PROTECTED]> wrote:
> > Hi:
> > 
> > Can someone help with this? I can't find an example whether struts
> > iterate
> > throught a collection.
> > 

RE: iterate collection

2001-06-26 Thread Simon Liang

hi:

I tried the suggestion, but still didn't work. This seem to work.


Re: iterate collection

2001-06-26 Thread Shoulico


 
should be 
  
 




--- Simon Liang <[EMAIL PROTECTED]> wrote:
> Hi:
> 
> Can someone help with this? I can't find an example whether struts
> iterate
> throught a collection.
> 

Re: iterate collection

2001-06-26 Thread Ted Husted

I think you need to say name="roles" instead of collection="roles".

Assuming there is as roles.getValue() accessor, the rest looks fine.

If not, you may just need  if the objects in roles
have a toString() method.

Simon Liang wrote:
> 
> Hi:
> 
> Can someone help with this? I can't find an example whether struts iterate
> throught a collection.
> 

iterate collection

2001-06-26 Thread Simon Liang

Hi:

Can someone help with this? I can't find an example whether struts iterate
throught a collection.

Minimizing the code in JSP file......by removing the for loop

2001-06-26 Thread Michael Skariah

Hello all,
I am new to Struts and was experimenting the various HTML tags. I was trying
to improve the code below. Could anyone tell me how I can achieve the same
functionality of filling the select block, but by removing the "for" loop
from this code(I mean just by filling values with a list).
Thanks to all for the help.
-Mike.

-


<%
Hashtable ht = codes.getCodes();
%>




<%
List myList = (List)ht.get("AccountNo");
if(myList != null)
{
for(ListIterator li=myList.listIterator(); li.hasNext();)
{
%>

<%= (String)li.next() %>
<%
} // for
}
else
{
%>

<%= "No matching data" %>
<%
}
%>


-




RE: Frustrated, can anyone help?

2001-06-26 Thread Gogineni, Pratima

Can you try moving the application.properties file under web-inf/classes.

Also I remember reading that the strut.jar file should be under struts
example\web-inf\lib
and there were errors when you try to put it into the appserver classpath
...

-Original Message-
From: Wes Bramhall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 9:31 AM
To: '[EMAIL PROTECTED]'
Subject: Frustrated, can anyone help?


Ok... I've tried and tried to figure this out, with some help from this
group, to no avail.  I'm just trying to get the example to run.  I'm going
to try some more.
I'm running JRUN on a Win2k box, so any help either needs to be specific to
JRUN so I can use it, or totally generalized, so I can hopefully figure out
how things relate and go from there.
Attached are my web.xml, struts-config.xml, and
ApplicationResources.properties.  They are all located in C:\Program
Files\Allaire\JRun\servers\default\Struts Example\WEB-INF\
Struts.jar is in C:\Program Files\Allaire\JRun\servers\lib, which is in the
classpath of the JRUN server.


This is the error I get:

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at
allaire.jrun.file.FileServlet.service(../file/FileServlet.java:159)
at
allaire.jrun.servlet.JRunServletPool.service(../servlet/JRunServletPool.java
:90)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)




Frustrated, can anyone help?

2001-06-26 Thread Wes Bramhall

Ok... I've tried and tried to figure this out, with some help from this
group, to no avail.  I'm just trying to get the example to run.  I'm going
to try some more.
I'm running JRUN on a Win2k box, so any help either needs to be specific to
JRUN so I can use it, or totally generalized, so I can hopefully figure out
how things relate and go from there.
Attached are my web.xml, struts-config.xml, and
ApplicationResources.properties.  They are all located in C:\Program
Files\Allaire\JRun\servers\default\Struts Example\WEB-INF\
Struts.jar is in C:\Program Files\Allaire\JRun\servers\lib, which is in the
classpath of the JRUN server.


This is the error I get:

500 Internal Server Error
/struts-example/:

Exception thrown processing JSP page.
javax.servlet.jsp.JspException: Missing message for key index.title
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)
at jrun__index2ejspa._jspService(jrun__index2ejspa.java:57)
at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at
allaire.jrun.file.FileServlet.service(../file/FileServlet.java:159)
at
allaire.jrun.servlet.JRunServletPool.service(../servlet/JRunServletPool.java
:90)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


 web.xml
 ApplicationResources.properties
 struts-config.xml


Templates anyone?

2001-06-26 Thread DHarty



I would like to know why some tags in the template file (ie img) use a
relative path to the
calling file, while the get tags do not.

For example the line in a template file:



render the path relative to the file that put to the template (ex
/nested/body/body.jsp), whereas:

  

renders 'body' relative to the location of the template file>

I would like to "put" relative paths to the template vs. an absolute path.

For example, a file using templates might look like:

<%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>









Whereas I'd rather send the realtive path to the template ala:



or even


I can't seem to do this as the template always look for the file relative to
its own location, and not the location of the calling file.  I've been able
to send paths relative to the template file, but that seems bass ackwards.

Intestingly, if I put an  tag in my template, the base it
outputs is the location of the calling file.

D




Re: DTD Incompatibility With WebLogic 5.1 and Struts 1.0?

2001-06-26 Thread Mikael Eriksson

Hello!

 This was a bug that existed in earlier versions of 5.1 but it was fixed at
around service pack 5. So it seems that your configuration are not
picking up the service pack properly.
  When I manage to fail to pick up a service pack its usually becuase
I misremember where the service pack jar files are :-)
 You can use the weblogic console to find out what service pack
that really is loaded on a server.

  Regards
  Mikael Eriksson


  
  



"Hohlen, John" wrote:

> Has anyone ever seen the following Document Type Definition (DTD) error
> message upon starting the WebLogic 5.1 (SP 8) server using Struts 1.0 on NT?
> This occurs using both the Struts-Example and Struts-Documentation war
> files:
>
> "[ExternalEntity] : Could not resolve entity '-//Sun Microsystems, Inc.//DTD
> Web
> Application 2.2//EN'.  Check your dtd reference."
>
> The way I fixed this error was modifying the DocType data in the web.xml
> file.  Specifically, the line:
>
>  2.2//EN" "http: //java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>
> If I change the "DTD Web Application 2.2" to "DTD Web Application 1.2", the
> error message no longer occurs.  Notice, I only changed the comment portion.
> Not the URL.  Any explanations to this?
>
> Thanks,
>
> JOHN




Re: How can I pass extra information on Submit button?

2001-06-26 Thread Ted Husted

Just as aside, another way to go in the short term would be to package
Dave's version as a seperate taglib. So, it would augment, rather than
replace, the tags in the distribution. Most significant projects will
often use their own custom tags in addition to what is provided in the
Struts distribution. 

Dave's indexing tags are also available through the More About Struts
page now. 

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

Jerzy Kalat wrote:
> Well, I have binary version of Struts only, and I suspect that other members
> of team feel more comfortable to work with official release of Struts.



Re: How can I pass extra information on Submit button? RESOLVED ( finaly)

2001-06-26 Thread Jerzy Kalat

Hi there !

Thank all of you for all your inputs and hints.
I made it working.

What I had to do is to add another property to form bean 'id' and put Struts
form tag INSIDE iterator tag. Without the last change I always see id of the
first record.



 


 

   

  

  
  

  

 



Thanks once more for your help

Jerzy Kalat




Re: Problem w/ session id under iplanet web server

2001-06-26 Thread Jeff Trent



I figured out the problem.  For the 
interest of the mail archives, the solution is to use regular expressions in 
obj.conf.  "*.do" is not enough for iPlanet (struts documentation should be 
ammended for this).  I found I needed to use "*.do;jsessionid*" in addition 
to "*.do".  This fixed the problem.  Note: rules.properties didn't 
seem to work either since the servlet is running from tomcat, not 
iPlanet.
 
-jeff
 

  - Original Message - 
  From: 
  Jeff 
  Trent 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, June 26, 2001 10:57 
  AM
  Subject: Problem w/ session id under 
  iplanet web server
  
  The first reference to a [struts] form generates 
  an action="/myapp/formAction.do;jsessionid=xyz"   As a result, 
  iPlanet seems to not be able to complete my request and returns a 404 
  instead.  GETs and POSTs behave the same way when the session id is 
  passed.  I'm sure its a simple iPlanet configuration issue but I'm 
  stuck... Any help?
   
  Thanks,
  Jeff
   


RE: How can I pass extra information on Submit button?

2001-06-26 Thread Torsten Terp

Hi,

Yes, the form bean has fields matching the names used in the jsp! In 
my case contactId (among others). In my action code i then get the form
in the request and can do whatever i need to do... 

^terp

> -Original Message-
> From: Jerzy Kalat [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 5:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How can I pass extra information on Submit button?
> 
> 
> Hi,
> 
> I have problem with understanding one thing here. How do you have access to
> this hidden field in Action servlet? Does it mean that in form bean you have
> to have property named 'contactId'?
> 
> JK
> 
> - Original Message -
> From: "Torsten Terp" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 11:05 AM
> Subject: RE: How can I pass extra information on Submit button?
> 
> 
> > Hi,
> >
> > I just hit the same problem last night, and did as follows:
> >
> > 
> >   
> >   
> >   
> > 
> >key="button.save"/>
> > 
> >   
> > 
> >   
> > ...
> >
> > i.e., the contacts im showing all have an id, which is the one used in the
> hidden field,
> > this enables me to use the correct row in the form processing... You are
> trying to set
> > the value of the hidden field yourself, if you instead specify the name
> and property as
> > above the correct value will be set automatically...
> >
> > ^terp
> >
> > > -Original Message-
> > > From: Jerzy Kalat [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 26, 2001 4:38 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: How can I pass extra information on Submit button?
> > >
> > >
> > > Hi Guys,
> > >
> > > I am still fighting with this issue :-(
> > >
> > > I have another question. How can I set value of hidden field to another
> > > property.
> > > As in following code, instead of value of element.id all I see in
> servlet is
> > > string 'element.id' :
> > >
> > > 
> > >  > >  name="<%= Constants.GEO_ENTITY_LIST %>">
> > >  
> > > 
> > > 
> > >  > > value="element.id"/>
> > >
> > >
> > >
> > > 
> > >
> > >  
> > > 
> > > 
> > >
> > > And another question. If I want to create on JSP page new bean, how can
> I
> > > access it in servlet?
> > >
> > > Thanks
> > > JK
> > >
> > > - Original Message -
> > > From: "David Winterfeldt" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:39 PM
> > > Subject: Re: How can I pass extra information on Submit button?
> > >
> > >
> > > > I haven't done this, but you might be able to do one
> > > > of these two things.  You could try using JavaScript
> > > > to change the value of the action and add the params
> > > > dynamically or each detail button would be a separate
> > > > form.
> > > >
> > > >  > > > name="registrationForm">
> > > >  > > >
> > > > onclick="document.form[0].action="registration.do?id=12"/>
> > > >
> > > >
> > > > The action will be processed correctly, but since it
> > > > can't automatically look the corresponding form bean
> > > > you need to specify it with the name attribute.  I
> > > > think this should work.
> > > >  > > > name="registrationForm">
> > > >
> > > > 
> > > >
> > > > David
> > > >
> > > > --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > > > > Thanks,
> > > > >
> > > > > Well, I know about this solution, but they insist on
> > > > > button.
> > > > >
> > > > >
> > > > > - Original Message -
> > > > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Monday, June 25, 2001 3:18 PM
> > > > > Subject: Re: How can I pass extra information on
> > > > > Submit button?
> > > > >
> > > > >
> > > > > > You could use a link rather than the submit
> > > > > button.
> > > > > > Then when you iterate through your result-set, you
> > > > > just add the 'id' to
> > > > > > the link.
> > > > > >
> > > > > > Pete
> > > > > >
> > > > > >
> > > > > > Jerzy Kalat wrote:
> > > > > >
> > > > > > > Hi, I list many records on the form. Each record
> > > > > has 'Details' submit
> > > > > > > button, which suppose to flip form from
> > > > > 'List'mode to 'Details' mode,
> > > > > > > where only 1 record is visible with all it
> > > > > fields. On my jsp page I
> > > > > > > have:   > > > > type="myApp.common.GeoEntity"
> > > > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > > > >  
> > > > > > > 
> > > > > > > 
> > > > > > ><%! WHAT
> > > > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > > > > FORM BEAN 'position'?
> > > > > > > %>
> > > > > > > 
> > > > > > >> > > > property="id"/>
> > > > > > >> > > > property="name"/>
> > > > > > > 
> > > > > > >  
> > > > > > >   I tried different things here
> > > > > but it does not work,
> > > > > > > or produce error. Any hints how to do it, or is
> > > > > there better way to
> > > > > > > approach it? Thanks in advance, JK
> > > > > >
> > > > >
> > > >
> > > >
> 

Re: How can I pass extra information on Submit button?

2001-06-26 Thread dhay



Yeah, that's one of the problems with changes - take a while to become official!

Ah, thought you just wanted to set the recordId in the hidden field...Peter
Alfors just posted how to do it if you want it set to the element.id.

Cheers,

Dave





"Jerzy Kalat" <[EMAIL PROTECTED]> on 06/26/2001 11:25:03 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: How can I pass extra information on Submit button?



Hi Dave

Well, I have binary version of Struts only, and I suspect that other members
of team
feel more comfortable to work with official release of Struts.

About your hint below: geoEntityForm is the form bean. recordId is one of
its properties,
So how the value of element.id will be passed? I have a feeling that I do
not see something
very obvious here.

The good think is that there is such a big response in this user group. I am
impressed, as when I worked on previous project with ATG Dynamo it was
completely different story :-)


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 11:00 AM
Subject: Re: How can I pass extra information on Submit button?


>
>
> Hi Jerzy,
>
> To get the value of the property in your form bean, don't add value= to
the
> hidden tag
>
> ie 
>
> Don't want to push my changes on you, but sure is easy to use the submit
button
> with an indexed name! ;-)
>
> Dave
>
>
>
>
>
> "Jerzy Kalat" <[EMAIL PROTECTED]> on 06/26/2001
10:37:34 AM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  Re: How can I pass extra information on Submit button?
>
>
>
> Hi Guys,
>
> I am still fighting with this issue :-(
>
> I have another question. How can I set value of hidden field to another
> property.
> As in following code, instead of value of element.id all I see in servlet
is
> string 'element.id' :
>
> 
>   name="<%= Constants.GEO_ENTITY_LIST %>">
>  
> 
> 
>  value="element.id"/>
>
>
>
> 
>
>  
> 
> 
>
> And another question. If I want to create on JSP page new bean, how can I
> access it in servlet?
>
> Thanks
> JK
>
> - Original Message -
> From: "David Winterfeldt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 3:39 PM
> Subject: Re: How can I pass extra information on Submit button?
>
>
> > I haven't done this, but you might be able to do one
> > of these two things.  You could try using JavaScript
> > to change the value of the action and add the params
> > dynamically or each detail button would be a separate
> > form.
> >
> >  > name="registrationForm">
> >  >
> > onclick="document.form[0].action="registration.do?id=12"/>
> >
> >
> > The action will be processed correctly, but since it
> > can't automatically look the corresponding form bean
> > you need to specify it with the name attribute.  I
> > think this should work.
> >  > name="registrationForm">
> >
> > 
> >
> > David
> >
> > --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > > Thanks,
> > >
> > > Well, I know about this solution, but they insist on
> > > button.
> > >
> > >
> > > - Original Message -
> > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:18 PM
> > > Subject: Re: How can I pass extra information on
> > > Submit button?
> > >
> > >
> > > > You could use a link rather than the submit
> > > button.
> > > > Then when you iterate through your result-set, you
> > > just add the 'id' to
> > > > the link.
> > > >
> > > > Pete
> > > >
> > > >
> > > > Jerzy Kalat wrote:
> > > >
> > > > > Hi, I list many records on the form. Each record
> > > has 'Details' submit
> > > > > button, which suppose to flip form from
> > > 'List'mode to 'Details' mode,
> > > > > where only 1 record is visible with all it
> > > fields. On my jsp page I
> > > > > have:   > > type="myApp.common.GeoEntity"
> > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > >  
> > > > > 
> > > > > 
> > > > ><%! WHAT
> > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > > FORM BEAN 'position'?
> > > > > %>
> > > > > 
> > > > >> > property="id"/>
> > > > >> > property="name"/>
> > > > > 
> > > > >  
> > > > >   I tried different things here
> > > but it does not work,
> > > > > or produce error. Any hints how to do it, or is
> > > there better way to
> > > > > approach it? Thanks in advance, JK
> > > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
>
>
>
>
>
>
>










Re: How can I pass extra information on Submit button?

2001-06-26 Thread Jerzy Kalat

Hi,

I have problem with understanding one thing here. How do you have access to
this hidden field in Action servlet? Does it mean that in form bean you have
to have property named 'contactId'?

JK

- Original Message -
From: "Torsten Terp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 11:05 AM
Subject: RE: How can I pass extra information on Submit button?


> Hi,
>
> I just hit the same problem last night, and did as follows:
>
> 
>   
>   
>   
> 
>   
> 
>   
> 
>   
> ...
>
> i.e., the contacts im showing all have an id, which is the one used in the
hidden field,
> this enables me to use the correct row in the form processing... You are
trying to set
> the value of the hidden field yourself, if you instead specify the name
and property as
> above the correct value will be set automatically...
>
> ^terp
>
> > -Original Message-
> > From: Jerzy Kalat [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 26, 2001 4:38 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How can I pass extra information on Submit button?
> >
> >
> > Hi Guys,
> >
> > I am still fighting with this issue :-(
> >
> > I have another question. How can I set value of hidden field to another
> > property.
> > As in following code, instead of value of element.id all I see in
servlet is
> > string 'element.id' :
> >
> > 
> >  >  name="<%= Constants.GEO_ENTITY_LIST %>">
> >  
> > 
> > 
> >  > value="element.id"/>
> >
> >
> >
> > 
> >
> >  
> > 
> > 
> >
> > And another question. If I want to create on JSP page new bean, how can
I
> > access it in servlet?
> >
> > Thanks
> > JK
> >
> > - Original Message -
> > From: "David Winterfeldt" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 25, 2001 3:39 PM
> > Subject: Re: How can I pass extra information on Submit button?
> >
> >
> > > I haven't done this, but you might be able to do one
> > > of these two things.  You could try using JavaScript
> > > to change the value of the action and add the params
> > > dynamically or each detail button would be a separate
> > > form.
> > >
> > >  > > name="registrationForm">
> > >  > >
> > > onclick="document.form[0].action="registration.do?id=12"/>
> > >
> > >
> > > The action will be processed correctly, but since it
> > > can't automatically look the corresponding form bean
> > > you need to specify it with the name attribute.  I
> > > think this should work.
> > >  > > name="registrationForm">
> > >
> > > 
> > >
> > > David
> > >
> > > --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > > > Thanks,
> > > >
> > > > Well, I know about this solution, but they insist on
> > > > button.
> > > >
> > > >
> > > > - Original Message -
> > > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, June 25, 2001 3:18 PM
> > > > Subject: Re: How can I pass extra information on
> > > > Submit button?
> > > >
> > > >
> > > > > You could use a link rather than the submit
> > > > button.
> > > > > Then when you iterate through your result-set, you
> > > > just add the 'id' to
> > > > > the link.
> > > > >
> > > > > Pete
> > > > >
> > > > >
> > > > > Jerzy Kalat wrote:
> > > > >
> > > > > > Hi, I list many records on the form. Each record
> > > > has 'Details' submit
> > > > > > button, which suppose to flip form from
> > > > 'List'mode to 'Details' mode,
> > > > > > where only 1 record is visible with all it
> > > > fields. On my jsp page I
> > > > > > have:   > > > type="myApp.common.GeoEntity"
> > > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > > >  
> > > > > > 
> > > > > > 
> > > > > ><%! WHAT
> > > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > > > FORM BEAN 'position'?
> > > > > > %>
> > > > > > 
> > > > > >> > > property="id"/>
> > > > > >> > > property="name"/>
> > > > > > 
> > > > > >  
> > > > > >   I tried different things here
> > > > but it does not work,
> > > > > > or produce error. Any hints how to do it, or is
> > > > there better way to
> > > > > > approach it? Thanks in advance, JK
> > > > >
> > > >
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > > http://personal.mail.yahoo.com/
> >
> >
> >




Re: How can I pass extra information on Submit button?

2001-06-26 Thread Jerzy Kalat

Hi Dave

Well, I have binary version of Struts only, and I suspect that other members
of team
feel more comfortable to work with official release of Struts.

About your hint below: geoEntityForm is the form bean. recordId is one of
its properties,
So how the value of element.id will be passed? I have a feeling that I do
not see something
very obvious here.

The good think is that there is such a big response in this user group. I am
impressed, as when I worked on previous project with ATG Dynamo it was
completely different story :-)


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 11:00 AM
Subject: Re: How can I pass extra information on Submit button?


>
>
> Hi Jerzy,
>
> To get the value of the property in your form bean, don't add value= to
the
> hidden tag
>
> ie 
>
> Don't want to push my changes on you, but sure is easy to use the submit
button
> with an indexed name! ;-)
>
> Dave
>
>
>
>
>
> "Jerzy Kalat" <[EMAIL PROTECTED]> on 06/26/2001
10:37:34 AM
>
> Please respond to [EMAIL PROTECTED]
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: David Hay/Lex/Lexmark)
> Subject:  Re: How can I pass extra information on Submit button?
>
>
>
> Hi Guys,
>
> I am still fighting with this issue :-(
>
> I have another question. How can I set value of hidden field to another
> property.
> As in following code, instead of value of element.id all I see in servlet
is
> string 'element.id' :
>
> 
>   name="<%= Constants.GEO_ENTITY_LIST %>">
>  
> 
> 
>  value="element.id"/>
>
>
>
> 
>
>  
> 
> 
>
> And another question. If I want to create on JSP page new bean, how can I
> access it in servlet?
>
> Thanks
> JK
>
> - Original Message -
> From: "David Winterfeldt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 3:39 PM
> Subject: Re: How can I pass extra information on Submit button?
>
>
> > I haven't done this, but you might be able to do one
> > of these two things.  You could try using JavaScript
> > to change the value of the action and add the params
> > dynamically or each detail button would be a separate
> > form.
> >
> >  > name="registrationForm">
> >  >
> > onclick="document.form[0].action="registration.do?id=12"/>
> >
> >
> > The action will be processed correctly, but since it
> > can't automatically look the corresponding form bean
> > you need to specify it with the name attribute.  I
> > think this should work.
> >  > name="registrationForm">
> >
> > 
> >
> > David
> >
> > --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > > Thanks,
> > >
> > > Well, I know about this solution, but they insist on
> > > button.
> > >
> > >
> > > - Original Message -
> > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:18 PM
> > > Subject: Re: How can I pass extra information on
> > > Submit button?
> > >
> > >
> > > > You could use a link rather than the submit
> > > button.
> > > > Then when you iterate through your result-set, you
> > > just add the 'id' to
> > > > the link.
> > > >
> > > > Pete
> > > >
> > > >
> > > > Jerzy Kalat wrote:
> > > >
> > > > > Hi, I list many records on the form. Each record
> > > has 'Details' submit
> > > > > button, which suppose to flip form from
> > > 'List'mode to 'Details' mode,
> > > > > where only 1 record is visible with all it
> > > fields. On my jsp page I
> > > > > have:   > > type="myApp.common.GeoEntity"
> > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > >  
> > > > > 
> > > > > 
> > > > ><%! WHAT
> > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > > FORM BEAN 'position'?
> > > > > %>
> > > > > 
> > > > >> > property="id"/>
> > > > >> > property="name"/>
> > > > > 
> > > > >  
> > > > >   I tried different things here
> > > but it does not work,
> > > > > or produce error. Any hints how to do it, or is
> > > there better way to
> > > > > approach it? Thanks in advance, JK
> > > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
>
>
>
>
>
>
>




Re: How can I pass extra information on Submit button?

2001-06-26 Thread Peter Alfors

try this:



If you want to create a bean on the jsp page (???), then you will need to place
it in the session before leaving the page so that the servlet is able to
retrieve it later.

HTH,
Pete

Jerzy Kalat wrote:

> Hi Guys,
>
> I am still fighting with this issue :-(
>
> I have another question. How can I set value of hidden field to another
> property.
> As in following code, instead of value of element.id all I see in servlet is
> string 'element.id' :
>
> 
>   name="<%= Constants.GEO_ENTITY_LIST %>">
>  
> 
> 
>  value="element.id"/>
>
>
>
> 
>
>  
> 
> 
>
> And another question. If I want to create on JSP page new bean, how can I
> access it in servlet?
>
> Thanks
> JK
>
> - Original Message -
> From: "David Winterfeldt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 3:39 PM
> Subject: Re: How can I pass extra information on Submit button?
>
> > I haven't done this, but you might be able to do one
> > of these two things.  You could try using JavaScript
> > to change the value of the action and add the params
> > dynamically or each detail button would be a separate
> > form.
> >
> >  > name="registrationForm">
> >  >
> > onclick="document.form[0].action="registration.do?id=12"/>
> >
> >
> > The action will be processed correctly, but since it
> > can't automatically look the corresponding form bean
> > you need to specify it with the name attribute.  I
> > think this should work.
> >  > name="registrationForm">
> >
> > 
> >
> > David
> >
> > --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > > Thanks,
> > >
> > > Well, I know about this solution, but they insist on
> > > button.
> > >
> > >
> > > - Original Message -
> > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:18 PM
> > > Subject: Re: How can I pass extra information on
> > > Submit button?
> > >
> > >
> > > > You could use a link rather than the submit
> > > button.
> > > > Then when you iterate through your result-set, you
> > > just add the 'id' to
> > > > the link.
> > > >
> > > > Pete
> > > >
> > > >
> > > > Jerzy Kalat wrote:
> > > >
> > > > > Hi, I list many records on the form. Each record
> > > has 'Details' submit
> > > > > button, which suppose to flip form from
> > > 'List'mode to 'Details' mode,
> > > > > where only 1 record is visible with all it
> > > fields. On my jsp page I
> > > > > have:   > > type="myApp.common.GeoEntity"
> > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > >  
> > > > > 
> > > > > 
> > > > ><%! WHAT
> > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > > FORM BEAN 'position'?
> > > > > %>
> > > > > 
> > > > >> > property="id"/>
> > > > >> > property="name"/>
> > > > > 
> > > > >  
> > > > >   I tried different things here
> > > but it does not work,
> > > > > or produce error. Any hints how to do it, or is
> > > there better way to
> > > > > approach it? Thanks in advance, JK
> > > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;
version:2.1
end:vcard



RE: How can I pass extra information on Submit button?

2001-06-26 Thread Torsten Terp

Hi,

I just hit the same problem last night, and did as follows:


  
  
  

  



  
...

i.e., the contacts im showing all have an id, which is the one used in the hidden 
field,
this enables me to use the correct row in the form processing... You are trying to set 
the value of the hidden field yourself, if you instead specify the name and property 
as  
above the correct value will be set automatically...

^terp

> -Original Message-
> From: Jerzy Kalat [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 4:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How can I pass extra information on Submit button?
> 
> 
> Hi Guys,
> 
> I am still fighting with this issue :-(
> 
> I have another question. How can I set value of hidden field to another
> property.
> As in following code, instead of value of element.id all I see in servlet is
> string 'element.id' :
> 
> 
>   name="<%= Constants.GEO_ENTITY_LIST %>">
>  
> 
> 
>  value="element.id"/>
>
>
>
> 
>
>  
> 
> 
> 
> And another question. If I want to create on JSP page new bean, how can I
> access it in servlet?
> 
> Thanks
> JK
> 
> - Original Message -
> From: "David Winterfeldt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 3:39 PM
> Subject: Re: How can I pass extra information on Submit button?
> 
> 
> > I haven't done this, but you might be able to do one
> > of these two things.  You could try using JavaScript
> > to change the value of the action and add the params
> > dynamically or each detail button would be a separate
> > form.
> >
> >  > name="registrationForm">
> >  >
> > onclick="document.form[0].action="registration.do?id=12"/>
> >
> >
> > The action will be processed correctly, but since it
> > can't automatically look the corresponding form bean
> > you need to specify it with the name attribute.  I
> > think this should work.
> >  > name="registrationForm">
> >
> > 
> >
> > David
> >
> > --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > > Thanks,
> > >
> > > Well, I know about this solution, but they insist on
> > > button.
> > >
> > >
> > > - Original Message -
> > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:18 PM
> > > Subject: Re: How can I pass extra information on
> > > Submit button?
> > >
> > >
> > > > You could use a link rather than the submit
> > > button.
> > > > Then when you iterate through your result-set, you
> > > just add the 'id' to
> > > > the link.
> > > >
> > > > Pete
> > > >
> > > >
> > > > Jerzy Kalat wrote:
> > > >
> > > > > Hi, I list many records on the form. Each record
> > > has 'Details' submit
> > > > > button, which suppose to flip form from
> > > 'List'mode to 'Details' mode,
> > > > > where only 1 record is visible with all it
> > > fields. On my jsp page I
> > > > > have:   > > type="myApp.common.GeoEntity"
> > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > >  
> > > > > 
> > > > > 
> > > > ><%! WHAT
> > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > > FORM BEAN 'position'?
> > > > > %>
> > > > > 
> > > > >> > property="id"/>
> > > > >> > property="name"/>
> > > > > 
> > > > >  
> > > > >   I tried different things here
> > > but it does not work,
> > > > > or produce error. Any hints how to do it, or is
> > > there better way to
> > > > > approach it? Thanks in advance, JK
> > > >
> > >
> >
> >
> > __
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> 
> 
> 



Re: How can I pass extra information on Submit button?

2001-06-26 Thread dhay



Hi Jerzy,

To get the value of the property in your form bean, don't add value= to the
hidden tag

ie 

Don't want to push my changes on you, but sure is easy to use the submit button
with an indexed name! ;-)

Dave





"Jerzy Kalat" <[EMAIL PROTECTED]> on 06/26/2001 10:37:34 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: How can I pass extra information on Submit button?



Hi Guys,

I am still fighting with this issue :-(

I have another question. How can I set value of hidden field to another
property.
As in following code, instead of value of element.id all I see in servlet is
string 'element.id' :



 



   
   
   

   
 



And another question. If I want to create on JSP page new bean, how can I
access it in servlet?

Thanks
JK

- Original Message -
From: "David Winterfeldt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 3:39 PM
Subject: Re: How can I pass extra information on Submit button?


> I haven't done this, but you might be able to do one
> of these two things.  You could try using JavaScript
> to change the value of the action and add the params
> dynamically or each detail button would be a separate
> form.
>
>  name="registrationForm">
> 
> onclick="document.form[0].action="registration.do?id=12"/>
>
>
> The action will be processed correctly, but since it
> can't automatically look the corresponding form bean
> you need to specify it with the name attribute.  I
> think this should work.
>  name="registrationForm">
>
> 
>
> David
>
> --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > Thanks,
> >
> > Well, I know about this solution, but they insist on
> > button.
> >
> >
> > - Original Message -
> > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 25, 2001 3:18 PM
> > Subject: Re: How can I pass extra information on
> > Submit button?
> >
> >
> > > You could use a link rather than the submit
> > button.
> > > Then when you iterate through your result-set, you
> > just add the 'id' to
> > > the link.
> > >
> > > Pete
> > >
> > >
> > > Jerzy Kalat wrote:
> > >
> > > > Hi, I list many records on the form. Each record
> > has 'Details' submit
> > > > button, which suppose to flip form from
> > 'List'mode to 'Details' mode,
> > > > where only 1 record is visible with all it
> > fields. On my jsp page I
> > > > have:   > type="myApp.common.GeoEntity"
> > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > >  
> > > > 
> > > > 
> > > ><%! WHAT
> > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > FORM BEAN 'position'?
> > > > %>
> > > > 
> > > >> property="id"/>
> > > >> property="name"/>
> > > > 
> > > >  
> > > >   I tried different things here
> > but it does not work,
> > > > or produce error. Any hints how to do it, or is
> > there better way to
> > > > approach it? Thanks in advance, JK
> > >
> >
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/










Problem w/ session id under iplanet web server

2001-06-26 Thread Jeff Trent



The first reference to a [struts] form generates an 
action="/myapp/formAction.do;jsessionid=xyz"   As a result, iPlanet 
seems to not be able to complete my request and returns a 404 instead.  
GETs and POSTs behave the same way when the session id is passed.  I'm sure 
its a simple iPlanet configuration issue but I'm stuck... Any help?
 
Thanks,
Jeff
 


Re: Internationalization

2001-06-26 Thread Michelle Popovits

Hi Vinay,

I have recently been learning about the internationalization myself and so
far I have found 2 ways to change the locale:
1.  Change the language setting in your browser and the struts framework
will automatically pick this up.
2.  Manually set the local in the user's session once you have determined
which language they would like.
For example:

   Locale locale = Locale.FRENCH;
   session.setAttribute(Action.LOCALE_KEY , locale);

Then it's just a matter of:
a) including an application resources file for each locale you plan to
support.
b) registering the main resource file with the struts framework.

Regards,
Michelle

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 10:07 AM
Subject: Internationalization


>
>
> I am learning the struct architecture. I want to use the
internationalization in
> my application. I have seen the example application that is currently
using the
> internationalization. I want to change the locale of the application.
Which are
> the points in the architecture I have to change to use the different
locale.
> I have tried but unable to change. I will be thanful to you if anyone
solve my
> problem.
> Vinay.
>




Re: indexed tags (was - How can I pass extra information on Submit button?)

2001-06-26 Thread dhay



Hi Laine,

Yep, I am hoping that it will be included in the formal releases.  Hopefully
tomorrow or Thursday I will post it all to the -dev list to see about this.
Hopefully that will mean it will be in a daily build soon.  Not sure when 1.1
will start being released.  The code I have posted is very easy to add to
existing Struts as it makes changes to the existing tags, rather than
introducing some new ones.

I'll check in to the property depth stuff too.

Cheers,

Dave




"Laine Donlan" <[EMAIL PROTECTED]> on 06/26/2001 09:55:53
AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  indexed tags (was - How can I pass extra information on Submit
  button?)



Dave -

I have been off the list for a while so I missed your original post.
Any idea if these indexed tags might make it into the formal releases?
We are beginning the process of transisitioning to the final 1.0 release
but would wait for an early 1.1 release if this would be included.

One other valuable thing I would think that might be useful to add to
the indexing would be some sort of property depth attribute.  In many
cases our form classes are merely wrappers for value objects (which in
some cases have their own arrays of value objects) so our form
properties may end of looking something like:
 
 

Thanks

Laine
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 4:10 PM
To: [EMAIL PROTECTED]
Subject: Re: How can I pass extra information on Submit button?




As already posted to the list, I have been working to change most of the
tags to
generate indexed names within an iterate loop, for just this kind of
situation.

I have just changed the code for submit, so that the index of your
iterated
collection is added to the name ie name="submit[0]" etc.  In your action
you can
then check which button was pressed, and display details for this
record.
Avoids javascript!

I am attaching an updated zip file to include this.  When I get some
time, I
will post all this to the dev list, to see about getting it added to
Struts.

Instructions as per previous posting:


Instructions for use:
- unpack attached zip file (this mailing list only accepts messages <
100K!!)
and copy .java files to ../org/apache/struts/taglib/html/
- rebuild struts
- add the struts-html.tld to your WEB-INF directory
- within an iterate tag, simply add "indexed=true" to the tag you wish
to use.
Eg to produce the text tag

  

use:
  
  ...

  ...
  

[in this case, simply do:  

Hope this helps,

Dave

(See attached file: struts indexed files.ZIP)





Peter Alfors <[EMAIL PROTECTED]> on
06/25/2001
03:39:28 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: How can I pass extra information on Submit button?




You could place the id in the name of the submit button...  Then the
action
could parse the name of the submit button that was pressed for the
id
There must be a better method than this... But I have not come across
this
before, and that is what popped in my head.

Or.. If you can use javascript, you can set the form action (with the
id) and
submit the form with a simple javascript call.
However, you must be able to gaurentee that all users will have
javascript
enabled.
We do this... (But we are able to force our users to enable javascript)

Pete


Jerzy Kalat wrote:

> Yes, you can see it already in my piece of code, the first 
>
> - Original Message -
> From: "Peter Alfors" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 3:24 PM
> Subject: Re: How can I pass extra information on Submit button?
>
> > Are you going to place a button next to each record in the list?
> >
> >
> > Jerzy Kalat wrote:
> >
> > > Thanks,
> > >
> > > Well, I know about this solution, but they insist on button.
> > >
> > > - Original Message -
> > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:18 PM
> > > Subject: Re: How can I pass extra information on Submit button?
> > >
> > > > You could use a link rather than the submit button.
> > > > Then when you iterate through your result-set, you just add the
'id'
> to
> > > > the link.
> > > >
> > > > Pete
> > > >
> > > >
> > > > Jerzy Kalat wrote:
> > > >
> > > > > Hi, I list many records on the form. Each record has 'Details'
> submit
> > > > > button, which suppose to flip form from 'List'mode to
'Details'
> mode,
> > > > > where only 1 record is visible with all it fields. On my jsp
page I
> > > > > have:   > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > >  
> > > > > 
> > > > > 
> > > > ><%!
WHAT
> > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into FORM BEAN
'position'?
> > > > > %>
> > > > > 
> > > > >   
> > > > >   
> > > > > 
> > > > >  
> > > > >   I trie

Re: Form problem

2001-06-26 Thread dhay



Andrew,

Hi.  I just posted to the list some adjustments to the struts tags to do exactly
this.  (see "Re: How can I pass extra information on Submit button?" - or see "
Proposal to add "indexed" to tags for Grid/Matrix-type use of Struts")

In your case, you would just add 'indexed="true"' to your text field, and it
will generate the name "searchField[x].id" where x is the index of your
collection.  Have been using it a lot myself, and very pleased with the result.
When I get a minute (got a big presentation today!) I will post the code to the
struts-dev list and hopefully have it added to the Struts source.

Cheers,

Dave

PS  Attaching latest zip which now includes the LINK tag which can be indexed.
In this case, an extra parameter is added to the query string "...index=x" where
x is index of collection.

(See attached file: struts indexed files.ZIP)



Andrew Paul Swift <[EMAIL PROTECTED]> on
06/26/2001 06:24:55 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'"
  <[EMAIL PROTECTED]>
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Form problem



I have an array beans which I am trying to use to build up a dynamic form.
The bean has 3 properties DisplayName, id and value.

The id property is the unique identifier that corresponds to the name of the
HTML input field.
The value property contains the value of the HTML text field.
The displayName property contains the name that should be displayed next to
the form field.

so... I iterate through the array and build up the form


   


   


which produces this output ...


 FORNAVN
 


 LASTNAME
 


but... the HTML name attribute is always "id" which means that I can't
identify the individual fields.
I want the name attribute of the HTML input field to be the value stored in
beans id property!

n.b. I have no control over what the search fields may be. I just have to
handle whatever I get.


Any ideas??

cheers


Andrew


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes





 .ZIP File


Re: How can I pass extra information on Submit button?

2001-06-26 Thread Jerzy Kalat

Hi Guys,

I am still fighting with this issue :-(

I have another question. How can I set value of hidden field to another
property.
As in following code, instead of value of element.id all I see in servlet is
string 'element.id' :



 



   
   
   

   
 



And another question. If I want to create on JSP page new bean, how can I
access it in servlet?

Thanks
JK

- Original Message -
From: "David Winterfeldt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 25, 2001 3:39 PM
Subject: Re: How can I pass extra information on Submit button?


> I haven't done this, but you might be able to do one
> of these two things.  You could try using JavaScript
> to change the value of the action and add the params
> dynamically or each detail button would be a separate
> form.
>
>  name="registrationForm">
> 
> onclick="document.form[0].action="registration.do?id=12"/>
>
>
> The action will be processed correctly, but since it
> can't automatically look the corresponding form bean
> you need to specify it with the name attribute.  I
> think this should work.
>  name="registrationForm">
>
> 
>
> David
>
> --- Jerzy Kalat <[EMAIL PROTECTED]> wrote:
> > Thanks,
> >
> > Well, I know about this solution, but they insist on
> > button.
> >
> >
> > - Original Message -
> > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, June 25, 2001 3:18 PM
> > Subject: Re: How can I pass extra information on
> > Submit button?
> >
> >
> > > You could use a link rather than the submit
> > button.
> > > Then when you iterate through your result-set, you
> > just add the 'id' to
> > > the link.
> > >
> > > Pete
> > >
> > >
> > > Jerzy Kalat wrote:
> > >
> > > > Hi, I list many records on the form. Each record
> > has 'Details' submit
> > > > button, which suppose to flip form from
> > 'List'mode to 'Details' mode,
> > > > where only 1 record is visible with all it
> > fields. On my jsp page I
> > > > have:   > type="myApp.common.GeoEntity"
> > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > >  
> > > > 
> > > > 
> > > ><%! WHAT
> > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into
> > FORM BEAN 'position'?
> > > > %>
> > > > 
> > > >> property="id"/>
> > > >> property="name"/>
> > > > 
> > > >  
> > > >   I tried different things here
> > but it does not work,
> > > > or produce error. Any hints how to do it, or is
> > there better way to
> > > > approach it? Thanks in advance, JK
> > >
> >
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/




RE: Form problem

2001-06-26 Thread Niall Pemberton

There are quite a few messages in the archive about this:

   http://www.mail-archive.com/struts-user%40jakarta.apache.org/

You have a choice - use scriptlets to generate an appropriate name with the
index of the row or create custom versions of struts tags which do it. We
choose the later.

Martin Cooper recently added and indexId scripting variable which can help
you with this - message in the archice about this is:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg09767.html

An example thread this was discussed:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07656.html
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg07767.html

Also Dave Hay posted some updated Struts tags which generate the name
appropriately (havent looked at them myself):

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg10006.html


Niall

> -Original Message-
> From: Andrew Paul Swift [mailto:[EMAIL PROTECTED]]
> Sent: 26 June 2001 11:25
> To: '[EMAIL PROTECTED]'
> Subject: Form problem
>
>
> I have an array beans which I am trying to use to build up a dynamic form.
> The bean has 3 properties DisplayName, id and value.
>
> The id property is the unique identifier that corresponds to the
> name of the
> HTML input field.
> The value property contains the value of the HTML text field.
> The displayName property contains the name that should be
> displayed next to
> the form field.
>
> so... I iterate through the array and build up the form
>
>  name="<%=Constants.SEARCH_FIELD_KEY %>">
>   
>name="searchField"property="displayName" />
>name="searchField"property="id" />
>   
> 
>
> which produces this output ...
>
> 
>   FORNAVN
>   
> 
> 
>   LASTNAME
>   
> 
>
> but... the HTML name attribute is always "id" which means that I can't
> identify the individual fields.
> I want the name attribute of the HTML input field to be the value
> stored in
> beans id property!
>
> n.b. I have no control over what the search fields may be. I just have to
> handle whatever I get.
>
>
> Any ideas??
>
> cheers
>
>
> Andrew
>
>
> -
> To send us encrypted mail, please refer to:
> http://www.millionhandshakes.com/emailpolicy/pgp.html
>
> Million Handshakes
>




RE: File Upload Problem

2001-06-26 Thread Darryl Pentz

Just to confirm to the NG that we do seem to have a problem with the way
that org.apache.struts.upload.MultipartIterator.java does the
createLocalFile(). I've tested this quite a bit today and have found that
Struts-b1 worked fine with this spreadsheet. Thereafter, the
createLocalFile() was COMPLETELY redesigned and it's also with this redesign
that the spreadsheet gets corrupted.

The change fixed the problem some found uploading ZIP files (including
myself) but this new problem persists.

thanks,
Darryl

-Original Message-
From: Darryl Pentz [mailto:[EMAIL PROTECTED]]
Sent: 26 June 2001 13:47
To: [EMAIL PROTECTED]
Subject: RE: File Upload Problem


That's just it. We HAVE upgraded to Struts 1.0 final. This fixed a problem
we were having with ZIP files but now it seems we can't view spreadsheets
and documents that are successfully uploaded. In other words, they do upload
fine, but when you try and view them, Excel can't open them up.

- Darryl

-Original Message-
From: Krueger, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 26 June 2001 13:22
To: [EMAIL PROTECTED]
Subject: RE: File Upload Problem


I just got done fighting this problem for the last week.  Upgrade to struts
1.0 and that will solve your problem.

Jeff Krueger


-Original Message-
From: Darryl Pentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 4:38 AM
To: [EMAIL PROTECTED]
Subject: File Upload Problem


Hi all,

Has anyone else experienced problems with the file upload lately? I'm
finding that uploaded files are being corrupted. It doesn't seem to matter
what type the document is. I've found an Excel spreadsheet and a Word
document that have displayed problems. It seems, doing a binary compare,
that a 0A is being inserted arbitrarily. I'm looking at
MultipartIterator.java as the possible culprit as that's where a 0A ('\n')
is being inserted.

If anyone can point out the error of my ways I'd appreciate it. I don't know
why we're only finding this problem now since we've been testing uploads
regularly. Unless it has to do with the fixes in 1.0 final that maybe broke
something. I'm a little out of my depth here since I'm still fairly new to
the intricacies of Struts.

thanks,
Darryl





Re: Internationalization

2001-06-26 Thread Peter Alfors

The ActionServlet class stores the users locale (retrieved from the browser) during
the first request.
(see ProcessLocale() method)
It is stored in the user's session under the key: Action.LOCALE_KEY  <-- member
variable of Action class.

Therefore, to change the locale, you need to change the value stored in this session
attribute.
Or, the message tags also allow a you to pass an attribute key that stores the
locale you want to use.

If you want the user to be able to switch locales on the fly (from the browser
settings), then you will need to over-ride the
processLocale() method to store it for each request.  We do this for demo
purposes...
Otherwise, the user may close his browser, and restart with a new locale.

HTH,
Pete

[EMAIL PROTECTED] wrote:

> I am learning the struct architecture. I want to use the internationalization in
> my application. I have seen the example application that is currently using the
> internationalization. I want to change the locale of the application. Which are
> the points in the architecture I have to change to use the different locale.
> I have tried but unable to change. I will be thanful to you if anyone solve my
> problem.
> Vinay.


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;
version:2.1
end:vcard



RE: Internationalization

2001-06-26 Thread Andrew Paul Swift

Not sure if this is what you want, 
but I changed the locale using my web browser.

if using IE it is tools>internet options>languages 
n.b. you may need to stop and start IE for the change to be noticed.


cheers

Andy

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: 26. juni 2001 16:07
> To: [EMAIL PROTECTED]
> Subject: Internationalization
> 
> 
> 
> 
> I am learning the struct architecture. I want to use the 
> internationalization in
> my application. I have seen the example application that is 
> currently using the
> internationalization. I want to change the locale of the 
> application. Which are
> the points in the architecture I have to change to use the 
> different locale.
> I have tried but unable to change. I will be thanful to you 
> if anyone solve my
> problem.
> Vinay.
> 
> 


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes



Re: How to submit a form using usemap

2001-06-26 Thread Peter Alfors

Clicking a hyperlink does not submit a form.  Fields within a form are
only passed through the request when the form is submitted.  Therefore,
you need to have your image hyperlink submit the form.
You can do this using javascript.  Check the archives, there are many
messages about this.

Pete


Eda Srinivasareddy wrote:

>  Hi
>
> I have a big image with different mapping areas. In that I have one
> 'go' mapping area by clicking which, I should submit the form. I could
> receive only null values into the ActionForm which does mean that the
> values are not being submitted.Could u please help!
>
> Have a nice time.
>
> Eda
>
>
> ---
> Do You Yahoo!?
> Yahoo! Mail Personal Address - Get email at your own domain with
> Yahoo! Mail.


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;
version:2.1
end:vcard



Internationalization

2001-06-26 Thread Vinay . Dhuri



I am learning the struct architecture. I want to use the internationalization in
my application. I have seen the example application that is currently using the
internationalization. I want to change the locale of the application. Which are
the points in the architecture I have to change to use the different locale.
I have tried but unable to change. I will be thanful to you if anyone solve my
problem.
Vinay.





Re: Dynamic Value (Scriptlet) in ApplicationResources.properties

2001-06-26 Thread Peter Alfors

try:



As for the "alt" attribute, it looks at though the html:img taglib will only
accept either a string or a resource bundle key.
Since you cannot nest taglibs (use  a taglib as an attribute for another) you
would need to retrieve the alt message from your bean, place it in a scriptlet
variable, and then use the variable in the taglib...


HTH,
   Pete


Matt Raible wrote:

> Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
> list.  Thanks.
>
> Is it possible to get the alt value of an  element from the
> message bean?  For instance:
>
>  height="12" align="absmiddle" alt=" key="required.image.alt"/>" />
>
> - Original Message -
> From: "Matt Raible" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 7:08 AM
> Subject: Dynamic Value (Scriptlet) in ApplicationResources.properties
>
> > Please respond to me at [EMAIL PROTECTED] as I am not subscribed to
> this
> > list.  Thanks.
> >
> >
> > Is it possible to place a dynamic element in my
> > ApplicationResources.properties?
> >
> > For instance,
> >
> > required.image =  > width="10" height="12" align="absmiddle">
> >
> > In my jsp page, I try to get this value using  > key="required.image"/>, but the value comes back as
> >
> >  height="12"
> > align="absmiddle">
> >
> > If this is not possible, how do I make the tag below work with a scriplet
> > value?  Right now, I get an error trying to parse it.
> >
> >  >height="12" align="absmiddle" alt="Required Field Image" />
> >
> >
> >
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/images/common/logo_top_right.gif";>
adr:;;
version:2.1
end:vcard



indexed tags (was - How can I pass extra information on Submit button?)

2001-06-26 Thread Laine Donlan

Dave -

I have been off the list for a while so I missed your original post.
Any idea if these indexed tags might make it into the formal releases?
We are beginning the process of transisitioning to the final 1.0 release
but would wait for an early 1.1 release if this would be included.

One other valuable thing I would think that might be useful to add to
the indexing would be some sort of property depth attribute.  In many
cases our form classes are merely wrappers for value objects (which in
some cases have their own arrays of value objects) so our form
properties may end of looking something like:



Thanks

Laine
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 4:10 PM
To: [EMAIL PROTECTED]
Subject: Re: How can I pass extra information on Submit button?




As already posted to the list, I have been working to change most of the
tags to
generate indexed names within an iterate loop, for just this kind of
situation.

I have just changed the code for submit, so that the index of your
iterated
collection is added to the name ie name="submit[0]" etc.  In your action
you can
then check which button was pressed, and display details for this
record.
Avoids javascript!

I am attaching an updated zip file to include this.  When I get some
time, I
will post all this to the dev list, to see about getting it added to
Struts.

Instructions as per previous posting:


Instructions for use:
- unpack attached zip file (this mailing list only accepts messages <
100K!!)
and copy .java files to ../org/apache/struts/taglib/html/
- rebuild struts
- add the struts-html.tld to your WEB-INF directory
- within an iterate tag, simply add "indexed=true" to the tag you wish
to use.
Eg to produce the text tag

  

use:
  
  ...

  ...
  

[in this case, simply do:  

Hope this helps,

Dave

(See attached file: struts indexed files.ZIP)





Peter Alfors <[EMAIL PROTECTED]> on
06/25/2001
03:39:28 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject:  Re: How can I pass extra information on Submit button?




You could place the id in the name of the submit button...  Then the
action
could parse the name of the submit button that was pressed for the
id
There must be a better method than this... But I have not come across
this
before, and that is what popped in my head.

Or.. If you can use javascript, you can set the form action (with the
id) and
submit the form with a simple javascript call.
However, you must be able to gaurentee that all users will have
javascript
enabled.
We do this... (But we are able to force our users to enable javascript)

Pete


Jerzy Kalat wrote:

> Yes, you can see it already in my piece of code, the first 
>
> - Original Message -
> From: "Peter Alfors" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 25, 2001 3:24 PM
> Subject: Re: How can I pass extra information on Submit button?
>
> > Are you going to place a button next to each record in the list?
> >
> >
> > Jerzy Kalat wrote:
> >
> > > Thanks,
> > >
> > > Well, I know about this solution, but they insist on button.
> > >
> > > - Original Message -
> > > From: "Peter Alfors" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, June 25, 2001 3:18 PM
> > > Subject: Re: How can I pass extra information on Submit button?
> > >
> > > > You could use a link rather than the submit button.
> > > > Then when you iterate through your result-set, you just add the
'id'
> to
> > > > the link.
> > > >
> > > > Pete
> > > >
> > > >
> > > > Jerzy Kalat wrote:
> > > >
> > > > > Hi, I list many records on the form. Each record has 'Details'
> submit
> > > > > button, which suppose to flip form from 'List'mode to
'Details'
> mode,
> > > > > where only 1 record is visible with all it fields. On my jsp
page I
> > > > > have:   > > > > name="<%= Constants.GEO_ENTITY_LIST %>">
> > > > >  
> > > > > 
> > > > > 
> > > > ><%!
WHAT
> > > > > SHOULD I PUT HERE TO PASS PROPERTY 'id' into FORM BEAN
'position'?
> > > > > %>
> > > > > 
> > > > >   
> > > > >   
> > > > > 
> > > > >  
> > > > >   I tried different things here but it does
not
> work,
> > > > > or produce error. Any hints how to do it, or is there better
way to
> > > > > approach it? Thanks in advance, JK
> > > >
> >




Submitting unicode characters from form fields

2001-06-26 Thread Hartmut Bernecker

Guten Tag,

my problem is:
How can unicode be submitted from form fields in an adequate way to the
server?

I'm using the struts framework and trying to submit some unicode text in
a HTML form to the server. My Target is, to use that unicode characters
on the server (as parameter for a RPC to a lecacy application).

It is not a problem for me to display that unicode characters in the
browser by declaring:

   <%@ page language="java" contentType="text/html;charset=UTF-8" %>

   and in the head:

   

But it is a problem to go the way in the other direction:

1. The IE5.5 (much better: Netscape 6) does not display the unicode
characters in the form field correctly (i. e. he shows something like
|||). BTW: I cut & paste the Unicode from the browser from a page
that displays unicode characters (s.a.).

2. When I submit the form, then I ask in the Action-Class for
request.getCharacterEncoding(), but the resulting String is null, even
though I specified in my JSP something like:
. Why is getCharacterEncoding() ==
null??

3. When I read the form-field with the unicode data, I get:
Ë?ãúã?ã?ã¦ã©ã©. I think, this is UTF-8, isn't it (I'm not sure)?

4. When I take exactly that string and display it again with a JSP-Page,
I get somthing other (ӁƣÆ?Æ?ƱƸƸ) than the original, from where I
cutted & pasted the characters (s. a.). Why?

Question: Must I convert the POSTed data before processing with it? Must
I implement some mechanism for converting UTF-8[??] to Unicode?

I greatly appreciate your help!

Chiao
Hartmut



Re: can the "html:link"-tag be used as a mailto-link?

2001-06-26 Thread Ted Husted

I don't believe you can. Though being able to specify alternate schemes
would be helpful for some other things, like switching over to a secure
connection. 

Meanwhile, you can do this: 

">Email
User

The main purpose of the html:link tag is to preserve the session when
cookies are not avaialable, which wouldn't apply to a mailto: tag.

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

Marcel Andres wrote:
> 
> Hi there
> 
> I have a link in an existing page like this:
> 
> mailto:[EMAIL PROTECTED]";>
>   
> 
>   
> 
> 
> Is there a possibility to use the "html:link"-tag for this? And if yes, which 
>parameter do I need?
> I couldn't find any example for something like this.
> 
> Marcel Andres



Re: Dynamic Value (Scriptlet) in ApplicationResources.properties

2001-06-26 Thread Matt Raible

Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
list.  Thanks.

Is it possible to get the alt value of an  element from the
message bean?  For instance:

" />


- Original Message -
From: "Matt Raible" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 7:08 AM
Subject: Dynamic Value (Scriptlet) in ApplicationResources.properties


> Please respond to me at [EMAIL PROTECTED] as I am not subscribed to
this
> list.  Thanks.
>
>
> Is it possible to place a dynamic element in my
> ApplicationResources.properties?
>
> For instance,
>
> required.image =  width="10" height="12" align="absmiddle">
>
> In my jsp page, I try to get this value using  key="required.image"/>, but the value comes back as
>
>  align="absmiddle">
>
> If this is not possible, how do I make the tag below work with a scriplet
> value?  Right now, I get an error trying to parse it.
>
> height="12" align="absmiddle" alt="Required Field Image" />
>
>
>


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




can the "html:link"-tag be used as a mailto-link?

2001-06-26 Thread Marcel Andres

Hi there

I have a link in an existing page like this:

mailto:[EMAIL PROTECTED]";>
  

  


Is there a possibility to use the "html:link"-tag for this? And if yes, which 
parameter do I need?
I couldn't find any example for something like this.

Marcel Andres



FW: problem with pre-compiling jsp pages with struts custom tags

2001-06-26 Thread Sibon Barman

I am forwarding the attached email again  seems like I sent the email at
a bad time yesterday (no response yet).


> I am using Tomcat 3.2.2 and Struts 1.0 for translating the jsp pages.
> 
> When I compile a jsp pages containing reference to struts cutom tag
> library, I get the following error message:
> 
> 2001-06-25 04:35:08 - Package name is: jsp
> 2001-06-25 04:35:08 - Class file name is:
> D:\web-test\Ems2.0\win\WEB-INF\classes\JspServ_pre\jsp\_0002fjsp_0002finde
> x_0002ejspindex.class
> 2001-06-25 04:35:08 - Java file name is:
> D:\web-test\Ems2.0\win\WEB-INF\classes\JspServ_pre\jsp\index.java
> 2001-06-25 04:35:08 - Class name is: index
> 2001-06-25 04:35:08 - 
> Handling Directive: page  {language=java}
> 2001-06-25 04:35:08 - Accepted org.apache.jasper.compiler.Parser$Directive
> at D:\web-test\Ems2.0\win\jsp\index.jsp(0,0)
> 2001-06-25 04:35:08 - 
> Handling Directive: taglib{uri=/WEB-INF/struts-bean.tld, prefix=bean}
> 
> BUILD FAILED
> 
> D:\web-test\dev.xml:1141: java.lang.LinkageError: loader constraints
> violated when linking org/xml/sax/EntityResolver class
> --- Nested Exception ---
> java.lang.LinkageError: loader constraints violated when linking
> org/xml/sax/EntityResolver class
>   at
> org.apache.jasper.compiler.JspUtil.parseXMLDocJaxp(JspUtil.java:161)
>   at org.apache.jasper.compiler.JspUtil.parseXMLDoc(JspUtil.java:138)
>   at
> org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.ja
> va:170)
>   at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseE
> ventListener.java:706)
>   at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingLi
> stener.java:116)
>   at
> org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
>   at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
>   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
>   at org.apache.jasper.JspC.parseFile(JspC.java:376)
>   at org.apache.jasper.JspC.parseFiles(JspC.java:641)
>   at org.apache.jasper.JspC.main(JspC.java:689)
>   at java.lang.reflect.Method.invoke(Native Method)
>   at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:127)
>   at org.apache.tools.ant.taskdefs.Java.run(Java.java:260)
>   at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:123)
>   at org.apache.tools.ant.taskdefs.Java.execute(Java.java:87)
>   at org.apache.tools.ant.Target.execute(Target.java:153)
>   at org.apache.tools.ant.Project.runTarget(Project.java:898)
>   at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>   at org.apache.tools.ant.Project.executeTargets(Project.java:510)
>   at org.apache.tools.ant.Main.runBuild(Main.java:421)
>   at org.apache.tools.ant.Main.main(Main.java:149)
> 
> I made sure I have the tld files in the WEB-INF dir. Here is the snippet
> of jsp that is producing the error:
> index.jsp:
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
>redisplay="false"/>
> 
>   
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 
> 
> 
> 
> 
> 
> Those jsps without struts custom tag library reference gets precompiled
> properly. I have the jasper.jar, struts.jar, jaxp.jar, parser.jar and
> webserver.jar from Tomcat 3.2.2 and Struts 1.0 in the class path of
> org.apache.jasper.JspC.
> 
> Any suggestion to fix the problem of pre-compilation would be appreciated.
> 
> Sibon Barman
> SS8 Networks, Inc.
> Suite 500
> 495 March Road, Kanata, 
> Ontario K2K 3G1
> 
> *: (613)592-2100 ext:3281
> *: [EMAIL PROTECTED]
> 
> 

 winmail.dat


Dynamic Value (Scriptlet) in ApplicationResources.properties

2001-06-26 Thread Matt Raible

Please respond to me at [EMAIL PROTECTED] as I am not subscribed to this
list.  Thanks.


Is it possible to place a dynamic element in my
ApplicationResources.properties?

For instance,

required.image = 

In my jsp page, I try to get this value using , but the value comes back as



If this is not possible, how do I make the tag below work with a scriplet
value?  Right now, I get an error trying to parse it.






_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Re: Dynamic label

2001-06-26 Thread Mike Thompson

try

--m


- Original Message -
From: "Pal, Gaurav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 7:48 AM
Subject: Dynamic label


> Hi,
>
> I am trying to create a dynamic label HTML form through the bean:message
> tag. What I want to do is as follows:
>
> 
>
> It gives a compilation error that the key string is unenclosed, anybody
have
> any ideas how to do this?
>
> Thanks in advance for your help,
> Gaurav




Dynamic label

2001-06-26 Thread Pal, Gaurav

Hi,

I am trying to create a dynamic label HTML form through the bean:message
tag. What I want to do is as follows:



It gives a compilation error that the key string is unenclosed, anybody have
any ideas how to do this?

Thanks in advance for your help,
Gaurav



Re. : Problem loading DATABASE: org.xml.sax.SAXException

2001-06-26 Thread mikael . lharant-unilog



I've found some indications on the web. It's about the "struts.jar" file.
  In the article, below, the author deals with TOMCAT. It's also true with
  WEBSPHERE.
  I've found it on http://www.husted.com/about/struts/kickstart.html.



More about Classpaths

There has been some confusion around the issue of placing "struts.jar"
on your CLASSPATH at execution time, in a servlet container like Tomcat
that makes all such libraries visible to web applications. This message
is an attempt to clarify the issues, and document why this is
prohibited.

* The "struts.jar" must appear on your classpath at
compile time for your web application. The easiest
way to make this happen is to use an Ant "build.xml"
file (like Struts itself does) that sets the classpath
dynamically, or create a custom shell script that sets
the classpath temporarily for compiling Struts based
classes.

* The "servlet.jar" file (from your servlet container) must
be on your classpath at compile time as well, because
your application's Action classes will refer to interfaces
that are defined here.

* For reasons discussed further below, "struts.jar" MUST NOT
be on your system CLASSPATH when you start your servlet
container (in particular, this applies to Tomcat).

* Placing JAR files in $JAVA_HOME/jre/lib/ext (the system
extensions directory for Java2) is the same as placing them
on the classpath. In other words, you will NOT want to put
"struts.jar" or "servlet.jar" there.

* For Tomcat, placing JAR files in the "lib" directory (as opposed
to the WEB-INF/lib directory of your web app) causes them to
be added to the CLASSPATH automatically. Therefore, you should
not put struts.jar here either.

The reason that putting "struts.jar" on your classpath is a bad idea has
to do with the way classloaders work in most servlet containers. The
details differ between them -- but here is the scoop for Tomcat (3.x and
4.x):

* The library files that are placed on the CLASSPATH when
Tomcat starts up are made visible through the "system"
class loader.

* Each individual web application has a custom class loader
created for it, which makes the classes in WEB-INF/classes
and WEB-INF/lib visible. The "parent" class loader of this
custom class loader is set to the system class loader mentioned
above.

* When classes are loaded, the JVM starts at the bottom of the
hierarchy of class loaders, with the webapp class loader, and
works its way up the hierarchy until it finds that class. Thus, if
you have struts.jar in the system classpath, classes from struts.jar
will be loaded by the system class loader instead of the web app
class loader.

* When a loaded class references other classes, it looks in its own
class loader first, and then up the hierarchy. Under NO circumstances

will it go down the hierarchy.

* Therefore, if a Struts class is loaded from the system class path,
that class CANNOT see any of your application classes in
WEB-INF/classes
or WEB-INF/lib -- you will get ClassNotFoundException instead.

This is the reason that the Struts example application will not run when
you have "struts.jar" on your CLASSPATH. The digester module of Struts
is loaded from the system class path. Therefore, it cannot see the
"User" class of the example app, because that class is under
WEB-INF/classes.

If you find that you need to put "struts.jar" on your system classpath
to make Struts work in Tomcat, that means your Tomcat install has been
corrupted. If you find that your own app will not work UNLESS
struts.jar is in the system classpath, there is something about your
application organization that needs to be analyzed in detail.






[EMAIL PROTECTED]@marine.alstom.com le 25/06/2001 15:18:26

Veuillez répondre à [EMAIL PROTECTED]

Pour :[EMAIL PROTECTED]
cc :

Objet :   Problem loading DATABASE: org.xml.sax.SAXException




Hello!

I am using STRUTS with WEBSPHERE 3.5.3.
I try to use the STRUTS EXAMPLE.

When I start the Default Server via the Admin Console, I have the following
exception:

22/06/01 14:19 : AUDIT [uc2902/Default Server]: SRVE0091I: [Servlet LOG]:
"database: Initializing database servlet"
22/06/01 14:19 : AUDIT [uc2902/Default Server]: SRVE0091I: [Servlet LOG]:
"database: Loading database from '/WEB-INF/database.xml'"
22/06/01 14:19 : AUDIT [uc2902/Default Server]: SRVE0092I: [Servlet LOG]:
"database: Database load exception": org.xml.sax.SAXException:
org.apache.struts.webapp.example.User
 at com.sun.xml.parser.Parser.parseInternal(Parser.java:461)
 at com.sun.xml.parser.Parser.parse(Parser.java:284)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.webapp.example.DatabaseServlet.load(DatabaseServlet.java:251)
 at
org.apache.struts.webapp.example.DatabaseServlet.init(DatabaseServlet.java:175)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
com.ibm.s

Re: Servlet Error 500, Missing message for key index.title

2001-06-26 Thread Scott Walter

remove struts.jar from your claspath.
--- Maik Mrazovic <[EMAIL PROTECTED]> wrote:
> Hi Klaus,
> 
> thanks for your help, but as I already wrote it´s
> always the first key of
> the propertiesfile, in my case the "index.title" -
> key. I assume Struts
> don´t find any keys, and I dont know why.
> 
> And in fact that I tried to start several war files,
> e.g. the struts-example
> (!) it has to work, but it does not! Perhaps a
> problem with Tomcat?!
> 
> Regards,
> 
> Maik Mrazovic
> 
> - Original Message -
> From: "Klaus Thiele" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 26, 2001 11:46 AM
> Subject: Re: Servlet Error 500, Missing message for
> key index.title
> 
> 
> > Hi Maik,
> >
> > in your web.xml, add/change following parameter:
> >   
> > [...]
> > 
> >null
> >false
> > 
> >
> > this does not solve your problem, but then you
> don't
> > get an exception/Error 500 but you will see in
> your page
> > _which_  key is missing.
> >
> > perhaps this helps.
> >   klaus
> >
> > Am Dienstag, 26. Juni 2001 11:23 schrieben Sie:
> > > I´ve installed struts, under Tomcat 3.2.
> > >
> > > None Webapplication will run which uses
> > > ApplicationResources.properties, when I start an
> index.jsp there
> > > comes always the error
> > >
> > > javax.servlet.ServletException: Missing message
> for key index.title
> > >
> > > but i don´t know why?!!? The File is in correct
> folder, I´ve tried to
> > > start several webapplications which was deployed
> as war-Files, no one
> > > works, always this Error, that makes me crazy!
> > >
> > > I use Struts 1.0 b3, I hope somebody can help
> me!
> > >
> > >
> > > Maik Mrazovic
> > >
> > > T - S y s t e m s
> > > debis Systemhaus MEB GmbH
> > > Business Center Sales & eBusiness, R&D/VN
> > >
> > > Erich-Herion Str. 13
> > > 70736 Fellbach
> > >
> > > (Phone) +49 711 17-40549
> > > (Mobile) +49 170 832-5616
> > > (email) [EMAIL PROTECTED]
> > > Internet: http://www.t-systems.de
> >
> > 
> > Content-Type: text/html; charset="iso-8859-1";
> name="Anhang: 1"
> > Content-Transfer-Encoding: quoted-printable
> > Content-Description:
> > 
> >
> > --
> > --
> > Klaus Thiele - Personal & Informatik AG
> > mailto:[EMAIL PROTECTED]
> >
> >  "Your mouse has moved.
> >   Windows must be restarted for the change to take
> effect."
> >
> 


=
~~~
Scott

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: Implementing 2 new scopes using Struts

2001-06-26 Thread Dan Connelly



You would think that the ALL WEB APPs scope 
(or hierarchicial scopes) would be easy to do.  It is not.  I had 
thought that by having one app run another app, the controlling app could 
"peek".   Doesn't work that way either.  (Too bad.)
 
One can fetch the sessionid's of other HttpSessions 
from the the HttpSessionContext.  However, this does not grant access to 
objects in the session scope of the other sessions (as I had once 
thought).  Prohibited by (7.3) of the Servlet Specification.
 
Craig McC. recently posted that the standard 
mechanisms are EJBs and (persistent) database.  I am intrigued with 
the idea of a hierachically scope managed by an EJB.  (The database 
thing is always possible but seems totally inelegant for this 
purpose.)   Has anyone tried to coordianate objects between app (in 
Struts) using EJBs?
 

  - Original Message - 
  From: 
  Jonathan 
  Asbell 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, June 25, 2001 8:23 AM
  Subject: Implementing 2 new scopes using 
  Struts
  
  I will be implementing new scopes using Struts 
  for our unique needs, and they need to be application 
  server independent.  
   
  One scope will work 
  across (between) web-applications:  Ex. user logs on, and an object 
  representing the users values and state is placed into a scope where ALL WEB 
  APPLICATIONS can see it.
   
  Another scope is 
  restricted to specified directories inside of an application:  Ex. 
  data saved would only be visible when inside a specific 
  sub-directory.
   
  I am currently examining 
  the 2.3 servlet spec.  Does anyone have any advice as to what to watch 
  out for in implementing this considering I want to be able to be 
  compatible with servlet containers in general and leverage container 
  management and web.xml configuration.  Could anyone refer me to some 
  specific sections in the servlet spec that you feel I should pay specific 
  attention to while I am doing this. 
   
  Thank you
  Jonathan


[ANNOUNCEMENT MAPPER FRAMEWORK]

2001-06-26 Thread Ted Husted

A validation / transformation framework has been made open source,
courtesy of Rey Francois and Capco, and is now available for download on
the More About Struts Resources page. 

< http://husted.com/about/struts/resources.htm >

Two other new contributions have also been posted there this week - a
code generated and a set of IF/THEN/ELSE and SWITCH tags. A formal
contrib area in the Struts CVS is being planned for material like this.
Anyone with Struts-related source that they would like to share with
others are invited to send it to me for handling.

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



RE: File Upload Problem

2001-06-26 Thread Darryl Pentz

That's just it. We HAVE upgraded to Struts 1.0 final. This fixed a problem
we were having with ZIP files but now it seems we can't view spreadsheets
and documents that are successfully uploaded. In other words, they do upload
fine, but when you try and view them, Excel can't open them up.

- Darryl

-Original Message-
From: Krueger, Jeff [mailto:[EMAIL PROTECTED]]
Sent: 26 June 2001 13:22
To: [EMAIL PROTECTED]
Subject: RE: File Upload Problem


I just got done fighting this problem for the last week.  Upgrade to struts
1.0 and that will solve your problem.

Jeff Krueger


-Original Message-
From: Darryl Pentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 4:38 AM
To: [EMAIL PROTECTED]
Subject: File Upload Problem


Hi all,

Has anyone else experienced problems with the file upload lately? I'm
finding that uploaded files are being corrupted. It doesn't seem to matter
what type the document is. I've found an Excel spreadsheet and a Word
document that have displayed problems. It seems, doing a binary compare,
that a 0A is being inserted arbitrarily. I'm looking at
MultipartIterator.java as the possible culprit as that's where a 0A ('\n')
is being inserted.

If anyone can point out the error of my ways I'd appreciate it. I don't know
why we're only finding this problem now since we've been testing uploads
regularly. Unless it has to do with the fixes in 1.0 final that maybe broke
something. I'm a little out of my depth here since I'm still fairly new to
the intricacies of Struts.

thanks,
Darryl




RE: Form problem

2001-06-26 Thread Andrew Paul Swift

I have resorted to using scriptlets. There must be a more elegant solution
though!




which 
gives...  First name  Last namecheersA > -Original Message-> 
From: Andrew Paul Swift [mailto:[EMAIL PROTECTED]]> Sent: 26. juni 2001 
12:25> To: '[EMAIL PROTECTED]'> Subject: Form problem > > > I have an 
array beans which I am trying to use to build up a > dynamic form.> The bean has 3 
properties DisplayName, id and value. > > The id property is the unique identifier 
that corresponds to > the name of the> HTML input field.> The value property contains 
the value of the HTML text field.> The displayName property contains the name that 
should be > displayed next to> the form field.> > so... I iterate through the array 
and build up the form> >  
name="<%=Constants.SEARCH_FIELD_KEY %>">>  >   
 name="searchField"property="displayName" />
>name="searchField"property="id" 
>/>>  > > > which produces this 
>output ...> > >   FORNAVN>   value="FIRSTNAME">>  > > LASTNAME>  type="text" name="id" value="LASTNAME">>   > > but... the HTML name 
>attribute is always "id" which means that I can't> identify the individual fields.> I 
>want the name attribute of the HTML input field to be the > value stored in> beans id 
>property!> > n.b. I have no control over what the search fields may be. I > just have 
>to> handle whatever I get.> > > Any ideas??> > cheers> > > Andrew> > > 
>-> To send us 
>encrypted mail, please refer to:> 
>http://www.millionhandshakes.com/emailpolicy/pgp.html> > Million Handshakes> 


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes



RE: File Upload Problem

2001-06-26 Thread Krueger, Jeff

I just got done fighting this problem for the last week.  Upgrade to struts
1.0 and that will solve your problem.

Jeff Krueger


-Original Message-
From: Darryl Pentz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 4:38 AM
To: [EMAIL PROTECTED]
Subject: File Upload Problem


Hi all,

Has anyone else experienced problems with the file upload lately? I'm
finding that uploaded files are being corrupted. It doesn't seem to matter
what type the document is. I've found an Excel spreadsheet and a Word
document that have displayed problems. It seems, doing a binary compare,
that a 0A is being inserted arbitrarily. I'm looking at
MultipartIterator.java as the possible culprit as that's where a 0A ('\n')
is being inserted.

If anyone can point out the error of my ways I'd appreciate it. I don't know
why we're only finding this problem now since we've been testing uploads
regularly. Unless it has to do with the fixes in 1.0 final that maybe broke
something. I'm a little out of my depth here since I'm still fairly new to
the intricacies of Struts.

thanks,
Darryl



File Upload Problem

2001-06-26 Thread Darryl Pentz

Hi all,

Has anyone else experienced problems with the file upload lately? I'm
finding that uploaded files are being corrupted. It doesn't seem to matter
what type the document is. I've found an Excel spreadsheet and a Word
document that have displayed problems. It seems, doing a binary compare,
that a 0A is being inserted arbitrarily. I'm looking at
MultipartIterator.java as the possible culprit as that's where a 0A ('\n')
is being inserted.

If anyone can point out the error of my ways I'd appreciate it. I don't know
why we're only finding this problem now since we've been testing uploads
regularly. Unless it has to do with the fixes in 1.0 final that maybe broke
something. I'm a little out of my depth here since I'm still fairly new to
the intricacies of Struts.

thanks,
Darryl




Form problem

2001-06-26 Thread Andrew Paul Swift

I have an array beans which I am trying to use to build up a dynamic form.
The bean has 3 properties DisplayName, id and value. 

The id property is the unique identifier that corresponds to the name of the
HTML input field.
The value property contains the value of the HTML text field.
The displayName property contains the name that should be displayed next to
the form field.

so... I iterate through the array and build up the form





   


which produces this output ...


FORNAVN

   

LASTNAME

   

but... the HTML name attribute is always "id" which means that I can't
identify the individual fields.
I want the name attribute of the HTML input field to be the value stored in
beans id property!

n.b. I have no control over what the search fields may be. I just have to
handle whatever I get.


Any ideas??

cheers


Andrew


-
To send us encrypted mail, please refer to:
http://www.millionhandshakes.com/emailpolicy/pgp.html

Million Handshakes



Re: Servlet Error 500, Missing message for key index.title

2001-06-26 Thread Maik Mrazovic

Hi Klaus,

thanks for your help, but as I already wrote it´s always the first key of
the propertiesfile, in my case the "index.title" - key. I assume Struts
don´t find any keys, and I dont know why.

And in fact that I tried to start several war files, e.g. the struts-example
(!) it has to work, but it does not! Perhaps a problem with Tomcat?!

Regards,

Maik Mrazovic

- Original Message -
From: "Klaus Thiele" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 11:46 AM
Subject: Re: Servlet Error 500, Missing message for key index.title


> Hi Maik,
>
> in your web.xml, add/change following parameter:
>   
> [...]
> 
>null
>false
> 
>
> this does not solve your problem, but then you don't
> get an exception/Error 500 but you will see in your page
> _which_  key is missing.
>
> perhaps this helps.
>   klaus
>
> Am Dienstag, 26. Juni 2001 11:23 schrieben Sie:
> > I´ve installed struts, under Tomcat 3.2.
> >
> > None Webapplication will run which uses
> > ApplicationResources.properties, when I start an index.jsp there
> > comes always the error
> >
> > javax.servlet.ServletException: Missing message for key index.title
> >
> > but i don´t know why?!!? The File is in correct folder, I´ve tried to
> > start several webapplications which was deployed as war-Files, no one
> > works, always this Error, that makes me crazy!
> >
> > I use Struts 1.0 b3, I hope somebody can help me!
> >
> >
> > Maik Mrazovic
> >
> > T - S y s t e m s
> > debis Systemhaus MEB GmbH
> > Business Center Sales & eBusiness, R&D/VN
> >
> > Erich-Herion Str. 13
> > 70736 Fellbach
> >
> > (Phone) +49 711 17-40549
> > (Mobile) +49 170 832-5616
> > (email) [EMAIL PROTECTED]
> > Internet: http://www.t-systems.de
>
> 
> Content-Type: text/html; charset="iso-8859-1"; name="Anhang: 1"
> Content-Transfer-Encoding: quoted-printable
> Content-Description:
> 
>
> --
> --
> Klaus Thiele - Personal & Informatik AG
> mailto:[EMAIL PROTECTED]
>
>  "Your mouse has moved.
>   Windows must be restarted for the change to take effect."
>




Re: Servlet Error 500, Missing message for key index.title

2001-06-26 Thread Klaus Thiele

Hi Maik,

in your web.xml, add/change following parameter:
  
[...]

   null
   false


this does not solve your problem, but then you don't
get an exception/Error 500 but you will see in your page
_which_  key is missing.

perhaps this helps.
  klaus

Am Dienstag, 26. Juni 2001 11:23 schrieben Sie:
> I´ve installed struts, under Tomcat 3.2.
>
> None Webapplication will run which uses
> ApplicationResources.properties, when I start an index.jsp there
> comes always the error
>
> javax.servlet.ServletException: Missing message for key index.title
>
> but i don´t know why?!!? The File is in correct folder, I´ve tried to
> start several webapplications which was deployed as war-Files, no one
> works, always this Error, that makes me crazy!
>
> I use Struts 1.0 b3, I hope somebody can help me!
>
>
> Maik Mrazovic
>
> T - S y s t e m s
> debis Systemhaus MEB GmbH
> Business Center Sales & eBusiness, R&D/VN
>
> Erich-Herion Str. 13
> 70736 Fellbach
>
> (Phone) +49 711 17-40549
> (Mobile) +49 170 832-5616
> (email) [EMAIL PROTECTED]
> Internet: http://www.t-systems.de


Content-Type: text/html; charset="iso-8859-1"; name="Anhang: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 


-- 
--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "Your mouse has moved.
  Windows must be restarted for the change to take effect."



Servlet Error 500, Missing message for key index.title

2001-06-26 Thread Maik Mrazovic



I´ve installed struts, under Tomcat 
3.2.
 
None Webapplication will run which uses 
ApplicationResources.properties, when I start an index.jsp there comes always 
the error
 
javax.servlet.ServletException: Missing message for key 
index.title
but i don´t know why?!!? The File is in correct 
folder, I´ve tried to start several webapplications which was deployed as 
war-Files, no one works, always this Error, that makes me crazy!
 
I use Struts 1.0 b3, I hope somebody can help 
me!
 
 
Maik Mrazovic
 
T - S y s t e m s debis Systemhaus MEB 
GmbHBusiness Center Sales & eBusiness, R&D/VN
 
Erich-Herion Str. 13 70736 
Fellbach (Phone) +49 711 17-40549(Mobile) +49 170 
832-5616(email) [EMAIL PROTECTED]Internet: 
http://www.t-systems.de 



Error 500 with Struts example: NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo

2001-06-26 Thread mikael . lharant-unilog

Hello,

I'm trying to use STRUTS with WEBSPHERE 3.5.4.

When I try "index.jsp", I have the following error message:

Error 500
Une erreur s'est produite lors du traitement de la demande 
:http://localhost/struts-example/index.jsp
Message : Server caught unhandled exception from servlet [jsp11]: 
javax/servlet/jsp/tagext/TagExtraInfo

Servlet cible : jsp11
Traçage de pile :

Erreur root -1: javax/servlet/jsp/tagext/TagExtraInfo

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagExtraInfo
 at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:937)
 at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:321)
 at 
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:357)
 at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:718)
 at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:872)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:626)
 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:160)
 at 
com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:287)
 at 
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:105)
 at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:360)
 at 
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:775)
 at 
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:701)
 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:478)
 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:234)
 at 
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:138)
 at 
com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:77)
 at 
com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
 at 
com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:155)
 at 
com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:300)
 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp$ServiceRunnable.run(SQEventListenerImp.java:230)
 at 
com.ibm.servlet.engine.oselistener.SQEventListenerImp.notifySQEvent(SQEventListenerImp.java:104)
 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQEventSource.notifyEvent(SQEventSource.java:212)
 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.notifyService(SQWrapperEventSource.java:353)
 at 
com.ibm.servlet.engine.oselistener.serverqueue.SQWrapperEventSource$SelectRunnable.run(SQWrapperEventSource.java:220)
 at 
com.ibm.servlet.engine.oselistener.outofproc.OutOfProcThread$CtlRunnable.run(OutOfProcThread.java:248)
 at java.lang.Thread.run(Thread.java:481)

Is anyone can help me?

Thanks.

MIKAEL





Re: design question

2001-06-26 Thread Linnea Ahlbeck

Hi!

In the struts-config.xml-file:


   
  
  
   

Hope I understood your problem correctly and that this can help you!!
/Linnéa

- Original Message -
From: "Vandenberk, Kris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 26, 2001 10:26 AM
Subject: design question


> I have a detail screen with some fields on it
> and a save button, reset button and a link to the master page...
>
> How do I return to the same page after the save ?
> let say the link to this page is something like
> /editPersonalInfo.do?action=edit
>
>
> thanks,
> Kris
>
> P.S. can you put me in cc when replying I am using a different email
account
> here at work
> [EMAIL PROTECTED]
>
>
>
>
>




How to submit a form using usemap

2001-06-26 Thread Eda Srinivasareddy
 Hi 
I have a big image with different mapping areas. In that I have one 'go' mapping area by clicking which, I should submit the form. I could receive only null values into the ActionForm which does mean that the values are not being submitted.Could u please help!
Have a nice time.
EdaDo You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

Different JSPs directories for the same Struts Application

2001-06-26 Thread Xavier Brunel

Hi,

I am developping a Apache Tomcat Struts Web Application that will be use in
ASP mode (Application Service Provider not the MSoft stuff) by different
Users.

The thing is that Users will have common JSP for a part and specific ones
for the other part (Number of fields in page forms, look and feel,
stylesheet, different navigation across application, etc ...).
So JSPs are placed in different directories

/jsp/commun/*jsp
/jsp/user1/*jsp
/jsp/user2/*jsp

The user will be identify through his login/passwd on the application

I would like to use one JVM for my application to be used by all users.
How can I deal which the dynamic redirection to the good path to the correct
JSP ??
Do I have to use one struts-config.xml per user ??
Do I have to treat that in the ActionForms sub classes ???

Thanks for answering if you've already seen this problematic

Xavier




design question

2001-06-26 Thread Vandenberk, Kris

I have a detail screen with some fields on it
and a save button, reset button and a link to the master page...

How do I return to the same page after the save ?
let say the link to this page is something like
/editPersonalInfo.do?action=edit


thanks,
Kris

P.S. can you put me in cc when replying I am using a different email account
here at work
[EMAIL PROTECTED]







RE: problem executing an example provided by bluestone.com

2001-06-26 Thread Marcel Andres

It seems to be a general problem, because I'm facing exactly the same problem (Tomcat 
3.2.2). So, is there anybody out there who has a hint how to overcome this error?
 
Thanks, Marcel
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 9:17 PM
To: [EMAIL PROTECTED]
Subject: RE: problem executing an example provided by bluestone.com


Ameer,
 
I was going through the Struts archive and found out that you had faced similar problem
that I am facing.  Can you please let me know how you managed to overcome this
problem (see your email below). Note, I am using iPlanet Web Server 6.0 and not
weblogic as in your error log. I guess this shouldn't matter as long as proper 
classpath
is set. Can you please let me know the fix you did to remove the error.
 
Thanks,
 

Nizar Bhamani
ProActTechnologies
Powering Human Resourcefulness(tm)
(770) 291 7180
mailto:[EMAIL PROTECTED]   

-Original Message-
From: ameer [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 1:53 AM
To: [EMAIL PROTECTED]
Subject: problem executing an example provided by bluestone.com


im facing problem in excuting an example source provided by the link:
http://gallery.bluestone.com/scripts/SaISAPI.dll/StrutsTrailMap.class/struts-trailmap/Trail4.1.htm
 

 
im running this example in weblogic 6.0 and i get following errors. i have kept 
struts.jar in server classpath.. still i get following errors.
   <[WebAppServletContext(7901117
,HelloWorld)] Root cause of ServletException
javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans co
llection
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:703)
at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:441)
at jsp_servlet._input._jspService(_input.java:106)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:246)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
Ameer Hussain SS
s/w engineer
Yashaa Infotech Pvt.Ltd.
http://www.yashaa.com