Win a copy of Spring Boot in Practice this week in the Spring forum!

David Glossop

Greenhorn
+ Follow
since Sep 10, 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 David Glossop

I want to create a local internet proxy with the initial intention of filtering my son (12yrs) internet access to remove/ mask out any personal details he may post to protect his privacy. i.e. is name, address phone number email. I currently have a simple proxy server I coded (java) to record browser requests and scan returned pages to/from a local web server to help me automate testing and I would like to modify this to point to the internet instead of the local web servers IP/port but having never done this before I'm unsure how this would be done. Ideally it would just be a case of changing the local web servers IP/port with another however I pretty sure this is too simple a view of the problem.

How would one forward a request to the internet given that the machine running the proxy in connected to the internet?
I' just starting out along the Hibernate path and I have a question/problem with unsderstanding the best or correct way to map data and objects. At a simple level, assume I have a user and userType object as below;





the code spippet for adding a user whould be;




Which I want represented in the Database as below;



The problem is I have is; I want the userTypes table to be static data only, that is I don't want hibernate to perform any CRUD operations on it. Where as in the above example I really only want hibernate to return user with a correctly populated userType object when queried and nothing else.

Am I approaching the problem the wrong way on trying to user hibernate incorrectly?

David Glossop wrote:Sagar, thanks again for the advice. I have resolved the problem by taking a moving the problem domain from the jsp to the tag.

In the tag I now use MessageResources to retrieve the key from the ApplicationResource.properties file.





12 years ago
Sagar, thanks again for the advice. i have resolved the problem by taking a moving the problem domain from the jsp to the tag.

In the tag I now use MessageResources to retrieve the key from the ApplicationResource.properties file.





12 years ago
Sagar, thanks for the quick reply, however I think I am missing something as I can't get either solution to work?

The first results in a blank string ("") being passed and the second passes the string '<bean:message key="labels.pfm.menus.admin.ManageVendors"/>' ?


12 years ago
I am pretty new to struts, so this may sound like a silly question, however in the app i am starting to write I have want to use struts and an ApplicationResource file for internationalisation. The problem I have is with passing a string parameter to a custom tag as s string. Although syntax is wrong (very) the below example should exemplify what I want to achieve.

<menu:menuItem label=" <bean:message key="labels.pfm.menus.admin.ManageVendors"/> " forward="manageVendors.do" />

Question: How do I pass in the string represented by 'labels.pfm.menus.admin.ManageVendors' in the ApplicationResource.properties as a string to the tag?




12 years ago