Mitesh Soni

Greenhorn
+ Follow
since Aug 17, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mitesh Soni

It is highly recommended that you fully develop and test a Struts application before attempting to host it within a portal. This helps to separate the complexities of developing a working Struts application from the additional issues involved in putting the Struts application into a portlet.

Make sure that you select struts 1.2 supported application because Weblogic portal 10 does not support struts 1.1or the lesser version than struts 1.2.

For Complete Tutorial Visit: Tutorial: Struts Portlet in Weblogic Portal Server
13 years ago
Please give Directory structure of your application.
14 years ago
Hi,

I want to have a Huge log file to do log analysis with the use of Hadoop. Just for my own experiment, is thr any way with which we can generate content in the tomcat log file dynamically?

I need 5 o 10 GB file for my experiment with hadoop.
14 years ago
If I want to create a web service which takes source of the file, and then encrypt it and return the encrypted file then is it possible. Not having enough experience in the field but I think it should work...
Please help...with bit explanation.

Thanks in advance.
14 years ago
Please explain...

I know few of the diff like...

1) Extending the Thread class will make your class unable to extend other classes, because of the single inheritance feature in JAVA.
2) In an Object oriented aspect, the second method is more preferrable, because you extend a class when you want to make it different from it’s super class, and change it’s behavior(s) (Example???).

Is there any other major difference?
15 years ago

Thread communication problem.

I have one class say A which periodically cretes runnable object of class B and put it in a queue and then it is dispatched to the executor class for thread execution. lets sat b1 is in execution and at that time new runnable object is triggered and pushed into queue named b2. b2 will be dispatched only when b1 will be completed. now the problem is how i will determine that runnable object which is dispatched to the executor is completed?

what are the ways to determine it? and which is the efficient way?
15 years ago
hi,

Thread communication problem.

I have one class say A which periodically cretes runnable object of class B and put it in a queue and then it is dispatched to the executor class for thread execution. lets sat b1 is in execution and at that time new runnable object is triggered and pushed into queue named b2. b2 will be dispatched only when b1 will be completed. now the problem is how i will determine that runnable object which is dispatched to the executor is completed?

what are the ways to determine it? and which is the efficient way?
I think you have explained callable, please explain Future with example
16 years ago
Please explain the use of Future class with some simple example.
16 years ago
String s = "abc";

"abc" will go in the pool and s will refer to it.

String s = new String("abc");

Java will create a new String object
in normal (non-pool) memory, and s will refer to it. In addition, the literal "abc" will
be placed in the pool.

Punit From this I doubt that Pooll contains only references as per that tutorial :-(
Hi,

All objects are stored in a Heap and not stack i guess.
Hi...Portal is a kind of web application and portlet is one of the component of the web application. Portlets reside on the portal.

This is the general definition of portel and it applier in the case of weblogic. To install weblogic portal devlopment enviornment you need to download the portal100_win32.exe from bea's website.

Workshop for portal devlopment comes inbuilt in that. Workshop provides the gui environment which helps you to create weblogic portal in easy manner.

Hope this will clear some doubts.
17 years ago
Hello All,

I am trying to make a struts portlet in the weblogic portal and i am having lots of difficulties eventhough i have been

following the steps given in the bea docs for struts integration.

I am first giving here the directory structure off struts application which i deployed on weblogic server and then i am

trying to integrate in weblogic portal 10 where i am getting problems.

strutsApp(Main folder)
C:\struts-training\strutsApp\index.jsp
C:\struts-training\strutsApp\success.jsp
C:\struts-training\strutsApp\customerform.jsp
C:\struts-training\strutsApp\WEB-INF
C:\struts-training\strutsApp\WEB-INF\classes
C:\struts-training\strutsApp\WEB-INF\classes\struts
C:\struts-training\strutsApp\WEB-INF\classes\struts\example
C:\struts-training\strutsApp\WEB-INF\classes\struts\example\*.class
C:\struts-training\strutsApp\WEB-INF\lib
C:\struts-training\strutsApp\WEB-INF\*.tld
C:\struts-training\strutsApp\WEB-INF\*.xml

this is perfactly working structure in weblogic and i have tested it.

Now I am giving the structure i used for weblogic portal 10 according to the integration steps of bea docs.

C:\bea\user_projects\w4WP_workspaces\struts1

in struts1 folder
MyEAR(Ear project)
MyWEb(web project)folders are there.

C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\src\struts\example\*.class
(Action and Form class)

C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\index.jsp
C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\jsp\customerform.jsp

C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\strutsApp\strutsApp.portlet
C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\strutsApp\Success.jsp
C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\MyPortal.portal

C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\WEB-INF\classes\struts\example\*.class
(Action and Form class)

C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\WEB-INF\lib\*.jar
C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\WEB-INF\*.tld
C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\WEB-INF\*.xml
C:\bea\user_projects\w4WP_workspaces\struts1\MyWeb\WebContent\WEB-INF\src\struts\example\*.java

My web.xml has this extra entry bcoz weblogic portal supports the struts bydedefauld and so there is one entry for config

already.

<init-param>
<param-name>config/strutsApp</param-name>
<param-value>/WEB-INF/struts-auto-config-strutsApp.xml</param-value>
</init-param>

My struts-auto-config-strutsApp.xml

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"

"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="CustomerForm" type="struts.example.CustomerForm" />
</form-beans>
<global-forwards>
<forward name="mainpage" path="/index.jsp" />
</global-forwards>
<action-mappings>
<action path="/showCustomerForm"
parameter="/jsp/CustomerForm.jsp"
type="org.apache.struts.actions.ForwardAction" />

<action path="/submitCustomerForm"
type="struts.example.CustomerAction"
name="CustomerForm"
scope="request"
validate="true"
input="/jsp/CustomerForm.jsp">
<forward name="success" path="/Success.jsp" />
</action>
</action-mappings>
<controller processorClass="com.bea.struts.adapter.action.AdapterRequestProcessor"/>
<message-resources parameter="struts.example.MessageResources" null="false"/>
</struts-config>

Now the problem is when i make portlet and run it the the first page customerform.jsp comes in portlet window and asks for

Firstname and Lastname and when i submit the action class is also called and i can say that bcoz i have put print statement

in that class and it is printed on console but when it forwards....ther the problem lies....it results in full-screen, stand

-alone Struts pages...

Solution according to docs is to make sure that struts-adapter JSP tag libraries are in the project's WEB-INF/lib directory

and that they are registered in web.xml.

I cannot find that...

Is there any problem in my directory structure?? any entries remaining anywhere?? kindly help me...I m working on this issue

since 10 days without success.
17 years ago