Checkboxes + reset + scope=session doesn't work...

2001-12-14 Thread Linnea Ahlbeck

Hi!!

I have a checkbox problem.

On my jspA page I have two checkboxes. From this jsp page I go to
saveaAction class A, this class sometimes forwards to a viewAction class
B(depending on a submit value), which forwards to jsp page B, which forwards
so saveAction class B which forwards to viewAction class A and the the first
jsp page(A) is shown again. In viewAction class A, saveAction classA and
saveActin classB I use the form bean A. Are you with me?!!

My problem is:

1) If scope is set to request in ViewActionA.do in my struts-confg.xml
file -  the checkbox values set on jsp page A are lost in the last forward
action (between saveAction class B and viewAction class A).

2) If scope is set to session in ViewActionA.do in my struts-confg.xml file
, the checkbox values are lost immediately in the first forward action.

I am aware of the known  checkbox problem and uses the reset method in my
form bean.
Is this problem familiar to someone?
Has anybody tried gridcheckboxes? Are they better to use?

Thanks in advance - Linnéa


- Original Message -
From: Shashi [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Friday, December 14, 2001 5:08 AM
Subject: Re: preselected checkboxes


 You can have one FormBean having the scope set to session (in
 struts-config.xml), used accross all the JSP pages. In the JSP pages use
the
 jsp:useBean tag to have the same FormBean in the session. In all the JSP
 send the action to a single action class. To distinguish between different
 pages in the Action Class have a session variable to identify the page
 number and set it in each page.

 Hope this helps.

 --Shashi.

 - Original Message -
 From: Crisalyn Ramos [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, December 14, 2001 8:09 AM
 Subject: preselected checkboxes


  Hi, all. I have several checkboxes in several JSP pages. In each page,
  there are different sets of checkboxes that needs to be in checked
  status during page loads.
 
  The option I have in mind is to make a separate ActionForm and Action
  class for each page but I thought that maintenance wise this is not
  appropriate because I need to revise several classes when some procedure
  changes.
 
  The Action that needs to be done is the same accross all JSP pages, just
  that these pages has different sets of accounts that needs to be in
  checked status during page load.
 
  Any design technique to handle this?
 
  thanks,
  Cris
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Files download

2001-12-14 Thread Daniel WAMARA 2

I know none but I made an application doing that, all you have to do is to set up the 
content type of the response. Here's the code I made for :

public ActionForward perform(ActionMapping mapping, ActionForm form, 
HttpServletRequest request, HttpServletResponse response) throws IOException, 
ServletException 
{
HttpSession session = request.getSession();

try 
{
some codes here 
String username = getUser(request);
some codes here 
String filetoget = request.getParameter(filetoget);
response.setContentType(text/html);
response.setHeader(Content-disposition, attachment; filename=+ filetoget);
BufferedOutputStream bos = new 
BufferedOutputStream(response.getOutputStream());
FileInputStream fis = new FileInputStream(new File(filetoget));
byte[] buffer = new byte[1024];
int bytes_read;
while((bytes_read = fis.read(buffer)) != -1)
bos.write(buffer, 0, bytes_read);
fis.close();
bos.close(); 

}
catch(Exception me)
{
some codes here
}

return mapping.findForward(success);
 }




Chaining actions etc...

2001-12-14 Thread Tuomo Syvänperä

Hi,
There's been loads of discussion about how to implement this action 
chaining..
Last night I cooked up yet another possible way to do it..
The chainToPage class implementation by Keith Bacon posted earlier 
seemed like a nice way to do it at first.. But what I'm looking for is
a more generic way to do this without the action classes actually even
realizing what's happening..
I have a semi-working implementation of the following:

- On the page to which we want to chain to another page we add the
   following tag on the jsp-page (or something similar).
   app:returnStamp to=/thisAction from=/theOtherAction /
- the returnStamp tag saves request parameters and attributes into
   an object (let's call it a stampObject) that is stored to the
   session along with the to and from information
- all action - classes are extended from some baseaction (as suggested
   by Ted Husted) and this baseaction checks the session to see if there
   is a stampObject in the session with a from field for this action.
- if there is one, a new ActionForward object is constructed from
   the to - field and this page forwards to it after the processing is
   done
- when we return to /thisAction we extract the attributes from
   the stampObject and store them as request attributes and remove
   the stampObject from the session.

Now to achieve the transparency we should define a few helper methods
to our baseaction - class.
- getParabute( HttpServletRequest request, String name )
   * perform calls this to acquire both request parameters and
 attributes because if we were forwarded from another action the
 needed parameters for this action are not stored in the request
 parameters but in the attributes. This method first tries to
 find the requested 'name' parameter from attributes and then from
 parameters

Possible quirks:
- If we never get back to the /thisAction - page we never remove the
   stampObject from the session. I'm not sure how much stuff we should
   store in the session.. This is actually one question that someone
   could answer: How much stuff should you save in the session and are
   there any reasons why _not_ to store long term data in the session ?
- If we have the following page structure:
   page A - page B - page C - (back to) page A
   Now from page C we return to page A by using the method described
   above. But what if we have a page D that the user can get to from
   page B and the user goes there and later from page D the user
   goes back to page B and from there should be forwarded back to page D.
   But in the session we have another forward for this page
   (the original one. Going back to page A) and we return there and
   _not_ to page D.
   * The only solution to this problem I have come up so far is to
 add the app:returnStamp - tag to _all_ pages that
 we can get to from page C

Hopefully my explanation was clear enough..
Now your task, should you choose to accept it, is to shoot down this idea :)

/tuomo


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




different versions of same library,and how to use the desired one.

2001-12-14 Thread Hudayioglu, Fehmi

Hello, 

My question is not directly (but indirectly) related with struts, but
hopefully someone experienced can answer this question.

I wrote a JSP that reaches an XML file, and retrieves the contents. The page
worked fine in TOMCAT4, but didn't work in websphere 4.0. After a few
investigation, I found that the versions of JAXP (the libraries and jar
files used for XML stuff) are different. TOMCAT has more recent one. Anyway,
I copied the JAXP jar files of TOMCAT to the web-inf/lib directory of my
application in the websphere. Then, it worked.
My questions are: 
*is there any possibility of conflict between these JAR files of JAXP used
by websphere and files resided in the my web application? because they are
different versions. And will my application be safe?
*Can it be applicable for all JAR files (except for application server
run-time Jars), if so the thing that websphere says (we support JAXP 1.1)
make a bit nonsense.
*If there is two version of same library in the application server (in the
bin directory of application server), which one is used? and are there any
conflict?
* do you know any websphere bla bla discussion group?
Thanks,
Fehmi.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




NEVERMIND: Passing url parameters using command structure url

2001-12-14 Thread Phase Communcations

I am an idiot. The solution is too embarassing to mention.

-Original Message-
From: Phase Communcations [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 10:52 PM
To: Struts Users Mailing List
Subject: Passing url parameters using command structure url


I am using commmand structure urls to hide my jsp views. I need to pass a
query string to an action from the view. How do I accomplish this? I have
tried http://www.mysite.com/do/next?page=2 but the url brings up an error. I
have read Ted Husted's catalog and am not sure I see or understand how this
is done. Anyways, I am sure someone knows the answer to this.

Thanks,
Brandon Goodin
Phase Web and Multimedia
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Struts-config forward. but are there any?

2001-12-14 Thread Hudayioglu, Fehmi

Hello,
I am a bit speed today. Another question of mine.
Are there any choices other than using 'forward' in struts-config.xml? I
remember, once someone said something like 'include'. I search for the
sources, but I couldn't reach anywhere.please let me know if there is a
source for this, or if you know this at all.
thanks.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Hi I'm totally new, yes a total idiot on STRUTS ;-)

2001-12-14 Thread Samuele Brignoli

Hi all,
I'm totally new on jakarta-struts. As you surely know I've got a mountain of
documentation on my desk and I can't figure out where to start. I've got
JBuilder 5 Enterprise and I' ve got an Oracle db. I' ve got a couple of
things to do in my existence. The first is to write an e-commerce
application suitable for all my customers and really easy to maintain and
customize. The second is to put up a sort of content-manager with role-based
authentication to permit to my customers to publish datas without HTML or
similar knowledge... I know, these are the things that all want !!! ;-) But
can you help me in some way to better and quickly understand this
interesting way of coding, and maybe some reusable code and configuration
written by some goog guy ? I need only a couple of directive to suitable
begin my trip in this adventure. Can you help me ?

bye, kako --


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Struts Dreamweaver extension

2001-12-14 Thread Anthony Chater

We are testing the Compuware Struts tag Dreamweaver extension in
MacromediaUltradev as this appears to be the most complete Struts visual
tooling around.  However we are not having 100% in achieving what we need.

Our situation is as follows :
We receive HTML files from a design bureau and convert them to JSP files
which we then load into a site in Ultradev. We then doctor the jsps with
the Struts tags.  What we want to do is roundtripping with the design bureau
:
By this we mean that when minor changes occur  we want to be able to zip up
the whole site and send it back to the design bureau. 
They should be able to work with the (now JSP and Struts tag-enabled) pages,
make their changes, zip up the site and send it back to us so that we can
continue working.(We would ensure that the design bureau had the
necessary tag library extensions to load into their Ultradev work
environments)

There are 2 questions which arise here :

1. Is our concept of roundtripping outlined above feasible? 

2. Most important :  assuming we set up our site with a live datasource
which the actions can call,  will our Struts-enables pages then be rendered
in Ultradev the way they actually appear or will we still get the flower
symbols in place of  Struts tags and the layout discrepancies which now
occur.

Anthony Chater

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Hi I'm totally new, yes a total idiot on STRUTS ;-)

2001-12-14 Thread Jon.Ridgway

Hi Samuele,

A good starting point might be the examples on Ted Husteds site; see
http://husted.com/struts/resources.htm#projects. The link to the Sonic
example on the Bluestone site might be of interest.

Jon.



-Original Message-
From: Samuele Brignoli [mailto:[EMAIL PROTECTED]] 
Sent: 14 December 2001 09:27
To: Struts Users Mailing List
Subject: Hi I'm totally new, yes a total idiot on STRUTS ;-)

Hi all,
I'm totally new on jakarta-struts. As you surely know I've got a mountain of
documentation on my desk and I can't figure out where to start. I've got
JBuilder 5 Enterprise and I' ve got an Oracle db. I' ve got a couple of
things to do in my existence. The first is to write an e-commerce
application suitable for all my customers and really easy to maintain and
customize. The second is to put up a sort of content-manager with role-based
authentication to permit to my customers to publish datas without HTML or
similar knowledge... I know, these are the things that all want !!! ;-) But
can you help me in some way to better and quickly understand this
interesting way of coding, and maybe some reusable code and configuration
written by some goog guy ? I need only a couple of directive to suitable
begin my trip in this adventure. Can you help me ?

bye, kako --


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Hi I'm totally new, yes a total idiot on STRUTS ;-)

2001-12-14 Thread Linnea Ahlbeck

Hi!

I have a link to good article to start with, gives a good overview. Examples
are included!

Check:
http://www7.software.ibm.com/vad.nsf/data/document2557?OpenDocumentp=1BCT=
1Footer=1


/Linnéa


- Original Message -
From: Samuele Brignoli [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 10:27 AM
Subject: Hi I'm totally new, yes a total idiot on STRUTS ;-)


 Hi all,
 I'm totally new on jakarta-struts. As you surely know I've got a mountain
of
 documentation on my desk and I can't figure out where to start. I've got
 JBuilder 5 Enterprise and I' ve got an Oracle db. I' ve got a couple of
 things to do in my existence. The first is to write an e-commerce
 application suitable for all my customers and really easy to maintain and
 customize. The second is to put up a sort of content-manager with
role-based
 authentication to permit to my customers to publish datas without HTML or
 similar knowledge... I know, these are the things that all want !!! ;-)
But
 can you help me in some way to better and quickly understand this
 interesting way of coding, and maybe some reusable code and configuration
 written by some goog guy ? I need only a couple of directive to suitable
 begin my trip in this adventure. Can you help me ?

 bye, kako --


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Struts-config forward. but are there any?

2001-12-14 Thread Jon.Ridgway

Hi,

It depends on what you want to do. If you wish to have a link to another
page/action then your best bet is to use an html:link to a global forward.

If you wish to include content within a page then you could use a
jsp:include but your best bet might be to use a templating mechanism such as
the Tiles tag lib or the Struts template tag lib.

Jon.

-Original Message-
From: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]] 
Sent: 14 December 2001 09:11
To: '[EMAIL PROTECTED]'
Subject: Struts-config forward. but are there any?

Hello,
I am a bit speed today. Another question of mine.
Are there any choices other than using 'forward' in struts-config.xml? I
remember, once someone said something like 'include'. I search for the
sources, but I couldn't reach anywhere.please let me know if there is a
source for this, or if you know this at all.
thanks.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: Struts-config forward. but are there any?

2001-12-14 Thread Hudayioglu, Fehmi

Thanks for reply,
But still I have some questions.
Is there really a difference from the functionality perspective between
struts template and jsp:include mechanism. I mean, after I added necessary
table tags, I reached the same output.
the question in my mind is, is it possible to include the result of an
action bean.
lots of thanks.
fehmi.

-Ursprüngliche Nachricht-
Von: Jon.Ridgway [mailto:[EMAIL PROTECTED]]
Gesendet am: Friday, December 14, 2001 10:58 AM
An: 'Struts Users Mailing List'
Betreff: RE: Struts-config forward. but are there any?

Hi,

It depends on what you want to do. If you wish to have a link to another
page/action then your best bet is to use an html:link to a global forward.

If you wish to include content within a page then you could use a
jsp:include but your best bet might be to use a templating mechanism such as
the Tiles tag lib or the Struts template tag lib.

Jon.

-Original Message-
From: Hudayioglu, Fehmi [mailto:[EMAIL PROTECTED]] 
Sent: 14 December 2001 09:11
To: '[EMAIL PROTECTED]'
Subject: Struts-config forward. but are there any?

Hello,
I am a bit speed today. Another question of mine.
Are there any choices other than using 'forward' in struts-config.xml? I
remember, once someone said something like 'include'. I search for the
sources, but I couldn't reach anywhere.please let me know if there is a
source for this, or if you know this at all.
thanks.


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to solve it???

2001-12-14 Thread Jon.Ridgway

Hi,

Not tried this but something like this should work

logic:iterate id=user name=users property=users
html:checkbox name=user property=userId/
/logic:iterate

Here the iterate 'name' attribute refers to the key value of an object in
request or session scope and the 'property' attribute refers to a getter (ie
users.getUsers) method on this object that returns a Collection of objects.
In this case a collection of user objects. Within the iterate block each of
these objects is referenced by the 'id'. The html:checkbox tag calls the
property of the object using this reference. In this case it calls
user.getUserId ().

Hope this helps.

Jon

-Original Message-
From: Deva Raju [mailto:[EMAIL PROTECTED]] 
Sent: 14 December 2001 04:31
To: [EMAIL PROTECTED]
Subject: How to solve it???


Hello,
This is a plain JSP - HTML code:
--
%
for(i=0; iobjUsers.size(); i++){
tmpuser=objUsers.getUser(i);
 %
trtd input type=checkbox name=user value=%= tmpuser.getUserId()%
%=tmpuser.getUserId()%td/tr
%
}
%


After running the above code and view the html source then i can see:

trtd input type=checkbox name=user value=chiru chirutd/tr
trtd input type=checkbox name=user value=deva devatd/tr
trtd input type=checkbox name=user value=ravi ravitd/tr
trtd input type=checkbox name=user value=selvam selvamtd/tr

---
Now I want to convert the above code to struts. For that how to design
my form class to map the values from HTML to Form class and action
class?
Because Its array of checkboxes. How to write set and get methods in the
form class.

Pls help me.
Regards,
Deva
MphasiS BFL Ltd.
139/1, Aditya Complex
Hosur Road, Koramangala
Bangalore - 560 095
India
Tel: (91)-80-552-2714
Extn. 2155
Architecting Value
SEI Level 5 ISO 9001 

If you are honest and frank, people may cheat you;Be honest and frank
anyway



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to submit a form

2001-12-14 Thread Arun_Kumar_N



Hello,
 I am using struts framework for my application.In my JSP page,
I am having a drop-down box,where on change of drop-down box I am calling a
JavaScript function.
In java script I am submitting the form.
script language=JavaScript
 document.formName.action=Example.jsp;
 document.formName.submit();
/script
But actually I am getting  an  error.
Please look inot the matter.Where I need to submit a form.


Regards
Arun



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




My implementation of Action chaining...

2001-12-14 Thread Tuomo Syvänperä

Hi..
I posted earlier my suggestion to the action chaining problem...
Well, here's a bare-bones implementation of what I was talking about.
Again, this may be totally f*cked up but it's your job to tell me
what I'm doing wrong :)
I've attached my (partial) implementation to this post..

/tuomo


Page A:
- has the following app:returnStamp tag
app:returnStamp to=pageA.do from=pageB.do /

- if there is access to page B from some other page C we should also add the
  tag to page C otherwise there is the possibility that we would return
  to page A accidentally
app:returnStamp to=pageC.do from=pageB.do /

// 

//
// ActionBase class. Handles all redirects required by ReturnStamp
//
class ActionBase extends Action {
  //
  // 
  //
  public final ActionForward perform( ActionMapping mapping, ActionForm form,
  HttpServletRequest request, HttpServletResponse response )
  throws IOException, ServletException {

// NOTE: we first have to call the doPerform - method so that after
//   we get the stamp from the session and store it in the request,
//   it doesn't mess up this actions request processing
ActionForward forward = doPerform( mapping, form, request, response );

// Check for possible return stamps
HttpSession session   = request.getSession();
ReturnStamps stamps   = (ReturnStamps)session.getAttribute( 
Constants.RETURN_STAMPS_KEY );
ActionForward stampForward = null;

if( stamps != null ) {
  ReturnStamp stamp = stamps.findStamp( request.getServletPath());
  if( stamp != null ) {
stampForward = new ActionForward( stamp.getTo());

// Remove this stamp from the session and store it in the request
stamps.removeStamp( stamp );
session.setAttribute( Constants.RETURN_STAMPS_KEY, stamps );
request.setAttribute( Constants.RETURN_STAMP_KEY, stamp );
  }
}
if( stampForward != null ) return stampForward;

return forward;
  }
}

// 

//
// ReturnStampTag implementation
//
import java.util.Enumeration;

import javax.servlet.ServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import common.Constants;
import common.ReturnStamp;
import common.ReturnStamps;

public final class ReturnStampTag extends TagSupport {
  protected String to   = null;
  protected String from = null;

  public String getTo() {
return to;
  }

  public void setTo( String to ) {
this.to = to;
  }

  public String getFrom() {
return from;
  }

  public void setFrom( String from ) {
this.from = from;
  }

  public int doStartTag() throws JspException {
return SKIP_BODY;
  }

  public int doEndTag() throws JspException {
HttpSession session = pageContext.getSession();

if( session == null ) {
  return EVAL_PAGE;
}

ServletRequest request = pageContext.getRequest();

ReturnStamps stamps = (ReturnStamps)session.getAttribute( 
Constants.RETURN_STAMPS_KEY );

if( stamps == null ) {
  stamps = new ReturnStamps();
}

ReturnStamp stamp  = new ReturnStamp( getTo(), getFrom());

for( Enumeration e = request.getParameterNames(); e.hasMoreElements(); ) {
  String name = (String)e.nextElement();
  if( name != null ) {
stamp.addAttribute( name, request.getParameter( name ));
  }
}

for( Enumeration e = request.getAttributeNames(); e.hasMoreElements(); ) {
  String name = (String)e.nextElement();
  if( name != null ) {
stamp.addAttribute( name, request.getAttribute( name ));
  }
}

stamps.removeStamp( stamp );
stamps.addStamp( stamp );

session.setAttribute( Constants.RETURN_STAMPS_KEY, stamps );

return EVAL_PAGE;
  }
}

// 

//
// ReturnStamps implementation
//
import java.util.HashMap;
import java.io.Serializable;

public class ReturnStamp implements Serializable {
  protected String  to = null;
  protected String  from   = null;
  protected HashMap attributes = new HashMap();

  public ReturnStamp() {
  }

  public ReturnStamp( String to, String from ) {
this.to   = to;
this.from = from;
  }

  public String getTo() {
return to;
  }

  public void setTo( String to ) {
this.to = to;
  }

  public String getFrom() {
return from;
  }

  public void setFrom( String from ) {
this.from = from;
  }

  public Object getAttribute( String name ) {
return attributes.get( name );
  }

  public void addAttribute( String name, Object obj ) {
attributes.put( name, obj );
  }
}

// 

//
// ReturnStamps implementation
//
import java.util.HashMap;
import java.io.Serializable;

public class ReturnStamps 

My implementation of Action chaining - Fixed

2001-12-14 Thread Tuomo Syvänperä

Sorry.. I forgot one method from the ActionBase - class..
Attached is the new version.

/tuomo


Page A:
- has the following app:returnStamp tag
app:returnStamp to=pageA.do from=pageB.do /

- if there is access to page B from some other page C we should also add the
  tag to page C otherwise there is the possibility that we would return
  to page A accidentally
app:returnStamp to=pageC.do from=pageB.do /

// 

//
// ActionBase class. Handles all redirects required by ReturnStamp
//
class ActionBase extends Action {
  //
  // ...
  //
  public final ActionForward perform( ActionMapping mapping, ActionForm form,
  HttpServletRequest request, HttpServletResponse response )
  throws IOException, ServletException {

// NOTE: we first have to call the doPerform - method so that after
//   we get the stamp from the session and store it in the request,
//   it doesn't mess up this actions request processing
ActionForward forward = doPerform( mapping, form, request, response );

// Check for possible return stamps
HttpSession session   = request.getSession();
ReturnStamps stamps   = (ReturnStamps)session.getAttribute( 
Constants.RETURN_STAMPS_KEY );
ActionForward stampForward = null;

if( stamps != null ) {
  ReturnStamp stamp = stamps.findStamp( request.getServletPath());
  if( stamp != null ) {
stampForward = new ActionForward( stamp.getTo());

// Remove this stamp from the session and store it in the request
stamps.removeStamp( stamp );
session.setAttribute( Constants.RETURN_STAMPS_KEY, stamps );
request.setAttribute( Constants.RETURN_STAMP_KEY, stamp );
  }
}
if( stampForward != null ) return stampForward;

return forward;
  }

  // All implementing classes should call this method to retrieve
  // parameters or attributes from the request
  public Object getParabute( String parabuteName, HttpServletRequest request ) {
Object obj = null;

ReturnStamp stamp = (ReturnStamp)request.getAttribute( Constants.RETURN_STAMP_KEY 
);

if( stamp != null ) {
  if( (obj = stamp.getAttribute( parabuteName )) != null ) {
stdOutLog( getParabute() called. , 2 );
stdOutLog(   parabute fround in return stamp., 2, false );
return obj;
  }
}

if( (obj = request.getAttribute( parabuteName )) == null ) {
  obj = request.getParameter( parabuteName );
  stdOutLog( getParabute() called. , 2 );
  stdOutLog(   parabute fround in request parameters., 2, false );
} else {
  stdOutLog( getParabute() called. , 2 );
  stdOutLog(   parabute fround in request attributes., 2, false );
}

return obj;
  }
}

// 

//
// ReturnStampTag implementation
//
import java.util.Enumeration;

import javax.servlet.ServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;

import common.Constants;
import common.ReturnStamp;
import common.ReturnStamps;

public final class ReturnStampTag extends TagSupport {
  protected String to   = null;
  protected String from = null;

  public String getTo() {
return to;
  }

  public void setTo( String to ) {
this.to = to;
  }

  public String getFrom() {
return from;
  }

  public void setFrom( String from ) {
this.from = from;
  }

  public int doStartTag() throws JspException {
return SKIP_BODY;
  }

  public int doEndTag() throws JspException {
HttpSession session = pageContext.getSession();

if( session == null ) {
  return EVAL_PAGE;
}

ServletRequest request = pageContext.getRequest();

ReturnStamps stamps = (ReturnStamps)session.getAttribute( 
Constants.RETURN_STAMPS_KEY );

if( stamps == null ) {
  stamps = new ReturnStamps();
}

ReturnStamp stamp  = new ReturnStamp( getTo(), getFrom());

for( Enumeration e = request.getParameterNames(); e.hasMoreElements(); ) {
  String name = (String)e.nextElement();
  if( name != null ) {
stamp.addAttribute( name, request.getParameter( name ));
  }
}

for( Enumeration e = request.getAttributeNames(); e.hasMoreElements(); ) {
  String name = (String)e.nextElement();
  if( name != null ) {
stamp.addAttribute( name, request.getAttribute( name ));
  }
}

stamps.removeStamp( stamp );
stamps.addStamp( stamp );

session.setAttribute( Constants.RETURN_STAMPS_KEY, stamps );

return EVAL_PAGE;
  }
}

// 

//
// ReturnStamps implementation
//
import java.util.HashMap;
import java.io.Serializable;

public class ReturnStamp implements Serializable {
  protected String  to = null;
  protected String  from   = null;
  protected HashMap attributes = new 

servlet question

2001-12-14 Thread William Shulman


Assume one is using a servlet container (like Tomcat or similar).
Is there a way to specify to the servlet container which class 
implementations to use for HttpServletRequest and Session ? 
I am guessing that there may exist factories for producing 
instances of these classes and I am wondering if there is a 
hook, standard or specific to vendor, that will allow me to 
specify my own implementations of these classes / interfaces.

thanks in advance
-will

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Need help, weblogic jspc have problem with tag spread over multiple include files.

2001-12-14 Thread Yao Zhu

Hi,

Can anyone help me with this problem?

I have a number of jsp files that varies at a fixed section of each page.
(The reason that I am not using switch statement is 64K limitation of java
method size.)  Naturally, I used include directive (header.jsp and
footer.jsp) to eliminate duplicated codes. html:form is in header.jsp and
/html:form is in footer.jsp.

Tomcat's jspc have no problem with this arrangement.  Weblogic 5.1 have
major problem with this arrangement.

It first generated this error:
java.lang.RuntimeException: Could not parse embedded JSP code:
weblogic.utils.Pa
rsingException: Could not complete parsing, unmatched tags: form
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1176)
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1150)
at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1143)
at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:943)
at
weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:3809)
at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:3597)
at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:1948)
at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:1789)
at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1679)
at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:972)
at weblogic.servlet.jsp.JspParser.doit(JspParser.java:69)
at weblogic.servlet.jsp.JspParser.parse(JspParser.java:125)
at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:109)

I rearranged some code to narrow down the problems. When I inserted
header.jsp into the main page and only kept footer.jsp, it generated this
error:
Fri Dec 14 03:14:39 EST 2001:E WebAppServletContext-vco Servlet failed
with Exception
weblogic.servlet.jsp.JspException: (line 106): no corresponding open tag for
tag extension close: /html:form

I guess that weblogic might starts parsing all jsp tags before it finished
expanding every included files in the main page first. Or, started
validating before finished parsing.

Does anyone know how weblogic implemented the priorites of parsing,
expanding, validating, etc,  in its jspc?

Are there some undocumented options that deal with this problem?

Thanks.

-Yao Zhu



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


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Hi I'm totally new, yes a total idiot on STRUTS ;-)

2001-12-14 Thread Pete Carapetyan

 I' ve got a couple of
 things to do in my existence. The first is to write an e-commerce
 application suitable for all my customers and really easy to maintain and
 customize. The second is to put up a sort of content-manager with role-based
 authentication to permit to my customers to publish datas without HTML or
 similar knowledge... I know, these are the things that all want !!! ;-) But
 can you help me in some way to better and quickly understand this
 interesting way of coding, and maybe some reusable code and configuration
 written by some goog guy ? I need only a couple of directive to suitable
 begin my trip in this adventure. Can you help me ?

Kako, you have enough work on this list for at least a weekend or two.

If you get lazy, and just want to start with a java code base that is already
written for custom database access and logins and registrations  and security and
testing and logging and so on, try Expresso. Here, you can concentrate on the
business logic and navigation, instead of the plumbing, as some of us crazier
folks are doing. This is, of course, a Struts implementation.

Or, if you get really REALLY lazy and crazy, and want your base Expresso code
written for you, go to
http://webAppWriter.com
put in your table schemas using an Excel spreadsheet, and it will send you back
fully functional data access struts jsps and controllers that you can then modify
and stitch together per your own brilliant business logic and navigation.

So far, the speed record for a complete write and deployment of a functional web
app with custom table schemas is 9 and a half minutes, but your time will surely
vary. 30 plus samples on the site.

Obviously, this will cause as many problems as it solves, because you will still
have to learn how everything works. At least, this way, you can learn from a
working model that reads and writes to your database, rather than having to
invent it all first.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Help with Scriptlet within jsp - Oops i know.

2001-12-14 Thread Chuck Amadi

Hi all, I know that this goes against the idea of Struts , but 
nevertheless please help if possible.

I have created a web service for a particuler department. that calls 
from a Postgresql Database details pertaining to Planning Applications 
 as follows 

Planningdb.jsp  retrivieve data form database for viewing and a 
comments tab .
Submit.jsp  from the comments tab the Public enters there details and 
comment on the App Form .
UserInfoValid  from the Submit.jsp this page verifies the fields are 
completed and forwards to ProcessForm.jsp if valid and pass it back to 
the Database and if incorrect back to Submit.jsp for re-submission.

Thus i have created a bean named PlanBean  with the required getters and 
setters plus a StatusMsg  Method.

private String  firstName,etc etc etc

private String statusMsg ;

public String getStatusMsg () {
return statusMsg;
}

public void setStatusMsg (String statusMsg) {
this.statusMsg = statusMsg;
}
   
public boolean isValid() {
boolean valid =true;
statusMsg=;
  
if  (true ) {
statusMsg += (Hi there must be working!!);
valid = false;
}
if (lastName.equals()) {
statusMsg += (Last Name is Blank);
valid = false;
}
if (address.equals()) {
statusMsg += (Address is Blank);
valid = false;
}
if (postCode.equals()) {
statusMsg += (Post Code is Blank);
valid = false;
}
if (email.equals()) {
statusMsg += (Email is Blank);
valid = false;
}
if (observation.equals()) {
statusMsg += (Observations is Blank);
valid = false;
}
  return valid ;
   }

Thus in my UserInfoValid.jsp i have the below scriplet nevertheless i a 
unable to to get the validation to prompt a StatusMsg as required .


jsp:useBean id=planBean scope=session class=PlanBean /
%-- Output list of value with invalid format , if any!! --%
font color=red
jsp:setProperty name=planBean property=*/
/font

%! boolean valid = true ;  %

%  if ((planBean.getFirstName()).equals()) { valid = false ;
planBean.setStatusMsg(planBean.getStatusMsg() + Please enter 
your First Name ); } %

%  if ((planBean.getLastName()).equals()) { valid = false;
planBean.setStatusMsg(planBean.getStatusMsg() + Please enter 
your Last Name );  } %

%  if ((planBean.getAddress()).equals()){valid = false;
planBean.setStatusMsg(planBean.getStatusMsg() +Please enter 
your Address ); }  %

%  if ((planBean.getEmail()).equals()){ valid = false;
planBean.setStatusMsg(planBean.getStatusMsg() +Please enter 
your Email Address ); } %

%  if ((planBean.getObservation()).equals()){ valid = false;
planBean.setStatusMsg(planBean.getStatusMsg() +Please enter 
your Comments ); } %

%  if (valid) { %
  
jsp:forward page=ProcessForm.jsp /
   
%  } else { %
jsp:forward page=Submit.jsp /
% } %
 Everthing pass thru but if  purposly leave out a field no action is 
taken by the PlanBean.

 Please help as this is stalling me.
Cheers Chuck Amadi
IT Systems Programmer




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




possible to keep old and new values inside of a form bean

2001-12-14 Thread Hudayioglu, Fehmi

Hi folks,

I am sending two values to form bean and then user have the privilege to
change these two values. To restore the database I must also store the old
values that I have conveyed to screen from the formbean but as the user
alters the data my old values are vanished. What will be the effective
solution to store the old values in the form bean while also retrieving the
new values for comparing and sending the changed ones to the servlet.

Cheers,
Fehmi.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: possible to keep old and new values inside of a form bean

2001-12-14 Thread Keith Bacon

Hi Fehmi.
I think you should do things like this in your Action
class rather than the Form bean - which should
strictly be used for data that goes from forms to
Action class  vice versa.
This is part of your business logic (or maybe of DB
integrity checking) - so if your system is large(ish)
you'll want to have that logic in classes called from
your Action class.
Keith.



--- Hudayioglu, Fehmi
[EMAIL PROTECTED] wrote:
 Hi folks,
 
 I am sending two values to form bean and then user
 have the privilege to
 change these two values. To restore the database I
 must also store the old
 values that I have conveyed to screen from the
 formbean but as the user
 alters the data my old values are vanished. What
 will be the effective
 solution to store the old values in the form bean
 while also retrieving the
 new values for comparing and sending the changed
 ones to the servlet.
 
 Cheers,
 Fehmi.
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




AW: possible to keep old and new values inside of a form bean

2001-12-14 Thread Hudayioglu, Fehmi

Again hi guys,

lets say that I want to compare these values in the action bean. Is it
possible to use the form bean that stores our old data, and the form that is
populated by the new data for comparison? I hope i am not confusing.

thanks again.

-Ursprüngliche Nachricht-
Von: Keith Bacon [mailto:[EMAIL PROTECTED]]
Gesendet am: Friday, December 14, 2001 3:00 PM
An: Struts Users Mailing List
Betreff: Re: possible to keep old and new values inside of a form bean

Hi Fehmi.
I think you should do things like this in your Action
class rather than the Form bean - which should
strictly be used for data that goes from forms to
Action class  vice versa.
This is part of your business logic (or maybe of DB
integrity checking) - so if your system is large(ish)
you'll want to have that logic in classes called from
your Action class.
Keith.



--- Hudayioglu, Fehmi
[EMAIL PROTECTED] wrote:
 Hi folks,
 
 I am sending two values to form bean and then user
 have the privilege to
 change these two values. To restore the database I
 must also store the old
 values that I have conveyed to screen from the
 formbean but as the user
 alters the data my old values are vanished. What
 will be the effective
 solution to store the old values in the form bean
 while also retrieving the
 new values for comparing and sending the changed
 ones to the servlet.
 
 Cheers,
 Fehmi.
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How can I force jsession to be part of url and not a cookie?

2001-12-14 Thread Uladzimir Kavalchuk

Tomcat 3.2.3, server.xml excerpt:

!-- ...  If you wish to suppress the use of cookies for session
identifiers, change thenoCookies attribute to true  --
RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor
noCookies=false /

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 13 äåêàáðÿ 2001 ã. 9:41
To: Struts Users Mailing List
Subject: How can I force jsession to be part of url and not a cookie?


Hi

How can I force the jsession variable to written in the url instead  of 
a cookie? Is there a global setting I can use somewhere?

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Problem with Struts in IBM VisualAge 3.5.2

2001-12-14 Thread Marco Spadoni

Thank you Frank,
I understood what happened
After creating a new edition for the project IBM XML Parser for Java,
I removed org.* packages from this new one, but then I erroneously imported
them from Xerces again in IBM XML Parser for Java itself!
So, to let Tomcat be successfully started, I needed simply to add IBM XML
Parser for Java
project to the Tomcatrunner class path / project path.
Regards,
Marco


- Original Message -
From: Frank Lawlor [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, December 13, 2001 6:37 PM
Subject: RE: Problem with Struts in IBM VisualAge 3.5.2


 - Did you remove IBM's XML parser and install
the correct Xerces version?

  - Did you add your application project to the
Class Path | Project Path of the TomcatRunner
class?

  - Check to make sure you have
...\VisualAge for

Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\employeeli
 st\WEB-INF\struts-config.xml

  - Make sure the struts-config.xml format is correct (start
with a known good one just to check)

  - You don't have any security enabled
(IBM\VisualAge for Java\ide\program\lib\security\java.policy)
do you?  Make sure a simple app can open a file.

 Frank Lawlor
 Athens Group, Inc.
 (512) 345-0600 x151
 Athens Group, an employee-owned consulting firm integrating technology
 strategy and software solutions.



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: forward to jsp or to do ?

2001-12-14 Thread Mâris Orbidâns


Keith,

I will need global forwards to jsp pages anyway.
I have to forward to a JSP page in perform() method of my action class.
Otherwise nothing
will be returned/displayed to client.


forward   name=edit   path=/EditEntry.do/
forward   name=editShow   path=/entry.jsp/


In perform method of EditEntry action class I need to do this.

return (mapping.findForward(editShow));


Maris



-Original Message-
From: Keith Bacon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 5:08 PM
To: Struts Users Mailing List
Subject: Re: forward to jsp or to do ?


It's best to forward to an action (to a do). In fact I
suspect it's the normally accepted way to do it.
Instead of your jsp being run directly, the struts
action servlet will create the form bean defined for
the action  call your action classes perform method
first.
You can set properties of the form so those values
will be displayed.
You can add beans to the request so the jsp can use
them.
Your jsp gets data from the from bean  from the
request not directly from databases etc. Slightly
indirect but means all links between your jsp 
business logic are via action classes - valuable
de-coupling in large systems.

Probably other advantages too. Search the archives Ted
Husted has discussed this many times before!
Keith,

--- Maris Orbidans [EMAIL PROTECTED] wrote:
 
 What' s the difference between a forward to jsp or
 to do ?
 
 In case of forward to jsp  just servlet compiled
 from the jsp file will
 be called. Am I right ?
 
 What will happen if I forward to *.do ?
 
 regards,
 Maris
 
 
 global-forwards
 forward   name=logon  path=/logon.jsp/
 forward   name=logoff path=/logoff.do/
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to pass-through a form bean

2001-12-14 Thread T. Wheeler

I am working on a CRUD application.  When a user prepares to update a
record, I have to confirm his choice before making the update.  Therefore,
to add a new record, the states are like this:

1.  Show a blank form to get the user input
2.  Validate the form and ask Are you sure you want to add this record?
3.  Update the record in the database

The user can back up from step 2 to step 1 and correct a mistake if he sees
one.  This is done by checking for a back parameter in the ActionClass for
step 3 and forwarding to the back mapping if it exists.

I can quite naturally get the input that I need in step 1, since this uses
an HTML form.  However, the page for step 2 doesn't have a form at all (i.e.
it's just a regular page with no html:form).  Therefore, when I reach step
3, the form bean's properties are null, even though they were populated at
step 2. 

Of course, I could work around by putting a form on the page for step 2 and
using hidden fields for every property, but this seems inelegant.  I would
like to keep the form bean as an object at this point.  It's a pain to
unroll it into a bunch of strings that can be used to poulate the hidden
field -- only to have to convert them back to native types (like
java.util.Date) again so they can be passed to the database classes.

It seems to me that there are two ways to solve this:

1.  Use session scope, since the bean will be maintained until the final
step when it is cleared from the session.  Using session scope is bad for
scalability and failover, but it does solve my problem.

2.  Find some way to pass (in request scope) the form bean from step 1,
through to step 2, then to step 3.

Is there any easy or reliable way to do this?

Another (sort of related) question:

After the record is updated in step 3, I want to show a status message on
the main page.  I am using ActionMessages to do this.  I am adding the
status message in request scope and just doing a forward to the main page --
and it's working.  However, if I change the struts-config.xml to set
redirect=true instead of just forwarding (so the user can refresh the page
without submitting the form again) then the ActionMessage gets lost.  Does a
redirect transcend request scope?  Any way to work around this?

Thanks!

Tom

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Resin Struts Config Help

2001-12-14 Thread Matt Koidin



I am anew Struts user running Apache and 
Resin 2.0.4 as my servlet container. I have successfully tested the Apache and 
Resin configurations. (I am also running WebLogic 6.1as my application 
server).

If I drop the struts sample .war files into the 
resin/webapps directory they work fine. I am now trying to get Struts working in 
my own environment and am running into an error.

My directory structure looks like 
this:

Root Folder
 classes
  -- compiled 
classes
 lib
  -- 
struts.jar, xerces.jar, jdbc2_0-stdext.jar
 web
  -- 
jsp
  
 -- jsp files
  -- 
templates/taglib
  
 -- struts .tld files
  -- 
WEB-INF
  
 -- struts-config.xml, web.xml

Attached is my struts-config.xml and 
web.xmlfiles.

Finallyhere is the error I am 
seeing:

[2001/12/14 09:45:47] 
org.apache.struts.action.ActionServlet: init[2001/12/14 09:45:47] 
org.apache.struts.action.ActionServlet: Initializing configuration from resource 
path /WEB-INF/struts-config.xml[2001/12/14 09:45:48] Parsing error 
processing resource path /WEB-INF/struts-config.xmlorg.xml.sax.SAXException: 
Stopping after fatal error: The markup in the document following the root 
element must be well-formed.at 
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)at 
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:640)at 
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:694)at 
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispatch(XMLDocumentScanner.java:1520)at 
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)at 
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)at 
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)at 
weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)at 
weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)at 
javax.xml.parsers.SAXParser.parse(SAXParser.java:276)at 
javax.xml.parsers.SAXParser.parse(SAXParser.java:174)at 
org.apache.struts.digester.Digester.parse(Digester.java:755)at 
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)at 
javax.servlet.GenericServlet.init(GenericServlet.java:82)at 
com.caucho.server.http.Application.createServlet(Application.java:2755)at 
com.caucho.server.http.Application.loadServlet(Application.java:2711)at 
com.caucho.server.http.Application.initServlets(Application.java:1763)at 
com.caucho.server.http.Application.init(Application.java:1698)at 
com.caucho.server.http.VirtualHost.init(VirtualHost.java:645)at 
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:641)at 
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:515)at 
com.caucho.server.http.ServletServer.init(ServletServer.java:366)at 
com.caucho.server.http.ResinServer.init(ResinServer.java:407)at 
com.caucho.server.http.ResinServer.main(ResinServer.java:959)at 
com.caucho.server.http.HttpServer.main(HttpServer.java:92)[2001/12/14 
09:45:48] can't load servlet `oreilly'org.xml.sax.SAXException: Stopping 
after fatal error: The markup in the document following the root element must be 
well-formed.at 
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)at 
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:640)at 
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:694)at 
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.dispatch(XMLDocumentScanner.java:1520)at 
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)at 
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)at 
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)at 
weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)at 
weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)at 
javax.xml.parsers.SAXParser.parse(SAXParser.java:276)at 
javax.xml.parsers.SAXParser.parse(SAXParser.java:174)at 
org.apache.struts.digester.Digester.parse(Digester.java:755)at 
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)at 
javax.servlet.GenericServlet.init(GenericServlet.java:82)at 
com.caucho.server.http.Application.createServlet(Application.java:2755)at 
com.caucho.server.http.Application.loadServlet(Application.java:2711)at 
com.caucho.server.http.Application.initServlets(Application.java:1763)at 
com.caucho.server.http.Application.init(Application.java:1698)at 
com.caucho.server.http.VirtualHost.init(VirtualHost.java:645)at 
com.caucho.server.http.ServletServer.initHosts(ServletServer.java:641)at 
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:515)at 

AW: Resin Struts Config Help

2001-12-14 Thread Hudayioglu, Fehmi

hi,
I realized that you have putted your struts-config tag in the xml file to
the wrong place. it should nest all the other items. test your XML by
opening it in the internet explorer.
fehmi.

-Ursprüngliche Nachricht-
Von: Matt Koidin [mailto:[EMAIL PROTECTED]]
Gesendet am: Friday, December 14, 2001 3:54 PM
An: [EMAIL PROTECTED]
Betreff: Resin  Struts Config Help

I am a new Struts user running Apache and Resin 2.0.4 as my servlet
container. I have successfully tested the Apache and Resin configurations.
(I am also running WebLogic 6.1 as my application server).
 
If I drop the struts sample .war files into the resin/webapps directory they
work fine. I am now trying to get Struts working in my own environment and
am running into an error.
 
My directory structure looks like this:
 
Root Folder
classes
-- compiled classes
lib
-- struts.jar, xerces.jar, jdbc2_0-stdext.jar
web
-- jsp
-- jsp files
-- templates/taglib
-- struts .tld files
-- WEB-INF
-- struts-config.xml, web.xml
 
Attached is my struts-config.xml and web.xml files.
 
Finally here is the error I am seeing:
 
[2001/12/14 09:45:47] org.apache.struts.action.ActionServlet: init
[2001/12/14 09:45:47] org.apache.struts.action.ActionServlet: Initializing
configuration from resource path /WEB-INF/struts-config.xml
[2001/12/14 09:45:48] Parsing error processing resource path
/WEB-INF/struts-config.xml
org.xml.sax.SAXException: Stopping after fatal error: The markup in the
document following the root element must be well-formed.
 at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLD
ocumentScanner.java:640)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentS
canner.java:694)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.d
ispatch(XMLDocumentScanner.java:1520)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
 at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
 at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:174)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:82)
 at com.caucho.server.http.Application.createServlet(Application.java:2755)
 at com.caucho.server.http.Application.loadServlet(Application.java:2711)
 at com.caucho.server.http.Application.initServlets(Application.java:1763)
 at com.caucho.server.http.Application.init(Application.java:1698)
 at com.caucho.server.http.VirtualHost.init(VirtualHost.java:645)
 at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:641)
 at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:515)
 at com.caucho.server.http.ServletServer.init(ServletServer.java:366)
 at com.caucho.server.http.ResinServer.init(ResinServer.java:407)
 at com.caucho.server.http.ResinServer.main(ResinServer.java:959)
 at com.caucho.server.http.HttpServer.main(HttpServer.java:92)
[2001/12/14 09:45:48] can't load servlet `oreilly'
org.xml.sax.SAXException: Stopping after fatal error: The markup in the
document following the root element must be well-formed.
 at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLD
ocumentScanner.java:640)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentS
canner.java:694)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.d
ispatch(XMLDocumentScanner.java:1520)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
 at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
 at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:174)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:82)
 at com.caucho.server.http.Application.createServlet(Application.java:2755)
 at 

Re: struts/expresso mentor

2001-12-14 Thread John McClain

Howdy,
I would like to know if you have any mentoring services for struts/expresso
and what your fees are?
What I am looking for is to be able to call a person up, ask a specific
question, and have that person either answer the question, point me in the
right direction or give me sample code.
How can I contact you???
John McClain
7604 Muschetto Ct.
Citrus Heights, CA. 95621
[EMAIL PROTECTED]
(916)728-5223
- Original Message -
From: Lachlan Holmes [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, December 12, 2001 10:59 PM
Subject: Re: struts/expresso mentor


 Let me know if you don't get any other offers. I haven't used expresso but
 I'd be happy to help. I'll be in the States from Thurs and CA from Jan 7
if
 it makes a difference.

 Lachlan

 - Original Message -
 From: John McClain [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, December 13, 2001 5:31 PM
 Subject: struts/expresso mentor


 I am fairly new to jsp/struts/expresso development and have been given a
 task that seems more than I can chew. This newsgroup is wonderful, but I
was
 wondering if there are any expresso/struts gurus out there who would
 consider a mentoring relationship with me as I attempt to build this
 project. The fee for the service could be worked out.
 Any takers???


 John McClain
 [EMAIL PROTECTED]

 John McClain
 7604 Muschetto Ct.
 Citrus Heights, CA. 95621
 [EMAIL PROTECTED]
 (916)728-5223



 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




NEVERMIND: Resin Struts Config Help

2001-12-14 Thread Matt Koidin

Yep -- I just realized that mistake myself... Please ignore... Thanks for
taking a look.

- Original Message -
From: Hudayioglu, Fehmi [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 10:25 AM
Subject: AW: Resin  Struts Config Help


hi,
I realized that you have putted your struts-config tag in the xml file to
the wrong place. it should nest all the other items. test your XML by
opening it in the internet explorer.
fehmi.

-Ursprüngliche Nachricht-
Von: Matt Koidin [mailto:[EMAIL PROTECTED]]
Gesendet am: Friday, December 14, 2001 3:54 PM
An: [EMAIL PROTECTED]
Betreff: Resin  Struts Config Help

I am a new Struts user running Apache and Resin 2.0.4 as my servlet
container. I have successfully tested the Apache and Resin configurations.
(I am also running WebLogic 6.1 as my application server).

If I drop the struts sample .war files into the resin/webapps directory they
work fine. I am now trying to get Struts working in my own environment and
am running into an error.

My directory structure looks like this:

Root Folder
classes
-- compiled classes
lib
-- struts.jar, xerces.jar, jdbc2_0-stdext.jar
web
-- jsp
-- jsp files
-- templates/taglib
-- struts .tld files
-- WEB-INF
-- struts-config.xml, web.xml

Attached is my struts-config.xml and web.xml files.

Finally here is the error I am seeing:

[2001/12/14 09:45:47] org.apache.struts.action.ActionServlet: init
[2001/12/14 09:45:47] org.apache.struts.action.ActionServlet: Initializing
configuration from resource path /WEB-INF/struts-config.xml
[2001/12/14 09:45:48] Parsing error processing resource path
/WEB-INF/struts-config.xml
org.xml.sax.SAXException: Stopping after fatal error: The markup in the
document following the root element must be well-formed.
 at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLD
ocumentScanner.java:640)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentS
canner.java:694)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.d
ispatch(XMLDocumentScanner.java:1520)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
 at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
 at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:174)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:82)
 at com.caucho.server.http.Application.createServlet(Application.java:2755)
 at com.caucho.server.http.Application.loadServlet(Application.java:2711)
 at com.caucho.server.http.Application.initServlets(Application.java:1763)
 at com.caucho.server.http.Application.init(Application.java:1698)
 at com.caucho.server.http.VirtualHost.init(VirtualHost.java:645)
 at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:641)
 at
com.caucho.server.http.ServletServer.initInternal(ServletServer.java:515)
 at com.caucho.server.http.ServletServer.init(ServletServer.java:366)
 at com.caucho.server.http.ResinServer.init(ResinServer.java:407)
 at com.caucho.server.http.ResinServer.main(ResinServer.java:959)
 at com.caucho.server.http.HttpServer.main(HttpServer.java:92)
[2001/12/14 09:45:48] can't load servlet `oreilly'
org.xml.sax.SAXException: Stopping after fatal error: The markup in the
document following the root element must be well-formed.
 at
weblogic.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1114)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLD
ocumentScanner.java:640)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentS
canner.java:694)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner$TrailingMiscDispatcher.d
ispatch(XMLDocumentScanner.java:1520)
 at
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentSca
nner.java:381)
 at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at weblogic.xml.jaxp.WebLogicParser.parse(WebLogicParser.java:67)
 at weblogic.xml.jaxp.RegistryParser.parse(RegistryParser.java:130)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:276)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:174)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at

which IDE

2001-12-14 Thread Samuele Brignoli

Which is the best IDE to develop struts framework ? I 've got JBuilder
Enterprise, is that suited for struts?

--kako



Re: which IDE

2001-12-14 Thread James Holmes

JBuilder is great and so are NetBeans/Forte
(www.netbeans.org).  There is also a Struts Console
plugin for both :)

http://www.jamesholmes.com/struts/

-james
[EMAIL PROTECTED]


--- Samuele Brignoli [EMAIL PROTECTED]
wrote:
 Which is the best IDE to develop struts framework ?
 I 've got JBuilder
 Enterprise, is that suited for struts?
 
 --kako
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Any experience with struts and clustered servers?

2001-12-14 Thread Jeff_Mychasiw



Greetings,
 I have been evaluating struts and am preparing to present a case to use
struts  to our team.
 I will be asked about any issues regarding failover and clustering  and so on.
I feel that this is a non issue but
here is the reason that I ask.

I know not to overload the session but
I was told that it is unwise to store any java collection objects (such as
hashtable) in the session because if that session is replicated on
another server, any anychanges will not (or may not) be reflected in the
replicated session.

It there any truth to this?

Therefore: If this is true, could this affect struts?

I think this info was with repect to Weblogic.

Thanks everyone.



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Weblogic problem...

2001-12-14 Thread Anna Chen

Hi, all

Could you tell me why I get this kind of error? I am using weblogic 6.1 on 
UNIX and I do have struts.jar in my WEB-INF/lib

[WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error 
creating Action instance for path '/login', class name 
'com.brandsdirect.common.login.LoginAction'
java.lang.NoClassDefFoundError: org/apache/struts/action/Action
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at 
org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.java:1564)
 at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1510)
 at 
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
 at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
 at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2390)
 at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 

Thanks!!

Anna





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Using BeanUtils.populate()

2001-12-14 Thread neil

Hi, I looked at Ted Husted's example (Ted's catalogue) for using
BeanUtils.populate() to populate beans from a database query, and put them
into an ArrayList.
I am working on some code which queries an LDAP Directory and requires the
same kind of functionality. I reworked Ted's example to fit my needs, but
the beans never seem to get populated, so I end up with a ArrayList of empty
beans! I am using the package org.apache.commons.beanutils to do this and I
have tried version 1.0 and 1.1.
The relevant part of the code is shown below. I may have missed something
obvious, but I cannot see it! I have already verified that I am getting data
from the LDAP query, and I am believe the problem lies in popuating the
bean.

Thanks in advance

Neil

*


 // start looping over the LDAP entries...
  while ( searchResults.hasMoreElements())
  {
LDAPEntry nextEntry = null;
try
{
  nextEntry = searchResults.next();
}
catch(LDAPException e)
{
  System.out.println(Error:  + e.toString());

  // Exception is thrown, go for next entry
  continue;
}

// create a HashMap to hold att/val pairs...
HashMap properties = new HashMap();

LDAPAttributeSet attributeSet = nextEntry.getAttributeSet();
Enumeration allAttributes = attributeSet.getAttributes();

// loop over each attribute..
while(allAttributes.hasMoreElements())
{
  LDAPAttribute attrib = (LDAPAttribute)allAttributes.nextElement();

  // get the current attribute name...
  String attributeName = attrib.getName();

  // get the value(s) for this attribute...
  String[] Values = attrib.getStringValueArray();


  // if we have at least 1 value for this attribute...
  if( allValues.length != 0)
  {
properties.put(attributeName, Values);
  }
}

// now populate bean for this entry...
try
{
  //instantiate new bean to hold results...
  UserResult userresult = new UserResult();

  BeanUtils.populate(userresult,properties);
  list.add(userresult);

}
catch (Exception e)
{
  throw new IllegalAccessException(RequestUtils.getCollection:  +
e.toString());
}
  }

***rest of code follows...



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Weblogic problem...

2001-12-14 Thread Reddin, Greg

Looks like a Classloader problem.  Is the LoginAction class included in
the system classpath when Weblogic is started?  Make sure your
application classes and Struts classes only exist in WEB-INF/lib or
WEB-INF/classes.

Greg

 -Original Message-
 From: Anna Chen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 10:02 AM
 To: [EMAIL PROTECTED]
 Subject: Weblogic problem...
 
 
 Hi, all
 
 Could you tell me why I get this kind of error? I am using 
 weblogic 6.1 on 
 UNIX and I do have struts.jar in my WEB-INF/lib
 
 [WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error 
 creating Action instance for path '/login', class name 
 'com.brandsdirect.common.login.LoginAction'
 java.lang.NoClassDefFoundError: org/apache/struts/action/Action
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
  at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
 java:111)
  at 
 java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at 
 org.apache.struts.action.ActionServlet.processActionCreate(Act
ionServlet.java:1564)
  at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.j
 ava:1510)
  at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
tStubImpl.java:263)
  at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
tStubImpl.java:200)
  at 
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
ebAppServletContext.java:2390)
  at 
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
questImpl.java:1959)
  at 
 weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
  
 
 Thanks!!
 
 Anna
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Weblogic problem...

2001-12-14 Thread BONNET Francois-Xavier

is your class public ?

- Original Message -
From: Anna Chen [EMAIL PROTECTED]
Date: Friday, December 14, 2001 4:01 pm
Subject: Weblogic problem...

 Hi, all
 
 Could you tell me why I get this kind of error? I am using weblogic 6.1 on 
 UNIX and I do have struts.jar in my WEB-INF/lib
 
 [WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error 
 creating Action instance for path '/login', class name 
 'com.brandsdirect.common.login.LoginAction'
 java.lang.NoClassDefFoundError: org/apache/struts/action/Action
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at 
 org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.java:1564)
 at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1510)
 at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:263)
 at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
 at 
 weblogic.servlet.internal.WebAppServletContext.invokeServlet
(WebAppServletContext.java:2390)
 at 
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1959)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
 
 Thanks!!
 
 Anna
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Weblogic problem...

2001-12-14 Thread Sobkowski, Andrej

The _Struts library_ (struts.jar) must be in your Weblogic classpath (and
it's not in your case, as it doesn't find org.apache.struts.action.Action.

Three solutions:
- add struts.jar to your system CLASSPATH
- add struts.jar to your Weblogic classpath by modifying the startup script
(something like startWebLogic.cmd)
- package your application in a .ear file and add struts.jar to the
distribution. You'll have to use the MANIFEST.MF Class-Path but this is by
far the best approach to the problem as struts.jar is kept with your
application (that can then be deployed on any other J2EE container).

HTH

Andrej

 -Original Message-
 From: Anna Chen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 11:02 AM
 To: [EMAIL PROTECTED]
 Subject: Weblogic problem...
 
 
 Hi, all
 
 Could you tell me why I get this kind of error? I am using 
 weblogic 6.1 on 
 UNIX and I do have struts.jar in my WEB-INF/lib
 
 [WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error 
 creating Action instance for path '/login', class name 
 'com.brandsdirect.common.login.LoginAction'
 java.lang.NoClassDefFoundError: org/apache/struts/action/Action
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
  at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
 java:111)
  at 
 java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at 
 org.apache.struts.action.ActionServlet.processActionCreate(Act
 ionServlet.java:1564)
  at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.j
 ava:1510)
  at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
 tStubImpl.java:263)
  at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
 tStubImpl.java:200)
  at 
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
 ebAppServletContext.java:2390)
  at 
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
 questImpl.java:1959)
  at 
 weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
  
 
 Thanks!!
 
 Anna
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



RE: Hi I'm totally new, yes a total idiot on STRUTS ;-)

2001-12-14 Thread Sandra Cann

Samuele,

snip
 The second is to put up a sort of content-manager with role-based
 authentication to permit to my customers to publish datas without HTML or
 similar knowledge... and maybe some reusable code and configuration
 written by some goog guy ?

How about a jump start and be a hero? There is a content-manager that can do
this called eContent built on Expresso/Struts with full Java source code
available from www.jcorporate.com at an affordable price.

Cheers
Sandra Cann
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Weblogic problem...

2001-12-14 Thread Sobkowski, Andrej

Small addition to my previous message (sorry, I responded without reading
with too much attention):
- if yours is a *.war archive only, then adding struts.jar to your
WEB-INF/lib directory should work. My previous suggestions are still valid
but may not solve the problem.
- if yours is a *.ear, then adding JARs to the WEB-INF/lib will not work in
Weblogic as the main ClassLoader is the one used for the EJBs (that have no
visibility on your WEB-INF/lib). You should then use the MANIFEST.MF
Class-Path thing.

Andrej

 -Original Message-
 From: Anna Chen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 11:02 AM
 To: [EMAIL PROTECTED]
 Subject: Weblogic problem...
 
 
 Hi, all
 
 Could you tell me why I get this kind of error? I am using 
 weblogic 6.1 on 
 UNIX and I do have struts.jar in my WEB-INF/lib
 
 [WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error 
 creating Action instance for path '/login', class name 
 'com.brandsdirect.common.login.LoginAction'
 java.lang.NoClassDefFoundError: org/apache/struts/action/Action
  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
  at 
 java.security.SecureClassLoader.defineClass(SecureClassLoader.
 java:111)
  at 
 java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:120)
  at 
 org.apache.struts.action.ActionServlet.processActionCreate(Act
 ionServlet.java:1564)
  at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.j
 ava:1510)
  at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
  at 
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
 tStubImpl.java:263)
  at 
 weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
 tStubImpl.java:200)
  at 
 weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
 ebAppServletContext.java:2390)
  at 
 weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
 questImpl.java:1959)
  at 
 weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
  at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
  
 
 Thanks!!
 
 Anna
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



RE: load() exception

2001-12-14 Thread Chappell, Simon P

I did get my first app working. It was a combination of faulty
understanding on my part of the exact mapping of the actions and forms
into the struts-config.xml file.

I think that this newbie area is ripe for some more simple examples
and/or step by step HOWTO type documents. If I can get another app
successfully together, I might just write it up myself. (Especially if
we start using struts here at work)

Simon

-
Simon P. Chappell [EMAIL PROTECTED]
Web Developer / Programming Specialist   www.landsend.com
Lands' End, Inc.   (608) 935-4526


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 12:28 PM
To: [EMAIL PROTECTED]; Chappell, Simon P
Cc: Struts Users Mailing List
Subject: load() exception


Not sure if you managed to solve your problem but I was having 
a similar
problem getting struts to work on Websphere v3.5.4
I ended up doing the foloowing to get it to work:
   in the .xml (struts_config and web) and .dtd files change the word
   PUBLIC to SYSTEM
   extract the .dtd files from the struts.jar to
   servlets/org/apache/struts/resources
   use the 1.0.1 version of jaxp.jar (and not v1.1). 
Webspehere 3.5.4 does
   not seem to work with jax v1.1 and if anyone knows of a 
patch for this
   or if v4 resolves this it would be much appreciated.
   use parser.jar
   in the struts_config.xml and web.xml files I needed to 
explicitly point
   to the relevant .dtd file (eg !DOCTYPE struts-config SYSTEM
   file:/{local
   
machine}/servlets/org/apache/struts/resources/struts-config_1_0.dtd).
   This was not documented in the apache site's installation 
steps but I
   found a reference to it in one of the mail archives.  
Obviously I will
   be changing this to point to a relative path.

Also, I did not patch the ActionServlet class as recommended 
in apache's
installation steps as this caused a parsing error.

Please let me know if this helps.

Regards,

Andrew



--
To unsubscribe, e-mail:   
mailto:struts-user-[EMAIL PROTECTED]
For 
additional commands, 
e-mail: mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: which IDE

2001-12-14 Thread Nathan Anderson

James,

Have you taken a look at Eclipse [www.eclipse.org]?  It's a new IDE that is
entirely plug-in based.  I was just wondering if you had thought of making a
Struts Console plug-in for it as well...

Nathan Anderson

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 7:47 AM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: which IDE


JBuilder is great and so are NetBeans/Forte
(www.netbeans.org).  There is also a Struts Console
plugin for both :)

http://www.jamesholmes.com/struts/

-james
[EMAIL PROTECTED]


--- Samuele Brignoli [EMAIL PROTECTED]
wrote:
 Which is the best IDE to develop struts framework ?
 I 've got JBuilder
 Enterprise, is that suited for struts?

 --kako



__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: which IDE

2001-12-14 Thread Juan Alvarado \(Struts List\)

I've got Visual Age for Java 4.0 working with struts and it works great. 

It will save you tons of time in debugging and solving problems. 

An good IDE is definetely a must have tool.

Take care

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]

-Original Message-
From: Samuele Brignoli [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 10:49 AM
To: Struts Users Mailing List
Subject: which IDE


Which is the best IDE to develop struts framework ? I 've got JBuilder
Enterprise, is that suited for struts?

--kako


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: which IDE

2001-12-14 Thread James Holmes

I'm planning to have a plugin for Eclipse eventually. 
The only problem is that their whole IDE is written
with proprietary SWT libraries which don't lend
themselves to easily pluggin in existing applications.

The Struts console would basically have to be
re-written in SWT to work with Eclipse unless they
come up with a better way to integrate Swing code with
SWT.

So anyway, yes it's on the todo list, but I don't know
when it will be ready.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Nathan Anderson [EMAIL PROTECTED] wrote:
 James,
 
 Have you taken a look at Eclipse [www.eclipse.org]? 
 It's a new IDE that is
 entirely plug-in based.  I was just wondering if you
 had thought of making a
 Struts Console plug-in for it as well...
 
 Nathan Anderson
 
 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 7:47 AM
 To: Struts Users Mailing List;
 [EMAIL PROTECTED]
 Subject: Re: which IDE
 
 
 JBuilder is great and so are NetBeans/Forte
 (www.netbeans.org).  There is also a Struts Console
 plugin for both :)
 
 http://www.jamesholmes.com/struts/
 
 -james
 [EMAIL PROTECTED]
 
 
 --- Samuele Brignoli [EMAIL PROTECTED]
 wrote:
  Which is the best IDE to develop struts framework
 ?
  I 've got JBuilder
  Enterprise, is that suited for struts?
 
  --kako
 
 
 
 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for
 all of
 your unique holiday gifts! Buy at
 http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Weblogic problem...

2001-12-14 Thread Sean Owen

Adding struts.jar to the WEB-INF/lib directory within your web application
is the right way to make it available to your servlets and JSPs, regardless
of whether you deploy in an exploded directory format, as a .war, or as an
.ear with a web app component.

It's not then visible to the EJBs, since the EJB classloader is a parent of
the web classloader, but that shouldn't matter - EJBs don't have any
business using Struts classes, right?

Sean


- Original Message -
From: Sobkowski, Andrej [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 14, 2001 4:40 PM
Subject: RE: Weblogic problem...


 Small addition to my previous message (sorry, I responded without reading
 with too much attention):
 - if yours is a *.war archive only, then adding struts.jar to your
 WEB-INF/lib directory should work. My previous suggestions are still valid
 but may not solve the problem.
 - if yours is a *.ear, then adding JARs to the WEB-INF/lib will not work
in
 Weblogic as the main ClassLoader is the one used for the EJBs (that have
no
 visibility on your WEB-INF/lib). You should then use the MANIFEST.MF
 Class-Path thing.

 Andrej

  -Original Message-
  From: Anna Chen [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 14, 2001 11:02 AM
  To: [EMAIL PROTECTED]
  Subject: Weblogic problem...
 
 
  Hi, all
 
  Could you tell me why I get this kind of error? I am using
  weblogic 6.1 on
  UNIX and I do have struts.jar in my WEB-INF/lib
 
  [WebAppServletContext(4667798,brd-admin,/brd-admin)] action: Error
  creating Action instance for path '/login', class name
  'com.brandsdirect.common.login.LoginAction'
  java.lang.NoClassDefFoundError: org/apache/struts/action/Action
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
   at
  java.security.SecureClassLoader.defineClass(SecureClassLoader.
  java:111)
   at
  java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
   at
  sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
   at
  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:120)
   at
  org.apache.struts.action.ActionServlet.processActionCreate(Act
  ionServlet.java:1564)
   at
  org.apache.struts.action.ActionServlet.process(ActionServlet.j
  ava:1510)
   at
  org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
  tStubImpl.java:263)
   at
  weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
  tStubImpl.java:200)
   at
  weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
  ebAppServletContext.java:2390)
   at
  weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
  questImpl.java:1959)
   at
  weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
   
 
  Thanks!!
 
  Anna
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 




smime.p7s
Description: application/pkcs7-signature


RE: which IDE

2001-12-14 Thread Nathan Anderson

That's good to know...

Thanks for the update.

Nathan

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 9:51 AM
To: Struts Users Mailing List
Subject: RE: which IDE


I'm planning to have a plugin for Eclipse eventually.
The only problem is that their whole IDE is written
with proprietary SWT libraries which don't lend
themselves to easily pluggin in existing applications.

The Struts console would basically have to be
re-written in SWT to work with Eclipse unless they
come up with a better way to integrate Swing code with
SWT.

So anyway, yes it's on the todo list, but I don't know
when it will be ready.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Nathan Anderson [EMAIL PROTECTED] wrote:
 James,

 Have you taken a look at Eclipse [www.eclipse.org]?
 It's a new IDE that is
 entirely plug-in based.  I was just wondering if you
 had thought of making a
 Struts Console plug-in for it as well...

 Nathan Anderson

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 7:47 AM
 To: Struts Users Mailing List;
 [EMAIL PROTECTED]
 Subject: Re: which IDE


 JBuilder is great and so are NetBeans/Forte
 (www.netbeans.org).  There is also a Struts Console
 plugin for both :)

 http://www.jamesholmes.com/struts/

 -james
 [EMAIL PROTECTED]


 --- Samuele Brignoli [EMAIL PROTECTED]
 wrote:
  Which is the best IDE to develop struts framework
 ?
  I 've got JBuilder
  Enterprise, is that suited for struts?
 
  --kako
 


 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for
 all of
 your unique holiday gifts! Buy at
 http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Weblogic problem...

2001-12-14 Thread Sobkowski, Andrej

Sean,

unfortunately, there are issues when packaging an application as an EAR vs
WAR. I agree that if you only have JSP and Servlets and WEB components in
general (ie only stuff that goes into a WAR), then you're OK with
WEB-INF/lib.

BUT if you deploy your Struts app as part of a EAR, that may not work (it
didn't for me and I wasted a few hours trying to understand why that
@^%@$#@% app server couldn't find my struts.jar).

Check out
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html

It's the type of thing that can ruin an evening... :)

Andrej

PS. I agree with your sentence EJB should not care about Struts. The
problem is that if the app uses a single Class Loader and it's the EJB's,
then the app must have a link to the utility JARs.

 -Original Message-
 From: Sean Owen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 12:49 PM
 To: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Weblogic problem...
 
 
 Adding struts.jar to the WEB-INF/lib directory within your 
 web application
 is the right way to make it available to your servlets and 
 JSPs, regardless
 of whether you deploy in an exploded directory format, as a 
 .war, or as an
 .ear with a web app component.
 
 It's not then visible to the EJBs, since the EJB classloader 
 is a parent of
 the web classloader, but that shouldn't matter - EJBs don't have any
 business using Struts classes, right?
 
 Sean
 
 
 - Original Message -
 From: Sobkowski, Andrej [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, December 14, 2001 4:40 PM
 Subject: RE: Weblogic problem...
 
 
  Small addition to my previous message (sorry, I responded 
 without reading
  with too much attention):
  - if yours is a *.war archive only, then adding struts.jar to your
  WEB-INF/lib directory should work. My previous suggestions 
 are still valid
  but may not solve the problem.
  - if yours is a *.ear, then adding JARs to the WEB-INF/lib 
 will not work
 in
  Weblogic as the main ClassLoader is the one used for the 
 EJBs (that have
 no
  visibility on your WEB-INF/lib). You should then use the MANIFEST.MF
  Class-Path thing.
 
  Andrej
 
   -Original Message-
   From: Anna Chen [mailto:[EMAIL PROTECTED]]
   Sent: Friday, December 14, 2001 11:02 AM
   To: [EMAIL PROTECTED]
   Subject: Weblogic problem...
  
  
   Hi, all
  
   Could you tell me why I get this kind of error? I am using
   weblogic 6.1 on
   UNIX and I do have struts.jar in my WEB-INF/lib
  
   [WebAppServletContext(4667798,brd-admin,/brd-admin)] 
 action: Error
   creating Action instance for path '/login', class name
   'com.brandsdirect.common.login.LoginAction'
   java.lang.NoClassDefFoundError: org/apache/struts/action/Action
at java.lang.ClassLoader.defineClass0(Native Method)
at 
 java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
   java.security.SecureClassLoader.defineClass(SecureClassLoader.
   java:111)
at
   java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at 
 java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at 
 java.security.AccessController.doPrivileged(Native Method)
at 
 java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at
   sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at
   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
   org.apache.struts.action.ActionServlet.processActionCreate(Act
   ionServlet.java:1564)
at
   org.apache.struts.action.ActionServlet.process(ActionServlet.j
   ava:1510)
at
   
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:487)
at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
   weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
   tStubImpl.java:263)
at
   weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
   tStubImpl.java:200)
at
   weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
   ebAppServletContext.java:2390)
at
   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
   questImpl.java:1959)
at
   weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at 
 weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

  
   Thanks!!
  
   Anna
  
  
  
  
  
   --

RE: which IDE

2001-12-14 Thread Rooms, Christoph

One other interesting tool to have a look at is SilverStream workbench.

It's totally J2EE development and makes J2EE development really easy. One of
the future release will have struts-plugins.

download it for free : http://software.silverstream.com

greetz, Christoph

-Original Message-
From: Nathan Anderson
To: Struts Users Mailing List
Sent: 14/12/2001 19:13
Subject: RE: which IDE

That's good to know...

Thanks for the update.

Nathan

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 9:51 AM
To: Struts Users Mailing List
Subject: RE: which IDE


I'm planning to have a plugin for Eclipse eventually.
The only problem is that their whole IDE is written
with proprietary SWT libraries which don't lend
themselves to easily pluggin in existing applications.

The Struts console would basically have to be
re-written in SWT to work with Eclipse unless they
come up with a better way to integrate Swing code with
SWT.

So anyway, yes it's on the todo list, but I don't know
when it will be ready.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Nathan Anderson [EMAIL PROTECTED] wrote:
 James,

 Have you taken a look at Eclipse [www.eclipse.org]?
 It's a new IDE that is
 entirely plug-in based.  I was just wondering if you
 had thought of making a
 Struts Console plug-in for it as well...

 Nathan Anderson

 -Original Message-
 From: James Holmes [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 7:47 AM
 To: Struts Users Mailing List;
 [EMAIL PROTECTED]
 Subject: Re: which IDE


 JBuilder is great and so are NetBeans/Forte
 (www.netbeans.org).  There is also a Struts Console
 plugin for both :)

 http://www.jamesholmes.com/struts/

 -james
 [EMAIL PROTECTED]


 --- Samuele Brignoli [EMAIL PROTECTED]
 wrote:
  Which is the best IDE to develop struts framework
 ?
  I 've got JBuilder
  Enterprise, is that suited for struts?
 
  --kako
 


 __
 Do You Yahoo!?
 Check out Yahoo! Shopping and Yahoo! Auctions for
 all of
 your unique holiday gifts! Buy at
 http://shopping.yahoo.com
 or bid at http://auctions.yahoo.com

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Weblogic problem...

2001-12-14 Thread Reddin, Greg

I think BEA has acknowledged a bug in that jars residing in the
Applicaiton ClassLoader (included in the EAR) won't be loaded.  They
have to be included in the EJB Jars that are placed in the EAR to be
loaded and used by both EJB's and web apps.  However as someone pointed
out, the Struts classes shouldn't be needed from the EJBs so you could
just include them in WEB-INF/lib.  It works that way in my environment,
but I certainly don't have them included anywhere besides the web app.

Greg

 -Original Message-
 From: Sobkowski, Andrej [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 12:46 PM
 To: 'Struts Users Mailing List'
 Subject: RE: Weblogic problem...
 
 
 Sean,
 
 unfortunately, there are issues when packaging an application 
 as an EAR vs
 WAR. I agree that if you only have JSP and Servlets and WEB 
 components in
 general (ie only stuff that goes into a WAR), then you're OK with
 WEB-INF/lib.
 
 BUT if you deploy your Struts app as part of a EAR, that may 
 not work (it
 didn't for me and I wasted a few hours trying to understand why that
 @^%@$#@% app server couldn't find my struts.jar).
 
 Check out
 http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html
 
 It's the type of thing that can ruin an evening... :)
 
 Andrej
 
 PS. I agree with your sentence EJB should not care about Struts. The
 problem is that if the app uses a single Class Loader and 
 it's the EJB's,
 then the app must have a link to the utility JARs.
 
  -Original Message-
  From: Sean Owen [mailto:[EMAIL PROTECTED]]
  Sent: Friday, December 14, 2001 12:49 PM
  To: Struts Users Mailing List
  Cc: [EMAIL PROTECTED]
  Subject: Re: Weblogic problem...
  
  
  Adding struts.jar to the WEB-INF/lib directory within your 
  web application
  is the right way to make it available to your servlets and 
  JSPs, regardless
  of whether you deploy in an exploded directory format, as a 
  .war, or as an
  .ear with a web app component.
  
  It's not then visible to the EJBs, since the EJB classloader 
  is a parent of
  the web classloader, but that shouldn't matter - EJBs don't have any
  business using Struts classes, right?
  
  Sean
  
  
  - Original Message -
  From: Sobkowski, Andrej [EMAIL PROTECTED]
  To: 'Struts Users Mailing List' [EMAIL PROTECTED]
  Sent: Friday, December 14, 2001 4:40 PM
  Subject: RE: Weblogic problem...
  
  
   Small addition to my previous message (sorry, I responded 
  without reading
   with too much attention):
   - if yours is a *.war archive only, then adding struts.jar to your
   WEB-INF/lib directory should work. My previous suggestions 
  are still valid
   but may not solve the problem.
   - if yours is a *.ear, then adding JARs to the WEB-INF/lib 
  will not work
  in
   Weblogic as the main ClassLoader is the one used for the 
  EJBs (that have
  no
   visibility on your WEB-INF/lib). You should then use the 
 MANIFEST.MF
   Class-Path thing.
  
   Andrej
  
-Original Message-
From: Anna Chen [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 11:02 AM
To: [EMAIL PROTECTED]
Subject: Weblogic problem...
   
   
Hi, all
   
Could you tell me why I get this kind of error? I am using
weblogic 6.1 on
UNIX and I do have struts.jar in my WEB-INF/lib
   
[WebAppServletContext(4667798,brd-admin,/brd-admin)] 
  action: Error
creating Action instance for path '/login', class name
'com.brandsdirect.common.login.LoginAction'
java.lang.NoClassDefFoundError: org/apache/struts/action/Action
 at java.lang.ClassLoader.defineClass0(Native Method)
 at 
  java.lang.ClassLoader.defineClass(ClassLoader.java:486)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.
java:111)
 at
java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
 at 
  java.net.URLClassLoader.access$100(URLClassLoader.java:56)
 at 
 java.net.URLClassLoader$1.run(URLClassLoader.java:195)
 at 
  java.security.AccessController.doPrivileged(Native Method)
 at 
  java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:297)
 at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
 at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:290)
 at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:290)
 at 
 java.lang.ClassLoader.loadClass(ClassLoader.java:253)
 at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:120)
 at
org.apache.struts.action.ActionServlet.processActionCreate(Act
ionServlet.java:1564)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.j
ava:1510)
 at

  

/do/do/AmIGoingCrazy? Help needed with /do/actionname

2001-12-14 Thread wbchmura


Hello,

RRRHH  - there now I feel better.

I am trying to go back into my first attempt at struts and follow some 
of the recommendations of the husted.com catalog - specifically 
implementing the /do/actionname

I am completely confused on what goes where for what... Let me be more 
specific:

(Q1) My Global mappings and my actions look like this... Is this 
correct?


  !-- == Global Forward Definitions 
== --
  global-forwards
 forward name=logonpath=/do/logon/
 forward name=mainmenu path=/do/mainmenu/ 
 forward name=shownewcrformpath=/do/shownewcrform/
 forward name=enternewcr   path=/do/enternewcr/
 forward name=viewcr   path=/do/logon/
  /global-forwards


(Q2) I have defined a bunch of action mappings that are giving me grief. 
 I have my logon.jsp in the root and the rest under the WEB-INF/jsp 
directory.  What path should the form on my login.jsp have for an 
action?  No matter what combination I try it submits to /do/do/login 
which causes problems.

  !-- == Action Mapping Definitions 
== --
  action-mappings

   
action  path=/do/logon
 type=com.ebind.actions.LogonAction
 name=LogonForm
 scope=request
 input=/logon.jsp
forward name=success path=/mainmenu/
forward name=failure path=/logon/

/action
   
action  path=/do/mainmenu
 type=com.ebind.DispatchForward
 name=MainMenu
 scope=request
 validate=false
 parameter=forward
forward name=forward path=/WEB-INF/jsp/menumain.jsp/

/action


(Q3) In my forwards above, should I need to do /logon or can I just do 
logon?  Things are broken all over, so when one part seems to work, 
another part stops.


THANKS!


Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Any experience with struts and clustered servers?

2001-12-14 Thread Rick Kotermanski

Jeff,

We have successfully deployed a struts based application on WLS 6.0 in a
clustered environment for a client. The issues that we hit were exclusively
related to serializability of session objects - only one was struts related
and it is fixed in 1.0. Details...

  - We were running at the time with a pre 1.0 build of struts and
ActionForms were not serializable. This is fixed in the Struts 1.0 release
where the ActionForm fields are now marked transient. Independent of any
struts concerns, you will need to ensure that all of your session objects
are serializable else none of the objects will replicate for the given
web-app.

  - The 6.0 version of Weblogic did a poor job of identifying which session
objects were not serializable when replication failed for the reason above.
The current maintenance level does a better job of logging which objects are
causing problems.

  - Session objects are only replicated across the cluster when you call
session.setAttribute() - not if you change a bean property or an entry in a
collection. You have to ensure in your actions that setAttribute() is called
whenever the session object changes.

Cheers,
-Rick
 - - - - - - - - - - - - - - - - - - - - - - - - - -
 Rick Kotermanski
 [EMAIL PROTECTED]
 Summa Technologies
 http://www.summa-tech.com

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: Any experience with struts and clustered servers?




 Greetings,
  I have been evaluating struts and am preparing to
 present a case to use
 struts  to our team.
  I will be asked about any issues regarding failover and
 clustering  and so on.
 I feel that this is a non issue but
 here is the reason that I ask.

 I know not to overload the session but
 I was told that it is unwise to store any java collection
 objects (such as
 hashtable) in the session because if that session is replicated on
 another server, any anychanges will not (or may not) be
 reflected in the
 replicated session.

 It there any truth to this?

 Therefore: If this is true, could this affect struts?

 I think this info was with repect to Weblogic.

 Thanks everyone.



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Any experience with struts and clustered servers?

2001-12-14 Thread Jeff_Mychasiw



Thank you very much for the response.

This answer is exactly what I needed.




Rick Kotermanski [EMAIL PROTECTED] on 12/14/2001 02:06:52 PM

Please respond to Struts Users Mailing List [EMAIL PROTECTED]

To:   'Struts Users Mailing List' [EMAIL PROTECTED]
cc:

Subject:  RE: Any experience with struts and clustered servers?


Jeff,

We have successfully deployed a struts based application on WLS 6.0 in a
clustered environment for a client. The issues that we hit were exclusively
related to serializability of session objects - only one was struts related
and it is fixed in 1.0. Details...

  - We were running at the time with a pre 1.0 build of struts and
ActionForms were not serializable. This is fixed in the Struts 1.0 release
where the ActionForm fields are now marked transient. Independent of any
struts concerns, you will need to ensure that all of your session objects
are serializable else none of the objects will replicate for the given
web-app.

  - The 6.0 version of Weblogic did a poor job of identifying which session
objects were not serializable when replication failed for the reason above.
The current maintenance level does a better job of logging which objects are
causing problems.

  - Session objects are only replicated across the cluster when you call
session.setAttribute() - not if you change a bean property or an entry in a
collection. You have to ensure in your actions that setAttribute() is called
whenever the session object changes.

Cheers,
-Rick
 - - - - - - - - - - - - - - - - - - - - - - - - - -
 Rick Kotermanski
 [EMAIL PROTECTED]
 Summa Technologies
 http://www.summa-tech.com

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, December 14, 2001 10:47 AM
 To: [EMAIL PROTECTED]
 Subject: Any experience with struts and clustered servers?




 Greetings,
  I have been evaluating struts and am preparing to
 present a case to use
 struts  to our team.
  I will be asked about any issues regarding failover and
 clustering  and so on.
 I feel that this is a non issue but
 here is the reason that I ask.

 I know not to overload the session but
 I was told that it is unwise to store any java collection
 objects (such as
 hashtable) in the session because if that session is replicated on
 another server, any anychanges will not (or may not) be
 reflected in the
 replicated session.

 It there any truth to this?

 Therefore: If this is true, could this affect struts?

 I think this info was with repect to Weblogic.

 Thanks everyone.



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]








--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Setting content attributes

2001-12-14 Thread Luke Studley


How do you set the values from scripting variables or the results of tag
library elements of attributes for output html tags when you are using XML
version of JSP?

E.g.
link rel=StyleSheet href=%= request.getContext %/stylesheet.css/

Simply puts the above string directly in the output (unsurprisingly - I was
getting desperate trying that). If I try to use jsp:expression instead the
page doesn't compile as the resulting fragment is not valid XML.

Apologies for the basic question - this is driving me nuts!!

Any pointers appreciated.

Luke





--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to list options in order?

2001-12-14 Thread Sue Deng

Hi,

I am using html:select and html:options like this:

   html:select property=key
 html:options collection=organizations property=key
labelProperty=value/
   /html:select

The organization is a collection of Hashtable.

Is there any way I can list the options in labelProperty order?

Thanks,

-Sue


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Solved: RE: /do/do/AmIGoingCrazy? Help needed with /do/actionname

2001-12-14 Thread wbchmura


Well, I eventually hit on the correct permutation of all the codes:

for /do/* as an action servelet mapping:

My Global forwards:
forward name=logonpath=/do/logon/

Action mappings:
action path=/mainmenu ...
forward name=failure path=/do/mainmenu/

In my forms they go in as:
html:form action=/enternewcr focus=title 


I'm just stating it here so it is archived and someone else can find it 
in there in the future.

I still dont know where the /do/do were coming from.  


-Original Message-
From: Chmura, William B. 
Sent: Friday, December 14, 2001 3:11 PM
To: struts-user
Subject: /do/do/AmIGoingCrazy? Help needed with /do/actionname



Hello,

RRRHH  - there now I feel better.

I am trying to go back into my first attempt at struts and follow some 
of the recommendations of the husted.com catalog - specifically 
implementing the /do/actionname

I am completely confused on what goes where for what... Let me be more 
specific:

(Q1) My Global mappings and my actions look like this... Is this 
correct?


  !-- == Global Forward Definitions 
== --
  global-forwards
 forward name=logonpath=/do/logon/
 forward name=mainmenu path=/do/mainmenu/ 
 forward name=shownewcrformpath=/do/shownewcrform/
 forward name=enternewcr   path=/do/enternewcr/
 forward name=viewcr   path=/do/logon/
  /global-forwards


(Q2) I have defined a bunch of action mappings that are giving me grief. 

 I have my logon.jsp in the root and the rest under the WEB-INF/jsp 
directory.  What path should the form on my login.jsp have for an 
action?  No matter what combination I try it submits to /do/do/login 
which causes problems.

  !-- == Action Mapping Definitions 
== --
  action-mappings

   
action  path=/do/logon
 type=com.ebind.actions.LogonAction
 name=LogonForm
 scope=request
 input=/logon.jsp
forward name=success path=/mainmenu/
forward name=failure path=/logon/

/action
   
action  path=/do/mainmenu
 type=com.ebind.DispatchForward
 name=MainMenu
 scope=request
 validate=false
 parameter=forward
forward name=forward path=/WEB-INF/jsp/menumain.jsp/

/action


(Q3) In my forwards above, should I need to do /logon or can I just do 
logon?  Things are broken all over, so when one part seems to work, 
another part stops.


THANKS!


Bill Chmura
Ensign-Bickford Industries, Inc.
Information Technologies Department



--
To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[Fwd: How to list options in order?]

2001-12-14 Thread Sue Deng

I mean to sort labelProperty in alphabetical order.

-Sue

---BeginMessage---

Hi,

I am using html:select and html:options like this:

   html:select property=key
 html:options collection=organizations property=key
labelProperty=value/
   /html:select

The organization is a collection of Hashtable.

Is there any way I can list the options in labelProperty order?

Thanks,

-Sue


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




---End Message---

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Setting content attributes

2001-12-14 Thread Siggelkow, Bill

link rel=StyleSheet
href=jsp:expressionrequest.getContext()/jsp:expression/stylesheet.css/


-Original Message-
From: Luke Studley [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 3:13 PM
To: struts-user
Subject: Setting content attributes



How do you set the values from scripting variables or the results of tag
library elements of attributes for output html tags when you are using XML
version of JSP?

E.g.
link rel=StyleSheet href=%= request.getContext %/stylesheet.css/

Simply puts the above string directly in the output (unsurprisingly - I was
getting desperate trying that). If I try to use jsp:expression instead the
page doesn't compile as the resulting fragment is not valid XML.

Apologies for the basic question - this is driving me nuts!!

Any pointers appreciated.

Luke





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Solved: RE: /do/do/AmIGoingCrazy? Help needed with /do/actionname

2001-12-14 Thread Ted Husted

When the URL for the action is resolved, it wants to insert the prefix
for you. It sounds like that for some reason, it did not see that the
prefix was already there, and tried to insert it again. 

The idea is that you should be able to change the prefix (or suffix)
without touching the JSP's. So, it does not need to be expressed in the
html:form tag.

Some people use 

path=/something.do

but that's obsolete, and really should be deprectated. 

path=/something

should work regardless of what is used for the prefix or suffic.

You do need to put the full URI in the ActionForward, since in that
context it doesn't know whether you want to link to 

/this

or 

/do/this

Both of which are potentially valid. 

If you changed the suffix or prefix, you would also have to change them
in the Struts config (but not in the JSPs). 

[EMAIL PROTECTED] wrote:
 I still dont know where the /do/do were coming from.
 
 -Original Message-
 From: Chmura, William B.
 Sent: Friday, December 14, 2001 3:11 PM
 To: struts-user
 Subject: /do/do/AmIGoingCrazy? Help needed with /do/actionname
 
 Hello,
 
 RRRHH  - there now I feel better.
 
 I am trying to go back into my first attempt at struts and follow some
 of the recommendations of the husted.com catalog - specifically
 implementing the /do/actionname
 
 I am completely confused on what goes where for what... Let me be more
 specific:
 
 (Q1) My Global mappings and my actions look like this... Is this
 correct?
 
   !-- == Global Forward Definitions
 == --
   global-forwards
  forward name=logonpath=/do/logon/
  forward name=mainmenu path=/do/mainmenu/
  forward name=shownewcrformpath=/do/shownewcrform/
  forward name=enternewcr   path=/do/enternewcr/
  forward name=viewcr   path=/do/logon/
   /global-forwards
 
 (Q2) I have defined a bunch of action mappings that are giving me grief.
 
  I have my logon.jsp in the root and the rest under the WEB-INF/jsp
 directory.  What path should the form on my login.jsp have for an
 action?  No matter what combination I try it submits to /do/do/login
 which causes problems.
 
   !-- == Action Mapping Definitions
 == --
   action-mappings
 
 
 action  path=/do/logon
  type=com.ebind.actions.LogonAction
  name=LogonForm
  scope=request
  input=/logon.jsp
 forward name=success path=/mainmenu/
 forward name=failure path=/logon/
 
 /action
 
 action  path=/do/mainmenu
  type=com.ebind.DispatchForward
  name=MainMenu
  scope=request
  validate=false
  parameter=forward
 forward name=forward path=/WEB-INF/jsp/menumain.jsp/
 
 /action
 
 (Q3) In my forwards above, should I need to do /logon or can I just do
 logon?  Things are broken all over, so when one part seems to work,
 another part stops.
 
 THANKS!
 
 Bill Chmura
 Ensign-Bickford Industries, Inc.
 Information Technologies Department
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to list options in order?

2001-12-14 Thread Siggelkow, Bill

I see two primary options ...
(1) use a TreeMap instead of a Hashtable 
However, to me this be unnecessary if the sorting is purely for presentation
purposes, or
(2) Create a JavaBean that holds two lists ... one for the option values and
one for the option labels ... sorted according to the labels.

I have done this on numerous occasions where I have a collection of things
that contain IDs for use as values and then names for use as labels ...
Basically, I first sort the collection according to the field I want
(typically, I do this using a Comparator) then I create two lists one for
the values and one for the labels.

Of course, if you are accessing the data from a database and can do the
sorting there it is preferable then sorting in the middle tier.

BTW, I am using Struts 1.0 -- there may be features in the nightly build
that make this easier.

-Original Message-
From: Sue Deng [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 3:20 PM
To: [EMAIL PROTECTED]
Subject: How to list options in order?


Hi,

I am using html:select and html:options like this:

   html:select property=key
 html:options collection=organizations property=key
labelProperty=value/
   /html:select

The organization is a collection of Hashtable.

Is there any way I can list the options in labelProperty order?

Thanks,

-Sue


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Setting content attributes

2001-12-14 Thread Luke Studley

No. I'd already tried that it doesn't work as it is not well formed XML and
so the JSP page does not parse let alone compile.

:(


-Original Message-
From: Siggelkow, Bill [mailto:[EMAIL PROTECTED]] 
Sent: 14 December 2001 20:43
To: 'Struts Users Mailing List'
Subject: RE: Setting content attributes

link rel=StyleSheet
href=jsp:expressionrequest.getContext()/jsp:expression/stylesheet.css/


-Original Message-
From: Luke Studley [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 3:13 PM
To: struts-user
Subject: Setting content attributes



How do you set the values from scripting variables or the results of tag
library elements of attributes for output html tags when you are using XML
version of JSP?

E.g.
link rel=StyleSheet href=%= request.getContext %/stylesheet.css/

Simply puts the above string directly in the output (unsurprisingly - I was
getting desperate trying that). If I try to use jsp:expression instead the
page doesn't compile as the resulting fragment is not valid XML.

Apologies for the basic question - this is driving me nuts!!

Any pointers appreciated.

Luke





--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




traffic limit on a single machine

2001-12-14 Thread Peter Georgiou

Hi

I've been hearing a lot about whether an app needs to be EJB compliant or
not.  Does anyone know the limits, with regards to traffic, of a single
machine running, say tomcat with a struts application.  For example, could
an app running on a single machine handle 500 hits an hour, or 500,000 hits
a month ..

Are ther any guides to this sort of information


Thanks


Peter


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Re[2]: SAX / Struts problem SAXNotRecognizedException

2001-12-14 Thread Rob Parker

I have run into that problem before with corrupted class files - you might
want to download a new xerces.jar to replace your current file. Hope that
helps,

Rob


-Original Message-
From: jpablo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 04, 2001 8:57 AM
To: Struts Users Mailing List
Subject: Re[2]: SAX / Struts problem SAXNotRecognizedException



Thanks! I did it, but now I have this exception:

[01.12.04 12:58:40:817 GMT-02:00] fecb3fc4 WebGroup  X Root Cause
 java.lang.ClassFormatError:
org/apache/xerces/framework/XMLErrorReporter (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:469)
at java.lang.ClassLoader.defineClass(ClassLoader.java:419)
at
com.ibm.servlet.classloader.DynamicClassLoader.loadNonSystemClass(DynamicCla
ssLoa

An dont understand why... Any clue?


EA Try putting JAXP 1.0.1 JARs before xerces.jar in your application
classpath.
EA This is the most popular of the known workarounds. Another workaround is
to
EA use an older version of Xerces which comes with the Xalan distribution.
EA Reportedly, this problem does not occur in WebSphere 4.0

EA 
EAAlex Esterkin
EA =



EA -Original Message-
EA From: jpablo [mailto:[EMAIL PROTECTED]]
EA Sent: Monday, December 03, 2001 14:40
EA To: Struts Users Mailing List
EA Subject: Re: SAX / Struts problem SAXNotRecognizedException



EA I still triyng to make it work, But I still getting the same
EA exception, Under what condicion this exception is thrown? Any help
EA will be really appreciated. Thanks in advance.


j When WebSphere tries to start the Action servlet it throws the
j following exception:

j [01.12.03 16:04:20:128 GMT-02:00] fec2bfc4 WebGroup  X Root Cause
j  org.xml.sax.SAXNotRecognizedException:
EA http://xml.org/sax/features/raw-names
j at
EA org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1380)

j at
EA org.apache.xerces.parsers.SAXParser.setFeature(SAXParser.java:578)


j What can be the problem?? I'm using the last version of xerces...
j What jars I need in my classpath???



EA --
EA Juan Pablo Villaverde
EA Tec. en Infraestructura de Redes
EA Soluciones Punto Com S.A.
EA http://www.spcom.com.ar



EA --
EA To unsubscribe, e-mail:
EA mailto:[EMAIL PROTECTED]
EA For additional commands, e-mail:
EA mailto:[EMAIL PROTECTED]

EA --
EA To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
EA For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A.
http://www.spcom.com.ar



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




struts and jserv

2001-12-14 Thread nandkumar rayanker

Hi ,

I am in the process of developing prototype web app
and following is the environment:

1. APache web server
2. JServ

I would like to develop application based on struts
framework. 

I would like to know whether I can develop struts app
and run under JSERV AND APACHE environment.

thanks
nandkumar
nandkumar

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: struts and jserv

2001-12-14 Thread Phase Communcations

JSERV!!! kinda outdated don't ya think : )

-Original Message-
From: nandkumar rayanker [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 7:27 PM
To: [EMAIL PROTECTED]
Subject: struts and jserv


Hi ,

I am in the process of developing prototype web app
and following is the environment:

1. APache web server
2. JServ

I would like to develop application based on struts
framework.

I would like to know whether I can develop struts app
and run under JSERV AND APACHE environment.

thanks
nandkumar
nandkumar

__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]