studs-user Mailing List for Studs MVC Framework+ (Page 8)
Status: Beta
Brought to you by:
mojavelinux
You can subscribe to this list here.
| 2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(4) |
Oct
(5) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
(13) |
May
(1) |
Jun
(12) |
Jul
(36) |
Aug
(4) |
Sep
(3) |
Oct
|
Nov
(5) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(13) |
Apr
(1) |
May
(28) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
(9) |
Nov
(14) |
Dec
(8) |
| 2007 |
Jan
(2) |
Feb
(9) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(2) |
Dec
|
| 2009 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Dan A. <dan...@gm...> - 2004-10-08 18:36:35
|
Okay, on to your first question. Yes, yes, yes! Studs is ready. To give you an idea, I have been working on Studs since March 2003 while simultaneously developing two applications using it. They work great. The following is the justification for the judgement that Studs is ready: - Studs does a lot less work than most frameworks on each page load because it serializes the application object and therefore only parses the xml files when necessary - Phase pages are compiled before being executed using the same structure as JSP pages, an already proven model, and thus saves a tremendous amount of work each time by not having to interpret tags each time - I have been using and improving the libraries in the project for over a year and have ironed out just about every major bug on my list, shaking out a handful of others in the process I say go for it. The only shortcoming you will encounter is that some of the studs html tags haven't been finished yet. But that is next on my list and should be done within a few weeks. I would love to see more people using Studs so that I get an idea of where the project needs to go. Now that Struts has been more or less ported, let's see where we can take it next. Dan > Maybe it would help if you make available your php.ini > file, or a copy of your phpinfo() output. Then when we > have strange problems, we could compare our > configuration with yours to look for clues. Good idea, I am looking into how to incorporate this into the docs. > > Thanks, > David Smith > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > studs-user mailing list > stu...@li... > https://lists.sourceforge.net/lists/listinfo/studs-user > -- Open Source Advocacy http://www.mojavelinux.com |
|
From: David S. <dav...@ya...> - 2004-10-08 18:13:26
|
Thanks for the quick response, Dan! What do you think about my first question: Do I dare start a little project at work under Studs? (I won't be mad at you if you say yes, and then it doesn't work out. I'm just looking for an opinion.) AcceptPathInfo is the directive in .htaccess that requires apache 2.0.30 or later. >I am not to sure about safe mode...frankly I hate it >because it just cripples PHP. This is really more of >a limitation of the language that the environment is >so unpredictable. I will take any advice I >can get here. Maybe it would help if you make available your php.ini file, or a copy of your phpinfo() output. Then when we have strange problems, we could compare our configuration with yours to look for clues. Thanks, David Smith __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail |
|
From: Dan A. <dan...@gm...> - 2004-10-08 06:11:59
|
> The file named htaccess in the top level directory > should be renamed to .htaccess (starts with a dot). Correct. I leave it as htaccess in the release (as opposed to with the dot) so that new users "see" it. > The .htaccess file includes a directive that requires > Apache 2.0.__. I noticed a previous post just > commented it out, but I upgraded. Yes, I need to have an htaccess-2.0 and htaccess-1.3 version...also I need a version for those running suPHP. Could you detail what directive was invalid for apache 1.3? > PHP 5 has some new keywords that conflict with some > Studs code (as of ver. 0.9.4), such as 'clone', so I > went back to PHP 4.3.4. Ah, I am going to need to test this. To begin, Studs was coded for PHP4, but obviously it will be migrated to PHP5, so I better start safeguarding now. > PHP safe mode caused problems, unless maybe you change > ownership of all scripts to the user that httpd runs > as. I am not to sure about safe mode...frankly I hate it because it just cripples PHP. This is really more of a limitation of the language that the environment is so unpredictable. I will take any advice I can get here. Dan |
|
From: Dan A. <dan...@gm...> - 2004-10-08 04:28:07
|
> I've been trying to get the demos - stratus-classic > and studs-basic - working, but when I try to view > them, the text sent to the browser has all the html > tags stripped out. When I view the html source in the > browser, I can see that it used spaces or tabs to > format the output, as if it was meant to be shown in a > terminal window. Does anyone know why that would be? Oh my word!! I finally see what is causing this problem!! What a blatently obvious bug. I guess a few days off always helps to catch those strange bugs. I am implementing a fix right now. I guess I just left in some old code and it finally showed its ugly face. This is good news, because it was one of those errors that some people reported, but not others, and I was worried it was something complicated. As it turns out, it is just a reversed boolean statement! I will reply to the other comments in another message. Dan |
|
From: David S. <dav...@ya...> - 2004-10-07 22:59:13
|
I am interested in Studs since it seems to be the most literal PHP port of Jakarta Struts. I am wondering whether Studs is ready to be used in a little project at work, or is it more experimental right now? I've been trying to get the demos - stratus-classic and studs-basic - working, but when I try to view them, the text sent to the browser has all the html tags stripped out. When I view the html source in the browser, I can see that it used spaces or tabs to format the output, as if it was meant to be shown in a terminal window. Does anyone know why that would be? Here are a few things I learned while installing: The file named htaccess in the top level directory should be renamed to .htaccess (starts with a dot). The .htaccess file includes a directive that requires Apache 2.0.__. I noticed a previous post just commented it out, but I upgraded. PHP 5 has some new keywords that conflict with some Studs code (as of ver. 0.9.4), such as 'clone', so I went back to PHP 4.3.4. PHP safe mode caused problems, unless maybe you change ownership of all scripts to the user that httpd runs as. David Smith _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com |
|
From: Dan A. <dan...@gm...> - 2004-09-14 06:35:53
|
This release was a long time coming, but I can assure you that I needed every minute. I discovered some pretty serious flaws in the framework that somehow stayed under the radar until now. The most crucial problem was that Stratus was not reading the same file it was writing when storing the ServletContext. This meant that every page request would run through the entire initialization of the container, including reading web.xml and struts-config.xml (when using Studs). The change log is pretty impressive. Definitely go give this release a try. Additionally, apidocs are now available at http://studs.sf.net/apidoc, which will eventually be updated with every release. Enjoy! -- Open Source Advocacy http://www.mojavelinux.com |
|
From: Maarten S. <mgs...@wa...> - 2004-09-06 20:32:09
|
Dan,
> Good luck on solving the other issues, though it appears that the Zend Optimizer
> was actually performing sub-optimally ;)
Perhaps you should add the fact that Zend Optimizer can screw up Studs
to the release notes? Or else this message could act as a little warning :)
Maarten
--
"The greatest mistake you can make in life
is to be continually fearing you will make one."
- Elbert Hubbard
|
|
From: Maarten S. <mgs...@wa...> - 2004-09-06 20:29:34
|
Hi Dan,
> I got Studs 0.9.2 to run on your server fine (though I know of a few small
> outstanding glishes, likely to be the same reference bug error). Go give it a
> whirl. I wasn't about to use .htaccess though as it would always give me an
> error page which I could not read ;) I am interested how you have that
> configured on your server.
The error was problem a Dutch version of the Internal Server Error :)
My current (Apache 1.3.x) .htaccess for Studs looks something like this:
<FilesMatch "^.*$">
deny from all
</FilesMatch>
# /bla/ is the same as /bla/index.php, so allow it as well
<FilesMatch "$">
allow from all
</FilesMatch>
<FilesMatch "index\.php$">
allow from all
</FilesMatch>
<FilesMatch "^.*\.(gif|jpeg|jpg|png|css|js|pdf|doc)$">
allow from all
</FilesMatch>
# Not necessary for Apache 1.3.x
#AcceptPathInfo On
php_value error_reporting 2047
php_value register_globals 0
php_value magic_quotes_gpc 0
php_value include_path WEB-INF/lib:WEB-INF/classes
php_value html_errors 0
php_value allow_call_time_pass_reference 1
That should help getting rid of the Internal Server Error!
Maarten
P.S. My apologies for taking so long to reply!
--
"The greatest mistake you can make in life
is to be continually fearing you will make one."
- Elbert Hubbard
|
|
From: Maarten S. <mgs...@wa...> - 2004-09-06 20:25:25
|
Hi!
I've been trying to implement (or port) some samples from the book
'Professional Jakarta Struts' by James Goodwill and Richard Hightower.
Well, I'm stuck in Chapter 3, at the section 'Creating Your First Struts
Application'. Sounds good!
Anyway, the problem I'm having can be viewed at the following URL:
http://www.watmoetjeanders.nl/dev/
Try entering some stock symbol (try 'SUNW' for an actual result), and
it'll show you the current price. Now, go back and try again (or just
refresh the page).
"Fatal error: Unknown(): The script tried to execute a method or
access a property of an incomplete object. Please ensure that the
class definition lookupform of the object you are trying to operate
on was loaded _before_ the session was started in
/.../RequestProcessor.php on line 290"
As long as the session exists this keeps happening.
The LookupForm class extends the ActionForm class. The source and
configuration (including a modified String and HtmlFormTag class) can be
found at:
http://www.watmoetjeanders.nl/dev/misc/
Source files have been renamed to .txt to prevent parsing.
Any suggestions how to fix this? How can I 'import' a class before the
session starts (except by hacking index.php)? IMHO, this should be done
automatically by Studs :)
Thanks,
Maarten
--
"The greatest mistake you can make in life
is to be continually fearing you will make one."
- Elbert Hubbard
|
|
From: Dan A. <dan...@gm...> - 2004-08-30 06:14:59
|
Those of you trying out stratus-classic-0.9.3, please note that the archive was created without the stratus-classic/WEB-INF/work directory. In order to run the examples, you will need to create this directory and ensure that it is writable by the webserver (777 should take care of that). If you try to run the examples without this directory you will get a fwrite() error in PHP. The forementioned problem has been fixed in CVS. Dan -- Open Source Advocacy http://www.mojavelinux.com |
|
From: Dan A. <dan...@gm...> - 2004-08-29 06:32:22
|
Things are certainly moving along, though I feel a bit like I am talking to myself. Perhaps someone will actually start writing back one of these days. After testing Studs on various computers, I discovered a pretty severe reference bug in the getAttribute method of PageContext. In short, this meant that using EL expressions in your PSP page would lead to random output. When PHP is expecting an object to be passed by reference and it doesn't get one, CRAZY things happen. That bug is now behind us. Studs is actually running quite well on the various servers I have tried. There are still a few more critical features that need to be added that have to do with the caching of the ServletContext. I did manage to upgrade the logging such that log categories can now be used to turn on/off logging for whole package hierarchies. Keep your eyes peeled for a few more releases coming down the pike! Until then, go grab the latest release and test it out! Enjoy! Dan -- Open Source Advocacy http://www.mojavelinux.com |
|
From: Dan A. <dan...@gm...> - 2004-08-25 06:39:56
|
I finally managed to get this release out the door. I am very interested to find out how much trouble people are having installing Studs on their systems. Some strange bugs have been panned out so now those of you who had some trouble, this might be the release for you. There are still a few issues. If you run the stratus-classic examples, you may find the Iteration tag not working quite as expected on some systems. I have a strong feeling I might have found a reference bug in PHP, because the code is operating differently on different systems. More on that later... Without furthur rambling, go grab it! -- Open Source Advocacy http://www.mojavelinux.com |
|
From: Dan A. <dan...@gm...> - 2004-08-18 15:48:26
|
Welcome, everyone, to the Studs user list! This list primarily covers developing applications with the Studs framework. Naturally, there will be bug reports, feature requests and hangups that will show up here, but they should be quickly moved over the the development list once they are verified. Even though users of Studs don't necessarily work on the source code behind the framework, everyone is encourages to use the Bug and Feature tracking system on sourceforge. Every person who visits this project plays a role in its success. On that note, go try out Studs today! There are several example applications that demonstrate some of the core features, with more to come. If you are already using Studs and have a success/horror story, please share that on this list as well. Good luck! Dan |