Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

Robert Wiscup

Ranch Hand
+ Follow
since Oct 18, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Wiscup

Hi All,

I'm having a bit of trouble trying to get my tiles to work with Struts and wondered if anyone could help.

The relevant files are shown below:

**** Web.xml ****




**** tiles-defs.xml ****




**** struts-config.xml ****





I'm using struts-tiles-1.3.8.jar and when I run the above I get: "java.lang.IllegalArgumentException: Path Home does not start with a "/" character"

Can anyone help me with this?

Thanks,

Rob


7 years ago
Thanks for that David . . . everything is working now . . .

Thanks Again,

Rob
8 years ago
Hi All,

I'm a little confused on how to show two properties from different beans on the same .jsp page.

I have a .jsp page in a Struts 1 application . . . code follows:




"description" is in the "ProblemDescription" Bean and "problemResolution" is in the "Problem" Bean.

The action mapping for this page is shown below:




Note that the "name" attribute points to "ProblemDescriptionForm" and not "ProblemForm"

When I try to load the page I get "No getter method available for property problemResolution for bean under name org.apache.struts.taglib.html.BEAN"

I assume I'm getting this because the action mapping uses name = "ProblemDescriptionForm" and not "ProblemForm" and "problemResolution" is part of the "ProblemForm".

So I'm confused as to how I show properties from two different beans on the same .jsp page when the name attribute in the action mapping can only point to one form (i.e. bean). Can someone explain how this is supposed to work?

Thanks in Advance,

Rob



8 years ago
Hi David,

I was able to solve this problem . . . thanks for your assistance . . .

Rob
8 years ago
Hi David,

Thanks for the response . . . sorry for not responding sooner . . . I've been out of the office . . .

I did exactly as you suggested and now I get the following error:

"javax.servlet.jsp.JspException: No getter method available for property useCaseId for bean under name org.apache.struts.taglib.html.BEAN"

Do you know why I'm getting this error?

Thanks,

Rob


8 years ago
Hi All,

I'm having a little trouble (for some reason) understanding how to do something in my Struts 1.3 application.

Specifically, I have a .jsp that looks (in part) like below:




The action in struts-config looks like this:





The question I have is how do I display data from different classes (beans) in my drop down lists on my .jsp. My action points to a specific actionForm (in this case "ProblemForm") but I want to display data from another bean (in this case UseCases) in my drop down list on the same .jsp page. Also, I'm using hibernate 3 and there is a "many-to-many" relationship between "Problem" bean and "UseCase" bean. The relevant section of the "ProblemActionForm" is shown below as well:




I guess what I'm asking is given the above what should the code be in my .jsp to show the various "use case" values? Apparently this code above:



is incorrect.


Any help is appreciated,

Thanks,

Rob
8 years ago
Hi David,

Thanks for responding . . .

You can't really do what I was trying to do. As you said you can only get data from client to server via posting of a form and some other techniques . . . so I've rearranged things and everything is working fine now . . .

Thanks,

Rob
8 years ago
Hi Sue,

Thank you for responding . . . but I'm using Struts 1 and not Struts 2.

Sorry I should have said so . . .

Thanks,

Rob
8 years ago
Hi All,

I have a javascript function called "dostuff" (as shown below) that is called when I click on a hyperlink on my .jsp. I'm basically trying to pass some client side data in my textbox on my .jsp to my action using javascript . . . something like shown below. However, I'm not sure how to do this (or the syntax). Can someone assist me with this? Your help is much appreciated.



Thanks,

Rob
8 years ago
Hi All,

I'm relatively new to Struts and I am working on security issues. Specifically, I'm trying to implement a Struts 1.3 Filter in my web.xml file and I'm having a little trouble . . .

I want login.jsp to not pass through the filter. Every other .jsp call I want to pass through the filter.
I have a folder under Web Content called "secure". I place all the "secure" .jsps in this folder.

So far I have:




When I execute login.jsp I go to another .jsp that is in the secure folder but it's not executing the filter. Can someone assist me?

Thanks,

Rob
8 years ago
Hi All,

I'm relatively new to Struts and I am working on security issues. Specifically, I'm trying to implement a Struts 1.3 Filter in my web.xml file and I'm having a little trouble . . .

I want login.jsp to not pass through the filter. Every other .jsp call I want to pass through the filter.
I have a folder under Web Content called "secure". I place all the "secure" .jsps in this folder.

So far I have:



When I execute login.jsp I go to another .jsp that is in the secure folder but it's not executing the filter. Can someone assist me?

Thanks,

Rob
8 years ago
Hi All,

I have everything working now . . . so please disregard . . .

Thanks,

Rob
8 years ago
Hi All,

I'm trying to apply the Struts Layout Datagrid for the first time to my Struts project and I'm having trouble with the "add" functionality . . .

I'm using Struts 1.3 and Struts-Layout 1.4 . . .

My .jsp looks like this:




and my bean looks like this:



I have both struts-layout.tld and Struts-Layout.jar in the proper places but when I click on Add to insert a row nothing happens . . .

Can someone assist me with this?

Thanks,

Rob
8 years ago
Hi All,

I'm trying to use the Struts Validator for the first time and my error messages aren't appearing . . .

The relevant portions of my source code are shown below. Can someone tell me what I'm doing wrong?

Thanks,

Rob

**************** struts-config.xml ***************




**************** validation.xml ***************




**************** adddefect.jsp ***************




**************** ApplicationResources.properties ***************




8 years ago

Robert Wiscup wrote:Hi All,

I'm trying to do this SQL join in HQL in Hibernate . . .



basically a join on Defect and FunctionalArea Table. However, I'm still learning Hibernate and I don't understand how to do the configuration properly and the exact HQL syntax. Here's what I have now:

************ Defect.hbm.xml ********************



************ FunctionalArea.hbm.xml ********************




Can anyone tell me if I've done the associations and join syntax correctly?

Thanks,

Rob