Re: [MVC-Programmers] Populating Options in ActionForm

2003-07-11 Thread Vic Cekvenich
Best practice is to unit test!
The FormBean should not know how the data gets there. OptionCollection 
requires a Collection returned. So you need to unit test your form bean 
for returning a collection.
Ex:
public Collection getOptions() {
...
}

Qasim Khawaja wrote:

I am trying to populate three drop down selects with data from the 
database (well actually using a DAO class and hibernate). The DAO 
class throw a hibernate exception. I don't obviously want there to 
make the ActionForm aware of hibernate.

What is the best way to populate the lists in the ActionForm?

Thanks Q



--
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
___
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers


[MVC-Programmers] 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). Resin 3 and JAMon are new features added.

.V





RE: [MVC-Programmers] new newsgroups:Lab1

2003-07-11 Thread Peyathevar, Santhi {PBG}
Yes. I realised that the classes folder was getting cleaned up whenever i
built.

I ended up copying the properties dir. manually to classes dir.
from a temp. location. 

Any .properties from src dir gets copied to classes dir?
(eclipse does that? We usually keep the property files in WEB-INF and use
that path in the config files)

* Received the class notes/CD. Thank you very much.

***
The report pdf (tasks.pdf) had only the template (The database column
names).
Not the data from the database? 

Will try once again tonight. Please let me know if it is an obvious mistake.

***

Santhi




-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 11:32 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [MVC-Programmers] new newsgroups:Lab1


Glad you sollved it. This question has come up before in a private class.

Also do not modify classes folder. Modify file in source, so when you 
compile it replaces classes content.

.V


  

Peyathevar, Santhi {PBG} wrote:

All: 

Problem: My taskEdit.jsp is not picking up the message from property file

1.taskEdit.jsp:
fmt:message key=pepsi.task.name/

2.struts.xml:
message-resourcesparameter=properties/messages_en-US/

3.messages.properties, messages_en-US.properties exist in
WEB-INF\classes\properties

4.property entries are in both .property files

What am i missing? In step 2, tried:
parameter=WEB-INF/classes/properties/messages_en-US

Santhi
  


-- 
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

___
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers
___
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers


Re: [MVC-Programmers] new newsgroups:Lab1

2003-07-11 Thread Vic Cekvenich






Peyathevar, Santhi {PBG} wrote:

  Yes. I realised that the classes folder was getting cleaned up whenever i
built.

I ended up copying the properties dir. manually to classes dir.
from a temp. location. 

Any .properties from "src" dir gets copied to classes dir?

Everything!

  
(eclipse does that? We usually keep the property files in WEB-INF and use
that path in the config files)

* Received the class notes/CD. Thank you very much.

You paid $ for the class, so I said... hey, let me send.

  

***
The report pdf (tasks.pdf) had only the template (The database column
names).

The template is just design in XML. Then it compiles the template to
Jasper. When it runs it fills with data so PDF should have data in it.
FAQ: Make sure the data fields in Jasper are large enough for text to
fit and play with XML. More info on JasperReports site.

  
Not the data from the database? 

Will try once again tonight. Please let me know if it is an obvious mistake.

***

Santhi




-Original Message-
From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 11, 2003 11:32 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [MVC-Programmers] new newsgroups:Lab1


Glad you sollved it. This question has come up before in a private class.

Also do not modify classes folder. Modify file in source, so when you 
compile it replaces classes content.

..V


  

Peyathevar, Santhi {PBG} wrote:

  
  
All: 

Problem: My taskEdit.jsp is not picking up the message from property file

1.taskEdit.jsp:
fmt:message key="pepsi.task.name"/

2.struts.xml:
message-resourcesparameter="properties/messages_en-US"/

3.messages.properties, messages_en-US.properties exist in
WEB-INF\classes\properties

4.property entries are in both .property files

What am i missing? In step 2, tried:
parameter="WEB-INF/classes/properties/messages_en-US"

Santhi
 


  
  
  


-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced a href =""Struts Training/a and project recovery in North East.
Open Source a href =""Content Management/a  basicPortal sofware
Best practicea href =""Struts Support/a v.1.1 helper ScafflodingXPress





RE: [MVC-Programmers] Ann: new release of bP

2003-07-11 Thread Cruz, Edward J.










Where can
I get the source for Basic Portal?
Is it available anywhere? 



Jamie
Cruz

Software Engineering 





-Original
Message-
From: Vic Cekvenich
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 11:58
AM
To: [EMAIL PROTECTED]
Subject: [MVC-Programmers] Ann:
new release of bP



A new build of bP Jasic v9.7_3 was released. bP
is a Struts CMS app, that requires a DB to run.








Re: [MVC-Programmers] Ann: new release of bP

2003-07-11 Thread Vic Cekvenich




Sorry I should make it clear.
www.baseBeans.com, click downloads and you will see the latest version
to download.

(also bP is open source!)

Cruz, Edward J. wrote:

  
  
  
  
  

  
  
  
  Where can
I get the source for Basic Portal?
  Is it available anywhere? 
  
  Jamie
Cruz
  Software
Engineering 
  
  
  -Original
Message-
  From: Vic Cekvenich
[mailto:[EMAIL PROTECTED]]
  Sent: Friday, July 11,
2003 11:58
AM
  To:
[EMAIL PROTECTED]
  Subject:
[MVC-Programmers] Ann:
new release of bP
  
  A
new build of bP Jasic v9.7_3 was released. bP
is a Struts CMS app, that requires a DB to run.
  


-- 
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA

Advanced a href =""Struts Training/a and project recovery in North East.
Open Source a href =""Content Management/a  basicPortal sofware
Best practicea href =""Struts Support/a v.1.1 helper ScafflodingXPress