Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds


  Asked By: John    Date: Sep 28    Category: Java    Views: 436

can any 1 explain what is Struts ? Infact why we need to use them.



7 Answers Found

Answer #1    Answered By: Willis Hill     Answered On: Sep 28
Answer #2    Answered By: James Williams     Answered On: Sep 28

since you are working with struts  this means that you have a hard time
This is not a struts problem somehow. It is more a jasper problem (the JSP
inside Tomcat, jetty....). This means that the compiler cannot compile your
(don't ask me why). So you get an empty .java file for the JSP and therefore
compiler fails and you get this funny exception (although you have the
javax.servlet stuff
in your classpath).
I have searched for this problem also quite long. Stupid jasper.
Unfortunately there seems nearly
no other JSP compiler implementation available as open source and you have
to live with it.
Actually, only as long as stick to JSPs.
I have switched from JSPs long time ago.

Answer #3    Answered By: Albert Ellis     Answered On: Sep 28

I am trying to make the JFrame's close, resize and minimize buttons
I want to show a small frame when right clicked for menu list. Any help will
be appreciated.

Answer #4    Answered By: Dannon Jones     Answered On: Sep 28

i don't know how to hide a close/minimize button in JFrame, but anyway u can
disable it in ur WindowListener method
use myFrame.setResizable(false);

otherwise use

JDialog jdlgTemp = new JDialog();

Answer #5    Answered By: Walborgd Fischer     Answered On: Sep 28

u just need to define a property in your ActionForm which would be ArrayList for
a Select box...
and you need to set the action mapping in the struts  config.xml

your action class will receive the form obj as param in execute method which
will already have all the values in the arraylist.. so no hassles..

Answer #6    Answered By: Bradley Evans     Answered On: Sep 28

Can i send it to the actionform using array instead of arrraylist? but
i have a few questions now. I declare this in my javascript:
"document.form.test[i].value=m1.options[i].value;" where i assign each
options the user picked into a hidden value named test. but when i
send this "test" value to the action form and display it with a for
loop, i get an error. i set the hidden "test" property like this:
"<html-el:hidden name="form" property="test"/>" in my jsp. Does it
mean the value "test" sent by the javascript is already an array, and
can be used in the actionformbean? if not, please show me some example
on how to retrieve the value in the actionformbean... help is really

Answer #7    Answered By: Barak Levi     Answered On: Sep 28

Don't use an ArrayList, use an array so the MultiSelect will take
automatically the selection from the array. And the form will be
submitted correctly!

Didn't find what you were looking for? Find more on Struts Or get search suggestion and latest updates.