Joe Ess

Bartender
+ Follow
since Oct 29, 2001
Joe likes ...
Linux Mac OS X Windows
Forum Moderator
Joe Ess currently moderates these forums:
Cows and Likes
Cows
Total received
12
In last 30 days
0
Total given
0
Likes
Total received
320
Received in last 30 days
2
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joe Ess

Personally, I use Python as a sort of beefed-up scripting language.  I use Bash for the simple stuff.  Python for more involved tasks, then Java for anything that needs an enterprise infrastructure (database, web server, etc).  That's not to say that Python can't do those things, it's just that I prefer to use Java in that realm.  There's plenty of other opinions: See here
3 days ago

Randy Maddocks wrote:
Your link didn't work, 



Just like the Timex Sinclair!    (seriously, they had a terrible reputation)
1 week ago

Randy Maddocks wrote:I will never forget the thrill of running my first program on a TRS-80 (loved that machine). To see my output appear on the screen when I first got it was as exciting as anything...



I used to go to school an hour early to play on the TRS-80 that my school had purchased.  I don't remember getting very far learning Basic on my own.  The first computer I purchased was a generic beige box 386-25.  Anybody remember endlessly browsing inches-thick issues of Computer Shopper to find that special deal?. 
1 week ago
Tim posted a good overview of how Struts works in general (your 2nd question).  I'll fill in some of the blanks.

Ted Modler wrote:
1. What does this "package" block do at a whole? It looks to me that it's dividing/branching something into a separate module.


A "package" in Struts lets you split up the configuration (and possibly declare a distinct web context "namespace").  See here

Ted Modler wrote:
3. There is NO interceptors coming into play in this scenario, right?


No.  There are interceptors declared in the default Struts configuration.  The package declaration in your example imports these settings (among others) by extending "struts-default".  See here
1 week ago

Ted Modler wrote:why do I need to go DEEP into the HTML/CSS? Isn't that the job of front-end people?


Users like front-ends with lots of bells and whistles and often, the "front end" guy is the guy in the mirror.
1 week ago
Hello.  Can you describe exactly what it is you are trying to do?  See this post for some tips on how to ask a good question.  The better question you ask, the more help we can give.
1 week ago
Hello.  That's a really hard question to answer not knowing what you know, what you don't know and what you will need to know to overcome obstacles in the future.
There is a page in the Struts documentation, Key Technologies Primer, that covers some of the building blocks of Struts as well as other technologies common to web applications.  Go through that list and see what you know and what you can work on.  At a bare minimum, I'd recommend learning JavaScript/JQuery for the front end (and going deep with HTML/CSS if you haven't already) and Hibernate for the back end. 
1 week ago
Someone I know was wearing his StuyPulse tee shirt just yesterday.  It's in regular rotation!  
2 weeks ago

janakiram kota wrote:
Please let me know if i have missed any Jar's so that i can add to lib folder.



I don't see any obvious omissions.  Struts 1 and 2 supposedly can play nice together (see here) but I've never tried it.
Is the URL you are trying to load the JSP or the action?  If you try to load the JSP directly, that will bypass the Struts filter and cause the error you are having.
1 month ago

janakiram kota wrote:

Joe Ess wrote:The error message should cover it:

E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[/Login.jsp]: The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location] 



Do you have StrutsPrepareAndExecuteFilter in your web.xml?


Hello Joe,

Yes i have configured org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter in my web.xml file. Is this the problem if so what i need to configure as dispatcher in my web.xml file can you please advice.

Thanks and Regards,
Janakiram.



If I had to guess, I'd say you are missing the Struts JAR file or one of its dependencies.  What's in WEB-INF/lib?
1 month ago
The error message should cover it:

E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[/Login.jsp]: The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location] 



Do you have StrutsPrepareAndExecuteFilter in your web.xml?
1 month ago
if you can at all avoid it, do not use Struts 1.x.  The last update to the framework was in 2006 and it is no longer maintained.  See here.
That said, I believe the error "Cannot find message resources" indicates that Struts cannot find the message resource bundle.  See this example for how to fix that issue.
1 month ago
While we are on the subject of programmer's humor, my brother in law told me about the TV series Halt and Catch Fire, which reminded me of the old list of proposed opcodes.  Those were the days...
1 month ago
You should have an action that prepares the form.  Set the default value for the field in that action.
1 month ago
I don't think an if statement can have more than one else, which is the way you have coded this:


I think you either need the "else" at the same level of indentation as the corresponding "if" or use an "else if" statement:


Have a look here.
1 month ago