Struts and Workflow

2003-07-11 Thread Mike Duffy
I think that Struts and the MVC architecture could be used to create
a basic workflow system.

A WorkflowState object would represent the state of items in the
workflow (current assignment, current status, and other attributes).

A WorkflowRights object would represent a user's right to view or
change workflow items.

A WorkflowEngine object would process the WorkflowState object
and generate a WorkflowRights object.

The WorkflowRights object would be a bean that could be used by a
JSP to determine if the text of an item is displayed (if the item is
viewable), or a form field is displayed for an item (if the item is
changeable), or perhaps the item is neither viewable nor changeable
(the state of the item is simply held by the WorkflowState item).

The Struts Action object could determine the ActionForward based on
the processed WorkflowState.

Things could get messy very quickly if you attempted to create a
framework that would account for every interaction and combination,
and/or provide a generic rules generation system. However, if you
accept that your workflow rules are going to be generated by coding
your WorkflowEngine, you should be able to create a very effective,
modular system.

Any thoughts?

Mike

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Using JSTL tags instead of Struts tags

2003-07-11 Thread Adam Hardy
I've never been a fan of having SQL tags (especially the updating ones) in
JSTL, for all the obvious reasons.  However, there are a whole bunch of
developers in the world who are used to model 1 style development (VB, PHP,
PERL, Cold Fusion, ...), and it would not be fair for expert groups to
ignore the needs of those developers, simply because we might not like what
people will do with the result.  This was a case where the group creating
the standard was actually listening to what users wanted.
Would these developers be the ones who have to write an app with a 
deadline of last week and a sales manager who says I don't give a 
monkeys about design, just f***ing do it!

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


Populating form from request parameters in JSP

2003-07-11 Thread Ajay Patil
Hello,

I know this question has probably been asked several times. But,
possibly a Struts developer can explain because I am confused.

Generally, my action classes receive posted data, query the database, 
put the query result as request attribute and then forward to the 
next JSP.

However, I find that form properties in the next JSP dont get
auto-populated from the request parameters.  So, I define a new
action class (associated with the next form), and use it simply
for forwarding. And then I can see the form properties auto-populated.

So, why is this extra step (or extra action class) needed ?

Or am doing something wrong here ?

Please clarify,
Ajay


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



Re: Struts and Workflow

2003-07-11 Thread Mike Duffy
The reason I posted a message on workflow to this group is because
there were a few brief postings on the subject earlier in the week.

Also, as a point of clarification, the WorkflowRights object is
needed to keep business logic out of the view.  A display decision is
made based on rights and not a combination of logic decided in the
JSP (if a user is in X role AND the status is Y, etc.).

Mike


--- Mike Duffy [EMAIL PROTECTED] wrote:
 I think that Struts and the MVC architecture could be used to
 create
 a basic workflow system.
 
 A WorkflowState object would represent the state of items in the
 workflow (current assignment, current status, and other
 attributes).
 
 A WorkflowRights object would represent a user's right to view or
 change workflow items.
 
 A WorkflowEngine object would process the WorkflowState object
 and generate a WorkflowRights object.
 
 The WorkflowRights object would be a bean that could be used by a
 JSP to determine if the text of an item is displayed (if the item
 is
 viewable), or a form field is displayed for an item (if the item
 is
 changeable), or perhaps the item is neither viewable nor
 changeable
 (the state of the item is simply held by the WorkflowState item).
 
 The Struts Action object could determine the ActionForward based on
 the processed WorkflowState.
 
 Things could get messy very quickly if you attempted to create a
 framework that would account for every interaction and combination,
 and/or provide a generic rules generation system. However, if you
 accept that your workflow rules are going to be generated by coding
 your WorkflowEngine, you should be able to create a very
 effective,
 modular system.
 
 Any thoughts?
 
 Mike
 
 __
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!
 http://sbc.yahoo.com
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Dynamically generated form

2003-07-11 Thread Ajay Patil
Dear Ravi,

Use indexed properties... 
I am pasting some basic code for you.

Hope it helps,
Ajay

JSP Page


html:form name=TestForm type=test.TestForm action=/test
logic:iterate name=TestForm 
   property=indexedBeans id=indexedBeans
!-- Please note that id in logic:iterate tag should match
 the name in html:text tag --
html:text name=indexedBeans property=prop1 indexed=true /
html:text name=indexedBeans property=prop2 indexed=true /
/logic:iterate
/html:form

Form Class
--

public ArrayList getIndexedBeans() {
  return this.myBeans;
}

// THIS METHOD IS REQUIRED IF YOUR FORM IS OF REQUEST SCOPE.
public MyBean getIndexedBeans(int index) {

  while (this.myBeans.size()  index) 
this.myBeans.add(new MyBean());

  return (MyBean) this.myBeans.get(index);
}

Bean Class
--

public class MyBean {
  private String prop1;
  private String prop2;
  
  public String getProp1() { 
   return prop1; 
  }
  
  public void setProp1(String prop1) {
   this.prop1 = prop1:
  }

  public String getProp1() {
   return this.prop2;
  }

  public void setProp2(String prop2) {
this.prop2 = prop2;
  }
}




Hi all,
I am new to struts and what I know is that property name in a JSP 
must be same as that of the variable name in formbean. 
I have a JSP which has a various fields which are dynamicaly 
generated and the the number of fields is also not same every time. 
  The biggest problem is that there is no upper limit to number of 
these fields. So form bean cannot be be designed as the number of 
fields in the JSP is not fixed. Is there any solution to this problem?

Regards,
Ravi





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



Re: Populating form from request parameters in JSP

2003-07-11 Thread Nagendra Kumar O V S








  hi,
  your two jsp pages have different action forms associated 
  with them. so u cant expect the second jsp page to autopupulate the 
  previous request parameters. u have to go thro' the struts thing(action 
  class) which will then autopopulate ur new action form and then the jsp 
  page associated will show the values..
  
  if both ur jsp pages share a single action form(which is in session) 
  then the second jsp page will automatically show the values
  
  hope its clear now
  
  -- nagi
  
  ---Original Message---
  
  
  From: Struts Users Mailing 
  List
  Date: Friday, July 11, 
  2003 12:33:32 PM
  To: [EMAIL PROTECTED]
  Subject: Populating 
  form from request parameters in JSP
  Hello,I know this question has probably been 
  asked several times. But,possibly a Struts developer can explain 
  because I am confused.Generally, my action classes receive posted 
  data, query the database, put the query result as request attribute 
  and then forward to the next JSP.However, I find that form 
  properties in the next JSP dont getauto-populated from the request 
  parameters. So, I define a newaction class (associated with the next 
  form), and use it simplyfor forwarding. And then I can see the form 
  properties auto-populated.So, why is this extra step (or extra 
  action class) needed ?Or am doing something wrong here 
  ?Please 
  clarify,Ajay-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: [EMAIL PROTECTED]. 





	
	
	
	
	
	
	




 IncrediMail - 
Email has finally evolved - Click 
Here



Use subclass or ResourceBundle in Struts

2003-07-11 Thread Duan Qiang
Hi,

I need to use a subclass of resourceBundle to allow dynamic loading of message changes 
and other requirements, so the default implementation does not fit my needs.

Here is what I have done but it does not work.

1) define a class of test.MyResourceBundle extends ResourceBundle
2) define the class name to be my resoucebundel instead of a property file in web.xml

init-param
  param-nameapplication/param-name
  param-value
test.MyResourceBundle
  /param-value
3) use bean:message key=test /, it can not find the message key test. 

In a standalone program, it's possible to use the following codes,

ResourceBundle bundle = ResoruceBundle.getBundle(test.MyResourceBundle);
String testValue = bundle.getString(test);

I think Struts uses a simliar mechanism, however, my test did not work.

Any input is appreciated.

Regards,

Dq




Re: Using JSTL tags instead of Struts tags

2003-07-11 Thread Laurent PETIT
From: Mark Lowe [EMAIL PROTECTED]
 I'd be interested in any research comparing the readability of the two
 and seeing which site builders prefer.
 logic:iterate
 or
 c:forEach
[...] but I confess I'm more concerned with writing code for humans
 rather than compilers.
 I tend to use
 jsp:getProperty name=someObj property=foo /
   rather than
 bean:write name=someObj property=foo /

 ..but both read better than

 c:out value=${someObj.foo}/

Mark, I'm with you on this.
In fact, the very first samples of JSTL I saw were those cabalistics
c:out, c:forEach with all those ${...} shell like stuffs, and I have
to admit they gave me a very bad first impression, keeping me away for
investigating more in it.

But in the same time, there is so many valuable people on this list pro-JSTL
than I have to admit I should be wrong to blame it without having a try (or
even, as you noted, that I ought to know it, if it's becoming the standard
!).
Anyway, the arguments pro-JSTL seem to turn around the SQL features, which
in fact is what I'm trying to keep away from : that's why I'm investigating
in Java.

If I wanted to do a quick app, I'll definetely use PHP for this (not
detailing the reasons ...)
 I was at my beginnings writing only ASP (VB6/VBScript/IIS4/WinNT4) or php,
and more than all, MAINTAINING a lot of ASP apps.
It was (is) a nightmare, because there was a lot of logic code duplication
at the top of each single page.
What a mess it should have been, if not only the logic, but the data select
where in the ASPs !!

Seriously, I haven't seen any app with a select used by only one page.

I certainly do understand why the select, update, ... tags are in JSTL : to
show users that they are listened to, to have the same functionalities as
other platforms, to attract more and more people on the J2EE platform.

But I simply don't understand why these feature is one of the firsts to be
presented when speaking about JSTL.

OK. Now it's time for me to go and have a closer look on it ! ;))

--
Laurent



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



Does multiple modules work?

2003-07-11 Thread ben
Hi there,

Question: Has anyone successfully worked with multiple modules? I experience
quite some problems, see below.

Cheers Ben

 -Original Message-
 From: ben [mailto:[EMAIL PROTECTED]
 Sent: Dienstag, 8. Juli 2003 02:54
 To: 'Struts Users Mailing List'; 'Jing Zhou'
 Subject: Linking between non-default module. WAS: RE: jsp
 links to stay
 within module


 I'm still struggling in with this.

 To recap: Using Struts 1.1rc2. Basically I want to do just a
 simple link
 between 2 jsp's that reside in moduleA, which is not the
 default module.
 This worked when using the org.apache.struts.actions.SwitchAction even
 though its a bit cumbersome since I do not really need to
 switch but access
 just a jsp within the same module.

 2nd I also have link that passes parameters and needs to resolve to an
 action to do the processing of those.


 The action mapping can however never be resolved. I have the following
 setup:

 1. JSP: (inside module osscatalog)
 html:link page=/prodView.do paramId=product_id
  paramName=prod_list_el paramProperty=name
 View
 /html:link

 2. struts-config-osscatalog.xml

 action
 name=prodSubmitForm
 path=/prodView
 type=com.ctp.cosi.osscatalog.web.ProductSubmitAction
 unknown=false
 scope=session
 input=/productList.jsp
 parameter=view
 validate=false
 forward
 name=success
 path=/productView.jsp
 redirect=false /
 /action


 3. Exception:

 org.apache.jasper.JasperException: Cannot retrieve mapping for action
 /osscatalog/prodView


 Can anyone help or has anybody just worked with modules at
 all and knows if
 there are any issues? Is Struts 1.1 rc2 stable?Thanks a lot. Ben

 BTW:
 I use not the href but the page attribute which is correct
 according to the
 docs. The href can only be used when setting the hrefbase which i do.

 The module-relative path (beginning with a / character) to
 which this
 hyperlink will transfer control if activated.

  -Original Message-
  From: Stephen Brown [mailto:[EMAIL PROTECTED]
  Sent: Montag, 7. Juli 2003 22:05
  To: 'Struts Users Mailing List'; 'Jing Zhou'
  Subject: RE: jsp links to stay within module
 
 
  Use
  html-el:link href='/prodSubmit.do'  or html:link
  href='/prodSubmit.do' 
 
  steve
   -Original Message-
   From: ben [mailto:[EMAIL PROTECTED]
   Sent: July 7, 2003 3:45 PM
   To: 'Struts Users Mailing List'; 'Jing Zhou'
   Subject: RE: jsp links to stay within module
  
  
   Unfortunately this is then a absolute link to the webserver
   root and not
   relatively to the deployed application root. This does not
   work, at least
   with my setup. ;(
  
-Original Message-
From: Jing Zhou [mailto:[EMAIL PROTECTED]
Sent: Montag, 7. Juli 2003 21:28
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: jsp links to stay within module
   
   
You might want to give a try
a href=/osscatalog/prodSubmit.do
   
The leading slash is important.
   
Jing
   
- Original Message -
From: ben [EMAIL PROTECTED]
To: 'Struts Users Mailing List'
 [EMAIL PROTECTED]
Sent: Monday, July 07, 2003 11:15 AM
Subject: RE: jsp links to stay within module
   
   
 But using the switch action is a bit strange since I do not
want to switch
 module but stay in the current module.

 Hm however if the module is only request scoped... ???

  -Original Message-
  From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
  Sent: Montag, 7. Juli 2003 17:59
  To: Struts Users Mailing List; [EMAIL PROTECTED]
  Subject: Re: jsp links to stay within module
 
 
  there is a SwitchAction that you can use.
 
  someone else probably has more details...
  sandeep
  --- ben [EMAIL PROTECTED] wrote:
   Hi,
  
   I link 2 jsp's in moduleA (=not default module).
   In order for struts to stay within moduleA i learnt
   i cannot href the jsp
   directly, because the module will then switch again
   to the default. I cannot
   make the module session persistent, right?
  
   When then using a forward action like below, I get a
   404:
  
   message Invalid path /prodSubmit was requested
  
   source jsp:
   a href=osscatalog/prodSubmit.doSubmit a
   Product/abr
  
   struts-config-moduleA.xml:
  
 action path=/osscatalog/prodSubmit
  
   type=org.apache.struts.actions.ForwardAction
name=prodSubmitForm
  
   parameter=/osscatalog/prodSubmit.jsp/
  
  
  
   Ideas?
  
   Cheers ben
  
  
  
  
 
   
  
 
 -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   

Validator Framework and Business Objects

2003-07-11 Thread Jens v . P .
Hello,

I'm currently working on a framework for a special kind of 
web-applications. These applications all require some questionnaires. 
These questionnaires are defined using a bundle of business objects. 
These business classes include logic for validating user input values. 
The validator framework is providing the same mechanism.

Now I've run into a design  problem: I don't want to duplicate the 
validation rules and I do want to use the validator framework (it's 
simply too nice to ignore it:) ).

Is it possible to use the BOs for configuring the validator framework? 
Since this is a generic design problem, maybe a solution already 
exists. I'm new to Struts and maybe I missed the documentation on that. 
Is there an API for the validation framework helping me in this case, 
or do I have to hack the validator framework?

Regards,

Jens 

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


J2EE DAO Pattern Connection Pooling (struts-newbie)

2003-07-11 Thread jan . sandholm
Hello,

I'm planning an application for Lotus Domino that (hopefully) will be
ported to Tomcat/Struts too (MySQL/PostgreSQL). I'm trying to apply J2EE
DAO Pattern to hide db specific stuff (testing the concept). J2EE DAO
Pattern implies:

package dao;

import java.sql.Connection;

import dao.interfaces.*;
import dao.mysql.*;

public class MySQLDAOFactory extends DAOFactory {

 private static final String DRIVER = org.gjt.mm.mysql.Driver;
 private static final String DBURL
= jdbc:mysql://localhost:3306/somedb;

 public static UnifiedConnection getConnection() {
  // how to access Struts connection pooling?
 }

 public Object1DAO getObject1DAO() {
  return new MySQLObject1DAO();
 }

 public Object2DAO getObject2DAO() {
  return new MySQLObject2DAO();
 }
}

How do I access Struts connection pooling from data access layer? Is it
even possible to implement getConnection at dao level in Struts framework?

In Struts action I would like to write:

Business business = new Business(pk); // create business object and load
data from db

which calls the constructor:

public Business(String pk) {
 DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MySQL);
 this.dao = factory.getObject1DAO();
 this.data = (Object1VO) dao.load(pk);
}

But mayby I'm forced to write something like:

DAOFactory factory = DAOFactory.getDAOFactory(DAOFactory.MySQL);
factory.setConnection( new JDBCConnection( struts_pooled_conn ) );
Business business = new Business(factory, pk); // does this brake layer
skipping rule?

Or should I create the connected DAO object  in Struts action and pass it
to the business object? Isn't it braking the layer skipping rule also? I
want to keep my business objects as neutral as possible as they are reused
in a completely different platform.

Btw, I cannot use JDBC to access Lotus Domino (for reasons out of scope) so
I must do something like UnifiedConnection that is being extended by
different connection types (JDBCConnection, DominoConnection). I'm sorry if
this has been asked and answered previously, I just couldn't find any
suitable as Domino makes it more tricky I guess...

Many TIA,
Jan



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



RE: JSTL Book

2003-07-11 Thread Mark Galbreath
Just tryin' to keep the conversation lively  ;-)

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 7:52 PM

But I can see that Mark's in Friday mode already, so it's time to go back to
not paying attention to his remarks.

Craig



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



Re: Populating form from request parameters in JSP

2003-07-11 Thread Ajay Patil
Thanks Nagi,

Atleast I know that I am not doing something wierd.

Anyway, why does the JSP page care about the origin of the forward.
Why cant it simply autopopulate the form from request parameters ?

Defining an extra action class just to do the forward seems to
unnecessarily increase complexity. What do you think ?

Ajay

hi,
your two jsp pages have  different  action forms associated with them. 
so u cant expect the second jsp page to autopupulate the previous 
request parameters. u have to go thro' the struts thing(action class) 
which will then autopopulate ur new action form and then the jsp page 
associated will show the values..
 
if both ur jsp pages share a single action form(which is in session) 
then the second jsp page will automatically show the values
 
hope its clear now
 
-- nagi
 
---Original Message---
 
From: Struts Users Mailing List
Date: Friday, July 11, 2003 12:33:32 PM
To: [EMAIL PROTECTED]
Subject: Populating form from request parameters in JSP
 
Hello,

I know this question has probably been asked several times. But,
possibly a Struts developer can explain because I am confused.

Generally, my action classes receive posted data, query the database, 
put the query result as request attribute and then forward to the 
next JSP.

However, I find that form properties in the next JSP dont get
auto-populated from the request parameters. So, I define a new
action class (associated with the next form), and use it simply
for forwarding. And then I can see the form properties auto-populated.

So, why is this extra step (or extra action class) needed ?

Or am doing something wrong here ?

Please clarify,
Ajay





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



Refreshing Issue.

2003-07-11 Thread Anurag Garg
Hi All,

I am facing a problem in jsp page refreshing. After submitting the page to
add a new record in the database, I again display the same page with the
added record in the list. Now If I press F5 (I am not clicking the ADD
button) it again adds a new record(duplicate record) in the database, which
it should not do.

I have added the following line in my Action Class
response.setHeader(pragma,no-cache);

I have also added the following statement in the struts-config.xml
controller nocache=true/

But still it is adding the duplicate record in the database when i press F5.
Any solution how to overcome this problem..

Thanks and Regards,
Anurag Garg


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



RE: [FRIDAY] Old news already but amusing...

2003-07-11 Thread Mark Galbreath
what an asshole!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 11:15 PM
To: Struts
Subject: [FRIDAY] Old news already but amusing...


http://www.wired.com/news/politics/0,1283,59305,00.html

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



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



Re: Using JSTL tags instead of Struts tags

2003-07-11 Thread Mark Lowe
On Thursday, July 10, 2003, at 09:21 PM, David Geary wrote:

On Thursday, Jul 10, 2003, at 08:29 America/Denver, Mark Lowe wrote:

I started using JSTL but found that it encouraged site builders to  
start embedding logic in JSP's. While I can see that JSLT is more  
powerful, isn't it true to say that it encourages breaking with the  
view-controller demarcation?
Logic in a JSP page is not necessarily a bad thing. Logic that  
modifies business data is almost always inadvisable, but views have  
every right to pull data from a model, examine it, iterate over it,  
make logical decisions based upon it, and of course, display it.
Scenario example...

If I want to out-source design because I'm not a designer, if I only  
provide

pre
jsp:getProperty name=obj property=someProperty /
/pre
..or perhaps

pre
logic:iterate id=obj name=objs
jsp:getProperty name=obj property=someProperty /
/logic:iterate
/pre
I'm not inviting some punk with a copy of dreamweaver or golive to come  
along and start making a dogs dinner of things. Sure I know how to do  
all this stuff in JSP's but somebody who's very skilled in design but  
not coding (even markup) can take an application and skin it,  
concentrating on their real craft rather than worrying about hiding and  
showing stuff.

I don't like disagreeing with the struts team or anyone who I would be  
better listening to than arguing with. But the sorts of things being  
suggested on this thread assumes  that designers are skilled coders,  
and this just isn't the case. Sorry but after working in Italy for a  
year, I cannot entertain the notion that leaving any logic to do in  
HTML, doing so would be doing half the job.

I've also worked in a production environment where there were 3 layers
Designers, Site builders, Programmers. But this was a company that has  
some big clients and can afford the additional resource required. They  
also provided the hosting and thus closing the code wasn't an issue,  
JSTL would be great in this environment, there was plenty of talent  
about. Everybody under one roof, UK work culture is very team  
orientated, as I suspect is the case in the US. Life was great and  
small green furry creatures from alfa-sentory where really small green  
fury creatures from alfa-sentory.

But the well resourced and financed agencies of the London new media  
industry are a different kettle of fish to other parts of the world.  
Being able to develop skinnable webapps is the only real way of getting  
webapps to make any money. I may never have met the designer who's  
going to work on my webapp, thus the demarcation is essential. If they  
can make my tiles layout look pretty then we're all happy.

If I had folks who'd written books on JSP etc then of course I'd be  
happy to leave presentation logic up to them.. But I really don't see  
this as a realistic expectation. I am listening, really I am... But if  
given a situation where everyone is this bright and/or experienced, I  
don't believe there'd be a demand for struts.

Cheers Mark




I find the struts tags on the other hand, used with zero scriptlet  
tolerance, forces you to do all the work in your action servlets.
The work that you do with JSTL, and therefore in JSP pages instead of  
actions, involves activities like iterating over data, conditional  
tests, accessing URLs, i18n, xml manipulation and database access.  
Except for database updates and transactions, all of those activities  
are well within the perview of a view.






david

I'm open to views against mine, and I also wouldn't dismiss the  
advise of the folks who developed struts, but whenever I read use  
JSLT it seems to me  a step backwards.

On Thursday, July 10, 2003, at 03:05 PM, Hookom, Jacob wrote:

Start using it and you will :-).  The expression language is the best
thing since sliced bread.
David
I agree, I'm even using the EL parser to do stuff on completely  
different
layers for scripting logic.  Also, you can VERY easily use JSTL's  
parsing
objects in your own tags to make them a little more flexible.
Jacob

- Keith

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 9:51 AM
To: Struts Users Mailing List
Subject: RE: Using JSTL tags instead of Struts tags
I don't have any documentation but the only Struts taglibs I use are
html
and tiles.  I replaced my usage of the bean tags with the  
fmt:message
tag and the Struts logic tags are all replaced with a combination  
of the
c:if and c:forEach tags plus the expression language.

The JSPs are remarkably easy to maintain and debug using this  
strategy
because there aren't any scriptlets or complicated business logic in
them.

David

--- Kamholz, Keith   (corp-staff) USX [EMAIL PROTECTED] wrote:
I'd be interested in finding out about this too.

-Original Message-
From: White, Joshua A (HTSC, CASD)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 7:30 AM
To: 'Struts Users Mailing List'

Re: Refreshing Issue.

2003-07-11 Thread Mark Lowe
redirect=true where you define your forward.

//in your action
return (mapping.findForward(good));
//Struts-config
forward name=good path=/myPage.jsp redirect=true/
HTH mark

On Friday, July 11, 2003, at 11:07 AM, Anurag Garg wrote:

Hi All,

I am facing a problem in jsp page refreshing. After submitting the 
page to
add a new record in the database, I again display the same page with 
the
added record in the list. Now If I press F5 (I am not clicking the ADD
button) it again adds a new record(duplicate record) in the database, 
which
it should not do.

I have added the following line in my Action Class
response.setHeader(pragma,no-cache);
I have also added the following statement in the struts-config.xml
controller nocache=true/
But still it is adding the duplicate record in the database when i 
press F5.
Any solution how to overcome this problem..

Thanks and Regards,
Anurag Garg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: Refreshing Issue.

2003-07-11 Thread Ravi Garg
Dear Anurag,
This is a general problem. Actually when you refresh your page
then the previous action which has called this page(which is in this
case this page it self) is again submitted. And this previous page is
taken from the history of your computer. To prevent this you can do one
thing the clear history on submit of this page or else disable the
refresh option.


Cheers
Ravi

-Original Message-
From: Anurag Garg [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 3:38 PM
To: Struts Users Mailing List (E-mail)
Subject: Refreshing Issue.

Hi All,

I am facing a problem in jsp page refreshing. After submitting the page
to
add a new record in the database, I again display the same page with the
added record in the list. Now If I press F5 (I am not clicking the ADD
button) it again adds a new record(duplicate record) in the database,
which
it should not do.

I have added the following line in my Action Class
response.setHeader(pragma,no-cache);

I have also added the following statement in the struts-config.xml
controller nocache=true/

But still it is adding the duplicate record in the database when i press
F5.
Any solution how to overcome this problem..

Thanks and Regards,
Anurag Garg


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


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



html:image doesn't submit the page in netscape???

2003-07-11 Thread sriram
I'm using html:image to submit a page.

It works fine in IE, but not in Netscape 4.7.

Did anybody face this issue before?


Re: Refreshing Issue.

2003-07-11 Thread Mark Lowe
opps.. you may loss what it is your displaying if your putting it in 
the request..

in which case

..this is the action that lists all your records...
action path=/displayList 
type=com.sparrow.struts.DisplayListAction...

//your forward then recalls the original action
forward name=good path=/displayList.do redirect=true /
// in your action
return (mapping.findForward(good);
would be one way of doing what you want

On Friday, July 11, 2003, at 11:27 AM, Mark Lowe wrote:

redirect=true where you define your forward.

//in your action
return (mapping.findForward(good));
//Struts-config
forward name=good path=/myPage.jsp redirect=true/
HTH mark

On Friday, July 11, 2003, at 11:07 AM, Anurag Garg wrote:

Hi All,

I am facing a problem in jsp page refreshing. After submitting the 
page to
add a new record in the database, I again display the same page with 
the
added record in the list. Now If I press F5 (I am not clicking the ADD
button) it again adds a new record(duplicate record) in the database, 
which
it should not do.

I have added the following line in my Action Class
response.setHeader(pragma,no-cache);
I have also added the following statement in the struts-config.xml
controller nocache=true/
But still it is adding the duplicate record in the database when i 
press F5.
Any solution how to overcome this problem..

Thanks and Regards,
Anurag Garg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


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


RE: [FRIDAY] Old news already but amusing...

2003-07-11 Thread Andrew Hill
Hehe, but before you yanks try to claim the credit for having the least
internet-savvy senators, check out this bloke - labeled worlds biggest
luddite by The Register (now theres a title you have to work hard to earn!)
http://www.theregister.co.uk/content/archive/17941.html

Ill bet your Senator hatch didnt spend $4 million on his webpage (even after
he paid for a licence for that menu thing) - which is how much the website
for Australia's Department of Communication Information Technology and the
Arts is reputed to have cost.
http://www.news.com.au/common/story_page/0,4057,6235082%255E15317,00.html

Would you buy this site for $4 megabucks?
http://www.dcita.gov.au/Subject_Entry_Page/0,,0_1-2_1,00.html

...and not a strut in sight :-(

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Friday, 11 July 2003 18:16
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Old news already but amusing...


what an asshole!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 11:15 PM
To: Struts
Subject: [FRIDAY] Old news already but amusing...


http://www.wired.com/news/politics/0,1283,59305,00.html

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



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


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



Re: html:image doesn't submit the page in netscape???

2003-07-11 Thread Firat TIRYAKI
check out the source in the browser. Would you please send it to here...

F.

- Original Message - 
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:22 PM
Subject: html:image doesn't submit the page in netscape???


 I'm using html:image to submit a page.
 
 It works fine in IE, but not in Netscape 4.7.
 
 Did anybody face this issue before?
 


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



RE: html:image doesn't submit the page in netscape???

2003-07-11 Thread sriram
Title: RE: html:image doesn't submit the page in netscape???





Firat


The source is attached.


Sriram


-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 11, 2003 4:23 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???



check out the source in the browser. Would you please send it to here...


F.


- Original Message - 
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:22 PM
Subject: html:image doesn't submit the page in netscape???



 I'm using html:image to submit a page.
 
 It works fine in IE, but not in Netscape 4.7.
 
 Did anybody face this issue before?
 



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





html lang=en
head
  title:: Users ::/title
  
  base href=http://localhost:8080/mm/jsp/userview.jsp;
SCRIPT LANGUAGE=JavaScript src=../js/validations.js

/SCRIPT
SCRIPT LANGUAGE=javascript

//function to make a field read-only
function disableField(field) {
if(isIE) 
field.disabled=true;
else
field.blur();
}

//function to validate zip
function checkZip(val)
{ 
  var str=0123456789 
  var found=false;
  var ch;
  for (i=0;i=val.length;i++)
  {  ch=val.charAt(i);

  if(str.indexOf(ch)0)
   {found=true;
 break;
}
   
  }
   
  if (found==true)
  return false;
  else 
  return true;
}

// function to validate userViewForm
function validateUserViewForm(form) {

if (form.userName.value==) {
alert('liInvalid format or value for Username/li');
form.userName.focus();
return false;
}
if (form.domainId.disabled==false){
if (form.domainId[form.domainId.selectedIndex].value==notInt) {
alert('liInvalid format or value for Domain ID/li');
form.domainId.focus();
return false;
}
}

if (form.userRole[form.userRole.selectedIndex].value==notInt) {
alert('liInvalid format or value for User role/li');
form.userRole.focus();
return false;
}
if (form.firstName.value==) {
alert('liInvalid format or value for First name/li');
form.firstName.focus();
return false;
}
if (form.lastName.value==) {
alert('liInvalid format or value for Last name/li');
form.lastName.focus();
return false;
}
if (form.mobileNo.value==) {
alert('liInvalid format or value for Mobile number/li');
form.mobileNo.focus();
return false;
}
if (form.address1.value==) {
alert('liInvalid format or value for Address 1/li');
form.address1.focus();
return false;
}
if (form.city.value==) {
alert('liInvalid format or value for City/li');
form.city.focus();
return false;
}
if (checkZip(form.zip.value)==false) {
alert('liInvalid format or value for Zip/li');
form.zip.value=;
form.zip.focus();
return false;
}
if (form.countryId[form.countryId.selectedIndex].value==notInt) {
alert('liInvalid format or value for Country/li');
form.countryId.focus();
return false;
}
if (isNaN(form.smsRcvLimit.value)==true) {
alert('liInvalid format or value for SMS Receive Limit/li');
form.smsRcvLimit.value=;
form.smsRcvLimit.focus();
return false;
}
if (form.smsRcvLimit.value!=) {
if (parseInt(form.smsRcvLimit.value)0) {
alert('liInvalid format or value for SMS Receive 
Limit/li');
form.smsRcvLimit.value=;
form.smsRcvLimit.focus();
return false;
}
}
if (isNaN(form.smsSendLimit.value)==true) {
alert('liInvalid format or value for SMS Send Limit/li');
form.smsSendLimit.value=;
form.smsSendLimit.focus();
return false;
}
if (form.smsSendLimit.value!=) {
if (parseInt(form.smsSendLimit.value)0) {
alert('liInvalid format or value for SMS Send Limit/li');
form.smsSendLimit.value=;
form.smsSendLimit.focus();
return false;
}
}
if (isNaN(form.emailRcvLimit.value)==true) {

Re: html:image doesn't submit the page in netscape???

2003-07-11 Thread Mark Lowe
Providing validations.js would also be useful..



On Friday, July 11, 2003, at 11:49 AM, sriram wrote:

Firat

The source is attached.

Sriram

-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 4:23 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???
check out the source in the browser. Would you please send it to  
here...

F.

- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:22 PM
Subject: html:image doesn't submit the page in netscape???
 I'm using html:image to submit a page.

 It works fine in IE, but not in Netscape 4.7.

 Did anybody face this issue before?

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

source.txt--- 
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


struts-blank.war basedir

2003-07-11 Thread Andy Pahne

hi,

when I had a look into struts-blank.war (Struts 1.1) I found that the
${basedir} in the supplied build file is set to /WEB_INF/. I would have
set it to the directory below WEB-INF, so that index.jsp or the pages
folder also is part of the project.

Maybe I am wrong, but I simply cannot understand this at the moment.
Anybody can tell me, why /WEB-INF was choosen?

andy pahne


Re: struts-blank.war basedir

2003-07-11 Thread Mark Lowe
Andy

I think that putting your jsp's in /WEB-INF is considered better 
nowadays cos nobody can make a direct request for it.. This means all 
requests are mediated by actions and thus there's no exposure to the 
underlying file structure.. I remember that there were a lot o debates 
on this, but I believe that this approach is considered, and probably 
is, more secure..

cheers mark

On Friday, July 11, 2003, at 12:06 PM, Andy Pahne wrote:

hi,

when I had a look into struts-blank.war (Struts 1.1) I found that the
${basedir} in the supplied build file is set to /WEB_INF/. I would have
set it to the directory below WEB-INF, so that index.jsp or the pages
folder also is part of the project.
Maybe I am wrong, but I simply cannot understand this at the moment.
Anybody can tell me, why /WEB-INF was choosen?
andy pahne


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


how to populate drop down list

2003-07-11 Thread Ravi Garg
Hi all,

How can I populate dropdown list from form bean? What is the
structure of getter and setter methods required?

Actually the values of drop down list are coming from database
which gets populated into the form bean now from form bean how can that
be populated in dropdown list? Also how can the reverse of this, that is
once I select multiple selections from this list are set into the form
bean?

Regards,
Ravi 

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



JBoss Problem

2003-07-11 Thread Kristanto Oetomo
I got the following error when I tried to start the service:
 
 Could not start the JBoss30 service on Local Computer. The service did
not return an error. This could be an internal Windows Error or an
internal service error. If the problem persists, contact your system
administrator.

 
I have run the following:
run.bat -c all (under the bin directory of JBoss)
 
And I have also installed JBoss using JavaService.exe successfully.
 
Does anyone know a solution to this problem?
 
Thanks a bunch
 
 
 



Re: Different actionforms pointing to the same action ?????

2003-07-11 Thread Ted Husted
I often use coarse-grained ActionForms that can serve a number of 
related actions. In practice, a common set of properties are used by 
different actions at different times. The difference is that each action 
will often have its own way of validating a subset of these properties.

If you are using the Struts Validator, you can use the same formbean 
(name property) for each action mapping and then use the mapping 
attribute property to give each action its own validation form.

Just remember that when the formbean is passed to the page, it will use 
the attribute property for its name (not the (sic) name name).

If you are not using the Struts Validator, and need different 
validations for different actions, then you can create a base ActionForm 
with the properties and subclass it with different validation methods.

If you are using DynaActionForms (but not the Validator), then create 
DynaActionForm subclasses with special validate methods and then specify 
those when defining your form-beans. (So, in this case, you would not 
need to use the attribute property in the mapping, just the name.)

-Ted.

[EMAIL PROTECTED] wrote:
Hi,

Is it possible that an action is used with different actionforms ?
I explain. I would like to create a generic action (e.g. action to send an
email using the content fullfilled by a user in a form) which is not linked
to a particular actionform (e.g. registration form, cancellation form,
approval form). In this case, the action should retrieve from the
Actionform object, the properties (e.g. first name, last name, ...) using
introspection because those are not known inside the action. The properties
are different from objectform to objectform.
Met vriendelijke groeten - Cordialement - Best Regards,

Ir. Charles Moulliard
eBusiness Solutions Architect
SkillTeam NV, AV. Roodebeek - Roodebeeklaan 89 - 1030 Brussel
Tel:  +32 (0)2 743 49 00
Fax: +32 (0)2 743 49 01
GSM  : +32 0486 25 98 52
eMail  :  [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ted Husted,
  Junit in Action  - http://www.manning.com/massol/,
  Struts in Action - http://husted.com/struts/book.html,
  JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.


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


RE: how to populate drop down list

2003-07-11 Thread James Childers
   How can I populate dropdown list from form bean? What is the
 structure of getter and setter methods required?
 
   Actually the values of drop down list are coming from database
 which gets populated into the form bean now from form bean 
 how can that be populated in dropdown list?

Try this.

In your Action:

ArrayList months = new ArrayList();
months.add(new LabelValueBean(January, 1);
months.add(new LabelValueBean(Februrary, 2);
request.setAttribute(months, months);

Inside your JSP:

html:form action=/yourActionMapping
html:select property=yourFormProperty multiple=true
html:options collection=months property=value labelProperty=label /
/html:select
/html:form

 Also how can the reverse of this, that is once I select multiple selections from 
 this list are set into the form bean?

Make your Form attribute a String[].

-= J

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



Re: html:image doesn't submit the page in netscape???

2003-07-11 Thread Firat TIRYAKI
RE: html:image doesn't submit the page in netscape???It seems that you
don't have the function preSubmit ,  instead you have a function named
selpreSubmit.

try writing javascript: in the addressbar in netscape, you will see the
error console tells you what's wrong with the script you wrote.

F.

- Original Message -
From: sriram
To: 'Struts Users Mailing List'
Sent: Friday, July 11, 2003 1:49 PM
Subject: RE: html:image doesn't submit the page in netscape???


Firat
The source is attached.
Sriram
-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 4:23 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???


check out the source in the browser. Would you please send it to here...
F.
- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:22 PM
Subject: html:image doesn't submit the page in netscape???


 I'm using html:image to submit a page.

 It works fine in IE, but not in Netscape 4.7.

 Did anybody face this issue before?



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




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



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



RE: html:image doesn't submit the page in netscape???

2003-07-11 Thread sriram
Title: RE: html:image doesn't submit the page in netscape???





Validations.js (in .txt format) is attached..


-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 11, 2003 4:37 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???



Providing validations.js would also be useful..





On Friday, July 11, 2003, at 11:49 AM, sriram wrote:


 Firat

 The source is attached.

 Sriram

 -Original Message-
 From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 11, 2003 4:23 PM
 To: Struts Users Mailing List
 Subject: Re: html:image doesn't submit the page in netscape???


 check out the source in the browser. Would you please send it to
 here...

 F.

 - Original Message -
 From: sriram [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 1:22 PM
 Subject: html:image doesn't submit the page in netscape???


  I'm using html:image to submit a page.
 
  It works fine in IE, but not in Netscape 4.7.
 
  Did anybody face this issue before?
 


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

  

 source.txt--
 -
 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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





//Function to chk if browser is IE
function isIE()
{
// convert all characters to lowercase to simplify testing
var agt=navigator.userAgent.toLowerCase();
var is_ie = ((agt.indexOf(msie) != -1)  (agt.indexOf(opera) == -1));
if (is_ie)
{
return true;
}
else 
return false;
}

//Function to validate email address
function isValidEmailAddress(emailAddress) {

if (emailAddress.indexOf(@) == -1) { return false; }
if (emailAddress.indexOf(@) == 0) { return false; } 
if (emailAddress.indexOf(.) == -1) {  return false; }
if (emailAddress.indexOf(.)  emailAddress.length - 4) { return false; }
if (emailAddress.indexOf(@)  emailAddress.lastIndexOf(.)) { return false; }
invalidChars = !#$%^{}amp;*()[]:;',?|~`\\/;
for (i=0; iinvalidChars.length; i++) {
if (emailAddress.indexOf(invalidChars.charAt(i)) != -1) 
{ return false; }
else 
{
return true
}
}
if (emailAddress.indexOf() = 0) {
if (emailAddress.indexOf() == -1) { return false; }
if (emailAddress.indexOf() != emailAddress.length - 1) { return false; }
if (emailAddress.indexOf(\) != 0) { return false; }

if (emailAddress.lastIndexOf(\) == 0) { return false; }
if (emailAddress.indexOf()  emailAddress.lastIndexOf(\)) { return false; }
} else {
if (emailAddress.indexOf() = 0) { return false; }
}

return true
}

//Function to validate alphabets
function checkZip(val)
{ 
  var str=0123456789 
  var found=false;
  var ch;
  for (i=0;i=val.length;i++)
  {  ch=val.charAt(i);

  if(str.indexOf(ch)0)
   {found=true;
 break;
}
   
  }
   
  if (found==true)
  return false;
  else 
  return true;
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:image doesn't submit the page in netscape???

2003-07-11 Thread sriram
preSubmit() code is given below:

function preSubmit(form, action_value)
{
 alert(form);
 alert(action_value);
  document.forms[0].lrAction.value=action_value;
  selPreSubmit();
  //form.submit();
} // end of preSubmit




-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 5:03 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???


RE: html:image doesn't submit the page in netscape???It seems that you don't have 
the function preSubmit ,  instead you have a function named selpreSubmit.

try writing javascript: in the addressbar in netscape, you will see the error console 
tells you what's wrong with the script you wrote.

F.

- Original Message -
From: sriram
To: 'Struts Users Mailing List'
Sent: Friday, July 11, 2003 1:49 PM
Subject: RE: html:image doesn't submit the page in netscape???


Firat
The source is attached.
Sriram
-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 4:23 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???


check out the source in the browser. Would you please send it to here... F.
- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:22 PM
Subject: html:image doesn't submit the page in netscape???


 I'm using html:image to submit a page.

 It works fine in IE, but not in Netscape 4.7.

 Did anybody face this issue before?



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




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



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


[FRIDAY] It's Friday on IRC!

2003-07-11 Thread Mark Galbreath
#struts_users irc.darkmyst.org 6667

Mark



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



Re: html:image doesn't submit the page in netscape???

2003-07-11 Thread Firat TIRYAKI
Use eval() function while constructing a form element by the function
parameter given. may be netscape takes them as strings not objects.

F.

- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:27 PM
Subject: RE: html:image doesn't submit the page in netscape???


 preSubmit() code is given below:

 function preSubmit(form, action_value)
 {
  alert(form);
  alert(action_value);
   document.forms[0].lrAction.value=action_value;
   selPreSubmit();
   //form.submit();
 } // end of preSubmit




 -Original Message-
 From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 5:03 PM
 To: Struts Users Mailing List
 Subject: Re: html:image doesn't submit the page in netscape???


 RE: html:image doesn't submit the page in netscape???It seems that you
don't have the function preSubmit ,  instead you have a function named
selpreSubmit.

 try writing javascript: in the addressbar in netscape, you will see the
error console tells you what's wrong with the script you wrote.

 F.

 - Original Message -
 From: sriram
 To: 'Struts Users Mailing List'
 Sent: Friday, July 11, 2003 1:49 PM
 Subject: RE: html:image doesn't submit the page in netscape???


 Firat
 The source is attached.
 Sriram
 -Original Message-
 From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 4:23 PM
 To: Struts Users Mailing List
 Subject: Re: html:image doesn't submit the page in netscape???


 check out the source in the browser. Would you please send it to here...
F.
 - Original Message -
 From: sriram [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 1:22 PM
 Subject: html:image doesn't submit the page in netscape???


  I'm using html:image to submit a page.
 
  It works fine in IE, but not in Netscape 4.7.
 
  Did anybody face this issue before?
 


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




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



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




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



Re: html:image doesn't submit the page in netscape???

2003-07-11 Thread Mark Lowe
My apologies for not responding sooner... And I wont have time to look 
at this in detail..

But image submit buttons behave differently on NS4 to other browsers..

My quickest suggestion is to use a link to call your onclick function.. 
It was a while ago when i encountered this and the details escape me. 
But I seem to recall using a link was one way of solving this sort of 
thing..

I've never found a case where eval is required, but if anyone knows of 
a case where it is actually required I'd be interested to know. To my 
mind the way your drilling through your forms looks fine and dandy..

Cheers Mark

On Friday, July 11, 2003, at 01:11 PM, Firat TIRYAKI wrote:

Use eval() function while constructing a form element by the function
parameter given. may be netscape takes them as strings not objects.
F.

- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:27 PM
Subject: RE: html:image doesn't submit the page in netscape???

preSubmit() code is given below:

function preSubmit(form, action_value)
{
 alert(form);
 alert(action_value);
  document.forms[0].lrAction.value=action_value;
  selPreSubmit();
  //form.submit();
} // end of preSubmit


-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 5:03 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???
RE: html:image doesn't submit the page in netscape???It seems that 
you
don't have the function preSubmit ,  instead you have a function named
selpreSubmit.
try writing javascript: in the addressbar in netscape, you will see 
the
error console tells you what's wrong with the script you wrote.
F.

- Original Message -
From: sriram
To: 'Struts Users Mailing List'
Sent: Friday, July 11, 2003 1:49 PM
Subject: RE: html:image doesn't submit the page in netscape???
Firat
The source is attached.
Sriram
-Original Message-
From: Firat TIRYAKI [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 4:23 PM
To: Struts Users Mailing List
Subject: Re: html:image doesn't submit the page in netscape???
check out the source in the browser. Would you please send it to 
here...
F.
- Original Message -
From: sriram [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:22 PM
Subject: html:image doesn't submit the page in netscape???

I'm using html:image to submit a page.

It works fine in IE, but not in Netscape 4.7.

Did anybody face this issue before?



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


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


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


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


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


RE: [FRIDAY] Old news already but amusing...

2003-07-11 Thread Davidson, Glenn
Those who live in glass houses.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 6:16 AM
To: 'Struts Users Mailing List'; [EMAIL PROTECTED]
Subject: RE: [FRIDAY] Old news already but amusing...


what an asshole!

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 11:15 PM
To: Struts
Subject: [FRIDAY] Old news already but amusing...


http://www.wired.com/news/politics/0,1283,59305,00.html

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



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


Struts 1.1 - struts-config_1_1.dtd not found

2003-07-11 Thread sriram
Did any one face this problem before? I'm trying to migrate from struts 1.0 to 1.1.
 
java.util.zip.ZipException: oversubscribed dynamic bit lengths tree
 
18:39:05,316 ERROR [ActionServlet] Parsing error processing resource path
java.io.FileNotFoundException: JAR entry 
org/apache/struts/resources/struts-config_1_1.dtd not found
 
 
 


Re: Re-Population of form parameters after nn error has occured

2003-07-11 Thread Sandeep Takhar
I may be naive, but I don't know why you are using
type here:

html:form  action=/company/OrganisationNameSearch
name=company.OrganisationNameSearch

type=net.natdata.application.itf.insolvency.company.OrganisationNameSearchActionForm


sandeep
--- Rodney Paul [EMAIL PROTECTED] wrote:
 Hi All,
 
 Im currently experiencing a problem with the Struts
 framework, in that form values
 are not being re-populated after a validation error
 has occured within a ActionForm class.
 I also get this problem when saving validation
 errors within a LookupDispatchAction class.
 
 Could someone please give me some indication to why
 this is happening, and if there is a solution to
 this problem. Below is my configuration settings I
 am using with the Struts framework.
 
 
 ---OrganisationNameSearch.jsp---
 html:form  action=/company/OrganisationNameSearch
 name=company.OrganisationNameSearch


type=net.natdata.application.itf.insolvency.company.OrganisationNameSearchActionForm
 
 
 ---Struts Configuration---
 struts-config
 form-beans
 form-bean
 name=company.OrganisationNameSearchActionForm
   

type=net.natdata.application.itf.insolvency.company.OrganisationNameSearchActionForm
 /
 /form-beans
 action-mappings
 action
 path=/company/OrganisationNameSearch


type=net.natdata.application.itf.insolvency.company.OrganisationNameSearchAction

 name=company.OrganisationNameSearchActionForm
 validate=true
 scope=request

 input=/company/OrganisationNameSearch.jsp
 parameter=method
 forward name=next   
 path=/company/OrganisationBrowse.jsp
 redirect=false /
 forward name=failure
 path=/company/OrganisationNameSearch.jsp
 redirect=false /
 /action
 /action-mappings
 struts-config
 
 
 NOTE: I have validation code within both the
 ActionForm and Action classes I am using.
 
 Cheers
 Rodney
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



RE: Using JSTL tags instead of Struts tags

2003-07-11 Thread Davidson, Glenn
Please tell me that this is the start of a new urban legend and a joke.
There are people who like Dog food coding (see PHP, Perl) but this should
not be used as an excuse to pollute what Struts stands for. I understand
that you want to increase the acceptance of Struts but history has shown
that as soon as you start down the slippery slope of including Dog Food
features you become the technology providers that you currently make fun of.
I humbly request that you reconsider SQL tags and other Dog Food features.
Struts has made a great start and up till now the direction has been solid.
No Dog Food please!

Glenn

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 7:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Using JSTL tags instead of Struts tags


I think this approach is bullshit.  Why would you develop SQL tags to get
access to the db from the view?  You are contradicting yourself...this is
exactly what PERL and PHP do.  This is not good programming practice!

Mark

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 6:38 PM

On Thu, 10 Jul 2003, David Geary wrote:

 Date: Thu, 10 Jul 2003 15:22:17 -0600
 From: David Geary [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: Using JSTL tags instead of Struts tags

 On Thursday, Jul 10, 2003, at 15:18 America/Denver, Mark Galbreath
 wrote:

  Is this the same David Geary that wrote, among others, Advanced 
  JavaServer Pages?

 Yes.

David was also a member of the JSR-52 expert group (JSTL), and he's on the
JSR-127 expert group (JavaServer Faces) as well.

I've never been a fan of having SQL tags (especially the updating ones) in
JSTL, for all the obvious reasons.  However, there are a whole bunch of
developers in the world who are used to model 1 style development (VB, PHP,
PERL, Cold Fusion, ...), and it would not be fair for expert groups to
ignore the needs of those developers, simply because we might not like what
people will do with the result.  This was a case where the group creating
the standard was actually listening to what users wanted.

Beyond that, it *is* feasible to separate business logic and presentation
logic into separate JSP pages, and enjoy the fact that the page is
automatically recompiled without needing the app to be restarted.  Couple
that with the fact that Struts lets you say that a particular action
really does a RequestDispatcher.include(), and you've suddenly got the
ability to program Actions as JSP pages ... sort of a mind twisting
approach, but it seems like it would be feasible in scenarios where the
business logic is simple enough to be scripted in JSP tags that are only
used for their side effects, not for their output (which would get thrown
away anyway when Struts ultimately forwards to the presentation JSP).  In
such a scenario, having SQL access tags would make a lot of sense.



 david

Craig

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



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


RE: Refreshing Issue.

2003-07-11 Thread Ravi Kora
Hi,
This is a common problem and have a look at the 'Synchronizer Token'
J2EE pattern for more details. Below I am pasting the URL where the
problem is elucidiated.
http://www.javaworld.com/javatips/jw-javatip136_p.html

HTH,
Ravi Kora


 -Original Message-
 From: Ravi Garg [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2003 6:26 AM
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: RE: Refreshing Issue.
 
 
 Dear Anurag,
   This is a general problem. Actually when you refresh 
 your page then the previous action which has called this 
 page(which is in this case this page it self) is again 
 submitted. And this previous page is taken from the history 
 of your computer. To prevent this you can do one thing the 
 clear history on submit of this page or else disable the 
 refresh option.
 
 
 Cheers
 Ravi
 
 -Original Message-
 From: Anurag Garg [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2003 3:38 PM
 To: Struts Users Mailing List (E-mail)
 Subject: Refreshing Issue.
 
 Hi All,
 
 I am facing a problem in jsp page refreshing. After 
 submitting the page to add a new record in the database, I 
 again display the same page with the added record in the 
 list. Now If I press F5 (I am not clicking the ADD
 button) it again adds a new record(duplicate record) in the 
 database, which it should not do.
 
 I have added the following line in my Action Class
   response.setHeader(pragma,no-cache);
 
 I have also added the following statement in the struts-config.xml
   controller nocache=true/
 
 But still it is adding the duplicate record in the database 
 when i press F5. Any solution how to overcome this problem..
 
 Thanks and Regards,
 Anurag Garg
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



Re: best way to build a wizard

2003-07-11 Thread Sandeep Takhar
Personally I don't think there is anything wrong with
having multiple mappings.  You are doing the right
thing by mapping to the same action and form.  The jsp
can define the action individually.  

After reading Ted's book I think of mappings and
actions as just presentation layer components that
help with presentation layer flow, but shouldn't
really care about accessing the business logic.

It is difficult to explain, but I think it has taken
me a 1.5 years of experience with Struts and
re-reading the book to finally grasp the significance
of what he is saying.  Quite profound actually and I'm
not just kissing ***.

Hopefully I am not spilling the beans on everything in
the book, but I highly recommend it for any architect.

So in that sense- Have as many mappings as you like. 
Ideally these mappings should not be tied to any
business logic.  So for example if you call one
mapping - you are calling it for the presentation
component that you will present as well as the
possible paths of success or failure.  You should not
be calling it because you know that it has some
business logic that you want to execute.

sandeep
--- Michael Muller [EMAIL PROTECTED] wrote:
 
 It turns out that I can't pass the action into the
 html:form tag using 
 tiles; that would involve nesting JSP tags.  Grr.
 
 I guess my only recourse is to have the open
 html:form tag in the 
 inserted body and the close html:form tag in the
 template.  Ick.
 
 So now I'm trying to figure out a way to have one
 one action mapping. 
 Any ideas?  Or alternative approaches?
 
-- Mike
 
 Michael Muller wrote:
  
  My app has a bunch of wizard-style forms.  I have
 one NextPageAction 
  Action class, and an separate mapping for each
 page.  The mappings all 
  bind to the same form bean (a DynaValidatorForm)
 and invoke the 
  NextPageAction.
  
  I was hoping to have only one action mapping, with
 a whole bunch of 
  forwards for page1, page2, etc.  The problem
 that prevents me from 
  having one action mapping is validation:  I need
 the input attribute 
  to redirect me to the correct wizard screen.
  
  So I went back to having lots of mappings.  No big
 deal.  Until...
  
  I factored the next and back buttons into the
 template.  With those 
  buttons, wend the closing html:form tag.  Makes
 sense to move the 
  opening html:form tag into the template, too,
 right?  Oops, my action 
  is in there.
  
  What do I do?
  
  I could leave the closing tag in the template and
 the opening tag in the 
  inserted body.  Gross.
  
  I could try and pass the action into the template
 through my tiles-defs. 
   That's kinda kludgy, too.
  
  I'm back to thinking I should have one action
 mapping.  But I don't know 
  how to accomplish this.
  
  Suggestions?
  
  Thanks,
  
  Mike
  
  
  
 

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

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: Struts 1.1 - struts-config_1_1.dtd not found

2003-07-11 Thread ville . kaseva
I've seen it, still looking for solution.

I get the error when trying to move my web app to the service providers server. 
Same app works fine with my tomcat 4.1.x  Struts 1.1b2. I checked struts.jar 
and there is struts-config_1_1.dtd. 


Ville


 Did any one face this problem before? I'm trying to migrate from struts 1.0
 to 1.1.
  
 java.util.zip.ZipException: oversubscribed dynamic bit lengths tree
  
 18:39:05,316 ERROR [ActionServlet] Parsing error processing resource path
 java.io.FileNotFoundException: JAR entry
 org/apache/struts/resources/struts-config_1_1.dtd not found
  
  
  
 




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



Re: (RE-POST) RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-11 Thread Sandeep Takhar
there is a way you won't like and I don't like either.

have the input point to a mapping that is exactly the
same and has a different parameter.  Change the action
to check for it and just render the jsp.

sandeep
--- Adam Levine [EMAIL PROTECTED] wrote:
 nothing asked, nothing answered..
 
   yes, the input page has always been a .jsp, the
 destination (address 
 bar) page has always been a .jsp. and the action to
 which the form is posted 
 has always been a .do/.jspa/action.. nothing
 changed save for the 
 swapping of libraries (.jars).
 
 
 From: Sandeep Takhar [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List
 [EMAIL PROTECTED]
 To: Struts Users Mailing List
 [EMAIL PROTECTED]
 Subject: Re: (RE-POST)  RE: using getInputForward vs
 new 
 ActionForward(mapping.getInput())
 Date: Thu, 10 Jul 2003 13:56:51 -0700 (PDT)
 
 obvious guy asks:
 
 your input has always been to a .do or equivalent
 (to
 an action) or to a jsp?
 
 sandeep
 --- Yansheng Lin [EMAIL PROTECTED] wrote:
   Read backwards:).  Interested in finding out why.
  
  
  
   -Original Message-
   From: Adam Levine
 [mailto:[EMAIL PROTECTED]
  
   Sent: July 8, 2003 4:01 PM
   To: [EMAIL PROTECTED]
   Subject: RE: using getInputForward vs new
   ActionForward(mapping.getInput())
  
  
   Or, I can just tie the errors into my session
 object
   and use my own tags to
   pull and push them as needed (still ugly, but
 keeps
   the url clean).
  
   Perhaps there's a struts developer reading this
 list
   who has some insight.
  
   --a
  
  
   From: Yansheng Lin [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED]
   To: 'Struts Users Mailing List'
   [EMAIL PROTECTED]
   Subject: RE: using getInputForward vs new
   ActionForward(mapping.getInput())
   Date: Tue, 8 Jul 2003 15:30:24 -0600
  
   Huh.  I am surprised that it worked for you
 before.
  
   And yes, if you want the URL to change in the
   address bar, you will need
   some sort of redirect.  (Correct me if I am wrong
   here).  However, once you
   redirect the page, you lose anything that's
 returned
   in the response, including
   the
   errors collection.
  
   An ugly hack is to pass the errors in the URL. 
 But
   as I said, it's ugly.
   I would be interested to know what happened, why
 it
   worked before?
  
   -Original Message-
   From: Adam Levine
 [mailto:[EMAIL PROTECTED]
   Sent: July 8, 2003 3:18 PM
   To: [EMAIL PROTECTED]
   Subject: RE: using getInputForward vs new
   ActionForward(mapping.getInput())
  
  
   Correct. isEmpty() returns false (there are items
   present). and yes,
   html:errors shows nothing.
  
   And, the getInput() does return what I expect. 
 It
   returns the phsyical url
   of the form page that I want displayed in the
   address bar when there are
   form problems (errors is not empty).
  
   I'm returning an ActionForward.  The only
 difference
   is in whether or not
   the redirect is set to true or false.  If it's
 set
   to true, the address bar
   is right and html:errors shows nothing.  If it's
 set
   to false, the address
   bar is wrong (shows the .jspa dynamic address
   rather than the physical),
   but html:errors works.
  
   So, what I want is the phsyical address inthe
 bar,
   and the errors to
   display.
  
   clearer (?) walk-through:
   entry page:  /app/enterInfo.jsp
   form post:  /app/validateInfo.jspa - Action
  
   on errors, it should display the page contents of
   /app/enterInfo.jsp (which
   it does), and show /app/enterInfo.jsp in the
 address
   bar, and html:errors
   should iterate.
  
   with redirect set to false, I get
   /app/validateInfo.jspa in the address
   bar, the page contents, and an iteration of
   html:errors.
  
   with redirect set to true, I get
 /app/enterInfo.jsp,
   the page contents, and
   no html:errors.
  
  
   Like I mentioned in my first post, this was
 working
   the way I wanted before
   I moved to the newer libraries.
  
   Any other ideas?
  
   thanks!
  
   -- adam
  
   From: Yansheng Lin [EMAIL PROTECTED]
   Reply-To: Struts Users Mailing List
   [EMAIL PROTECTED]
   To: 'Struts Users Mailing List'
   [EMAIL PROTECTED]
   Subject: RE: using getInputForward vs new
   ActionForward(mapping.getInput())
   Date: Tue, 8 Jul 2003 14:55:45 -0600
  
  
   So you are saying that error.isEmpty() returns
   false, but html:errors/
   doesn't
   display anything?
  
   This is happening 'cause you use redirect instead
 of
   forward. Also You might
   want to try
 System.out.println(mapping.getInput())
   to see if you are going
   back
   to the right page. You might be surprised:).
  
   -Original Message-
   From: Adam Levine
 [mailto:[EMAIL PROTECTED]
   Sent: July 8, 2003 1:40 PM
   To: [EMAIL PROTECTED]
   Subject: using getInputForward vs new
   ActionForward(mapping.getInput())
  
   My goal in handling business problems in
   validating a form submission from
   an Action.execute() is 2-fold:
  
  
   1:  

Re: DefinitionDispatcherAction problem

2003-07-11 Thread Sandeep Takhar
sorry can't help much, but I looked at the code and it
didn't make sense to me and I'm probably missing
something.

At the end of the method it says ..[forward to
success, but this isn't used]..

the one second glance seems to indicate that it would
be??

sandeep
--- ale bra [EMAIL PROTECTED] wrote:
 Hi all,
 I've got problems with DefinitionDispatcherAction
 taking a definition as a 
 parameter.
 I have a global forward which redirects to an action
 of type 
 DefinitionDispatcherAction :
 
 global-forwards
 forward name=login
 path=/LinkToMain.do?def=MyLink/
 /global-forwards
 
 action-mappings
 action path=/LinkToMain 

type=org.apache.struts.tiles.actions.DefinitionDispatcherAction
 
 parameter=def
   forward name=error path=/Login/
 /action
 ...
 /action-mappings
 
 The definition MyLink is in tiles-defs :
 ...
 definition name=MyLink extends=.mainLayout
 put name=title  value=Another Title /
 put name=body   value=/EmployeeList.do
 /
 /definition
 ...
 
 I've a link on my menu.jsp pointing to to
 global-forward :
 
 html:link forward=login  ITEM
 /html:link
 
 I thought that these settings should have given me
 the result to have the 
 definition MyLink displayed in the browser.
 Well, I don't get any error but the result is an
 EMPTY PAGE!
 
 Where I'm wrong??
 
 Thanks
 Alex
 
 

___
 Sent by ePrompter, the premier email notification
 software.
 Free download at http://www.ePrompter.com.
 

_
 MSN Foto: condividi, ritocca e stampa le tue foto
 online 
 http://photos.msn.it
 
 

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: struts-blank.war basedir

2003-07-11 Thread Andy Pahne

hi,

thanks. I get the point with pages being positioned below /WEB-INF/ to
enforce security and the usage of controler components. But that is not
the case with struts-blank.war: the /pages folder is not inside
/WEB-INF/ and I can also call pages in /pages directly, like:
http://localhost:8080/struts-blank/pages/Welcome.jsp

What made me wonder in the first place was: I added catalina-ant.jar
tasks to the buildfile, set web.home to basedir /WEB-INF/ and after
installation nothing worked. Of course not, because there's no index.jsp
inside WEB-INF and anyway: if there was one, it would not be served.

My workaround was to set web.home to ${basedir}/../ which looks ugly,
but works.
I think I have to rething my assumption ${basedir} == ${web.home}.

bye,
andy

From: Andy Pahne [EMAIL PROTECTED]

 To: [EMAIL PROTECTED]
 Subject: struts-blank.war basedir
 Date: 11 Jul 2003 13:06:57 +0200
 
 
 hi,
 
 when I had a look into struts-blank.war (Struts 1.1) I found that the
 ${basedir} in the supplied build file is set to /WEB_INF/. I would have
 set it to the directory below WEB-INF, so that index.jsp or the pages
 folder also is part of the project.
 
 Maybe I am wrong, but I simply cannot understand this at the moment.
 Anybody can tell me, why /WEB-INF was choosen?
 
 andy pahne
 
 
 __
 
 From: Mark Lowe [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: Re: struts-blank.war basedir
 Date: 11 Jul 2003 12:14:07 +0100
 
 Andy
 
 I think that putting your jsp's in /WEB-INF is considered better 
 nowadays cos nobody can make a direct request for it.. This means all 
 requests are mediated by actions and thus there's no exposure to the 
 underlying file structure.. I remember that there were a lot o debates 
 on this, but I believe that this approach is considered, and probably 
 is, more secure..
 
 cheers mark
 
 On Friday, July 11, 2003, at 12:06 PM, Andy Pahne wrote:
 
 
  hi,
 
  when I had a look into struts-blank.war (Struts 1.1) I found that the
  ${basedir} in the supplied build file is set to /WEB_INF/. I would have
  set it to the directory below WEB-INF, so that index.jsp or the pages
  folder also is part of the project.
 
  Maybe I am wrong, but I simply cannot understand this at the moment.
  Anybody can tell me, why /WEB-INF was choosen?
 
  andy pahne


Netscape problem

2003-07-11 Thread Gandle, Panchasheel
May be this is off the topic struts,
but in new netscape 7 and above, if the remember password is enabled by a
user.
All the other password fields do come with password *.

we have some other password fields too on our site, which are different from
login-password.

has anyone solved this in Netscape, where only the initial login-password is
enabled 
and for rest of the pages it should not remember the password.


Thanks
Panchasheel

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



retention of the ActionForm values for display only fields

2003-07-11 Thread Brahme, Supriya \(ENJ\)
Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue.
Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its website 
linkages may contain confidential health information.  This information is intended 
solely for use by the individual or entity to whom it is addressed.  If you have 
received this information in error, please notify the sender immediately and arrange 
for the prompt destruction of the material and any accompanying attachments.




Re: JBoss Problem

2003-07-11 Thread James Mitchell
You might try asking on the JBoss Users list.

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Kristanto Oetomo [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 7:19 AM
Subject: JBoss Problem


 I got the following error when I tried to start the service:
  
  Could not start the JBoss30 service on Local Computer. The service did
 not return an error. This could be an internal Windows Error or an
 internal service error. If the problem persists, contact your system
 administrator.
 
  
 I have run the following:
 run.bat -c all (under the bin directory of JBoss)
  
 And I have also installed JBoss using JavaService.exe successfully.
  
 Does anyone know a solution to this problem?
  
 Thanks a bunch
  
  
  
 
 


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



Re: [OT] Struts Developers Needed

2003-07-11 Thread James Mitchell
Actually, I believe the scale is more accurately portrayed like this:

 Quality %
  100 |   xxx
   90 | xx
   80 |x  x x
   70 |   x
   60 | x
   50 |   x
   40 | x
   30 |  x
   20 |   x
   10 |x
0 |_xxx_
  012
Beer (doz)

Individual results can vary.  You just need to find that Happy Medium for
maximum productivity ;)


--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message -
From: Shane Mingins [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 5:28 PM
Subject: RE: Struts Developers Needed


 Hm .

 Projected Project Quality Graph

  100 |
 |x
 |   x
 |  x
 | x
 Quality % |x
 |   x
 |  x
 | x
 |x
 |   x
 |  x
 |__
 012
   Beer (doz)



 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: Friday, 11 July 2003 9:19 a.m.
 To: Struts Users Mailing List
 Subject: Re: Struts Developers Needed

 Hey, I'll work for $0, as long as I get free beer!!!


 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx


 - Original Message -
 From: Steve Jovanovic [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Thursday, July 10, 2003 5:11 PM
 Subject: RE: Struts Developers Needed


  Hi Mark,
 
  laugh Us, too! :)
 
  Steve
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]
  Sent: Thursday, July 10, 2003 4:07 PM
  To: 'Struts Users Mailing List'
  Subject: RE: Struts Developers Needed
 
  I certainly could use the vacation time!  I'll check out the project
  data.
 
  Mark
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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

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


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



RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Sri Sankaran
Since the name fields are non-form fields they are not submitted and hence are not 
part of the request.  Therefore, when validation fails, there is nothing to send back 
to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue.
Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its website 
linkages may contain confidential health information.  This information is intended 
solely for use by the individual or entity to whom it is addressed.  If you have 
received this information in error, please notify the sender immediately and arrange 
for the prompt destruction of the material and any accompanying attachments.



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



RE: Netscape problem

2003-07-11 Thread Mark Galbreath
You should have implemented single sign-in in the first place.

Mark

-Original Message-
From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:16 AM
To: 'Struts Users Mailing List'
Subject: Netscape problem


May be this is off the topic struts,
but in new netscape 7 and above, if the remember password is enabled by a
user. All the other password fields do come with password *.

we have some other password fields too on our site, which are different from
login-password.

has anyone solved this in Netscape, where only the initial login-password is
enabled 
and for rest of the pages it should not remember the password.


Thanks
Panchasheel

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



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



RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Sri Sankaran
If you really want to stay with request scope, a (hacky) way around it would be to 
have the names as hidden form fields as well.

Sri

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields

Since the name fields are non-form fields they are not submitted and hence are not 
part of the request.  Therefore, when validation fails, there is nothing to send back 
to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue.
Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its website 
linkages may contain confidential health information.  This information is intended 
solely for use by the individual or entity to whom it is addressed.  If you have 
received this information in error, please notify the sender immediately and arrange 
for the prompt destruction of the material and any accompanying attachments.



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


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



img tag

2003-07-11 Thread Raphaël di Cicco
Hi,

I'm using Struts 1.1 with modules. I want to use the page attribute of  html:img but 
without struts genrating the module name.
For instance:
I'm in a JSP page inside the module administration
let's say I want to display an image called image.gif in directory img:
html:img page=/img/image.gif  width=229 height=32/

This is creating : 

img src=/myweb/administration/img/image.gif height=32 width=229
instead of :
img src=/myweb/img/image.gif height=32 width=229

Any solution to this problem with using src ?


Raphaël di Cicco
Atos Origin - Intégration projet AGRIPPA
2ème étage - salle 208
e-mail : [EMAIL PROTECTED]
tél : 01-55-91-24-53


Re: img tag

2003-07-11 Thread Raphaël di Cicco


Any solution to this problem with using src ?

Sorry read WITHOUT !


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



RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Brahme, Supriya \(ENJ\)
Thanks Srini.That means the ActionForm has to be in session scope to
achieve this. Right?

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Since the name fields are non-form fields they are not submitted and
hence are not part of the request.  Therefore, when validation fails,
there is nothing to send back to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue. Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its
website linkages may contain confidential health information.  This
information is intended solely for use by the individual or entity to
whom it is addressed.  If you have received this information in error,
please notify the sender immediately and arrange for the prompt
destruction of the material and any accompanying attachments.



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



RE: Netscape problem

2003-07-11 Thread Gandle, Panchasheel
The password on other pages are not of the same user as the one who logs
in

Thanks
Panchasheel



-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 10:51 AM
To: 'Struts Users Mailing List'
Subject: RE: Netscape problem


You should have implemented single sign-in in the first place.

Mark

-Original Message-
From: Gandle, Panchasheel [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:16 AM
To: 'Struts Users Mailing List'
Subject: Netscape problem


May be this is off the topic struts,
but in new netscape 7 and above, if the remember password is enabled by a
user. All the other password fields do come with password *.

we have some other password fields too on our site, which are different from
login-password.

has anyone solved this in Netscape, where only the initial login-password is
enabled 
and for rest of the pages it should not remember the password.


Thanks
Panchasheel

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



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

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



Re: Using JSTL tags instead of Struts tags

2003-07-11 Thread Mark Lowe
I'm familiar with the tech idiom dog-food .. but I have no idea what 
it is you're talking about please can you explain what you understand 
by dog-food coding?

If your saying what I think you are are you sure you're not choking on 
some?

On Friday, July 11, 2003, at 02:36 PM, Davidson, Glenn wrote:

Please tell me that this is the start of a new urban legend and a joke.
There are people who like Dog food coding (see PHP, Perl) but this 
should
not be used as an excuse to pollute what Struts stands for. I 
understand
that you want to increase the acceptance of Struts but history has 
shown
that as soon as you start down the slippery slope of including Dog 
Food
features you become the technology providers that you currently make 
fun of.
I humbly request that you reconsider SQL tags and other Dog Food 
features.
Struts has made a great start and up till now the direction has been 
solid.
No Dog Food please!

Glenn

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 7:20 PM
To: 'Struts Users Mailing List'
Subject: RE: Using JSTL tags instead of Struts tags
I think this approach is bullshit.  Why would you develop SQL tags 
to get
access to the db from the view?  You are contradicting yourself...this 
is
exactly what PERL and PHP do.  This is not good programming practice!

Mark

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 6:38 PM
On Thu, 10 Jul 2003, David Geary wrote:

Date: Thu, 10 Jul 2003 15:22:17 -0600
From: David Geary [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Using JSTL tags instead of Struts tags
On Thursday, Jul 10, 2003, at 15:18 America/Denver, Mark Galbreath
wrote:
Is this the same David Geary that wrote, among others, Advanced
JavaServer Pages?
Yes.
David was also a member of the JSR-52 expert group (JSTL), and he's on 
the
JSR-127 expert group (JavaServer Faces) as well.

I've never been a fan of having SQL tags (especially the updating 
ones) in
JSTL, for all the obvious reasons.  However, there are a whole bunch of
developers in the world who are used to model 1 style development (VB, 
PHP,
PERL, Cold Fusion, ...), and it would not be fair for expert groups to
ignore the needs of those developers, simply because we might not like 
what
people will do with the result.  This was a case where the group 
creating
the standard was actually listening to what users wanted.

Beyond that, it *is* feasible to separate business logic and 
presentation
logic into separate JSP pages, and enjoy the fact that the page is
automatically recompiled without needing the app to be restarted.  
Couple
that with the fact that Struts lets you say that a particular action
really does a RequestDispatcher.include(), and you've suddenly got the
ability to program Actions as JSP pages ... sort of a mind twisting
approach, but it seems like it would be feasible in scenarios where the
business logic is simple enough to be scripted in JSP tags that are 
only
used for their side effects, not for their output (which would get 
thrown
away anyway when Struts ultimately forwards to the presentation JSP).  
In
such a scenario, having SQL access tags would make a lot of sense.



david
Craig

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


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


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


Struts, search, and approval...

2003-07-11 Thread Gregory F. March

First a quick note.  It seems that searching of the struts list archive
is not working.  A search for forward in the body is returning zero
results.  I think there should be just a few hits for that one. :-)

Next, I have developed a POC for a product I'm working on.  However,
struts is not currently an approved tool where I work.  I am looking
for statements by big companies / organizations like (especially) Sun,
Weblogic, IBM, etc. that are endorsing this tool.

I am also looking for a Top 10 list of reason why we should approve it
as a viable tool irrespective of what other companies think.  I think
this was mentioned here a few weeks ago (which is why I mentioned the
issue with searching above), so I'll apologize up front for starting
this thread again.

Any help would be greatly appreciated.

Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-AIM:GfmNet

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



Ann: new release of bP

2003-07-11 Thread Vic Cekvenich
A new build of bP Jasic v9.7_3 was released.  bP is a Struts CMS app, 
that requires a DB to run.

It uses JSTL 1.1 (not 1.03), which requires JSP 2.0 (Tomcat 5 AND Resin 
3 included).

Also three are few new newsgroups added to new.baseBeans.com (new: 
Oracle, MS SQL, C#, old are JDO, Eclipse, JavaScript, etc.) so refresh 
your news reader if you are using news.basebeans.com

--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced a href =baseBeans.comStruts Training/a and project recovery in North 
East.
Open Source a href =baseBeans.comContent Management/a  basicPortal sofware
Best practicea href =baseBeans.comStruts Support/a v.1.1 helper ScafflodingXPress


need help with nested:iterate tag -- NullPointerException

2003-07-11 Thread Wes Rood
Hi

I was trying to convert a logic:iterate into a nested:iterate and I'm 
getting a NullPointerException.

First off, the Action is adding a List to the request like this:

 request.setAttribute(courseProviderList, theList);

and the JSP is successfully iterating through the objects using 
logic:iterate:

logic:iterate id=element name=courseProviderList 
type=com.CourseProvider
 bean:write name=element property=oid /
 ... etc
/logic:iterate

But when I tried nested:iterate:

nested:iterate name=courseProviderList type=com.CourseProvider
 nested:write property=oid/
/nested:iterate
I get the following exception:

java.lang.NullPointerException
   at java.util.Hashtable.put(Hashtable.java:380)
   at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImp
l.java:234)
   at 
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
367)
   at 
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(Nes
tedIterateTag.java:116)
   at 
org.apache.jsp.listCourseProviders_jsp._jspService(listCourseProvider
s_jsp.java:88)
... etc

---

I can get it to work if I define a FormBean, and use it as follows:

  ((ListCourseProvidersForm)form).setCourseProviders(theList);

with:

nested:iterate name=ListCourseProvidersForm property=courseProviders
   nested:write property=oid /
.. etc
/nested:iterate
But shouldn't it also work when the collection is directly an attribute 
of the request object?

Thanks,
Wes


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


Re: Does multiple modules work?

2003-07-11 Thread Martin Cooper

ben [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi there,

 Question: Has anyone successfully worked with multiple modules? I
experience
 quite some problems, see below.

Yes, modules work. I use them extensively.

You do need to make sure that you *always* go through the controller, and
don't go directly to JSP pages, and you need to use extension mapping (which
it looks like you're doing).

There is one pretty serious bug (#11932) that somehow got marked as LATER
instead of being fixed for Struts 1.1. It applies if you are using *both*
multiple modules and multiple message resource bundles. (I'll be checking in
the fix for it this weekend.) Other than that, modules work just fine.

By the way, you should really upgrade from 1.1rc2 to 1.1 Final. :-)

--
Martin Cooper



 Cheers Ben

  -Original Message-
  From: ben [mailto:[EMAIL PROTECTED]
  Sent: Dienstag, 8. Juli 2003 02:54
  To: 'Struts Users Mailing List'; 'Jing Zhou'
  Subject: Linking between non-default module. WAS: RE: jsp
  links to stay
  within module
 
 
  I'm still struggling in with this.
 
  To recap: Using Struts 1.1rc2. Basically I want to do just a
  simple link
  between 2 jsp's that reside in moduleA, which is not the
  default module.
  This worked when using the org.apache.struts.actions.SwitchAction even
  though its a bit cumbersome since I do not really need to
  switch but access
  just a jsp within the same module.
 
  2nd I also have link that passes parameters and needs to resolve to an
  action to do the processing of those.
 
 
  The action mapping can however never be resolved. I have the following
  setup:
 
  1. JSP: (inside module osscatalog)
  html:link page=/prodView.do paramId=product_id
   paramName=prod_list_el paramProperty=name
  View
  /html:link
 
  2. struts-config-osscatalog.xml
 
  action
  name=prodSubmitForm
  path=/prodView
  type=com.ctp.cosi.osscatalog.web.ProductSubmitAction
  unknown=false
  scope=session
  input=/productList.jsp
  parameter=view
  validate=false
  forward
  name=success
  path=/productView.jsp
  redirect=false /
  /action
 
 
  3. Exception:
 
  org.apache.jasper.JasperException: Cannot retrieve mapping for action
  /osscatalog/prodView
 
 
  Can anyone help or has anybody just worked with modules at
  all and knows if
  there are any issues? Is Struts 1.1 rc2 stable?Thanks a lot. Ben
 
  BTW:
  I use not the href but the page attribute which is correct
  according to the
  docs. The href can only be used when setting the hrefbase which i do.
 
  The module-relative path (beginning with a / character) to
  which this
  hyperlink will transfer control if activated.
 
   -Original Message-
   From: Stephen Brown [mailto:[EMAIL PROTECTED]
   Sent: Montag, 7. Juli 2003 22:05
   To: 'Struts Users Mailing List'; 'Jing Zhou'
   Subject: RE: jsp links to stay within module
  
  
   Use
   html-el:link href='/prodSubmit.do'  or html:link
   href='/prodSubmit.do' 
  
   steve
-Original Message-
From: ben [mailto:[EMAIL PROTECTED]
Sent: July 7, 2003 3:45 PM
To: 'Struts Users Mailing List'; 'Jing Zhou'
Subject: RE: jsp links to stay within module
   
   
Unfortunately this is then a absolute link to the webserver
root and not
relatively to the deployed application root. This does not
work, at least
with my setup. ;(
   
 -Original Message-
 From: Jing Zhou [mailto:[EMAIL PROTECTED]
 Sent: Montag, 7. Juli 2003 21:28
 To: Struts Users Mailing List; [EMAIL PROTECTED]
 Subject: Re: jsp links to stay within module


 You might want to give a try
 a href=/osscatalog/prodSubmit.do

 The leading slash is important.

 Jing

 - Original Message -
 From: ben [EMAIL PROTECTED]
 To: 'Struts Users Mailing List'
  [EMAIL PROTECTED]
 Sent: Monday, July 07, 2003 11:15 AM
 Subject: RE: jsp links to stay within module


  But using the switch action is a bit strange since I do not
 want to switch
  module but stay in the current module.
 
  Hm however if the module is only request scoped... ???
 
   -Original Message-
   From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
   Sent: Montag, 7. Juli 2003 17:59
   To: Struts Users Mailing List; [EMAIL PROTECTED]
   Subject: Re: jsp links to stay within module
  
  
   there is a SwitchAction that you can use.
  
   someone else probably has more details...
   sandeep
   --- ben [EMAIL PROTECTED] wrote:
Hi,
   
I link 2 jsp's in moduleA (=not default module).
In order for struts to stay within moduleA i learnt
i cannot href the jsp
directly, because the module will then switch again
to the default. 

[FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Jing Zhou
No eye deer. (No idea :-)

What do you call a dead deer without eyes?

Re: how to populate drop down list

2003-07-11 Thread Qasim Khawaja
Is that the Action or the ActionForm? If it is the Action when is it 
called prior to the display of the form and what is the entry point or 
means to determine that its a display form request as opposed to posting 
the html form?

James Childers wrote:
How can I populate dropdown list from form bean? What is the
structure of getter and setter methods required?
	Actually the values of drop down list are coming from database
which gets populated into the form bean now from form bean 
how can that be populated in dropdown list?


Try this.

In your Action:

ArrayList months = new ArrayList();
months.add(new LabelValueBean(January, 1);
months.add(new LabelValueBean(Februrary, 2);
request.setAttribute(months, months);
Inside your JSP:

html:form action=/yourActionMapping
html:select property=yourFormProperty multiple=true
html:options collection=months property=value labelProperty=label /
/html:select
/html:form
Also how can the reverse of this, that is once I select multiple selections from 
this list are set into the form bean?


Make your Form attribute a String[].

-= J


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


Re: Struts, search, and approval...

2003-07-11 Thread Greg Reddin
Sun's Blueprints book makes mention of Struts when talking about MVC 
Frameworks.  It's about as close to an endorsement as you can get.

Greg

Gregory F. March wrote:
First a quick note.  It seems that searching of the struts list archive
is not working.  A search for forward in the body is returning zero
results.  I think there should be just a few hits for that one. :-)
Next, I have developed a POC for a product I'm working on.  However,
struts is not currently an approved tool where I work.  I am looking
for statements by big companies / organizations like (especially) Sun,
Weblogic, IBM, etc. that are endorsing this tool.
I am also looking for a Top 10 list of reason why we should approve it
as a viable tool irrespective of what other companies think.  I think
this was mentioned here a few weeks ago (which is why I mentioned the
issue with searching above), so I'll apologize up front for starting
this thread again.
Any help would be greatly appreciated.

Thanks,

/greg

--
Gregory F. March-=-http://www.gfm.net:81/~march-=-
AIM:GfmNet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
DISCLAIMER:
This email message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and destroy
all copies of the original message and attachments.





DISCLAIMER:
This email message is for the sole use of the intended recipient(s) and may contain 
confidential and privileged information.  Any unauthorized review, use, disclosure or 
distribution is prohibited.  If you are not the intended recipient, please contact the 
sender by reply email and destroy all copies of the original message and attachments.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


access application scope object in execute

2003-07-11 Thread martin hablak
Hello,

how can I access application scope object in Action's execute method?

martin

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


RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Chen, Gin
Just use html:hidden property=blah write=true
that will take care of retaining them as well as display them for you so
that you dont need another html:write
-Tim

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 10:56 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Thanks Srini.That means the ActionForm has to be in session scope to
achieve this. Right?

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Since the name fields are non-form fields they are not submitted and
hence are not part of the request.  Therefore, when validation fails,
there is nothing to send back to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue. Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its
website linkages may contain confidential health information.  This
information is intended solely for use by the individual or entity to
whom it is addressed.  If you have received this information in error,
please notify the sender immediately and arrange for the prompt
destruction of the material and any accompanying attachments.



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

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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread James Mitchell
Blinded deer  (Blind dead deer) 

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx


- Original Message - 
From: Jing Zhou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:23 PM
Subject: [FRIDAY] What do you call a deer without eyes?


No eye deer. (No idea :-)

What do you call a dead deer without eyes?


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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Mark Lowe
Brian ?

On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:

Blinded deer  (Blind dead deer) 

--
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx
- Original Message -
From: Jing Zhou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:23 PM
Subject: [FRIDAY] What do you call a deer without eyes?
No eye deer. (No idea :-)

What do you call a dead deer without eyes?

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


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


RE: best way to build a wizard

2003-07-11 Thread Mathew, Manoj
I have a method which dynamically create my current form .I used this when i had one 
action on multiple forms and i gave only one mapping for the action and didn't give 
form name in the mapping.






public static ActionForm createActionForm(HttpServletRequest request, ActionMapping 
mapping, String name)throws 
// name = frm name
javax.servlet.ServletException {

FormBeanConfig config = mapping.getModuleConfig().findFormBeanConfig(name);
if (config == null) {
return (null);
}

ActionForm instance = null;
HttpSession session = null;
 
instance = (ActionForm) request.getAttribute(name);
if (instance == null){
//session = request.getSession();
instance = (ActionForm) request.getSession().getAttribute(name);
}

// Create and return a new form bean instance 
if (instance == null){
if (config.getDynamic()) {
try {
DynaActionFormClass dynaClass = 
DynaActionFormClass.createDynaActionFormClass(config);
instance = (ActionForm) dynaClass.newInstance();
} catch (Throwable t) {
return (null);
}
} 
else {
try {
instance = (ActionForm) 
org.apache.struts.util.RequestUtils.applicationInstance(config.getType());

 } catch (Throwable t) {
return (null);
}
}

}
RequestUtils.populate(instance, null, null,
  request);
 return (instance);

}

-Original Message-
From: Sandeep Takhar [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 8:45 AM
To: Struts Users Mailing List
Subject: Re: best way to build a wizard


Personally I don't think there is anything wrong with
having multiple mappings.  You are doing the right
thing by mapping to the same action and form.  The jsp
can define the action individually.  

After reading Ted's book I think of mappings and
actions as just presentation layer components that
help with presentation layer flow, but shouldn't
really care about accessing the business logic.

It is difficult to explain, but I think it has taken
me a 1.5 years of experience with Struts and
re-reading the book to finally grasp the significance
of what he is saying.  Quite profound actually and I'm
not just kissing ***.

Hopefully I am not spilling the beans on everything in
the book, but I highly recommend it for any architect.

So in that sense- Have as many mappings as you like. 
Ideally these mappings should not be tied to any
business logic.  So for example if you call one
mapping - you are calling it for the presentation
component that you will present as well as the
possible paths of success or failure.  You should not
be calling it because you know that it has some
business logic that you want to execute.

sandeep
--- Michael Muller [EMAIL PROTECTED] wrote:
 
 It turns out that I can't pass the action into the
 html:form tag using 
 tiles; that would involve nesting JSP tags.  Grr.
 
 I guess my only recourse is to have the open
 html:form tag in the 
 inserted body and the close html:form tag in the
 template.  Ick.
 
 So now I'm trying to figure out a way to have one
 one action mapping. 
 Any ideas?  Or alternative approaches?
 
-- Mike
 
 Michael Muller wrote:
  
  My app has a bunch of wizard-style forms.  I have
 one NextPageAction 
  Action class, and an separate mapping for each
 page.  The mappings all 
  bind to the same form bean (a DynaValidatorForm)
 and invoke the 
  NextPageAction.
  
  I was hoping to have only one action mapping, with
 a whole bunch of 
  forwards for page1, page2, etc.  The problem
 that prevents me from 
  having one action mapping is validation:  I need
 the input attribute 
  to redirect me to the correct wizard screen.
  
  So I went back to having lots of mappings.  No big
 deal.  Until...
  
  I factored the next and back buttons into the
 template.  With those 
  buttons, wend the closing html:form tag.  Makes
 sense to move the 
  opening html:form tag into the template, too,
 right?  Oops, my action 
  is in there.
  
  What do I do?
  
  I could leave the closing tag in the template and
 the opening tag in the 
  inserted body.  Gross.
  
  I could try and pass the action into the template
 through my tiles-defs. 
   That's kinda kludgy, too.
  
  I'm back to thinking I should have one action
 mapping.  But I don't know 
  how to accomplish this.
  
  Suggestions?
  
  Thanks,
  
  Mike
  
  
  
 

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

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



RE: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Chen, Gin
Dinner

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:41 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] What do you call a deer without eyes?


Brian ?


On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:

 Blinded deer  (Blind dead deer) 

 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx


 - Original Message -
 From: Jing Zhou [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:23 PM
 Subject: [FRIDAY] What do you call a deer without eyes?


 No eye deer. (No idea :-)

 What do you call a dead deer without eyes?


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



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


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



Re: access application scope object in execute

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 12:24, martin hablak wrote:
 Hello,

 how can I access application scope object in Action's execute method?

The same way you would do it in a servlet.


 martin


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

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



single signon and struts

2003-07-11 Thread Ashish Kulkarni
Hi,
does anyonehave some info about single signon, i have
developed project using struts 1.1, i have about 4
as400 which can be accessed, i was planning to put in
place single signon, can anyone provide some links or
info about it

Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Declarative Exception Handling

2003-07-11 Thread Qasim Khawaja
I have defined an exception in the action mapping declaration but the 
ide I am using (eclipse) is insisting that I throw an exception or 
surround with a try catch. Am I missing something here?

Q



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


Re: Declarative Exception Handling

2003-07-11 Thread David Graham
--- Qasim Khawaja [EMAIL PROTECTED] wrote:
 I have defined an exception in the action mapping declaration but the 
 ide I am using (eclipse) is insisting that I throw an exception or 
 surround with a try catch. Am I missing something here?

Your code is potentially throwing an exception that you need to either
handle locally or throw out of the method.

David

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


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Jeff Kyser
On Friday, July 11, 2003, at 11:23  AM, Jing Zhou wrote:

No eye deer. (No idea :-)

What do you call a dead deer without eyes?


I'll take a buck shot in the dark and guess 'worse than 20/20 venison'?

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


Strange Results of Validation

2003-07-11 Thread Hunter Hillegas
I have an ActionForm that contains a Collection of JavaBeans. The ActionForm
validates some properties in the JavaBeans.

The Collection uses a LazyList.

If validation fails and I get pushed back to the entry page, I get an extra
item displayed from my nested:iterate tags.

For instance, if I have one item in the Collection, I will see that item
displayed along with another blank/empty item.

I am using request scope. For debugging purposes I printed out the size of
the Collection in my Action and it shows as a value of 1.

Any ideas where this bogus extra entry is coming from?

Thanks,
Hunter


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



RE: single signon and struts

2003-07-11 Thread Gandle, Panchasheel
I guess it just means that once user logs in , you share the same login info
wherever you go to the related sites, and if its valid , you don't have to
do the authentication.

check this site if it helps
http://www-106.ibm.com/developerworks/webservices/library/ws-single/

Thanks
Panchasheel


-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:51 PM
To: [EMAIL PROTECTED]
Subject: single signon and struts


Hi,
does anyonehave some info about single signon, i have
developed project using struts 1.1, i have about 4
as400 which can be accessed, i was planning to put in
place single signon, can anyone provide some links or
info about it

Ashish

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

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



RE: need help with nested:iterate tag -- NullPointerException

2003-07-11 Thread Sri Sankaran
This subject is addressed by Arron in an earlier message 
(http://marc.theaimsgroup.com/?l=struts-userm=103848775020380w=2).

Sri

-Original Message-
From: Wes Rood [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:15 PM
To: [EMAIL PROTECTED]
Subject: need help with nested:iterate tag -- NullPointerException

Hi

I was trying to convert a logic:iterate into a nested:iterate and I'm 
getting a NullPointerException.

First off, the Action is adding a List to the request like this:

  request.setAttribute(courseProviderList, theList);

and the JSP is successfully iterating through the objects using 
logic:iterate:

logic:iterate id=element name=courseProviderList 
type=com.CourseProvider
  bean:write name=element property=oid /
  ... etc
/logic:iterate

But when I tried nested:iterate:

nested:iterate name=courseProviderList type=com.CourseProvider
  nested:write property=oid/
/nested:iterate

I get the following exception:

java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:380)
at 
org.apache.jasper.runtime.PageContextImpl.setAttribute(PageContextImp
l.java:234)
at 
org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:
367)
at 
org.apache.struts.taglib.nested.logic.NestedIterateTag.doStartTag(Nes
tedIterateTag.java:116)
at 
org.apache.jsp.listCourseProviders_jsp._jspService(listCourseProvider
s_jsp.java:88)
... etc
 
---

I can get it to work if I define a FormBean, and use it as follows:

   ((ListCourseProvidersForm)form).setCourseProviders(theList);

with:

nested:iterate name=ListCourseProvidersForm property=courseProviders
nested:write property=oid /
.. etc
/nested:iterate

But shouldn't it also work when the collection is directly an attribute 
of the request object?

Thanks,
Wes




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


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



newbie question - setting form parameter in Javascript

2003-07-11 Thread Shyam A
Hi,
 
I have an HTML form with Submit and Cancel buttons, and a drop down list, which when 
clicked submits the form. I use Javascript to submit the form when the dropdown list 
is clicked.
I have a property called action defined in my ActionForm class that identifies the 
Submit and Cancel buttons in the HTML form. When the drop-down is clicked, I would 
like to set the value of this action property to Lookup.
 
My Javascript function is given below:
 


SCRIPT language=JavaScript
function submitForm(form)
{
form.action.value=Lookup;
form.submit();
return true;
}
#
 
and I invoke this function in my HTML form as shown below:
 
#
 html:select property=crn onclick=submitForm(this.form)
   html:option value=Test selectedTest/html:option   
   /html:select 
###
 
But, the value of the property action is not set to Lookup.
 
Any help would be greatly appreciated.
 
Thanks,
Shyam


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

[Struts-Atlanta] Next meeting

2003-07-11 Thread James Mitchell
As some of you may already be aware, the mid-month meeting (MDE Testdrive) 
scheduled for July 15th has been cancelled due to an unexpected business trip 
by our presenter David Zygmont.

However, we are still on for the JSTL presentation by Bill Siggelkow on July 
29, 2003.

I haven't updated the web site yet, but here's the vitals:

(Oh and don't forget to join us for a drink before the meeting!!!)

Presenter:
--
Bill Siggelkow is a senior technical lead with Mirant Corporation.  He has
over 18 years of applications development -- 7 of those years devoted to
Java/J2EE.  Bill pioneered the introduction of Struts at Mirant and helped
establish Struts as the preferred framework for Java-based web
applications.

Prior to joining Mirant, he served as technical architect and lead
developer for CoreCommerce -- playing a central role in the design and
development of the company's core product -- a J2EE-based
business-to-business software platform.  Bill holds a Bachelor's degree in
Industrial Engineering from Georgia Tech.


Synopsis:
-
JSTL, the JSP Standard Tag Library, provides a standard set of JSP actions
that will be useful to most any JSP-based web application.  JSTL's tag
libraries provides custom actions for conditional processing, looping,
internationalization, XML processing, and database access.  JSTL is
designed to relieve the JSP author from resorting to hard-to-maintain JSP 
scripting elements and embedded Java.  In addition, JSTL introduces a 
powerful new expression language known as EL.  The Struts-EL tag library 
provides an implementation of the Struts tags that support this new language.  
Bill will be providing a detailed overview of both JSTL and Struts-EL.


-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



RE: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Gandle, Panchasheel
Eye Opener

for not to look at such questions 


Panchasheel


-Original Message-
From: Jeff Kyser [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 1:03 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] What do you call a deer without eyes?


On Friday, July 11, 2003, at 11:23  AM, Jing Zhou wrote:

 No eye deer. (No idea :-)

 What do you call a dead deer without eyes?


I'll take a buck shot in the dark and guess 'worse than 20/20 venison'?


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

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



RE: retention of the ActionForm values for display only fields

2003-07-11 Thread Brahme, Supriya \(ENJ\)
Thanks Gin.

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:29 PM
To: 'Struts Users Mailing List'
Subject: RE: retention of the ActionForm values for display only fields


Just use html:hidden property=blah write=true
that will take care of retaining them as well as display them for you so
that you dont need another html:write -Tim

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 10:56 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Thanks Srini.That means the ActionForm has to be in session scope to
achieve this. Right?

-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:49 AM
To: Struts Users Mailing List
Subject: RE: retention of the ActionForm values for display only fields


Since the name fields are non-form fields they are not submitted and
hence are not part of the request.  Therefore, when validation fails,
there is nothing to send back to the browser.

Sri

-Original Message-
From: Brahme, Supriya (ENJ) [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 10:23 AM
To: [EMAIL PROTECTED]
Subject: retention of the ActionForm values for display only fields

Hi all
I have a scenario where I am displaying user profile details on the page
using UserProfileForm which extends ValidateForm. I am displaying all
the personal details like address, phone, credit card etc as editable
fields using html: text tag. While only user name appears as display
only field. The problem comes when user submits erroneous data  I have
server side validation displaying error message (javascript is turned
off here). When this happens, I can see that , if user has modified 6 of
the form text fields , assuming 1 is wrong, all are retained on the
form. i.e including erroneous value. But I lose the name. I see
blanks(null) for the first name  last name fields since they are
non-text fields, ie. used html:write tag. Can anyone explain the way to
retain these values without changing scope to session? I have this
ActionForm in request scope  it works fine except this issue. Thanks
Supriya
*** Confidentiality Notice ***
This email, its electronic document attachments, and the contents of its
website linkages may contain confidential health information.  This
information is intended solely for use by the individual or entity to
whom it is addressed.  If you have received this information in error,
please notify the sender immediately and arrange for the prompt
destruction of the material and any accompanying attachments.



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

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



Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread James Mitchell

You will need to create a hidden field named action, with a value of 
Lookup:

html:hidden property=action value=Lookup/

My question to you iswhy Lookup?  What does that have to do with your 
form?


Here's a sample:

SCRIPT language=JavaScript
function submitForm(form) {
 form.action.value=Lookup;
 form.submit();
 return true;
}
/SCRIPT

form name=frm action=? method=GET
 input type=hidden name=action value=
 select name=crn onclick=submitForm(this.form)
   option value=Test selectedTest/option   
   option value=Test2Test2/option   
 /select
/form


On Friday 11 July 2003 14:15, Shyam A wrote:
 Hi,

 I have an HTML form with Submit and Cancel buttons, and a drop down list,
 which when clicked submits the form. I use Javascript to submit the form
 when the dropdown list is clicked. I have a property called action
 defined in my ActionForm class that identifies the Submit and Cancel
 buttons in the HTML form. When the drop-down is clicked, I would like to
 set the value of this action property to Lookup.

 My Javascript function is given below:

 

 SCRIPT language=JavaScript
 function submitForm(form)
 {
 form.action.value=Lookup;
 form.submit();
 return true;
 }
 #

 and I invoke this function in my HTML form as shown below:

 #
  html:select property=crn onclick=submitForm(this.form)
html:option value=Test selectedTest/html:option
/html:select
 ###

 But, the value of the property action is not set to Lookup.

 Any help would be greatly appreciated.

 Thanks,
 Shyam


 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



Struts 1.1 Doc question

2003-07-11 Thread Goel Shalab
Hello Everyone

I was wondering if there was a way for downloading the HTML as a package 
for User and Developer Guides for Struts 1.1.
Also, is there a plan for having these guides in alternate printable format 
-- as a single document -- like Acrobat PDF
or Microsoft Word.

Appreciate your response.

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


Re: Struts 1.1 Doc question

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 14:40, Goel Shalab wrote:
 Hello Everyone

 I was wondering if there was a way for downloading the HTML as a package
 for User and Developer Guides for Struts 1.1.

Yes, the binary comes with struts-documentation.war, which is the complete 
documentation that used for the Struts web site.

 Also, is there a plan for having these guides in alternate printable format
 -- as a single document -- like Acrobat PDF
 or Microsoft Word.

Something is in the works for PDF, but I'm not sure of the status.  If you 
need it for MS Word, that's not going to happen any time soon.


 Appreciate your response.

 Regards
 Shalab


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

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



RE: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Mark Galbreath
deer doesn't have is

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:43 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] What do you call a deer without eyes?


Dinner

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:41 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] What do you call a deer without eyes?


Brian ?


On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:

 Blinded deer  (Blind dead deer) 

 --
 James Mitchell
 Software Developer/Struts Evangelist http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx


 - Original Message -
 From: Jing Zhou [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:23 PM
 Subject: [FRIDAY] What do you call a deer without eyes?


 No eye deer. (No idea :-)

 What do you call a dead deer without eyes?


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



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


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




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



Re: Struts 1.1 Doc question

2003-07-11 Thread Ted Husted
James Mitchell wrote:
Something is in the works for PDF, but I'm not sure of the status.  If you 
need it for MS Word, that's not going to happen any time soon.
It's all in XML, so something that can do XML to PDF and be called from 
Ant could be made part of the build process.

-Ted.

--
Ted Husted,
  Junit in Action  - http://www.manning.com/massol/,
  Struts in Action - http://husted.com/struts/book.html,
  JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.


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


RE: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Bailey, Shane C.
What do you call a fish with two knees?



A two knee fish!   (Tunafish!)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] What do you call a deer without eyes?

deer doesn't have is

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 12:43 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] What do you call a deer without eyes?


Dinner

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:41 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] What do you call a deer without eyes?


Brian ?


On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:

 Blinded deer  (Blind dead deer) 

 --
 James Mitchell
 Software Developer/Struts Evangelist http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx


 - Original Message -
 From: Jing Zhou [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:23 PM
 Subject: [FRIDAY] What do you call a deer without eyes?


 No eye deer. (No idea :-)

 What do you call a dead deer without eyes?


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



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


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




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

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



Re: Struts 1.1 Doc question

2003-07-11 Thread Goel Shalab
Hello Ted,

If it can become part of the build process.. it will be great.. and highly 
appreciated.

-Shalab

At 02:51 PM 7/11/2003 -0400, Ted Husted wrote:
James Mitchell wrote:
Something is in the works for PDF, but I'm not sure of the status.  If 
you need it for MS Word, that's not going to happen any time soon.
It's all in XML, so something that can do XML to PDF and be called from 
Ant could be made part of the build process.

-Ted.

--
Ted Husted,
  Junit in Action  - http://www.manning.com/massol/,
  Struts in Action - http://husted.com/struts/book.html,
  JSP Site Design  - http://www.amazon.com/exec/obidos/ISBN=1861005512.


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


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


Re: Struts 1.1 Doc question

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 14:51, Ted Husted wrote:
 James Mitchell wrote:
  Something is in the works for PDF, but I'm not sure of the status.  If
  you need it for MS Word, that's not going to happen any time soon.

 It's all in XML, so something that can do XML to PDF and be called from
 Ant could be made part of the build process.

Yes, and I have had that in my todo list for quite some time.  IIRC, someone 
mentioned that they were working on this, but that could be totally wrong.


 -Ted.

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread James Mitchell
On Friday 11 July 2003 14:43, Bailey, Shane C. wrote:
 What do you call a fish with two knees?



 A two knee fish!   (Tunafish!)

Oh my God, I can't believe I actually laughed at that .(smack 
forehead) :P


 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 2:49 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] What do you call a deer without eyes?

 deer doesn't have is

 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:43 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] What do you call a deer without eyes?


 Dinner

 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:41 PM
 To: Struts Users Mailing List
 Subject: Re: [FRIDAY] What do you call a deer without eyes?


 Brian ?

 On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:
  Blinded deer  (Blind dead deer) 
 
  --
  James Mitchell
  Software Developer/Struts Evangelist http://www.struts-atlanta.org
  678-910-8017
  AIM:jmitchtx
 
 
  - Original Message -
  From: Jing Zhou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 12:23 PM
  Subject: [FRIDAY] What do you call a deer without eyes?
 
 
  No eye deer. (No idea :-)
 
  What do you call a dead deer without eyes?
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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


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




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

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

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Vinay
knee fish
- Original Message - 
From: Bailey, Shane C. [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:43 PM
Subject: RE: [FRIDAY] What do you call a deer without eyes?


 What do you call a fish with two knees?
 
 
 
 A two knee fish!   (Tunafish!)
 
 -Original Message-
 From: Mark Galbreath [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2003 2:49 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] What do you call a deer without eyes?
 
 deer doesn't have is
 
 -Original Message-
 From: Chen, Gin [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 11, 2003 12:43 PM
 To: 'Struts Users Mailing List'
 Subject: RE: [FRIDAY] What do you call a deer without eyes?
 
 
 Dinner
 
 -Original Message-
 From: Mark Lowe [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 12:41 PM
 To: Struts Users Mailing List
 Subject: Re: [FRIDAY] What do you call a deer without eyes?
 
 
 Brian ?
 
 
 On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:
 
  Blinded deer  (Blind dead deer) 
 
  --
  James Mitchell
  Software Developer/Struts Evangelist http://www.struts-atlanta.org
  678-910-8017
  AIM:jmitchtx
 
 
  - Original Message -
  From: Jing Zhou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 12:23 PM
  Subject: [FRIDAY] What do you call a deer without eyes?
 
 
  No eye deer. (No idea :-)
 
  What do you call a dead deer without eyes?
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Mark Lowe
whats got 2 legs and bleeds a lot?

On Friday, July 11, 2003, at 07:43 PM, Bailey, Shane C. wrote:

What do you call a fish with two knees?



A two knee fish!   (Tunafish!)

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:49 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] What do you call a deer without eyes?
deer doesn't have is

-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:43 PM
To: 'Struts Users Mailing List'
Subject: RE: [FRIDAY] What do you call a deer without eyes?
Dinner

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:41 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] What do you call a deer without eyes?
Brian ?

On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:

Blinded deer  (Blind dead deer) 

--
James Mitchell
Software Developer/Struts Evangelist http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx
- Original Message -
From: Jing Zhou [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 12:23 PM
Subject: [FRIDAY] What do you call a deer without eyes?
No eye deer. (No idea :-)

What do you call a dead deer without eyes?

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


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


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


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


Best Way to Combine Validated Input and Pre-Population?

2003-07-11 Thread Hunter Hillegas
I have an ActionForm that contains a Collection of JavaBeans. The ActionForm
validates some properties in the JavaBeans in its validate() method.

The Collection uses a LazyList.

There is an Action that pre-populates *some* of the form fields from a
database. Other fields are empty and need to be filled in.

If validation fails and I get pushed back to the entry page I now see a page
that contains values from *two* beans from the Collection. One doesn't
contain the pre-populated data but does contain the data entered on the form
prior to validation. The other does contain pre-populated data but doesn't
contain anything input from the last session... I need these to be combined
into one entry as they are when they are input.

For instance, if I have one item in the Collection, I will see that item
displayed with only the pre-populated info along with another blank/empty
item that contains the data entered in the first form, pre-validation.

How can I get this going so that when I return from validation some fields
are pre-populated and some are from entry from the previous form. There
isn't any overlap (i.e. use pre-populated if no data, otherwise use form
entry).

Thanks,
Hunter



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



Re: newbie question - setting form parameter in Javascript

2003-07-11 Thread Shyam A
James,
 
Thanks for your mail. I guess I need to elaborate a little bit. My HTML form can be 
submitted in 2ways.
1. Clicking the Submit button.
2. Clicking the drop-down
 
Clicking the drop-down triggers a different action than clicking the Submit button.
Selecting a value in the drop-down would submit the form and populate some of the 
other fields in the form. This is done before the Submit button is clicked. So, I 
need to distinguish the action of clicking the drop-down from clicking the Submit 
button and I called it Lookup.
 
Both actions would be identified with a single property in the ActionForm class - 
action.
 
eg:
 html:submit property=action value=Submit/ 
 
I would like to set this action property value to Lookup on clicking the drop-down 
using Javascript. I guess a hidden field would not serve the purpose as I already have 
action property defined for the Submit button.
 
Look forward to your help/suggestions.
 
Thanks,
Shyam

James Mitchell [EMAIL PROTECTED] wrote:

You will need to create a hidden field named action, with a value of 
Lookup:



My question to you iswhy Lookup? What does that have to do with your 
form?


Here's a sample:


function submitForm(form) {
 form.action.value=Lookup;
 form.submit();
 return true;
}



 [input] 
 Test Test2



On Friday 11 July 2003 14:15, Shyam A wrote:
 Hi,

 I have an HTML form with Submit and Cancel buttons, and a drop down list,
 which when clicked submits the form. I use Javascript to submit the form
 when the dropdown list is clicked. I have a property called action
 defined in my ActionForm class that identifies the Submit and Cancel
 buttons in the HTML form. When the drop-down is clicked, I would like to
 set the value of this action property to Lookup.

 My Javascript function is given below:

 


 function submitForm(form)
 {
 form.action.value=Lookup;
 form.submit();
 return true;
 }
 #

 and I invoke this function in my HTML form as shown below:

 #
  
Test

 ###

 But, the value of the property action is not set to Lookup.

 Any help would be greatly appreciated.

 Thanks,
 Shyam


 -
 Do you Yahoo!?
 SBC Yahoo! DSL - Now only $29.95 per month!

-- 
James Mitchell
Software Developer/Struts Evangelist
http://www.struts-atlanta.org
678-910-8017
AIM:jmitchtx



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

 


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Xdoclet

2003-07-11 Thread Saman Ghodsian
Hi everyone,
 Just starting with struts, I'm looking for xdoclet for 
 struts, where I can put attributes on my model source code 
 and it will generate all the Action, form, etc and xml files 
 for me. Any ideas? Pointers appreciated..

Saman Ghodsian
CTO
Middle Earth Technologies Ltd.
www.metca.com
Cell (604)-839-7791
Vancouver, BC
Canada




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



Re: [FRIDAY] What do you call a deer without eyes?

2003-07-11 Thread Vinay
Is the blood red 

- Original Message - 
From: Mark Lowe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, July 11, 2003 2:58 PM
Subject: Re: [FRIDAY] What do you call a deer without eyes?


 whats got 2 legs and bleeds a lot?
 
 
 On Friday, July 11, 2003, at 07:43 PM, Bailey, Shane C. wrote:
 
  What do you call a fish with two knees?
 
 
 
  A two knee fish!   (Tunafish!)
 
  -Original Message-
  From: Mark Galbreath [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 2:49 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [FRIDAY] What do you call a deer without eyes?
 
  deer doesn't have is
 
  -Original Message-
  From: Chen, Gin [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 12:43 PM
  To: 'Struts Users Mailing List'
  Subject: RE: [FRIDAY] What do you call a deer without eyes?
 
 
  Dinner
 
  -Original Message-
  From: Mark Lowe [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 12:41 PM
  To: Struts Users Mailing List
  Subject: Re: [FRIDAY] What do you call a deer without eyes?
 
 
  Brian ?
 
 
  On Friday, July 11, 2003, at 05:39 PM, James Mitchell wrote:
 
  Blinded deer  (Blind dead deer) 
 
  --
  James Mitchell
  Software Developer/Struts Evangelist http://www.struts-atlanta.org
  678-910-8017
  AIM:jmitchtx
 
 
  - Original Message -
  From: Jing Zhou [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, July 11, 2003 12:23 PM
  Subject: [FRIDAY] What do you call a deer without eyes?
 
 
  No eye deer. (No idea :-)
 
  What do you call a dead deer without eyes?
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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



Re: Xdoclet

2003-07-11 Thread Erik Price


Saman Ghodsian wrote:
Hi everyone,
 Just starting with struts, I'm looking for xdoclet for 
 struts, where I can put attributes on my model source code 
 and it will generate all the Action, form, etc and xml files 
 for me. Any ideas? Pointers appreciated..
http://xdoclet.sourceforge.net/tags/apache-tags.html



Erik

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


RE: Xdoclet

2003-07-11 Thread Alex Shneyderman
They are subtasks of ejbdoclet (strutsform) and webdoclet's 
strutsconfigxml and strutsvalidationxml

you can find appropriate tag descriptions in the docs for those 
modules.

 -Original Message-
 From: Saman Ghodsian [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 11, 2003 3:02 PM
 To: [EMAIL PROTECTED]
 Subject: Xdoclet
 
 Hi everyone,
  Just starting with struts, I'm looking for xdoclet for
  struts, where I can put attributes on my model source code
  and it will generate all the Action, form, etc and xml files
  for me. Any ideas? Pointers appreciated..
 
 Saman Ghodsian
 CTO
 Middle Earth Technologies Ltd.
 www.metca.com
 Cell (604)-839-7791
 Vancouver, BC
 Canada
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



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



  1   2   >