How to add new tag into struts-config.xml?

2001-04-24 Thread JeanX

Hi struts-user,

How to add new tag into struts-config.xml ?

Or

In my application, there is a framework jsp file that fixed included three jsp page 
components. And I call them 'header', 'left', and 'right' . 
So I want to setup these components in my action and then the framework jsp file can 
install them .  
And I think one way is setup these three components in my action.
But I think it is good if I can config them in my struts-config.xml.
Any ideas/help appreciated.

:=)
Best regards,
JeanX
pacificnet.com(GZ)




Re: why does struts use forward instead of redirect

2001-04-24 Thread Jim Richards


>At 11:13 PM 24/04/01 -0400, you wrote: 
>Anyone know why struts uses forward instead of redirect?

A redirect sends a request back to the browser, thus generating another
connection between the client and server. Forward keeps it internal
to the server, which also means you can re-use the request object.


--
Kumera - a new Open Source Content Management System
for small to medium web sites written in Perl and using XML
http://www.cyber4.org/kumera/index.html



why does struts use forward instead of redirect

2001-04-24 Thread Jonathan Asbell



Anyone know why struts uses forward instead of 
redirect?


RE: needed taglibs

2001-04-24 Thread Iraklis Kourtidis



Gary,
 
I 
believe the form taglibs are deprecated. Instead, the 'html' taglib is used. 

 
Iraklis

  -Original Message-From: G.L. Grobe 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 8:14 
  PMTo: [EMAIL PROTECTED]Subject: needed 
  taglibs
  Someone told me they thought some of my tag-libs 
  were depricated and that I shouldn't be using them anymore. From the examples 
  at Bluestone, I added these to my web.xml file. The web site only shows four 
  that look to be needed. 
   
  template, logic, form, bean.
   
  Are these correct?
   
  If anyone knows of which ones I should or 
  shouldn't have, much apprecitated.
   
   Taglibs I've included in my web.xml 
  file --
     
  /WEB-INF/struts-bean.tld  
  /WEB-INF/struts-bean.tld   
  
   
     
    
  /WEB-INF/struts-html.tld  
  /WEB-INF/struts-html.tld   
  
   
     
    
  /WEB-INF/struts-form.tld  
  /WEB-INF/struts-form.tld   
  
   
     
    
  /WEB-INF/struts-logic.tld  
  /WEB-INF/struts-logic.tld   
  
   
     
    
  /WEB-INF/struts-template.tld  
  /WEB-INF/struts-template.tld   
  
   


needed taglibs

2001-04-24 Thread G.L. Grobe



Someone told me they thought some of my tag-libs 
were depricated and that I shouldn't be using them anymore. From the examples at 
Bluestone, I added these to my web.xml file. The web site only shows four that 
look to be needed. 
 
template, logic, form, bean.
 
Are these correct?
 
If anyone knows of which ones I should or shouldn't 
have, much apprecitated.
 
 Taglibs I've included in my web.xml 
file --
   
/WEB-INF/struts-bean.tld  
/WEB-INF/struts-bean.tld   

 
   
  
/WEB-INF/struts-html.tld  
/WEB-INF/struts-html.tld   

 
   
  
/WEB-INF/struts-form.tld  
/WEB-INF/struts-form.tld   

 
   
  
/WEB-INF/struts-logic.tld  
/WEB-INF/struts-logic.tld   

 
   
  
/WEB-INF/struts-template.tld  
/WEB-INF/struts-template.tld   

 


ActionForwards / validation control flow questions

2001-04-24 Thread Roxie Rochat

I'm getting a javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:449)
when I try to do validation, so I went back to the basic struts example 
and tried to dissect it.  I've ended up being even more confused about
how control flow and ActionForwards work and would appreciate
some enlightenment about the conclusions I've drawn.

When I run the logon.jsp page and click submit without typing
anything in, LogonForm.validate() returns errors and 
LogonAction is never instantiated.  Somehow, magically,
the logon.jsp page is re-displayed with the errors.

If LogonForm.validate() is modified so that it does not add any errors, 
LogonAction is instantiated.  It can find the "success" forward, but not
the forward for mapping.getInput():

System.out.println("success forward = " +
mapping.findForward("success"));
System.out.println("mapping.getInput() = " + mapping.getInput());
System.out.println("input forward = " + new
ActionForward(mapping.getInput()));

results in:
success forward = ActionForward[success]
mapping.getInput() = /logon.jsp
input forward = ActionForward[null]

Again, even if there are errors, the logon.jsp page is re-displayed.

my struts-config.xml:
  
  


  

So, if the form returns errors, its associated jsp page automatically
displayed again?

Why can't ActionForward(mapping.getInput()) find the path?  Or is this
 ActionForward[null] just a misleading artifact?  [I can't get Forte for
Java 
configured to debug and I'm tired of printlns. I sure hope VAJava3.5.3 works
soon.]

Thanks in advance,
Roxie



Problem with forward between actions

2001-04-24 Thread Fabien Modoux

Hello,

I am using struts-1.0-b1. I have an action (action1)
which forwards the request to another action (action2),
which in turn forward a jsp (init.jsp) for final display:


  
  



  



action1 is storing some objects in the session, which
are used by action2, and then by the jsp. My problem
is that the jsp gets a new session... The two actions
share the same session id, but then when the request
arrives at the jsp, the session id is different and a
new instance of my objects are created.

Does anyone know why this is happening and what I am
doing wrong?

Thanks you for your help,

-Fabien Modoux

-
Fabien Modoux,
Voicemate - http://www.voicemate.com




multiple select: pulling from the database and populating the select listbox in a form with multiple selections

2001-04-24 Thread Joel Schmidt

I've looked through the mail list but still don't quite get it.
I'm working on a form that can create or edit a particular role and it's
functions I want to (in create mode) select multiple functions and then in
edit mode display those multiple functions selected in a multiple select
listbox. Do I need a separate bean for the array that holds the particular
selections of the edited role? Do I need an iterate tag of some sort? I'm
able to populate my list box with only the first item in the array from my
action. Using println I can see that I populated my array with the data I'm
looking for.
I have in my jsp

java.util.ArrayList list = new java.util.ArrayList();
FunctionData[] allFunctions = (FunctionData[])
session.getAttribute("allFunctions");
for(int k = 0;k< allFunctions.length;k++)

{
list.add(new
apex.ace.web.actions.LabelValueBean(allFunctions[k].getName(),allFunctions[k
].getPK().toString()));
}
   
pageContext.setAttribute("serverTypes",list);



   

In my formbean
I have getType() and setType() for String[] type

in the my action I have 

String[] type = new String[role.getFunctions().size()];
int i = 0;
Iterator it =
role.getFunctions().values().iterator(); 
while(it.hasNext())
{
type[i] =
it.next().toString().substring(21);
i++; 
}
for (int j = 0;j< type.length;j++){
 System.out.println(type[j]);   
}

// Populate the subscription form

if (form == null)
{
if (servlet.getDebug() >= 1)
servlet.log(" Creating new Form bean under
key "
+ mapping.getAttribute());
form = new SubmitRoleForm();

session.setAttribute("SubmitRoleForm", form); 
   
SubmitRoleForm subform = (SubmitRoleForm)
form;
   
subform.setRoleEdited(roleEdited);  
subform.setAction(action);
subform.setName(name);
subform.setKey(key);
subform.setType(type);







Help. Stuts + iPlanet Webserver

2001-04-24 Thread Jivan, Rajiv

I have followed the instruction on configuring iPlanet but I am still
getting no where. I have unzipped the struts example war file. 

[24/Apr/2001:17:54:57] warning ( 1152): Internal error: Failed to get
GenericServlet. (uri=/strut/index.jsp,SCRIPT_NAME=/strut/index.jsp)
[24/Apr/2001:17:55:56] info ( 1152): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to open taglibrary
/WEB-INF/struts-bean.tld : Could not locate TLD META-INF/taglib.tld
at java.lang.Throwable.(Throwable.java:96)
at java.lang.Exception.(Exception.java:44)
at javax.servlet.ServletException.(ServletException.java:68)
at org.apache.jasper.JasperException.(JasperException.java:73)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:688)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:119)
at
org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:190)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1048)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1022)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1018)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:173)
at
com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:2
30)
at
com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java
:149)
at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:466)


[24/Apr/2001:17:55:56] warning ( 1152): Internal error: Failed to get
GenericServlet. (uri=/strut/index.jsp,SCRIPT_NAME=/strut/index.jsp)

Any help will be greatly appreciated.

Thank you.

Rajiv




RE: Is the Local object a given in Struts ?

2001-04-24 Thread Nanduri, Amarnath



I 
believe Locale Object (or) Local object is stored under a key in session. All 
you have got to do is create a new Local Object and put it under this key. In 
this way struts will be easily able to pickup the new locale. Somebody in the 
mailing list has asked for this before. If you check the mailing list archives 
you will have your solution (code).
 
cheers,
Amar..

  -Original Message-From: Jonathan 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 5:42 
  PMTo: [EMAIL PROTECTED]Subject: Is the 
  Local object a given in Struts ?
  Do we get a Local object when we use struts, or 
  do we have to implement it?  It look like I get a default Local object 
  for free, but if I want to be able to change languages on the fly I have to 
  implement more Local objects.  The documentation says:
   
  "When the user logs on, the application can store 
  a Locale object in the user's session. This Locale 
  will be used to select messages in the appropriate language. This makes it 
  easy to implement giving the user an option to switch languages -- simply 
  change the stored Locale object, and all messages are switched 
  automatically."
   
   
  simply change the stored Locale 
  object, and all messages are switched automatically, H-O-W   DO I "SIMPLY" CHANGE THE STORED LOCAL OBJECT  
  ?!!


RE: *** implementing consecutive form validation? ***

2001-04-24 Thread Nanduri, Amarnath



1 
ActionForm and 3 Action objects. The reason for the 3 actions is it gives you 
flexibility in your business implementation. I personally would not do any 
business logic till i have all values in hand. So ActionObject1 and 
ActionObject2 will just send the user to the correct next pages. It is in 
Action3 that you would finally do business implementation (like update database 
etc..)
 
A 
dirty flag is nothing but a hidden variable in a jsp page. Every time the user 
submits information, the value of this hidden variable is checked. Based on the 
value, the corresponding error check is done. I believe somebody in the mailing 
list have coined the term 'dirtyFlag' because it is not that elegant a way of 
doing it. Maybe some experts in this group will come with a better alternative. 
If so i am willing to experiment with that alternative. 
 
For 
example.. If you have  Page 1  - contains firstName, 
lastName
  
Page 2  - contains Phone Number and Address
  
Page 3 - contains  Personal Interests and maybe CC no
 
You 
would set a hidden variable in all 3 pages. Same name but different values in 
the 3 pages. Your form would have a private variable which is the name of the 
hidden variable.
 
When 
the user submits info.. (say from page 1), in your ActionForm  the value of 
the dirtyFlag is set to page1. In your validate method you would do a 
conditional statement 
 if(dirtyFlag equals page1)    { check for firstName 
and lastName values for errors. If errors occur struts will send you back to 
Page1 else struts will take you back to normal processing} 

 if(dirtyFlag equals page2)    { check for phone 
# and Address values for errors. If errors occur struts will send you back 
to Page2  else struts will take you back to normal processing} 

 if(dirtyFlag equals page3)    { check for all 
values. If errors occur struts will send you back to Page3. else struts 
will continue with normal processing} 
    

The reson you are checking for all 
the values (in page 3 submit) is to satisfy yourself that all values are entered 
properly. If in page1 and page 2 you encounter errors, struts will automatically 
send you to the correct page.
 
 

  -Original Message-From: Jonathan 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 5:17 
  PMTo: [EMAIL PROTECTED]Subject: Re: *** 
  implementing consecutive form validation? ***
  Can you elaborate?  Are you saying 1 
  ActionForm and 3 Action objects?  Do you validate in the ActionForm 
  or in the Action?  Can you please explain the "dirty flags" 
  technique?
  
- Original Message - 
From: 
Nanduri, Amarnath 
To: '[EMAIL PROTECTED]' 

Sent: Tuesday, April 24, 2001 3:38 
PM
Subject: RE: *** implementing 
consecutive form validation? ***

Try using a single Form but 3 different Actions (for flexibility). 
The form is send from page to page. Set a dirtyflag in the form which checks 
what page the user is in. Based on that value, do the corresponding 
validation in the Form.
 
Amar..

  -Original Message-From: Jonathan [mailto:[EMAIL PROTECTED]]Sent: 
  Tuesday, April 24, 2001 3:35 PMTo: 
  [EMAIL PROTECTED]Subject: *** implementing 
  consecutive form validation? ***
    

  


  
If a form is made up of three 
consecutive pages and I want to validate page by page, how should I 
go about doing this?  Do I use three ActionForms and one 
Action?  Do I use the validation the ActionForm offers for 
basic validation?  Do I fill one ActionForm's validation method 
with "if/then" statements to test if I am on the first, second, or 
third page of the form and then use the Action's validate method at 
the end?
I was interested in what you all were 
implementing.
Cheers 
 
Jonathan


Re: Is the Local object a given in Struts ?

2001-04-24 Thread David Winterfeldt

If a Locale object isn't in scope, the ActionServlet
will make one based on Locale.getDefault().  You can
change it like this.

session.setAttribute(org.apache.struts.action.Action.LOCALE_KEY,
new java.util.Locale("fr", ""));

David



--- Jonathan <[EMAIL PROTECTED]> wrote:
> Do we get a Local object when we use struts, or do
> we have to implement it?  It look like I get a
> default Local object for free, but if I want to be
> able to change languages on the fly I have to
> implement more Local objects.  The documentation
> says:
> 
> "When the user logs on, the application can store a
> Locale object in the user's session. This Locale
> will be used to select messages in the appropriate
> language. This makes it easy to implement giving the
> user an option to switch languages -- simply change
> the stored Locale object, and all messages are
> switched automatically."
> 
> 
> simply change the stored Locale object, and all
> messages are switched automatically, H-O-W   DO I
> "SIMPLY" CHANGE THE STORED LOCAL OBJECT  ?!!
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Is the Local object a given in Struts ?

2001-04-24 Thread Jonathan



Do we get a Local object when we use struts, or do 
we have to implement it?  It look like I get a default Local object for 
free, but if I want to be able to change languages on the fly I have to 
implement more Local objects.  The documentation says:
 
"When the user logs on, the application can store a 
Locale object in the user's session. This Locale will 
be used to select messages in the appropriate language. This makes it easy to 
implement giving the user an option to switch languages -- simply change the 
stored Locale object, and all messages are switched 
automatically."
 
 
simply change the stored Locale 
object, and all messages are switched automatically, H-O-W   DO I "SIMPLY" CHANGE THE STORED LOCAL OBJECT  
?!!


*** Can someone please elaborate on multi form validation ***

2001-04-24 Thread Jonathan



Please share some techniques 
guys.


Re: *** implementing consecutive form validation? ***

2001-04-24 Thread Jonathan



Can you elaborate?  Are you saying 1 
ActionForm and 3 Action objects?  Do you validate in the ActionForm or 
in the Action?  Can you please explain the "dirty flags" 
technique?

  - Original Message - 
  From: 
  Nanduri, Amarnath 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Tuesday, April 24, 2001 3:38 
  PM
  Subject: RE: *** implementing consecutive 
  form validation? ***
  
  Try 
  using a single Form but 3 different Actions (for flexibility). The form is 
  send from page to page. Set a dirtyflag in the form which checks what page the 
  user is in. Based on that value, do the corresponding validation in the 
  Form.
   
  Amar..
  
-Original Message-From: Jonathan [mailto:[EMAIL PROTECTED]]Sent: 
Tuesday, April 24, 2001 3:35 PMTo: 
[EMAIL PROTECTED]Subject: *** implementing 
consecutive form validation? ***
  


  
  

  If a form is made up of three consecutive 
  pages and I want to validate page by page, how should I go about doing 
  this?  Do I use three ActionForms and one Action?  Do I 
  use the validation the ActionForm offers for basic validation?  
  Do I fill one ActionForm's validation method with "if/then" statements 
  to test if I am on the first, second, or third page of the form and 
  then use the Action's validate method at the end?
  I was interested in what you all were 
  implementing.
  Cheers 
   
  Jonathan


jsp:useBean -vs- DefineTag

2001-04-24 Thread Peter Alfors

Hello all,

Sorry this is a bit off topic...I posted this on the taglibs-user
list but haven't had any luck.

How do you make an object available to the page as a script variable in
a taglib without having to use a getAttribute() method to retrieve it?
The jsp:useBean taglib allows you to specify the name of an object to
retrieve from the desired scope.  From then on in the page, you can
access this object using the specified id.

I have tried placing the object in the pageContext (using the PAGE,
REQUEST, and APPLICATION scope)  However, you then need to
do something like pageContext.getAttribute() to access it.

Any ideas on how jsp:useBean is getting around this???

Thanks,
Pete



begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/logo/irista.gif";>Bringing Vision to Your Supply Chain
adr:;;
version:2.1
end:vcard



RE: *** implementing consecutive form validation? ***

2001-04-24 Thread David Winterfeldt

I have an example doing multi-page validation, but you
need to define what field is on what page in the xml. 
I'm working on a more MVC'ish multi-page design, but
that isn't done yet.

http://home.earthlink.net/~dwinterfeldt/

David

--- "Nanduri, Amarnath"
<[EMAIL PROTECTED]> wrote:
> Try using a single Form but 3 different Actions (for
> flexibility). The form
> is send from page to page. Set a dirtyflag in the
> form which checks what
> page the user is in. Based on that value, do the
> corresponding validation in
> the Form.
>  
> Amar..
> 
> -Original Message-
> From: Jonathan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 24, 2001 3:35 PM
> To: [EMAIL PROTECTED]
> Subject: *** implementing consecutive form
> validation? ***
> 
> 
>   
> 
> If a form is made up of three consecutive pages and
> I want to validate page
> by page, how should I go about doing this?  Do I use
> three ActionForms and
> one Action?  Do I use the validation the ActionForm
> offers for basic
> validation?  Do I fill one ActionForm's validation
> method with "if/then"
> statements to test if I am on the first, second, or
> third page of the form
> and then use the Action's validate method at the
> end?
> I was interested in what you all were implementing.
> Cheers 
>  
> Jonathan
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



JSPC compilation in ANT?

2001-04-24 Thread dhay



Hi everyone.

Just wondering if anyone is compiling their Struts pages using Ant?

Is there a built in task that will work with Struts tags etc?

Thanks,

Dave






RE: struts accessing bean:message tags from somewheres

2001-04-24 Thread Abraham Kang

Hi G.L.,

   I don't know if this helps but can you do a global search for all
*.properties files on the classpath (including your web-app classpaths) and
put main.title in them.  I have a feeling Orion is reading the wrong
*.properties file on your system.

Good Luck,
Abraham

> -Original Message-
> From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 9:18 PM
> To: [EMAIL PROTECTED]
> Subject: struts accessing bean:message tags from somewheres
>
>
> How can I still get the following error if I've commented all my
>  found and
> w/ these tags commented, it shouldnt' even try to pull a key,
> correct? I do
> a println on the resource below to see that i'm getting the
> correct resource
> file.
>
> 500 Internal Server Error
> javax.servlet.jsp.JspException: Missing message for key main.title at
> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.jav
> a:242) at
> /index.jsp._jspService(/index.jsp.java:159) (JSP page line 133) at
> com.orionserver[Orion/1.4.8 (build 10374)].http.OrionHttpJspPage.service
>
> Any ideas/help appreciated.
>
> - my index.jsp --
>
>  <%@ page language="java" %>
> <%@ taglib uri="WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="WEB-INF/struts-bean.tld" prefix="bean" %>
>
> 
> 
>
> 
>
> 
>
> <%@ include file="menubar.js" %>
> <%@ include file="main.css" %>
>
> 
>
> 
> 
>
> <%
>System.out.println("HERE ... " +
> this.getClass().getClassLoader().getResource("cais.properties"));
>// ...
> this show's i'm accessing the right *.properties file
> %>
>
> <%@ include file="header.jsp" %>
> <%@ include file="mainMenu.jsp" %>
>
> 
>
> 
>
>   
>  
>   
>  
>   
>   
>  
>  
>  
>   
>   
>  
>  
>  
>   
>
> 
>
> 
>
> 
> <%@ include file="footer.jsp" %>
>
> 
> 
>
>




RE: *** implementing consecutive form validation? ***

2001-04-24 Thread Nanduri, Amarnath



Try 
using a single Form but 3 different Actions (for flexibility). The form is send 
from page to page. Set a dirtyflag in the form which checks what page the user 
is in. Based on that value, do the corresponding validation in the 
Form.
 
Amar..

  -Original Message-From: Jonathan 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 3:35 
  PMTo: [EMAIL PROTECTED]Subject: *** 
  implementing consecutive form validation? ***
    

  


  
If a form is made up of three consecutive 
pages and I want to validate page by page, how should I go about doing 
this?  Do I use three ActionForms and one Action?  Do I 
use the validation the ActionForm offers for basic validation?  Do 
I fill one ActionForm's validation method with "if/then" statements to 
test if I am on the first, second, or third page of the form and then 
use the Action's validate method at the end?
I was interested in what you all were 
implementing.
Cheers 
 
Jonathan


RE: Can someone explain the "path" attribute in action-mappings

2001-04-24 Thread Nanduri, Amarnath



something like  /menu.jsp  instead of 
menu.jsp

  -Original Message-From: Jonathan 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 3:35 
  PMTo: [EMAIL PROTECTED]Subject: Can someone 
  explain the "path" attribute in action-mappings
    

  


  
How exactly do I implement it?  The 
doc say "The application context-relative path to the action", but this 
is not clear to me.  I am having the same trouble implementing the 
"input" attribute.  Can anyone make this clear for me:  What 
should the value 
be?


RE: Thread error....WHY?

2001-04-24 Thread Galon, Mary-Jay

thanks. solved it already.  we had 2 pairs of eyes looking at the classpath
and still missed it.

-Original Message-
From: Scott Walter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Thread errorWHY?


You aren't having thread errors, Java just can't find
your class.  If the SimpleTransform class is in
current directory make sure "." is in your classpath.

scott.
--- TODD HARNEY <[EMAIL PROTECTED]> wrote:
> Also, do you need the package information on the
> SimpleTransform class? Does it have a package? Or is
> this a class that you wrote?
> 
> HTH,
> Todd
> 
> >>> [EMAIL PROTECTED] 4/24/01 2:14 >>>
> Im sending to both groups for maximized feedback.
> 
> I am executing a compiled Xalan sample and getting
> an error.  Does anyone
> know why I could be getting "thread" issues.
> 
> 
>

> --
> REVISED CLASSPATH (i re-installed jdk to root drive
> instead of under Program
> Files):
>
d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6
> ;d:\xalan\xalan.jar;d:\xalan\xerces.jar
> 
> 
> 
> COMMAND CODE MSG:
> D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
> 
> D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform
> Exception in thread "main"
> java.lang.NoClassDefFoundError: SimpleTransform
> 
> D:\XALAN\SAMPLES\SIMPLE~1>
> 


=
~~~
Scott

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



*** implementing consecutive form validation? ***

2001-04-24 Thread Jonathan



 

  
  

  If a form is made up of three consecutive 
  pages and I want to validate page by page, how should I go about doing 
  this?  Do I use three ActionForms and one Action?  Do I use 
  the validation the ActionForm offers for basic validation?  Do I fill 
  one ActionForm's validation method with "if/then" statements to test if I 
  am on the first, second, or third page of the form and then use the 
  Action's validate method at the end?
  I was interested in what you all were 
  implementing.
  Cheers 
   
  Jonathan


Can someone explain the "path" attribute in action-mappings

2001-04-24 Thread Jonathan



 

  
  

  How exactly do I implement it?  The doc 
  say "The application context-relative path to the action", but this is not 
  clear to me.  I am having the same trouble implementing the "input" 
  attribute.  Can anyone make this clear for me:  What should the 
  value be?


** CAN SOMEONE PLEASE ANSWER MY QUESTIONS BELOW **

2001-04-24 Thread Jonathan



 


Re: Thread error....WHY?

2001-04-24 Thread Scott Walter

You aren't having thread errors, Java just can't find
your class.  If the SimpleTransform class is in
current directory make sure "." is in your classpath.

scott.
--- TODD HARNEY <[EMAIL PROTECTED]> wrote:
> Also, do you need the package information on the
> SimpleTransform class? Does it have a package? Or is
> this a class that you wrote?
> 
> HTH,
> Todd
> 
> >>> [EMAIL PROTECTED] 4/24/01 2:14 >>>
> Im sending to both groups for maximized feedback.
> 
> I am executing a compiled Xalan sample and getting
> an error.  Does anyone
> know why I could be getting "thread" issues.
> 
> 
>

> --
> REVISED CLASSPATH (i re-installed jdk to root drive
> instead of under Program
> Files):
>
d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6
> ;d:\xalan\xalan.jar;d:\xalan\xerces.jar
> 
> 
> 
> COMMAND CODE MSG:
> D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
> 
> D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform
> Exception in thread "main"
> java.lang.NoClassDefFoundError: SimpleTransform
> 
> D:\XALAN\SAMPLES\SIMPLE~1>
> 


=
~~~
Scott

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Thread error....WHY?

2001-04-24 Thread TODD HARNEY

Also, do you need the package information on the SimpleTransform class? Does it have a 
package? Or is this a class that you wrote?

HTH,
Todd

>>> [EMAIL PROTECTED] 4/24/01 2:14 >>>
Im sending to both groups for maximized feedback.

I am executing a compiled Xalan sample and getting an error.  Does anyone
know why I could be getting "thread" issues.



--
REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program
Files):
d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6
;d:\xalan\xalan.jar;d:\xalan\xerces.jar



COMMAND CODE MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java

D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform

D:\XALAN\SAMPLES\SIMPLE~1>




Re: Thread error....WHY?

2001-04-24 Thread TODD HARNEY

Do you need . in your CLASSPATH also?

Just a thought?
Todd

>>> [EMAIL PROTECTED] 4/24/01 2:14 >>>
Im sending to both groups for maximized feedback.

I am executing a compiled Xalan sample and getting an error.  Does anyone
know why I could be getting "thread" issues.



--
REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program
Files):
d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6
;d:\xalan\xalan.jar;d:\xalan\xerces.jar



COMMAND CODE MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java

D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform

D:\XALAN\SAMPLES\SIMPLE~1>




RE: Testing Xalan prior to STRUTS build

2001-04-24 Thread Owen Taylor

Chris Brown was correct.  You need to understand how the Classpath works.

Instead of
CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

1) Locate the xalan.jar and ensure that it is in your classpath:

You will have to do this for all jar files from which you wish to have
classes loaded.

2) You do not need to include  d:\Program Files\jdk1.3  in your classpath.
It does nothing for you, unless you have compiled classes of your own there.
As of jdk1.2.2 the java classloader automatically loads the essential java
classes.  Likewise, d:\Program
Files\jsdkee1.3  will not give you any benefit . . .there are no class files
located there!

3) I do not like to have spaces in my classpath so you might consider moving
your java-related files to a simpler and consistent directory - maybe
d:\java
your classpath would then look something like this:

CLASSPATH=d:\java\jsdkee1.3\lib\j2ee.jar;d:\java\ant\lib\ant.jar;d:\java\ant
\lib\jaxp.jar;d:\java\ant\lib\parser.jar;d:\java\junit3.6\junit.jar;d:\java\
xalan\xalan.jar

NB:  you must include the bin directory of your java installation in your
PATH environment variable  eg:
PATH=d:\java\jdk1.3\bin

HTH

owen.



-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:38 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Testing Xalan prior to STRUTS build


HELP!! Does anyone have a suggestion!

-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:22 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: Testing Xalan prior to STRUTS build


I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample.  I've checked the classpath already.  Whatelse can I
check.

CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

COMMAND ERROR MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
SimpleTransform.java:58: cannot resolve symbol
symbol  : class SAXException
location: package sax
import org.xml.sax.SAXException;
   ^
SimpleTransform.java:59: cannot resolve symbol
symbol  : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
 ^
SimpleTransform.java:60: cannot resolve symbol
symbol  : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
 ^
SimpleTransform.java:61: cannot resolve symbol
symbol  : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
 ^
SimpleTransform.java:62: cannot resolve symbol
symbol  : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
 ^
SimpleTransform.java:68: SimpleTransform clashes with package of same name
public class SimpleTransform
   ^
SimpleTransform.java:73: cannot resolve symbol
symbol  : class SAXException
location: package sax
   org.xml.sax.SAXException
  ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : class XSLTProcessor
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
^
SimpleTransform.java:77: cannot resolve symbol
symbol  : variable XSLTProcessorFactory
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
  ^
SimpleTransform.java:81: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
processor.process(new XSLTInputSource("birds.xml"),
  ^
SimpleTransform.java:82: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
  new XSLTInputSource("birds.xsl"),
  ^
SimpleTransform.java:83: cannot resolve symbol
symbol  : class XSLTResultTarget
location: class SimpleTransform
  new XSLTResultTarget("birds.out"));
  ^
12 errors

D:\XALAN\SAMPLES\SIMPLE~1>




Thread error....WHY?

2001-04-24 Thread Galon, Mary-Jay

Im sending to both groups for maximized feedback.

I am executing a compiled Xalan sample and getting an error.  Does anyone
know why I could be getting "thread" issues.



--
REVISED CLASSPATH (i re-installed jdk to root drive instead of under Program
Files):
d:\jdk1.3;d:\jdk1.3\bin;d:\jsdkee1.3;d:\ant\lib\ant.jar;D:\Progra~1\junit3.6
;d:\xalan\xalan.jar;d:\xalan\xerces.jar



COMMAND CODE MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java

D:\XALAN\SAMPLES\SIMPLE~1>java SimpleTransform
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleTransform

D:\XALAN\SAMPLES\SIMPLE~1>



Re: POSTing arrays in struts

2001-04-24 Thread Uwe Pleyer

Hallo Niall,

during my first steps in Struts I walked straight into the same Problem and get
arround with ugly
indizes in the JSP. As my solution works fine, it's not very elegant.

So could you please send me your modified Taglib-Code or a download address?

Thanks in advance

Uwe



Niall Pemberton schrieb:

> No, you still need to change Struts to do this.
>
> Currently I believe they are on a feature freeze for 1.0. The following
> entry is on the 1.1 TODO list which I believe is the same issue. However
> there is no volunteer currently against this entry on the web Site and how
> it is implemented may be different to what I have done.
>
> HTML Tag Library
> 
> "Improved Iteration Support. Improve the ability to use the 
> tag over a collection, and generate a set of input fields for each member of
> the collection (perhaps auto-generating a subscript?). A significant use
> case is master-detail relationships (say, a customer and their current
> orders) where you allow editing of any and all fields. [STRUTS-USER, Lars,
> 12/06/2000] [STRUTS-USER, Chandan Kulkarni, 12/26/2000]"
>
> Niall
>
> > -Original Message-
> > From: Michael Mok [mailto:[EMAIL PROTECTED]]
> > Sent: 11 April 2001 03:05
> > To: [EMAIL PROTECTED]
> > Subject: RE: POSTing arrays in struts
> >
> >
> > Niall
> >
> > Do we still have to apply the patch to the iterate and text tags as you
> > mentioned in your previous email or can we use STRUTS without your patch?
> >
> > "With my modified  and  (& BaseFieldTag) tags. This then
> > causes Struts to generate appropriate method calls to populate the values
> > back to the form [e.g. formExample.getBeanArray(0).setCode(..) etc.]"
> >
> > TIA
> >
> > Regards,
> >
> > Michael Mok
> >
> >
> >




Re: Submitting from one webapp to another

2001-04-24 Thread Ted Husted

In general, people expect the page that receives their password to be
secure. When that is the case, the Struts forms operate properly, and
maintains the secure connection. 

I believe that if you do this any other way, the password will not be
transmitted by SSL.

The trouble I'm having is getting back out of SSL after they login.

Eric Wong had a suggestion for this at <
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg06454.html
> but I haven't tried to implement it.

Scott Cressler wrote:
> 
> We're trying to separate the pages in our app into secure and non-secure.
> As part of that, we would like to have situations like the login page, the
> one that displays the form for getting your username and password, to be in
> the non-secure section and the Action that receives the submit from the
> login form to be in the secure section.  But the  tag won't let
> us do that because it would mean something like this:
> 
> https://secure.site.domain/handleLogin.od";>
> 
> or some such URL.   appears to expect/require an Action (defined
> in your local struts-config.xml file) to be the value of the "action="
> attribute.
> 
> Why is this required, that is, while it is nice for  to attempt
> to help out when setting up the "action=" of the  tag it generates,
> why won't it also allow any old URL?
> 
> Of course, I could just use my own  tag with the correct "action=" to
> POST to the secure Action, but I think that means I can't use the rest of
> the  tags, like , right?
> 
> Is this just a limitation of struts that should/will be addressed?  Or are
> we trying to do something that we shouldn't try to do?  For example, we
> could, of course, put both the page to display the form and the Action to
> accept it on the same, secure server, but that wasn't the way we wanted to
> design things.  Are we trying to design it in a bad way, or is struts
> unnecessarily limiting us?
> 
> Thanks for any info,
> Scott



Error of "Missing message for key" in VAJ-Tomcat environment

2001-04-24 Thread Fei Xie

Hi,

I can run the struts-example sucessfully in VAJ 3.5.2-Tomcat environment, 
however, I got a error of "missing message for key" when I load my own 
project.

I placed properties file under myproject\Web-inf\classes\, and it is 
specified correctly in the web.xml.  The project containing java files are 
included in the project path of tomcatrunner.  I also include myproject\ and 
myproject\Web-inf\classes in the other directories path for tomcatrunner.

Besides, I only leave the project I am working with in the project path, 
same as for extra directories path.

Any help much appreciated.

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




RE: here is my properties file

2001-04-24 Thread Marouane Louah

everything seems to be allright but 
what's the name of you .properties file and is it in the classes folder ??

-Message d'origine-
De: sampath kanakaraju [mailto:[EMAIL PROTECTED]]
Envoye: mardi 24 avril 2001 18:56
A: [EMAIL PROTECTED]
Objet: here is my properties file


Here is the content of my properties file:
*
prompt.hello=Message from Session Bean
prompt.hello.heading=Sample page just to see the
working of session with struts
errors.footer=
errors.header=Page
ValidationPlease correct the following
error(s) before contiuing:
error.homelookup.jndi=Problem Finding the JDNI name
error.getInitialContext.Context=Problem in getting the
Context.
hello.title=To Display Hello Message
*

--- sampath kanakaraju <[EMAIL PROTECTED]> wrote:
> Hi i am getting the following error using the
> Resource
> file. Has anyone come across this error. 
> 
> Missing message for key hello.title:
> 
> My JSp file uses the bean.tld and is as follows:
> 
> 
> 
> 
>   
> 
>   
> 
> 
> 
> This is my setting in the web.xml file:
> *
> 
> action
>
>
org.apache.struts.action.ActionServlet
> 
> application
>
> app.ApplicationResources 
>  
> 
> 
> 
> config
>
>
/WEB-INF/struts-config.xml
> 
> 
> debug
> 2
> 
> 
> detail
> 2
> 
> 
> validate
> true
> 
> 1
> 
> 
> 
> And my ApplicationResources.properties file is under
> the following directory structure:
> *
> WEB-INF/classes/app/ApplicationResources.properties
> 
> 
> 
> And i still can find the hello.title key in the
> properties file.
> could anyone help.
> thanx
> sampath
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




RE: please help me with ActionForm

2001-04-24 Thread Nanduri, Amarnath
Title: please help me with ActionForm



Everything depends on the scope your ActionForm is 
in
If it 
is request scope, after a response was submitted, the bean gets destroyed. If in 
session scope, once the session gets invalidated. If in application scope then 
when the server goes down. You set this up in the struts-xonfig.xml file when 
you map a Form object to an action class in the   
tags. 
 
Struts 
does not directly handle the removal of the objects. That is entirely dependent 
on the Server you are using and the servlet spec it is supporting. Hope this 
answers your question. I would advise you take a real good look at the 
struts-example. It will really enlighten you and make you very comfortable when 
you start your development using struts.
 
cheers,
Amar..

  -Original Message-From: See Yam Lim 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 12:50 
  PMTo: Struts (E-mail)Subject: please help me with 
  ActionForm
  Hi all, 
  Is anybody knows how Struts clean up object 
  like ActionForm? can we program to control the clean up this object 
  explicitly? also, can i put ActionForm into the session container that i 
  create where i uses it to store proxies to session, mean where is a piece of 
  code that ActionForm is stored into sessioin? Thanks.
  See-Yam Lim[EMAIL PROTECTED] 
  See-Yam Lim Software Engineer Netvendor Inc.http://www.netvendor.commailto:[EMAIL PROTECTED]The Leader in B2B Supplier 
  EnablementNetVendor enables 
  suppliers to collaborate with theircustomers and sell through multiple channels online. 



RE: forwarding to itself

2001-04-24 Thread Nanduri, Amarnath



Use a 
bean (filled with the arguments / parameters to be used in the input page) and 
do  
 
request.setAttribute("mybean", mybean) ;
mapping.findForward() ;
 
 

  -Original Message-From: Sundaram Ramasamy 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 11:43 
  AMTo: [EMAIL PROTECTED]Subject: RE: 
  forwarding to itself
  
   
  If your calling this 
  funcation
   
  mapping.findForward(mapping.getInput() 
  ) 
   
   
  How to 
  you pass the argument to that input 
  page,
   
   
   
   
  -Original 
  Message-From: Nanduri, 
  Amarnath [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 9:47 
  AMTo: 
  '[EMAIL PROTECTED]'Subject: RE: forwarding to 
  itself
   
  mapping.findForward(mapping.getInput() 
  )  where 'input' is specified in the struts_config.xml action 
  mapping
   
  cheers,
  Amar..
  -Original 
  Message-From: Marcin Baj 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 9:40 
  AMTo: 
  [EMAIL PROTECTED]Subject: forwarding to 
  itself
  Hello,
   
  I want to organize 
  one action bean for changing language (there is very similar form on several 
  pages for such action). 
   
  How can I forward 
  request to the page which from this request comes?
   
  Please 
  help,
  Bajo


RE: iteration enhancement?

2001-04-24 Thread Tim Moore

We may be able to steal an idea here from Zope (which is a Python-based
application server).  The built-in templating language (called DTML) has a
tag to iterate over a sequence much like logic:iterate.  Within the scope of
that tag, it defines several variables that can be used in each iteration.
Some of them are probably overkill, but a few of them are really handy.  The
following is just copied straight from the Zope docs:

sequence-index  The index starting with 0 of the current item. 
sequence-start  True if the current item is the first item. 
sequence-endTrue if the current item is the last item. 
sequence-even   True if the index of the current item is even. 
sequence-oddTrue if the index of the current item is odd. 
sequence-length The length of the sequence. 

There are a lot more, but those have been the most useful to me.  It might
be nice if IterateTag class had an accompanying IterateInfo bean which
contained accessors for this type of thing.  When the tag is used, it could
define a scripting variable for the IterateInfo instance in its nested
scope.
-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW/ 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 10:05 PM
> To: [EMAIL PROTECTED]
> Subject: RE: iteration enhancement?
> 
> 
> I am also interested in this. The IterateTag uses 
> "lengthCount" to keep
> track of the current iteration, however this is a protected 
> variable and
> there is no getter to expose it.
> 
> Would it be possible to put in a public getLengthCount() in 
> the IterateTag?
> This wouldn't solve Chris's problem directly but then other 
> tags embedded in
> the IterateTag could then use:
>findAncestorWithClass(this, IterateTag.class)
> to get hold of it and then call getLengthCount().
> 
> I have two different scenarios where I needed to do this and I've
> sub-classed IterateTag to achieve it. However it would be 
> really useful if
> it was in the original version.
> 
> I have a  tag which 
> generates rows
> with alternating colors which  needs this and from various 
> posts I've seen
> might be useful to quite a few people. It generates  bgcolor=".."> elements.
> 
> Niall
> 
> > -Original Message-
> > From: Chris Butler [mailto:[EMAIL PROTECTED]]
> > Sent: 23 April 2001 16:53
> > To: [EMAIL PROTECTED]
> > Subject: iteration enhancement?
> >
> >
> > Is it possible to access the count of the number of
> > times you've looped in an  tag?
> >
> > ideally:
> >
> > 
> >#
> > 
> > 
> >
> > unfortunately, i'm guessing that via reflection the
> > bean is created with a reference name and additional
> > attributes aren't there...
> >
> > chris
> >
> >
> 



please help me with ActionForm

2001-04-24 Thread See Yam Lim
Title: please help me with ActionForm





Hi all, 
Is anybody knows how Struts clean up object like ActionForm? can we program to control the clean up this object explicitly? also, can i put ActionForm into the session container that i create where i uses it to store proxies to session, mean where is a piece of code that ActionForm is stored into sessioin? Thanks.

See-Yam Lim
[EMAIL PROTECTED] 


See-Yam Lim
Software Engineer
Netvendor Inc.
http://www.netvendor.com
mailto:[EMAIL PROTECTED]

The Leader in B2B Supplier Enablement
NetVendor enables suppliers to collaborate with their
customers and sell through multiple channels online.
 







here is my properties file

2001-04-24 Thread sampath kanakaraju

Here is the content of my properties file:
*
prompt.hello=Message from Session Bean
prompt.hello.heading=Sample page just to see the
working of session with struts
errors.footer=
errors.header=Page
ValidationPlease correct the following
error(s) before contiuing:
error.homelookup.jndi=Problem Finding the JDNI name
error.getInitialContext.Context=Problem in getting the
Context.
hello.title=To Display Hello Message
*

--- sampath kanakaraju <[EMAIL PROTECTED]> wrote:
> Hi i am getting the following error using the
> Resource
> file. Has anyone come across this error. 
> 
> Missing message for key hello.title:
> 
> My JSp file uses the bean.tld and is as follows:
> 
> 
> 
> 
>   
> 
>   
> 
> 
> 
> This is my setting in the web.xml file:
> *
> 
> action
>
>
org.apache.struts.action.ActionServlet
> 
> application
>
> app.ApplicationResources 
>  
> 
> 
> 
> config
>
>
/WEB-INF/struts-config.xml
> 
> 
> debug
> 2
> 
> 
> detail
> 2
> 
> 
> validate
> true
> 
> 1
> 
> 
> 
> And my ApplicationResources.properties file is under
> the following directory structure:
> *
> WEB-INF/classes/app/ApplicationResources.properties
> 
> 
> 
> And i still can find the hello.title key in the
> properties file.
> could anyone help.
> thanx
> sampath
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: Testing Xalan prior to STRUTS build

2001-04-24 Thread Galon, Mary-Jay

HELP!! Does anyone have a suggestion!

-Original Message-
From: Galon, Mary-Jay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 12:22 PM
To: Struts-User@Jakarta. Apache. Org (E-mail)
Subject: Testing Xalan prior to STRUTS build


I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample.  I've checked the classpath already.  Whatelse can I
check.

CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

COMMAND ERROR MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
SimpleTransform.java:58: cannot resolve symbol
symbol  : class SAXException
location: package sax
import org.xml.sax.SAXException;
   ^
SimpleTransform.java:59: cannot resolve symbol
symbol  : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
 ^
SimpleTransform.java:60: cannot resolve symbol
symbol  : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
 ^
SimpleTransform.java:61: cannot resolve symbol
symbol  : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
 ^
SimpleTransform.java:62: cannot resolve symbol
symbol  : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
 ^
SimpleTransform.java:68: SimpleTransform clashes with package of same name
public class SimpleTransform
   ^
SimpleTransform.java:73: cannot resolve symbol
symbol  : class SAXException
location: package sax
   org.xml.sax.SAXException
  ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : class XSLTProcessor
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
^
SimpleTransform.java:77: cannot resolve symbol
symbol  : variable XSLTProcessorFactory
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
  ^
SimpleTransform.java:81: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
processor.process(new XSLTInputSource("birds.xml"),
  ^
SimpleTransform.java:82: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
  new XSLTInputSource("birds.xsl"),
  ^
SimpleTransform.java:83: cannot resolve symbol
symbol  : class XSLTResultTarget
location: class SimpleTransform
  new XSLTResultTarget("birds.out"));
  ^
12 errors

D:\XALAN\SAMPLES\SIMPLE~1>



Re: Testing Xalan prior to STRUTS build

2001-04-24 Thread chris brown

You need to add the ".jar" files for Xalan to your classpath, not just the
folders (you only add folders to your classpath when they contain unarchived
".class" files).  This means including at least "xalan.jar" and "xerces.jar"
(the XML parser which Xerces requires) in your classpath (see the "bin"
folder where you installed Xalan).

-Chris

- Original Message -
From: "Galon, Mary-Jay" <[EMAIL PROTECTED]>
To: "Struts-User@Jakarta. Apache. Org (E-mail)"
<[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 6:21 PM
Subject: Testing Xalan prior to STRUTS build


> I am getting this problem when testing to make sure Xalan works by using
the
> SimpleTranform sample.  I've checked the classpath already.  Whatelse can
I
> check.
>
> CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
> Files\jsdkee1.3;d:\ant\lib;D:\Program
> Files\junit3.6;d:\xalan;d:\xalan\samples
>
> COMMAND ERROR MSG:
> D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
> SimpleTransform.java:58: cannot resolve symbol
> symbol  : class SAXException
> location: package sax
> import org.xml.sax.SAXException;
>^
> SimpleTransform.java:59: cannot resolve symbol
> symbol  : class XSLTProcessorFactory
> location: package xslt
> import org.apache.xalan.xslt.XSLTProcessorFactory;
>  ^
> SimpleTransform.java:60: cannot resolve symbol
> symbol  : class XSLTInputSource
> location: package xslt
> import org.apache.xalan.xslt.XSLTInputSource;
>  ^
> SimpleTransform.java:61: cannot resolve symbol
> symbol  : class XSLTResultTarget
> location: package xslt
> import org.apache.xalan.xslt.XSLTResultTarget;
>  ^
> SimpleTransform.java:62: cannot resolve symbol
> symbol  : class XSLTProcessor
> location: package xslt
> import org.apache.xalan.xslt.XSLTProcessor;
>  ^
> SimpleTransform.java:68: SimpleTransform clashes with package of same name
> public class SimpleTransform
>^
> SimpleTransform.java:73: cannot resolve symbol
> symbol  : class SAXException
> location: package sax
>org.xml.sax.SAXException
>   ^
> SimpleTransform.java:77: cannot resolve symbol
> symbol  : class XSLTProcessor
> location: class SimpleTransform
> XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
> ^
> SimpleTransform.java:77: cannot resolve symbol
> symbol  : variable XSLTProcessorFactory
> location: class SimpleTransform
> XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
>   ^
> SimpleTransform.java:81: cannot resolve symbol
> symbol  : class XSLTInputSource
> location: class SimpleTransform
> processor.process(new XSLTInputSource("birds.xml"),
>   ^
> SimpleTransform.java:82: cannot resolve symbol
> symbol  : class XSLTInputSource
> location: class SimpleTransform
>   new XSLTInputSource("birds.xsl"),
>   ^
> SimpleTransform.java:83: cannot resolve symbol
> symbol  : class XSLTResultTarget
> location: class SimpleTransform
>   new XSLTResultTarget("birds.out"));
>   ^
> 12 errors
>
> D:\XALAN\SAMPLES\SIMPLE~1>




Submitting from one webapp to another

2001-04-24 Thread Scott Cressler

We're trying to separate the pages in our app into secure and non-secure.
As part of that, we would like to have situations like the login page, the
one that displays the form for getting your username and password, to be in
the non-secure section and the Action that receives the submit from the
login form to be in the secure section.  But the  tag won't let
us do that because it would mean something like this:

https://secure.site.domain/handleLogin.od";>

or some such URL.   appears to expect/require an Action (defined
in your local struts-config.xml file) to be the value of the "action="
attribute.

Why is this required, that is, while it is nice for  to attempt
to help out when setting up the "action=" of the  tag it generates,
why won't it also allow any old URL?

Of course, I could just use my own  tag with the correct "action=" to
POST to the secure Action, but I think that means I can't use the rest of
the  tags, like , right?

Is this just a limitation of struts that should/will be addressed?  Or are
we trying to do something that we shouldn't try to do?  For example, we
could, of course, put both the page to display the form and the Action to
accept it on the same, secure server, but that wasn't the way we wanted to
design things.  Are we trying to design it in a bad way, or is struts
unnecessarily limiting us?

Thanks for any info,
Scott



RE: struts resource file error

2001-04-24 Thread Marouane Louah

the syntaxd is wrong 



try this 




-Message d'origine-
De: sampath kanakaraju [mailto:[EMAIL PROTECTED]]
Envoye: mardi 24 avril 2001 18:17
A: [EMAIL PROTECTED]
Objet: struts resource file error


Hi i am getting the following error using the Resource
file. Has anyone come across this error. 

Missing message for key hello.title:

My JSp file uses the bean.tld and is as follows:










This is my setting in the web.xml file:
*

action
   
org.apache.struts.action.ActionServlet

application
   
app.ApplicationResources   



config
   
/WEB-INF/struts-config.xml


debug
2


detail
2


validate
true

1



And my ApplicationResources.properties file is under
the following directory structure:
*
WEB-INF/classes/app/ApplicationResources.properties



And i still can find the hello.title key in the
properties file.
could anyone help.
thanx
sampath



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/




Testing Xalan prior to STRUTS build

2001-04-24 Thread Galon, Mary-Jay

I am getting this problem when testing to make sure Xalan works by using the
SimpleTranform sample.  I've checked the classpath already.  Whatelse can I
check.

CLASSPATH:  d:\Program Files\jdk1.3;d:\Program
Files\jsdkee1.3;d:\ant\lib;D:\Program
Files\junit3.6;d:\xalan;d:\xalan\samples

COMMAND ERROR MSG:
D:\XALAN\SAMPLES\SIMPLE~1>javac SimpleTransform.java
SimpleTransform.java:58: cannot resolve symbol
symbol  : class SAXException
location: package sax
import org.xml.sax.SAXException;
   ^
SimpleTransform.java:59: cannot resolve symbol
symbol  : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
 ^
SimpleTransform.java:60: cannot resolve symbol
symbol  : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
 ^
SimpleTransform.java:61: cannot resolve symbol
symbol  : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
 ^
SimpleTransform.java:62: cannot resolve symbol
symbol  : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
 ^
SimpleTransform.java:68: SimpleTransform clashes with package of same name
public class SimpleTransform
   ^
SimpleTransform.java:73: cannot resolve symbol
symbol  : class SAXException
location: package sax
   org.xml.sax.SAXException
  ^
SimpleTransform.java:77: cannot resolve symbol
symbol  : class XSLTProcessor
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
^
SimpleTransform.java:77: cannot resolve symbol
symbol  : variable XSLTProcessorFactory
location: class SimpleTransform
XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
  ^
SimpleTransform.java:81: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
processor.process(new XSLTInputSource("birds.xml"),
  ^
SimpleTransform.java:82: cannot resolve symbol
symbol  : class XSLTInputSource
location: class SimpleTransform
  new XSLTInputSource("birds.xsl"),
  ^
SimpleTransform.java:83: cannot resolve symbol
symbol  : class XSLTResultTarget
location: class SimpleTransform
  new XSLTResultTarget("birds.out"));
  ^
12 errors

D:\XALAN\SAMPLES\SIMPLE~1>



struts resource file error

2001-04-24 Thread sampath kanakaraju

Hi i am getting the following error using the Resource
file. Has anyone come across this error. 

Missing message for key hello.title:

My JSp file uses the bean.tld and is as follows:










This is my setting in the web.xml file:
*

action
   
org.apache.struts.action.ActionServlet

application
   
app.ApplicationResources   



config
   
/WEB-INF/struts-config.xml


debug
2


detail
2


validate
true

1



And my ApplicationResources.properties file is under
the following directory structure:
*
WEB-INF/classes/app/ApplicationResources.properties



And i still can find the hello.title key in the
properties file.
could anyone help.
thanx
sampath



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Packaging Question - Include Source in Binary Distributions?

2001-04-24 Thread sampath kanakaraju

Hi i am getting the following error using the Resource
file. Has anyone come across this error. 

Missing message for key hello.title:

My JSp file uses the bean.tld and is as follows:










This is my setting in the web.xml file:
*

action
   
org.apache.struts.action.ActionServlet

application
   
app.ApplicationResources   



config
   
/WEB-INF/struts-config.xml


debug
2


detail
2


validate
true

1



And my ApplicationResources.properties file is under
the following directory structure:
*
WEB-INF/classes/app/ApplicationResources.properties



And i still can find the hello.title key in the
properties file.
could anyone help.
thanx
sampath

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: forwarding to itself

2001-04-24 Thread Sundaram Ramasamy









 

If your calling this funcation

 

mapping.findForward(mapping.getInput()
) 

 

 

How to you
pass the argument to that input page,




 

 

 

 

-Original
Message-
From: Nanduri, Amarnath
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:47
AM
To:
'[EMAIL PROTECTED]'
Subject: RE: forwarding to itself

 

mapping.findForward(mapping.getInput()
)  where 'input' is specified in the struts_config.xml action mapping

 

cheers,

Amar..

-Original Message-
From: Marcin Baj
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:40
AM
To: [EMAIL PROTECTED]
Subject: forwarding to itself

Hello,

 

I want to organize one action bean for
changing language (there is very similar form on several pages for such
action). 

 

How can I forward request to the page
which from this request comes?

 

Please help,

Bajo








RE: wizard style example, anywhere?

2001-04-24 Thread Marouane Louah
you can try the example provided with the installation 



-Message d'origine-
De?: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoye?: mardi 24 avril 2001 15:51
A?: [EMAIL PROTECTED]
Objet?: wizard style example, anywhere?


Hello struts-users,

I am very new to Struts (or JSP for that matter), and in need of
some examples that I can get my hands on.

Specifically, an application that uses "wizard" style, multiple-page
input forms would be very nice. Couple of Struts documents I looked
mention that Struts works well with wizard style application, but I get
confused when it comes to writing struts-config.xml, JSPs that share
the same ActionForm or Action, etc.. I gotta see it working before I
start building mine.

Good examples, anywhere, anyone?

thanks,

- kazumi


Re: findForward() returning a blank page

2001-04-24 Thread Michael Gluckman

Sorry, i was using the deprecated perform method and it was not being
called.



Michael Gluckman wrote:

> Hi all
>
> After my action class is instantiated the method findForward("admin")
> returns a blank html page instead of the admin-frame page.
> If I type the full URL path to the admin-frame it works.
> I have included the  in the admin-frame page.
> Any ideas
>
> Thanks
> Michael
>
> 
>   path="/logon"
>  type="test.LogonAction"
>  name="logonForm"
>  scope="request"
>  input="/logon.jsp">
> 
> 




Re: Interm page

2001-04-24 Thread Calvin Yu

Here are your options:

  You can deliver the interim page but hold the
connection until the action finishes.  The interim
page should have javascript that onload will redirect
to a resolution page.  The resolution page will look
into the session for errors and redirect to the error
page if an error is found, otherwise redirect to the
success page.  This solutions is the best visually,
but has the draw back of breaking most Struts-like
architectures.  I can't say if Struts can support
this, but from what I've seen it can't.  You could do
this in a generic servlet outside of Struts however. 
Also, holding the connections caused a lot of
low-level headaches as far as dealing with web server
proxies, browser behavior, and application servers.

  The other way it can be done is to make the interim
page a frame set that has a frame that takes up the
full frameset.  This page will show the wait message. 
Then have a hidden frame which hits a url that does
the actual action and returns an HTML containing
javascript to redirect to the success or failure URL. 
This should be doable in Struts, but has disadvantages
visually where in some browsers the loading icon is
not spinning and the hourglass will show up only over
certain hotspots.

Calvin

--- Biggs <[EMAIL PROTECTED]> wrote:
> Greetings,
> 
> What I wish to develop is an intermediate page
> after certain actions. For example, one situation
> would be the user edits and saves changes to a form,
> in which I wish to take them to a interim page
> indicating we are processing their action. Once the
> action is complete the appropriate page is
> displayed; success (the changes to form is displayed
> along with a message indicating the changes were
> saved successfully.) or an error( indicating why the
> changes were unable to be saved ). Can anyone
> provide some assistance?
> 
> Thanx in advance.
> 
> Biggz
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: forwarding to itself

2001-04-24 Thread Nanduri, Amarnath



In 
that case use a  tag which contains the name of the page . Whenever 
you want the action to forward to the input page, use the mapping.findForward( 
"jsp page name") . The name of the page will be got from the meta tag. If you 
search the archives you will find something similar like this posted ( 1-2 days 
back).
 
For 
your entire application if you want to use a single action + form this would be 
a best approach (if you don't want to have more than one  element 
mapping in your struts_config.xml file
-Original Message-From: Marcin 
Baj [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 9:56 
AMTo: [EMAIL PROTECTED]Subject: Re: 
forwarding to itself

  Yes, but I want to have only one (not about 50) 
  section action in struts.config and 
  single form action bean...
   
   
  
- Original Message - 
From: 
Nanduri, Amarnath 
To: '[EMAIL PROTECTED]' 

Sent: Tuesday, April 24, 2001 3:46 
PM
Subject: RE: forwarding to itself

mapping.findForward(mapping.getInput() )  where 'input' is 
specified in the struts_config.xml action mapping
 
cheers,
Amar..

  -Original Message-From: Marcin Baj [mailto:[EMAIL PROTECTED]]Sent: 
  Tuesday, April 24, 2001 9:40 AMTo: [EMAIL PROTECTED]Subject: 
  forwarding to itself
  Hello,
   
  I want to organize one action bean for 
  changing language (there is very similar form on several pages for such 
  action). 
   
  How can I forward request to the page which 
  from this request comes?
   
  Please help,
  Bajo


RE: FW: Session scope

2001-04-24 Thread Calvin Yu

Here's my experience with this issue.  We used
in-memory session failover in WL, but due to problems
with the WL proxy we switched to JDBC session
persistence.  We then dropped clustering and session
persistence altogether because of performance reasons
and used switches to make sure that users always hit
the same WL instance.

Things to note about my experience:

 * There were ways to optimize the session database
(Oracle) which we didn't explore.

 * Session failover wasn't as important as we thought.
 At least not more so than performance.

Calvin

--- "Chen, Yong" <[EMAIL PROTECTED]> wrote:
> Application server level load balancing is the
> answer to the problem.
> I don't see there is a strong reason to synchronize
> two sessions on two different app servers. Because
> the web server or proxy server will establish the
> link between the client and app server the very
> first time the connection is made. After that, the
> client (browser) will bind to the same app server.
> So, session info should only be kept in that
> particular app server. 
> 
> However, if you want to do session level fail-over,
> then like Weblogic app server, you will utilize
> their cluster feature to sync the secondary app
> server with the primary app server in case the
> primary is down. This requires to use BEA's weblogic
> proxy feature to detect such failure of primary app
> server down.
> 
> In current generation of web apps, should any
> services is needed to be distributed, you can use
> EJB, RMI, CORBA or COM/COM+. Session related info
> should be in the memory of app server. Session is
> transient, not persistent. 
> 
> 
> Yong Chen
> 
> -Original Message-
> From: Peter Smith [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 5:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: FW: Session scope
> 
> 
> I'm definitely considering running Struts with at
> least 2 JVMs - one on each of 2 boxes.  At first I
> didn't even consider the effects of running multiple
> JVMs - never done it!
> 
> Currently, my company has a big Oracle focus. 
> There's
> only one Oracle instance so they're using it to
> maintain session info across multiple app servers. 
> This requires a db hit for every HTTP request.
> 
> I can handle the memory requirements.  I just want a
> better way to coordinte session info across JVM's.
> 
> In the past I've written a poor-man's
> 'serialization'
> module for PERL which just kicked-out all the
> accumulated HTML parameters into  tags. 
> Wonder if I can do something similar for Struts
> environment w/o giving up too much of the
> functionality I'm using Struts for in the first
> place.
> 
> Are there any gotchas we can think of with using
> Struts across JVM's?
> 
> P.S. I wonder if Tomcat project is planning some
> kind
> of session-sync technology.
> 
> --- "Maguire, James" <[EMAIL PROTECTED]> wrote:
> > Obviously, design decisions have been made on the
> > session context.
> > 
> > Is anyone running (or considering running) Struts
> in
> > a truly distributed
> > server infrastructure?
> > Does Craig's suggestion of Serializable session
> > beans stand up under volume?
> > 
> > Just looking for some pointers.
> > 
> > Jim
> > 
> > -Original Message-
> > From: Craig R. McClanahan
> > [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, April 13, 2001 11:03 PM
> > To: Struts-User@Jakarta. Apache. Org (E-mail)
> > Subject: Re: Session scope
> > 
> > 
> > 
> > 
> > On Tue, 10 Apr 2001, Girish Baxi wrote:
> > 
> > > I am a new strut user  as far as i know ,
> isnt
> > it a bad idea to store
> > > data in the session scope simply becoz its not
> > scalable for a multiple web
> > > server scenario ...
> > > is there any work around to using session scope
> in
> > case of form beans that
> > > span more than one html page ???
> > > 
> > > any guidance is appreciated,
> > > thanx
> > > 
> > > 
> > > 
> > 
> > Let's understand what is really happening in order
> > to understand what the
> > potential impacts are:
> > 
> > * An HttpSession, as implemented by your servlet
> > container, typically
> >   uses something like a Hashtable or a HashMap to
> > store session
> >   attributes.
> > 
> > * When you create a bean instance, the bytecodes
> > that make up the
> >   executable methods of your bean are shared
> across
> > all instances -- the
> >   only thing that takes memory is the bean
> > properties themselves.
> > 
> > * Let's assume that your bean uses about 1000
> bytes
> > for the properties
> >   that are unique to that bean, and you want to
> save
> > a bean in each
> >   user's session because it represents information
> > you need over more
> >   than one request.
> > 
> > * If you have 10,000 simultaneous users, that
> means
> > you need roughly
> >   ten megabytes (10,000 * 1000) of memory to store
> > these objects.  Whether
> >   that is a problem or not depends on how much
> free
> > memory you have.
> > 
> > * Some application servers support load balancing
> > and distribution

Re: HTML special characters

2001-04-24 Thread Peter Alfors

Oops...  I wasn't thinking... :)
Yep, I agree it shouldn't be an encoding mechanism.

Pete

"Craig R. McClanahan" wrote:

> On Fri, 20 Apr 2001, Peter Alfors wrote:
>
> > Hello all,
> >
> > Is there any plan to update the ResponseUtil.filter() method to
> > handle more (or all) of the HTML special characters?
> > It looks like right now only 4 are being handled.
> >
> > Thanks,
> > Pete
> >
>
> What other characters are you concerned about?  The purpose of filtering
> was to avoid problems where user data had HTML markup in it, but it wasn't
> designed to be a general purpose encoding mechanism.
>
> Craig


begin:vcard 
n:;
x-mozilla-html:FALSE
org:http://www.irista.com/logo/irista.gif";>Bringing Vision to Your Supply Chain
adr:;;
version:2.1
end:vcard



Re: forwarding to itself

2001-04-24 Thread Marcin Baj



Yes, but I want to have only one (not about 50) 
section action in struts.config and 
single form action bean...
 
 

  - Original Message - 
  From: 
  Nanduri, Amarnath 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Tuesday, April 24, 2001 3:46 
  PM
  Subject: RE: forwarding to itself
  
  mapping.findForward(mapping.getInput() )  where 'input' is 
  specified in the struts_config.xml action mapping
   
  cheers,
  Amar..
  
-Original Message-From: Marcin Baj [mailto:[EMAIL PROTECTED]]Sent: 
Tuesday, April 24, 2001 9:40 AMTo: [EMAIL PROTECTED]Subject: 
forwarding to itself
Hello,
 
I want to organize one action bean for changing 
language (there is very similar form on several pages for such action). 

 
How can I forward request to the page which 
from this request comes?
 
Please help,
Bajo


wizard style example, anywhere?

2001-04-24 Thread iwanek
Hello struts-users,

I am very new to Struts (or JSP for that matter), and in need of
some examples that I can get my hands on.

Specifically, an application that uses "wizard" style, multiple-page
input forms would be very nice. Couple of Struts documents I looked
mention that Struts works well with wizard style application, but I get
confused when it comes to writing struts-config.xml, JSPs that share
the same ActionForm or Action, etc.. I gotta see it working before I
start building mine.

Good examples, anywhere, anyone?

thanks,

- kazumi


RE: forwarding to itself

2001-04-24 Thread Nanduri, Amarnath



mapping.findForward(mapping.getInput() )  where 'input' is specified 
in the struts_config.xml action mapping
 
cheers,
Amar..

  -Original Message-From: Marcin Baj 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, April 24, 2001 9:40 
  AMTo: [EMAIL PROTECTED]Subject: forwarding 
  to itself
  Hello,
   
  I want to organize one action bean for changing 
  language (there is very similar form on several pages for such action). 
  
   
  How can I forward request to the page which from 
  this request comes?
   
  Please help,
  Bajo


Re: Packaging Question - Include Source in Binary Distributions?

2001-04-24 Thread Calvin Yu

I would prefer to have the source available.  I like
the ease doing an installation without having to run a
build, and the ability to look at the source if
anything goes wrong.

I'd suggest jaring up the source in a src.jar, like
the JDK.

Calvin


--- Wong Kok Wai <[EMAIL PROTECTED]> wrote:
> Just the binary with docs and examples (with
> sources).
> Thanks!
> 
> --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> wrote:
> > As we move towards a 1.0 release of Struts
> (really! 
> > :-), one of the
> > things I am cleaning up is the way that binary
> > distributions are
> > packaged.  Currently, we follow the typical
> Jakarta
> > pattern of including
> > the source code for Struts in the binary
> > distribution (in the "etc",
> > "src", and "web" directories), as well as in a
> > separate download.
> > 
> > My question is, do people find the fact that the
> > binary distribution
> > includes source code useful, or would it be OK to
> > just point you at the
> > download URL for the source distribution if you
> want
> > it?  For recent
> > builds, this would cut the size of the binary
> > distribution by about one
> > third.
> > 
> > I'm fine with doing it either way, but wanted to
> get
> > some feedback from
> > the community before making a final decision.
> > 
> > Craig
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great
> prices
> http://auctions.yahoo.com/


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



forwarding to itself

2001-04-24 Thread Marcin Baj



Hello,
 
I want to organize one action bean for changing 
language (there is very similar form on several pages for such action). 

 
How can I forward request to the page which from 
this request comes?
 
Please help,
Bajo


RE: Packaging Question - Include Source in Binary Distributions?

2001-04-24 Thread Nanduri, Amarnath


binaries including source is perfect. I can get everything in one download
instead of multiple downloads.

Thanks,
Amar..

-Original Message-
From: Wong Kok Wai [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 24, 2001 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: Packaging Question - Include Source in Binary
Distributions?


Just the binary with docs and examples (with sources).
Thanks!

--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> As we move towards a 1.0 release of Struts (really! 
> :-), one of the
> things I am cleaning up is the way that binary
> distributions are
> packaged.  Currently, we follow the typical Jakarta
> pattern of including
> the source code for Struts in the binary
> distribution (in the "etc",
> "src", and "web" directories), as well as in a
> separate download.
> 
> My question is, do people find the fact that the
> binary distribution
> includes source code useful, or would it be OK to
> just point you at the
> download URL for the source distribution if you want
> it?  For recent
> builds, this would cut the size of the binary
> distribution by about one
> third.
> 
> I'm fine with doing it either way, but wanted to get
> some feedback from
> the community before making a final decision.
> 
> Craig
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



Re: Packaging Question - Include Source in Binary Distributions?

2001-04-24 Thread Wong Kok Wai

Just the binary with docs and examples (with sources).
Thanks!

--- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> As we move towards a 1.0 release of Struts (really! 
> :-), one of the
> things I am cleaning up is the way that binary
> distributions are
> packaged.  Currently, we follow the typical Jakarta
> pattern of including
> the source code for Struts in the binary
> distribution (in the "etc",
> "src", and "web" directories), as well as in a
> separate download.
> 
> My question is, do people find the fact that the
> binary distribution
> includes source code useful, or would it be OK to
> just point you at the
> download URL for the source distribution if you want
> it?  For recent
> builds, this would cut the size of the binary
> distribution by about one
> third.
> 
> I'm fine with doing it either way, but wanted to get
> some feedback from
> the community before making a final decision.
> 
> Craig
> 
> 


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



findForward() returning a blank page

2001-04-24 Thread Michael Gluckman

Hi all

After my action class is instantiated the method findForward("admin")
returns a blank html page instead of the admin-frame page.
If I type the full URL path to the admin-frame it works.
I have included the  in the admin-frame page.
Any ideas

Thanks
Michael









Hierarchical menus

2001-04-24 Thread B Manikandan

Can DHTML Lab's Hierarchical menu be implemented using Struts ?

Mani




Re: Session invalidate()

2001-04-24 Thread Darryl

Sorry all. Please ignore my previous post. My assumptions were completely
wrong. You can use invalidate() since mapping variables are in application
scope, and in fact I had already put an invalidate() in my code which was
why the second invalidate() I added was throwing an exception.  Sorry
about the brainfart.

- Darryl

Darryl wrote:

> Hi all,
>
> Quick question about session.invalidate(). I created a login management
> framework that works fine but for one problem. When I introduce the
> session.invalidate() command for when the user logs out, naturally, all
> the Struts-required beans in the session are destroyed so a
> mapping.findforward("success") will also, naturally, fail.
>
> Given these obvious consequences, surely someone out there has dealt
> with this before. How does one invalidate a session without hozing all
> your Struts objects placed in the session... or better put, how does
> Struts implement session invalidation.
>
> thanks,
> Darryl
>
> P.S. I did search the archived messages that I have but couldn't find
> anything dealing with this topic.




Session invalidate()

2001-04-24 Thread Darryl

Hi all,

Quick question about session.invalidate(). I created a login management
framework that works fine but for one problem. When I introduce the
session.invalidate() command for when the user logs out, naturally, all
the Struts-required beans in the session are destroyed so a
mapping.findforward("success") will also, naturally, fail.

Given these obvious consequences, surely someone out there has dealt
with this before. How does one invalidate a session without hozing all
your Struts objects placed in the session... or better put, how does
Struts implement session invalidation.

thanks,
Darryl

P.S. I did search the archived messages that I have but couldn't find
anything dealing with this topic.




Simple Iterate Question

2001-04-24 Thread Kristopher Brown



I'm using 
logic:iterate and I want to know the index on each 
iteration.
 
Is there a tag I can 
use - I've looked but I can't find one.
Cheers
Kris.


RE: Packaging Question - Include Source in Binary Distributions?

2001-04-24 Thread Gael Laurans

>From: "Iraklis Kourtidis" <[EMAIL PROTECTED]>

>2) The source for the struts-example sample application (although not part 
>of the source code you're likely talking about) was to me the
>most useful resource in understanding Struts. Any other example I found on 
>the web was highly confusing and/or incomplete (including the 'resources' 
>section of the Jakarta Struts  home page.)
>
This is, IMHO, really, really important. If it turns out that the source 
code of the example application will be removed from the binary package, you 
should make it really clear in the documentation and in the application 
itself that the source code is available in another package. It would be 
good anyway to add a reference to this source code on all the pages of the 
example application or in the "walking tour of the example applcation".
The example application source code was the main ressource I used to learn 
Struts. Even if the documentation is comprehensive and of a very good 
quality I was unable to use it to *learn* Struts. It became useful 
afterwards, as a reference. I'm afraid that if it's difficult for new users 
to find the example application, some of them might just give up and try 
something else.

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




Re: Error while overriding parameters in instances - components over struts

2001-04-24 Thread Cedric Dumoulin


  Hi,

  There is no problem with components, just a syntax error in your jsp
overiding parameter : you have ended  tag while you still
using it. Remove the '/', and all will work fine.
  I agree that returned error is not accurate : I think that jsp preprocessor
should detect the end tag  with no corresponding starting tag, or
maybe I miss something.

Cedric

<%@ taglib uri="/WEB-INF/components.tld" prefix="comp" %>


 ^- ERROR : remove the '/'
!



P.S. : May I advice you to use  instead of the deprecated
 in your layout page ?

Vijaya Narasimha wrote:

> Hi,
>
> I am using components over struts on iAS v 6.0 sp2. I am getting a null
> pointer exception error while overriding a parameter in an instance. If I
> don't override and use the instance as is everything work fine. Did anyone
> else get this error? Thanks for any help/leads.
>
> Vijay
>
> This is my instance definition in componentInstances.xml
>
>   
>   
>   
>   
>   
>   
>   
>   
>
> And this is how I am overiding the body parameter.
>
> <%@ taglib uri="/WEB-INF/components.tld" prefix="comp" %>
>
> 
> 
> 
>
> And this is the layout page
>
> <%@ page language="java" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
> <%@ taglib uri="/WEB-INF/components.tld" prefix="comp" %>
>
> <%-- Layout component
>   parameters : title, header, menu, body, footer
> --%>
>
> 
> 
>  href="<%=request.getContextPath()%>/layout/stylesheet.css" type="text/css">
> 
> 
> 
>
>  vlink="#023264">
>
>  scope="application">
>   
> ERROR:  Application resources not loaded -- check servlet container
> logs for error messages.
>   
> 
>
>  VSPACE="0">
> 
>   
> 
> 
>   
> 
>   
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 
>   
> 
>   
> 
> 
> 
> 
>
> This is the nullpointer error log
>
>  session GXLiteSessionID-7637684474562691762
> [23/Apr/2001 18:25:49:4] info: --
> [23/Apr/2001 18:25:50:8] info: --
> [23/Apr/2001 18:25:51:0] info: jsp.APPS.ddts.mainPageContainer: init
> [23/Apr/2001 18:25:51:2] info: --
> java.lang.NullPointerException
> at
> s1.struts.taglib.component.PutAttributeTag.putValueInTagParent(PutAtt
> ributeTag.java:342)
> at
> s1.struts.taglib.component.PutAttributeTag.doEndTag(PutAttributeTag.j
> ava:327)
> at
> jsp.APPS.ddts.mainPageContainer._jspService(mainPageContainer.java:79
> )
> at
> jsp.APPS.ddts.mainPageContainer.service(mainPageContainer.java:35)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
>  Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.callJSP(Unkno
> wn Source)
> at
> com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
> callJspCompiler(Unknown Source)
> at
> com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
> callUri(Unknown Source)
> at
> com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.
> callUriRestrictOutput(Unknown Source)
> at
> com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.fo
> rward(Unknown Source)
> at
> s1.struts.component.ActionComponentServlet.processForward(ActionCompo
> nentServlet.java:217)
> at
> s1.struts.component.ActionComponentServlet.processActionForward(Actio
> nComponentServlet.java:93)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:156
> 4)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:772)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
>  Source)
> at
> com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unkno
> wn Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
> at com.kivasoft.thread.ThreadBasic.run(Native Method)
> at java.lang.Thread.run(Thread.java:479)
> java.lang.NullPointerException
> at
> s1.struts.taglib.component.PutAttributeTag.putValueInTagParent(PutAtt
> ributeTag.java:342)
> at
> s1.struts.taglib.component.PutAttributeTag.doEndTag(PutAttributeTag.j
> ava:327)
> at
> jsp.APPS.ddts.mainPageContainer._jspService(mainPageContainer.java:79
> )
> at
> jsp.APPS.ddts.mainPageContainer.service(mainPageContainer.java:35)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
> at
> com.netscape.server.servl

RE: Load Testing

2001-04-24 Thread Ulrich Winter

We used that, too.
Accessing the http server at a different port is no problem.

Uli

> -Original Message-
> From: Ted Husted [mailto:[EMAIL PROTECTED]]
> Sent: Montag, 23. April 2001 22:28
> To: [EMAIL PROTECTED]
> Subject: Re: Load Testing
> 
> 
> Were you able to get that running with an alternate port, like 8080 ?
> 
> "Deadman, Hal" wrote:
> > Microsoft has a free stress test tool too:
> > http://homer.rte.microsoft.com/
> 



Re: its very strange.

2001-04-24 Thread Jean-Noel Ribette

This is due to the javabean convention. If the method name begins with two uppercase 
letters, the property name is the
same as the method name.
For example getXXX() => property XXX.
getXxX() => xxX

There are more messages about this problem on the mail archives.

Jean-Noël

- Original Message -
From: alex <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 6:56 AM
Subject: its very strange.


> hello all.
>
> i found a problem, i am not sure whether its a bug in struts.
> but i really dont understand why this happened.
>
> i created one bean which extended from ActionForm named as ProfileForm.
> and one variable named as "fName"
>
> class final class ProfileForm extends ActionForm {
> private String fName;
>
> public void setFName(String fName) {
>this.fName = fName;
>  }
>
> public String getFName() {
>return this.fName;
>  }
> }
>
> i got the following error message when i try to access fName property in jsp
> .
> "javax.servlet.jsp.JspException: No getter method for property fName of bean
> org.apache.struts.taglib.html.BEAN"
>
>
> buf if i change the property name to selfName,  there are no such kind
> problem.
> i am confused.
>
> thank in advance.
>
> redbeebird
>
>
>